qovery-typescript-axios 1.1.722 → 1.1.723
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 -1
- package/dist/api.d.ts +66 -0
- package/dist/api.js +95 -11
- package/dist/esm/api.d.ts +66 -0
- package/dist/esm/api.js +85 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -473,6 +473,19 @@ export interface AlertRuleEditRequest {
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @export
|
|
479
|
+
* @interface AlertRuleList
|
|
480
|
+
*/
|
|
481
|
+
export interface AlertRuleList {
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @type {Array<AlertRuleResponse>}
|
|
485
|
+
* @memberof AlertRuleList
|
|
486
|
+
*/
|
|
487
|
+
'results': Array<AlertRuleResponse>;
|
|
488
|
+
}
|
|
476
489
|
/**
|
|
477
490
|
*
|
|
478
491
|
* @export
|
|
@@ -563,9 +576,33 @@ export interface AlertRuleResponse {
|
|
|
563
576
|
* @memberof AlertRuleResponse
|
|
564
577
|
*/
|
|
565
578
|
'target': AlertTarget;
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @type {AlertRuleState}
|
|
582
|
+
* @memberof AlertRuleResponse
|
|
583
|
+
*/
|
|
584
|
+
'state': AlertRuleState;
|
|
566
585
|
}
|
|
567
586
|
|
|
568
587
|
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @export
|
|
591
|
+
* @enum {string}
|
|
592
|
+
*/
|
|
593
|
+
|
|
594
|
+
export const AlertRuleState = {
|
|
595
|
+
UNDEPLOYED: 'UNDEPLOYED',
|
|
596
|
+
OK: 'OK',
|
|
597
|
+
TRIGGERED: 'TRIGGERED',
|
|
598
|
+
FIRED: 'FIRED',
|
|
599
|
+
NOTIFIED: 'NOTIFIED',
|
|
600
|
+
SUPPRESSED: 'SUPPRESSED'
|
|
601
|
+
} as const;
|
|
602
|
+
|
|
603
|
+
export type AlertRuleState = typeof AlertRuleState[keyof typeof AlertRuleState];
|
|
604
|
+
|
|
605
|
+
|
|
569
606
|
/**
|
|
570
607
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
571
608
|
* @export
|
|
@@ -19902,7 +19939,7 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration?: Conf
|
|
|
19902
19939
|
getAlertReceivers: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19903
19940
|
// verify required parameter 'organizationId' is not null or undefined
|
|
19904
19941
|
assertParamExists('getAlertReceivers', 'organizationId', organizationId)
|
|
19905
|
-
const localVarPath = `/
|
|
19942
|
+
const localVarPath = `/organization/{organizationId}/alert-receivers`
|
|
19906
19943
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
19907
19944
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19908
19945
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -20309,6 +20346,47 @@ export const AlertRulesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
20309
20346
|
|
|
20310
20347
|
|
|
20311
20348
|
|
|
20349
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20351
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20352
|
+
|
|
20353
|
+
return {
|
|
20354
|
+
url: toPathString(localVarUrlObj),
|
|
20355
|
+
options: localVarRequestOptions,
|
|
20356
|
+
};
|
|
20357
|
+
},
|
|
20358
|
+
/**
|
|
20359
|
+
* Retrieve all alert rules for a specific organization
|
|
20360
|
+
* @summary List alert rules
|
|
20361
|
+
* @param {string} organizationId Organization ID
|
|
20362
|
+
* @param {*} [options] Override http request option.
|
|
20363
|
+
* @throws {RequiredError}
|
|
20364
|
+
*/
|
|
20365
|
+
getAlertRules: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20366
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
20367
|
+
assertParamExists('getAlertRules', 'organizationId', organizationId)
|
|
20368
|
+
const localVarPath = `/organization/{organizationId}/alert-rules`
|
|
20369
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
20370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20371
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20372
|
+
let baseOptions;
|
|
20373
|
+
if (configuration) {
|
|
20374
|
+
baseOptions = configuration.baseOptions;
|
|
20375
|
+
}
|
|
20376
|
+
|
|
20377
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20378
|
+
const localVarHeaderParameter = {} as any;
|
|
20379
|
+
const localVarQueryParameter = {} as any;
|
|
20380
|
+
|
|
20381
|
+
// authentication ApiKeyAuth required
|
|
20382
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
20383
|
+
|
|
20384
|
+
// authentication bearerAuth required
|
|
20385
|
+
// http bearer authentication required
|
|
20386
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20387
|
+
|
|
20388
|
+
|
|
20389
|
+
|
|
20312
20390
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20313
20391
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20314
20392
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -20381,6 +20459,19 @@ export const AlertRulesApiFp = function(configuration?: Configuration) {
|
|
|
20381
20459
|
const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.getAlertRule']?.[localVarOperationServerIndex]?.url;
|
|
20382
20460
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20383
20461
|
},
|
|
20462
|
+
/**
|
|
20463
|
+
* Retrieve all alert rules for a specific organization
|
|
20464
|
+
* @summary List alert rules
|
|
20465
|
+
* @param {string} organizationId Organization ID
|
|
20466
|
+
* @param {*} [options] Override http request option.
|
|
20467
|
+
* @throws {RequiredError}
|
|
20468
|
+
*/
|
|
20469
|
+
async getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>> {
|
|
20470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAlertRules(organizationId, options);
|
|
20471
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20472
|
+
const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.getAlertRules']?.[localVarOperationServerIndex]?.url;
|
|
20473
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20474
|
+
},
|
|
20384
20475
|
}
|
|
20385
20476
|
};
|
|
20386
20477
|
|
|
@@ -20432,6 +20523,16 @@ export const AlertRulesApiFactory = function (configuration?: Configuration, bas
|
|
|
20432
20523
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse> {
|
|
20433
20524
|
return localVarFp.getAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
|
|
20434
20525
|
},
|
|
20526
|
+
/**
|
|
20527
|
+
* Retrieve all alert rules for a specific organization
|
|
20528
|
+
* @summary List alert rules
|
|
20529
|
+
* @param {string} organizationId Organization ID
|
|
20530
|
+
* @param {*} [options] Override http request option.
|
|
20531
|
+
* @throws {RequiredError}
|
|
20532
|
+
*/
|
|
20533
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList> {
|
|
20534
|
+
return localVarFp.getAlertRules(organizationId, options).then((request) => request(axios, basePath));
|
|
20535
|
+
},
|
|
20435
20536
|
};
|
|
20436
20537
|
};
|
|
20437
20538
|
|
|
@@ -20490,6 +20591,18 @@ export class AlertRulesApi extends BaseAPI {
|
|
|
20490
20591
|
public getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig) {
|
|
20491
20592
|
return AlertRulesApiFp(this.configuration).getAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
|
|
20492
20593
|
}
|
|
20594
|
+
|
|
20595
|
+
/**
|
|
20596
|
+
* Retrieve all alert rules for a specific organization
|
|
20597
|
+
* @summary List alert rules
|
|
20598
|
+
* @param {string} organizationId Organization ID
|
|
20599
|
+
* @param {*} [options] Override http request option.
|
|
20600
|
+
* @throws {RequiredError}
|
|
20601
|
+
* @memberof AlertRulesApi
|
|
20602
|
+
*/
|
|
20603
|
+
public getAlertRules(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
20604
|
+
return AlertRulesApiFp(this.configuration).getAlertRules(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
20605
|
+
}
|
|
20493
20606
|
}
|
|
20494
20607
|
|
|
20495
20608
|
|
package/dist/api.d.ts
CHANGED
|
@@ -438,6 +438,19 @@ export interface AlertRuleEditRequest {
|
|
|
438
438
|
*/
|
|
439
439
|
'presentation': AlertPresentation;
|
|
440
440
|
}
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @export
|
|
444
|
+
* @interface AlertRuleList
|
|
445
|
+
*/
|
|
446
|
+
export interface AlertRuleList {
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @type {Array<AlertRuleResponse>}
|
|
450
|
+
* @memberof AlertRuleList
|
|
451
|
+
*/
|
|
452
|
+
'results': Array<AlertRuleResponse>;
|
|
453
|
+
}
|
|
441
454
|
/**
|
|
442
455
|
*
|
|
443
456
|
* @export
|
|
@@ -528,7 +541,27 @@ export interface AlertRuleResponse {
|
|
|
528
541
|
* @memberof AlertRuleResponse
|
|
529
542
|
*/
|
|
530
543
|
'target': AlertTarget;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {AlertRuleState}
|
|
547
|
+
* @memberof AlertRuleResponse
|
|
548
|
+
*/
|
|
549
|
+
'state': AlertRuleState;
|
|
531
550
|
}
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @export
|
|
554
|
+
* @enum {string}
|
|
555
|
+
*/
|
|
556
|
+
export declare const AlertRuleState: {
|
|
557
|
+
readonly UNDEPLOYED: "UNDEPLOYED";
|
|
558
|
+
readonly OK: "OK";
|
|
559
|
+
readonly TRIGGERED: "TRIGGERED";
|
|
560
|
+
readonly FIRED: "FIRED";
|
|
561
|
+
readonly NOTIFIED: "NOTIFIED";
|
|
562
|
+
readonly SUPPRESSED: "SUPPRESSED";
|
|
563
|
+
};
|
|
564
|
+
export type AlertRuleState = typeof AlertRuleState[keyof typeof AlertRuleState];
|
|
532
565
|
/**
|
|
533
566
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
534
567
|
* @export
|
|
@@ -19218,6 +19251,14 @@ export declare const AlertRulesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
19218
19251
|
* @throws {RequiredError}
|
|
19219
19252
|
*/
|
|
19220
19253
|
getAlertRule: (alertRuleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19254
|
+
/**
|
|
19255
|
+
* Retrieve all alert rules for a specific organization
|
|
19256
|
+
* @summary List alert rules
|
|
19257
|
+
* @param {string} organizationId Organization ID
|
|
19258
|
+
* @param {*} [options] Override http request option.
|
|
19259
|
+
* @throws {RequiredError}
|
|
19260
|
+
*/
|
|
19261
|
+
getAlertRules: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19221
19262
|
};
|
|
19222
19263
|
/**
|
|
19223
19264
|
* AlertRulesApi - functional programming interface
|
|
@@ -19257,6 +19298,14 @@ export declare const AlertRulesApiFp: (configuration?: Configuration) => {
|
|
|
19257
19298
|
* @throws {RequiredError}
|
|
19258
19299
|
*/
|
|
19259
19300
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleResponse>>;
|
|
19301
|
+
/**
|
|
19302
|
+
* Retrieve all alert rules for a specific organization
|
|
19303
|
+
* @summary List alert rules
|
|
19304
|
+
* @param {string} organizationId Organization ID
|
|
19305
|
+
* @param {*} [options] Override http request option.
|
|
19306
|
+
* @throws {RequiredError}
|
|
19307
|
+
*/
|
|
19308
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>>;
|
|
19260
19309
|
};
|
|
19261
19310
|
/**
|
|
19262
19311
|
* AlertRulesApi - factory interface
|
|
@@ -19296,6 +19345,14 @@ export declare const AlertRulesApiFactory: (configuration?: Configuration, baseP
|
|
|
19296
19345
|
* @throws {RequiredError}
|
|
19297
19346
|
*/
|
|
19298
19347
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse>;
|
|
19348
|
+
/**
|
|
19349
|
+
* Retrieve all alert rules for a specific organization
|
|
19350
|
+
* @summary List alert rules
|
|
19351
|
+
* @param {string} organizationId Organization ID
|
|
19352
|
+
* @param {*} [options] Override http request option.
|
|
19353
|
+
* @throws {RequiredError}
|
|
19354
|
+
*/
|
|
19355
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
|
|
19299
19356
|
};
|
|
19300
19357
|
/**
|
|
19301
19358
|
* AlertRulesApi - object-oriented interface
|
|
@@ -19341,6 +19398,15 @@ export declare class AlertRulesApi extends BaseAPI {
|
|
|
19341
19398
|
* @memberof AlertRulesApi
|
|
19342
19399
|
*/
|
|
19343
19400
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleResponse, any, {}>>;
|
|
19401
|
+
/**
|
|
19402
|
+
* Retrieve all alert rules for a specific organization
|
|
19403
|
+
* @summary List alert rules
|
|
19404
|
+
* @param {string} organizationId Organization ID
|
|
19405
|
+
* @param {*} [options] Override http request option.
|
|
19406
|
+
* @throws {RequiredError}
|
|
19407
|
+
* @memberof AlertRulesApi
|
|
19408
|
+
*/
|
|
19409
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleList, any, {}>>;
|
|
19344
19410
|
}
|
|
19345
19411
|
/**
|
|
19346
19412
|
* ApplicationActionsApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -22,16 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformDeploymentRestrictionApi = exports.TerraformDeploymentRestrictionApiFactory = exports.TerraformDeploymentRestrictionApiFp = exports.TerraformDeploymentRestrictionApiAxiosParamCreator = exports.TerraformDeploymentHistoryApi = void 0;
|
|
25
|
+
exports.GitProviderEnum = exports.GenericClusterCredentialsObjectTypeEnum = exports.GcpStaticClusterCredentialsObjectTypeEnum = exports.EnvironmentStatusEventOriginEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.EnvironmentDeploymentStatusEnum = exports.EksInfrastructureOutputsKindEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryTriggerAction = exports.DeploymentHistoryStatusEnum = exports.DeploymentHistoryServiceDetailsOneOf2JobTypeEnum = exports.DeploymentHistoryActionStatus = exports.DeleteTerraformAction = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.CpuArchitectureEnum = exports.ContainerRegistryKindEnum = exports.ContainerRegistryAssociatedServiceType = exports.ContainerAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ContainerAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.CompanySizeEnum = exports.ClusterStateEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureResponseTypeEnum = exports.ClusterFeatureResponseValueTypeEnum = exports.ClusterDeploymentStatusEnum = exports.ClusterDeleteMode = exports.ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = exports.CloudVendorEnum = exports.CloudProviderEnum = exports.CheckedCustomDomainStatus = exports.BuildModeEnum = exports.AzureStaticClusterCredentialsObjectTypeEnum = exports.AwsStaticClusterCredentialsObjectTypeEnum = exports.AwsRoleClusterCredentialsObjectTypeEnum = exports.ApplicationAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ApplicationAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.AnnotationsGroupAssociatedItemType = exports.AlertTargetType = exports.AlertSeverity = exports.AlertRuleState = exports.AlertReceiverType = exports.AksInfrastructureOutputsKindEnum = exports.APIVariableTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
|
+
exports.StorageTypeEnum = exports.StepMetricStatusEnum = exports.StatusKindEnum = exports.StateEnum = exports.StageStepMetricNameEnum = exports.StageStatusEnum = exports.ServiceTypeForVariableEnum = exports.ServiceTypeEnum = exports.ServiceSubActionEnum = exports.ServiceStepMetricNameEnum = exports.ServiceLightResponseJobTypeEnum = exports.ServiceDeploymentStatusEnum = exports.ServiceActionStatusEnum = exports.ServiceActionEnum = exports.ScalewayClusterCredentialsObjectTypeEnum = exports.RewardClaimTypeEnum = exports.RegistryMirroringModeEnum = exports.QueuedDeploymentRequestWithStagesStagesInnerServicesInnerDetailsOneOfJobTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationEventType = exports.OrganizationEventTargetType = exports.OrganizationEventSubTargetType = exports.OrganizationEventOrigin = exports.OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleClusterPermission = exports.OrganizationApiTokenScope = exports.OrganizationAnnotationsGroupScopeEnum = exports.MetricsConfigurationManagedByQoveryKindEnum = exports.LinkedServiceTypeEnum = exports.LabelsGroupAssociatedItemType = exports.KubernetesEnum = exports.KarpenterNodePoolRequirementOperator = exports.KarpenterNodePoolRequirementKey = exports.KapsuleInfrastructureOutputsKindEnum = exports.JobTypeEnum = exports.JobScheduleEvent = exports.JobLifecycleTypeEnum = exports.JobForceEvent = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HelmRepositoryKindEnum = exports.HelmRepositoryAssociatedServiceType = exports.HelmPortProtocolEnum = exports.HelmForceEvent = exports.GkeInfrastructureOutputsKindEnum = exports.GitTokenAssociatedServiceType = void 0;
|
|
27
|
+
exports.ApplicationSecretApiAxiosParamCreator = 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.ApplicationCustomDomainApi = exports.ApplicationCustomDomainApiFactory = exports.ApplicationCustomDomainApiFp = exports.ApplicationCustomDomainApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AlertRulesApi = exports.AlertRulesApiFactory = exports.AlertRulesApiFp = exports.AlertRulesApiAxiosParamCreator = exports.AlertReceiversApi = exports.AlertReceiversApiFactory = exports.AlertReceiversApiFp = exports.AlertReceiversApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.TerraformResponseProviderEnum = exports.TerraformRequestProviderEnum = exports.TerraformDeployRequestActionEnum = void 0;
|
|
28
|
+
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.ListAzureAKSInstanceTypeGpuEnum = exports.ListAWSEKSInstanceTypeGpuEnum = 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;
|
|
29
|
+
exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = exports.DeploymentStageMainCallsApiAxiosParamCreator = exports.DeploymentQueueActionsApi = exports.DeploymentQueueActionsApiFactory = exports.DeploymentQueueActionsApiFp = exports.DeploymentQueueActionsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = 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.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = void 0;
|
|
30
|
+
exports.HelmActionsApiAxiosParamCreator = exports.GithubAppApi = 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 = void 0;
|
|
31
|
+
exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = 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.HelmCustomDomainApi = exports.HelmCustomDomainApiFactory = exports.HelmCustomDomainApiFp = exports.HelmCustomDomainApiAxiosParamCreator = exports.HelmConfigurationApi = exports.HelmConfigurationApiFactory = exports.HelmConfigurationApiFp = exports.HelmConfigurationApiAxiosParamCreator = exports.HelmActionsApi = exports.HelmActionsApiFactory = exports.HelmActionsApiFp = void 0;
|
|
32
|
+
exports.OrganizationLabelsGroupApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationEnterpriseConnectionApi = exports.OrganizationEnterpriseConnectionApiFactory = exports.OrganizationEnterpriseConnectionApiFp = exports.OrganizationEnterpriseConnectionApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationClusterLockApi = exports.OrganizationClusterLockApiFactory = exports.OrganizationClusterLockApiFp = exports.OrganizationClusterLockApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAnnotationsGroupApi = exports.OrganizationAnnotationsGroupApiFactory = exports.OrganizationAnnotationsGroupApiFp = exports.OrganizationAnnotationsGroupApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.LifecycleTemplateMainCallsApi = exports.LifecycleTemplateMainCallsApiFactory = exports.LifecycleTemplateMainCallsApiFp = exports.LifecycleTemplateMainCallsApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = void 0;
|
|
33
|
+
exports.TerraformDeploymentHistoryApiFp = exports.TerraformDeploymentHistoryApiAxiosParamCreator = exports.TerraformConfigurationApi = exports.TerraformConfigurationApiFactory = exports.TerraformConfigurationApiFp = exports.TerraformConfigurationApiAxiosParamCreator = exports.TerraformActionsApi = exports.TerraformActionsApiFactory = exports.TerraformActionsApiFp = exports.TerraformActionsApiAxiosParamCreator = exports.GetIngressDeploymentStatusServiceTypeEnum = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = 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 = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationLabelsGroupApi = exports.OrganizationLabelsGroupApiFactory = exports.OrganizationLabelsGroupApiFp = void 0;
|
|
34
|
+
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformDeploymentRestrictionApi = exports.TerraformDeploymentRestrictionApiFactory = exports.TerraformDeploymentRestrictionApiFp = exports.TerraformDeploymentRestrictionApiAxiosParamCreator = exports.TerraformDeploymentHistoryApi = exports.TerraformDeploymentHistoryApiFactory = void 0;
|
|
35
35
|
const axios_1 = require("axios");
|
|
36
36
|
// Some imports not used depending on template conditions
|
|
37
37
|
// @ts-ignore
|
|
@@ -76,6 +76,19 @@ exports.AksInfrastructureOutputsKindEnum = {
|
|
|
76
76
|
exports.AlertReceiverType = {
|
|
77
77
|
SLACK: 'SLACK'
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @export
|
|
82
|
+
* @enum {string}
|
|
83
|
+
*/
|
|
84
|
+
exports.AlertRuleState = {
|
|
85
|
+
UNDEPLOYED: 'UNDEPLOYED',
|
|
86
|
+
OK: 'OK',
|
|
87
|
+
TRIGGERED: 'TRIGGERED',
|
|
88
|
+
FIRED: 'FIRED',
|
|
89
|
+
NOTIFIED: 'NOTIFIED',
|
|
90
|
+
SUPPRESSED: 'SUPPRESSED'
|
|
91
|
+
};
|
|
79
92
|
/**
|
|
80
93
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
81
94
|
* @export
|
|
@@ -1481,7 +1494,7 @@ const AlertReceiversApiAxiosParamCreator = function (configuration) {
|
|
|
1481
1494
|
getAlertReceivers: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1482
1495
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1483
1496
|
(0, common_1.assertParamExists)('getAlertReceivers', 'organizationId', organizationId);
|
|
1484
|
-
const localVarPath = `/
|
|
1497
|
+
const localVarPath = `/organization/{organizationId}/alert-receivers`
|
|
1485
1498
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1486
1499
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1487
1500
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1869,6 +1882,40 @@ const AlertRulesApiAxiosParamCreator = function (configuration) {
|
|
|
1869
1882
|
options: localVarRequestOptions,
|
|
1870
1883
|
};
|
|
1871
1884
|
}),
|
|
1885
|
+
/**
|
|
1886
|
+
* Retrieve all alert rules for a specific organization
|
|
1887
|
+
* @summary List alert rules
|
|
1888
|
+
* @param {string} organizationId Organization ID
|
|
1889
|
+
* @param {*} [options] Override http request option.
|
|
1890
|
+
* @throws {RequiredError}
|
|
1891
|
+
*/
|
|
1892
|
+
getAlertRules: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1893
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1894
|
+
(0, common_1.assertParamExists)('getAlertRules', 'organizationId', organizationId);
|
|
1895
|
+
const localVarPath = `/organization/{organizationId}/alert-rules`
|
|
1896
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1898
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1899
|
+
let baseOptions;
|
|
1900
|
+
if (configuration) {
|
|
1901
|
+
baseOptions = configuration.baseOptions;
|
|
1902
|
+
}
|
|
1903
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1904
|
+
const localVarHeaderParameter = {};
|
|
1905
|
+
const localVarQueryParameter = {};
|
|
1906
|
+
// authentication ApiKeyAuth required
|
|
1907
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1908
|
+
// authentication bearerAuth required
|
|
1909
|
+
// http bearer authentication required
|
|
1910
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1911
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1912
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1913
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1914
|
+
return {
|
|
1915
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1916
|
+
options: localVarRequestOptions,
|
|
1917
|
+
};
|
|
1918
|
+
}),
|
|
1872
1919
|
};
|
|
1873
1920
|
};
|
|
1874
1921
|
exports.AlertRulesApiAxiosParamCreator = AlertRulesApiAxiosParamCreator;
|
|
@@ -1944,6 +1991,22 @@ const AlertRulesApiFp = function (configuration) {
|
|
|
1944
1991
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1945
1992
|
});
|
|
1946
1993
|
},
|
|
1994
|
+
/**
|
|
1995
|
+
* Retrieve all alert rules for a specific organization
|
|
1996
|
+
* @summary List alert rules
|
|
1997
|
+
* @param {string} organizationId Organization ID
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
*/
|
|
2001
|
+
getAlertRules(organizationId, options) {
|
|
2002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2003
|
+
var _a, _b, _c;
|
|
2004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAlertRules(organizationId, options);
|
|
2005
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2006
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AlertRulesApi.getAlertRules']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2007
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2008
|
+
});
|
|
2009
|
+
},
|
|
1947
2010
|
};
|
|
1948
2011
|
};
|
|
1949
2012
|
exports.AlertRulesApiFp = AlertRulesApiFp;
|
|
@@ -1995,6 +2058,16 @@ const AlertRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
1995
2058
|
getAlertRule(alertRuleId, options) {
|
|
1996
2059
|
return localVarFp.getAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
|
|
1997
2060
|
},
|
|
2061
|
+
/**
|
|
2062
|
+
* Retrieve all alert rules for a specific organization
|
|
2063
|
+
* @summary List alert rules
|
|
2064
|
+
* @param {string} organizationId Organization ID
|
|
2065
|
+
* @param {*} [options] Override http request option.
|
|
2066
|
+
* @throws {RequiredError}
|
|
2067
|
+
*/
|
|
2068
|
+
getAlertRules(organizationId, options) {
|
|
2069
|
+
return localVarFp.getAlertRules(organizationId, options).then((request) => request(axios, basePath));
|
|
2070
|
+
},
|
|
1998
2071
|
};
|
|
1999
2072
|
};
|
|
2000
2073
|
exports.AlertRulesApiFactory = AlertRulesApiFactory;
|
|
@@ -2050,6 +2123,17 @@ class AlertRulesApi extends base_1.BaseAPI {
|
|
|
2050
2123
|
getAlertRule(alertRuleId, options) {
|
|
2051
2124
|
return (0, exports.AlertRulesApiFp)(this.configuration).getAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
|
|
2052
2125
|
}
|
|
2126
|
+
/**
|
|
2127
|
+
* Retrieve all alert rules for a specific organization
|
|
2128
|
+
* @summary List alert rules
|
|
2129
|
+
* @param {string} organizationId Organization ID
|
|
2130
|
+
* @param {*} [options] Override http request option.
|
|
2131
|
+
* @throws {RequiredError}
|
|
2132
|
+
* @memberof AlertRulesApi
|
|
2133
|
+
*/
|
|
2134
|
+
getAlertRules(organizationId, options) {
|
|
2135
|
+
return (0, exports.AlertRulesApiFp)(this.configuration).getAlertRules(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
2136
|
+
}
|
|
2053
2137
|
}
|
|
2054
2138
|
exports.AlertRulesApi = AlertRulesApi;
|
|
2055
2139
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -438,6 +438,19 @@ export interface AlertRuleEditRequest {
|
|
|
438
438
|
*/
|
|
439
439
|
'presentation': AlertPresentation;
|
|
440
440
|
}
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @export
|
|
444
|
+
* @interface AlertRuleList
|
|
445
|
+
*/
|
|
446
|
+
export interface AlertRuleList {
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @type {Array<AlertRuleResponse>}
|
|
450
|
+
* @memberof AlertRuleList
|
|
451
|
+
*/
|
|
452
|
+
'results': Array<AlertRuleResponse>;
|
|
453
|
+
}
|
|
441
454
|
/**
|
|
442
455
|
*
|
|
443
456
|
* @export
|
|
@@ -528,7 +541,27 @@ export interface AlertRuleResponse {
|
|
|
528
541
|
* @memberof AlertRuleResponse
|
|
529
542
|
*/
|
|
530
543
|
'target': AlertTarget;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {AlertRuleState}
|
|
547
|
+
* @memberof AlertRuleResponse
|
|
548
|
+
*/
|
|
549
|
+
'state': AlertRuleState;
|
|
531
550
|
}
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @export
|
|
554
|
+
* @enum {string}
|
|
555
|
+
*/
|
|
556
|
+
export declare const AlertRuleState: {
|
|
557
|
+
readonly UNDEPLOYED: "UNDEPLOYED";
|
|
558
|
+
readonly OK: "OK";
|
|
559
|
+
readonly TRIGGERED: "TRIGGERED";
|
|
560
|
+
readonly FIRED: "FIRED";
|
|
561
|
+
readonly NOTIFIED: "NOTIFIED";
|
|
562
|
+
readonly SUPPRESSED: "SUPPRESSED";
|
|
563
|
+
};
|
|
564
|
+
export type AlertRuleState = typeof AlertRuleState[keyof typeof AlertRuleState];
|
|
532
565
|
/**
|
|
533
566
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
534
567
|
* @export
|
|
@@ -19218,6 +19251,14 @@ export declare const AlertRulesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
19218
19251
|
* @throws {RequiredError}
|
|
19219
19252
|
*/
|
|
19220
19253
|
getAlertRule: (alertRuleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19254
|
+
/**
|
|
19255
|
+
* Retrieve all alert rules for a specific organization
|
|
19256
|
+
* @summary List alert rules
|
|
19257
|
+
* @param {string} organizationId Organization ID
|
|
19258
|
+
* @param {*} [options] Override http request option.
|
|
19259
|
+
* @throws {RequiredError}
|
|
19260
|
+
*/
|
|
19261
|
+
getAlertRules: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19221
19262
|
};
|
|
19222
19263
|
/**
|
|
19223
19264
|
* AlertRulesApi - functional programming interface
|
|
@@ -19257,6 +19298,14 @@ export declare const AlertRulesApiFp: (configuration?: Configuration) => {
|
|
|
19257
19298
|
* @throws {RequiredError}
|
|
19258
19299
|
*/
|
|
19259
19300
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleResponse>>;
|
|
19301
|
+
/**
|
|
19302
|
+
* Retrieve all alert rules for a specific organization
|
|
19303
|
+
* @summary List alert rules
|
|
19304
|
+
* @param {string} organizationId Organization ID
|
|
19305
|
+
* @param {*} [options] Override http request option.
|
|
19306
|
+
* @throws {RequiredError}
|
|
19307
|
+
*/
|
|
19308
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>>;
|
|
19260
19309
|
};
|
|
19261
19310
|
/**
|
|
19262
19311
|
* AlertRulesApi - factory interface
|
|
@@ -19296,6 +19345,14 @@ export declare const AlertRulesApiFactory: (configuration?: Configuration, baseP
|
|
|
19296
19345
|
* @throws {RequiredError}
|
|
19297
19346
|
*/
|
|
19298
19347
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse>;
|
|
19348
|
+
/**
|
|
19349
|
+
* Retrieve all alert rules for a specific organization
|
|
19350
|
+
* @summary List alert rules
|
|
19351
|
+
* @param {string} organizationId Organization ID
|
|
19352
|
+
* @param {*} [options] Override http request option.
|
|
19353
|
+
* @throws {RequiredError}
|
|
19354
|
+
*/
|
|
19355
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
|
|
19299
19356
|
};
|
|
19300
19357
|
/**
|
|
19301
19358
|
* AlertRulesApi - object-oriented interface
|
|
@@ -19341,6 +19398,15 @@ export declare class AlertRulesApi extends BaseAPI {
|
|
|
19341
19398
|
* @memberof AlertRulesApi
|
|
19342
19399
|
*/
|
|
19343
19400
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleResponse, any, {}>>;
|
|
19401
|
+
/**
|
|
19402
|
+
* Retrieve all alert rules for a specific organization
|
|
19403
|
+
* @summary List alert rules
|
|
19404
|
+
* @param {string} organizationId Organization ID
|
|
19405
|
+
* @param {*} [options] Override http request option.
|
|
19406
|
+
* @throws {RequiredError}
|
|
19407
|
+
* @memberof AlertRulesApi
|
|
19408
|
+
*/
|
|
19409
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleList, any, {}>>;
|
|
19344
19410
|
}
|
|
19345
19411
|
/**
|
|
19346
19412
|
* ApplicationActionsApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -64,6 +64,19 @@ export const AksInfrastructureOutputsKindEnum = {
|
|
|
64
64
|
export const AlertReceiverType = {
|
|
65
65
|
SLACK: 'SLACK'
|
|
66
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
* @enum {string}
|
|
71
|
+
*/
|
|
72
|
+
export const AlertRuleState = {
|
|
73
|
+
UNDEPLOYED: 'UNDEPLOYED',
|
|
74
|
+
OK: 'OK',
|
|
75
|
+
TRIGGERED: 'TRIGGERED',
|
|
76
|
+
FIRED: 'FIRED',
|
|
77
|
+
NOTIFIED: 'NOTIFIED',
|
|
78
|
+
SUPPRESSED: 'SUPPRESSED'
|
|
79
|
+
};
|
|
67
80
|
/**
|
|
68
81
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
69
82
|
* @export
|
|
@@ -1465,7 +1478,7 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration) {
|
|
|
1465
1478
|
getAlertReceivers: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1466
1479
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1467
1480
|
assertParamExists('getAlertReceivers', 'organizationId', organizationId);
|
|
1468
|
-
const localVarPath = `/
|
|
1481
|
+
const localVarPath = `/organization/{organizationId}/alert-receivers`
|
|
1469
1482
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1470
1483
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1471
1484
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1849,6 +1862,40 @@ export const AlertRulesApiAxiosParamCreator = function (configuration) {
|
|
|
1849
1862
|
options: localVarRequestOptions,
|
|
1850
1863
|
};
|
|
1851
1864
|
}),
|
|
1865
|
+
/**
|
|
1866
|
+
* Retrieve all alert rules for a specific organization
|
|
1867
|
+
* @summary List alert rules
|
|
1868
|
+
* @param {string} organizationId Organization ID
|
|
1869
|
+
* @param {*} [options] Override http request option.
|
|
1870
|
+
* @throws {RequiredError}
|
|
1871
|
+
*/
|
|
1872
|
+
getAlertRules: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1873
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1874
|
+
assertParamExists('getAlertRules', 'organizationId', organizationId);
|
|
1875
|
+
const localVarPath = `/organization/{organizationId}/alert-rules`
|
|
1876
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1877
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1878
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1879
|
+
let baseOptions;
|
|
1880
|
+
if (configuration) {
|
|
1881
|
+
baseOptions = configuration.baseOptions;
|
|
1882
|
+
}
|
|
1883
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1884
|
+
const localVarHeaderParameter = {};
|
|
1885
|
+
const localVarQueryParameter = {};
|
|
1886
|
+
// authentication ApiKeyAuth required
|
|
1887
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1888
|
+
// authentication bearerAuth required
|
|
1889
|
+
// http bearer authentication required
|
|
1890
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1891
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1892
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1893
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1894
|
+
return {
|
|
1895
|
+
url: toPathString(localVarUrlObj),
|
|
1896
|
+
options: localVarRequestOptions,
|
|
1897
|
+
};
|
|
1898
|
+
}),
|
|
1852
1899
|
};
|
|
1853
1900
|
};
|
|
1854
1901
|
/**
|
|
@@ -1923,6 +1970,22 @@ export const AlertRulesApiFp = function (configuration) {
|
|
|
1923
1970
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1924
1971
|
});
|
|
1925
1972
|
},
|
|
1973
|
+
/**
|
|
1974
|
+
* Retrieve all alert rules for a specific organization
|
|
1975
|
+
* @summary List alert rules
|
|
1976
|
+
* @param {string} organizationId Organization ID
|
|
1977
|
+
* @param {*} [options] Override http request option.
|
|
1978
|
+
* @throws {RequiredError}
|
|
1979
|
+
*/
|
|
1980
|
+
getAlertRules(organizationId, options) {
|
|
1981
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1982
|
+
var _a, _b, _c;
|
|
1983
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAlertRules(organizationId, options);
|
|
1984
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1985
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AlertRulesApi.getAlertRules']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1986
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1987
|
+
});
|
|
1988
|
+
},
|
|
1926
1989
|
};
|
|
1927
1990
|
};
|
|
1928
1991
|
/**
|
|
@@ -1973,6 +2036,16 @@ export const AlertRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
1973
2036
|
getAlertRule(alertRuleId, options) {
|
|
1974
2037
|
return localVarFp.getAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
|
|
1975
2038
|
},
|
|
2039
|
+
/**
|
|
2040
|
+
* Retrieve all alert rules for a specific organization
|
|
2041
|
+
* @summary List alert rules
|
|
2042
|
+
* @param {string} organizationId Organization ID
|
|
2043
|
+
* @param {*} [options] Override http request option.
|
|
2044
|
+
* @throws {RequiredError}
|
|
2045
|
+
*/
|
|
2046
|
+
getAlertRules(organizationId, options) {
|
|
2047
|
+
return localVarFp.getAlertRules(organizationId, options).then((request) => request(axios, basePath));
|
|
2048
|
+
},
|
|
1976
2049
|
};
|
|
1977
2050
|
};
|
|
1978
2051
|
/**
|
|
@@ -2027,6 +2100,17 @@ export class AlertRulesApi extends BaseAPI {
|
|
|
2027
2100
|
getAlertRule(alertRuleId, options) {
|
|
2028
2101
|
return AlertRulesApiFp(this.configuration).getAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
|
|
2029
2102
|
}
|
|
2103
|
+
/**
|
|
2104
|
+
* Retrieve all alert rules for a specific organization
|
|
2105
|
+
* @summary List alert rules
|
|
2106
|
+
* @param {string} organizationId Organization ID
|
|
2107
|
+
* @param {*} [options] Override http request option.
|
|
2108
|
+
* @throws {RequiredError}
|
|
2109
|
+
* @memberof AlertRulesApi
|
|
2110
|
+
*/
|
|
2111
|
+
getAlertRules(organizationId, options) {
|
|
2112
|
+
return AlertRulesApiFp(this.configuration).getAlertRules(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
2113
|
+
}
|
|
2030
2114
|
}
|
|
2031
2115
|
/**
|
|
2032
2116
|
* ApplicationActionsApi - axios parameter creator
|