qovery-typescript-axios 1.1.722 → 1.1.724
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 +115 -1
- package/dist/api.d.ts +67 -0
- package/dist/api.js +96 -11
- package/dist/esm/api.d.ts +67 -0
- package/dist/esm/api.js +86 -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,34 @@ 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
|
+
PENDING_NOTIFICATION: 'PENDING_NOTIFICATION',
|
|
599
|
+
NOTIFIED: 'NOTIFIED',
|
|
600
|
+
SUPPRESSED: 'SUPPRESSED',
|
|
601
|
+
UNROUTED: 'UNROUTED'
|
|
602
|
+
} as const;
|
|
603
|
+
|
|
604
|
+
export type AlertRuleState = typeof AlertRuleState[keyof typeof AlertRuleState];
|
|
605
|
+
|
|
606
|
+
|
|
569
607
|
/**
|
|
570
608
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
571
609
|
* @export
|
|
@@ -19902,7 +19940,7 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration?: Conf
|
|
|
19902
19940
|
getAlertReceivers: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19903
19941
|
// verify required parameter 'organizationId' is not null or undefined
|
|
19904
19942
|
assertParamExists('getAlertReceivers', 'organizationId', organizationId)
|
|
19905
|
-
const localVarPath = `/
|
|
19943
|
+
const localVarPath = `/organization/{organizationId}/alert-receivers`
|
|
19906
19944
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
19907
19945
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19908
19946
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -20309,6 +20347,47 @@ export const AlertRulesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
20309
20347
|
|
|
20310
20348
|
|
|
20311
20349
|
|
|
20350
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20351
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20352
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20353
|
+
|
|
20354
|
+
return {
|
|
20355
|
+
url: toPathString(localVarUrlObj),
|
|
20356
|
+
options: localVarRequestOptions,
|
|
20357
|
+
};
|
|
20358
|
+
},
|
|
20359
|
+
/**
|
|
20360
|
+
* Retrieve all alert rules for a specific organization
|
|
20361
|
+
* @summary List alert rules
|
|
20362
|
+
* @param {string} organizationId Organization ID
|
|
20363
|
+
* @param {*} [options] Override http request option.
|
|
20364
|
+
* @throws {RequiredError}
|
|
20365
|
+
*/
|
|
20366
|
+
getAlertRules: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20367
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
20368
|
+
assertParamExists('getAlertRules', 'organizationId', organizationId)
|
|
20369
|
+
const localVarPath = `/organization/{organizationId}/alert-rules`
|
|
20370
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
20371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20372
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20373
|
+
let baseOptions;
|
|
20374
|
+
if (configuration) {
|
|
20375
|
+
baseOptions = configuration.baseOptions;
|
|
20376
|
+
}
|
|
20377
|
+
|
|
20378
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20379
|
+
const localVarHeaderParameter = {} as any;
|
|
20380
|
+
const localVarQueryParameter = {} as any;
|
|
20381
|
+
|
|
20382
|
+
// authentication ApiKeyAuth required
|
|
20383
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
20384
|
+
|
|
20385
|
+
// authentication bearerAuth required
|
|
20386
|
+
// http bearer authentication required
|
|
20387
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20388
|
+
|
|
20389
|
+
|
|
20390
|
+
|
|
20312
20391
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20313
20392
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20314
20393
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -20381,6 +20460,19 @@ export const AlertRulesApiFp = function(configuration?: Configuration) {
|
|
|
20381
20460
|
const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.getAlertRule']?.[localVarOperationServerIndex]?.url;
|
|
20382
20461
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20383
20462
|
},
|
|
20463
|
+
/**
|
|
20464
|
+
* Retrieve all alert rules for a specific organization
|
|
20465
|
+
* @summary List alert rules
|
|
20466
|
+
* @param {string} organizationId Organization ID
|
|
20467
|
+
* @param {*} [options] Override http request option.
|
|
20468
|
+
* @throws {RequiredError}
|
|
20469
|
+
*/
|
|
20470
|
+
async getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>> {
|
|
20471
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAlertRules(organizationId, options);
|
|
20472
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20473
|
+
const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.getAlertRules']?.[localVarOperationServerIndex]?.url;
|
|
20474
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20475
|
+
},
|
|
20384
20476
|
}
|
|
20385
20477
|
};
|
|
20386
20478
|
|
|
@@ -20432,6 +20524,16 @@ export const AlertRulesApiFactory = function (configuration?: Configuration, bas
|
|
|
20432
20524
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse> {
|
|
20433
20525
|
return localVarFp.getAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
|
|
20434
20526
|
},
|
|
20527
|
+
/**
|
|
20528
|
+
* Retrieve all alert rules for a specific organization
|
|
20529
|
+
* @summary List alert rules
|
|
20530
|
+
* @param {string} organizationId Organization ID
|
|
20531
|
+
* @param {*} [options] Override http request option.
|
|
20532
|
+
* @throws {RequiredError}
|
|
20533
|
+
*/
|
|
20534
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList> {
|
|
20535
|
+
return localVarFp.getAlertRules(organizationId, options).then((request) => request(axios, basePath));
|
|
20536
|
+
},
|
|
20435
20537
|
};
|
|
20436
20538
|
};
|
|
20437
20539
|
|
|
@@ -20490,6 +20592,18 @@ export class AlertRulesApi extends BaseAPI {
|
|
|
20490
20592
|
public getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig) {
|
|
20491
20593
|
return AlertRulesApiFp(this.configuration).getAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
|
|
20492
20594
|
}
|
|
20595
|
+
|
|
20596
|
+
/**
|
|
20597
|
+
* Retrieve all alert rules for a specific organization
|
|
20598
|
+
* @summary List alert rules
|
|
20599
|
+
* @param {string} organizationId Organization ID
|
|
20600
|
+
* @param {*} [options] Override http request option.
|
|
20601
|
+
* @throws {RequiredError}
|
|
20602
|
+
* @memberof AlertRulesApi
|
|
20603
|
+
*/
|
|
20604
|
+
public getAlertRules(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
20605
|
+
return AlertRulesApiFp(this.configuration).getAlertRules(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
20606
|
+
}
|
|
20493
20607
|
}
|
|
20494
20608
|
|
|
20495
20609
|
|
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,28 @@ 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 PENDING_NOTIFICATION: "PENDING_NOTIFICATION";
|
|
561
|
+
readonly NOTIFIED: "NOTIFIED";
|
|
562
|
+
readonly SUPPRESSED: "SUPPRESSED";
|
|
563
|
+
readonly UNROUTED: "UNROUTED";
|
|
564
|
+
};
|
|
565
|
+
export type AlertRuleState = typeof AlertRuleState[keyof typeof AlertRuleState];
|
|
532
566
|
/**
|
|
533
567
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
534
568
|
* @export
|
|
@@ -19218,6 +19252,14 @@ export declare const AlertRulesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
19218
19252
|
* @throws {RequiredError}
|
|
19219
19253
|
*/
|
|
19220
19254
|
getAlertRule: (alertRuleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19255
|
+
/**
|
|
19256
|
+
* Retrieve all alert rules for a specific organization
|
|
19257
|
+
* @summary List alert rules
|
|
19258
|
+
* @param {string} organizationId Organization ID
|
|
19259
|
+
* @param {*} [options] Override http request option.
|
|
19260
|
+
* @throws {RequiredError}
|
|
19261
|
+
*/
|
|
19262
|
+
getAlertRules: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19221
19263
|
};
|
|
19222
19264
|
/**
|
|
19223
19265
|
* AlertRulesApi - functional programming interface
|
|
@@ -19257,6 +19299,14 @@ export declare const AlertRulesApiFp: (configuration?: Configuration) => {
|
|
|
19257
19299
|
* @throws {RequiredError}
|
|
19258
19300
|
*/
|
|
19259
19301
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleResponse>>;
|
|
19302
|
+
/**
|
|
19303
|
+
* Retrieve all alert rules for a specific organization
|
|
19304
|
+
* @summary List alert rules
|
|
19305
|
+
* @param {string} organizationId Organization ID
|
|
19306
|
+
* @param {*} [options] Override http request option.
|
|
19307
|
+
* @throws {RequiredError}
|
|
19308
|
+
*/
|
|
19309
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>>;
|
|
19260
19310
|
};
|
|
19261
19311
|
/**
|
|
19262
19312
|
* AlertRulesApi - factory interface
|
|
@@ -19296,6 +19346,14 @@ export declare const AlertRulesApiFactory: (configuration?: Configuration, baseP
|
|
|
19296
19346
|
* @throws {RequiredError}
|
|
19297
19347
|
*/
|
|
19298
19348
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse>;
|
|
19349
|
+
/**
|
|
19350
|
+
* Retrieve all alert rules for a specific organization
|
|
19351
|
+
* @summary List alert rules
|
|
19352
|
+
* @param {string} organizationId Organization ID
|
|
19353
|
+
* @param {*} [options] Override http request option.
|
|
19354
|
+
* @throws {RequiredError}
|
|
19355
|
+
*/
|
|
19356
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
|
|
19299
19357
|
};
|
|
19300
19358
|
/**
|
|
19301
19359
|
* AlertRulesApi - object-oriented interface
|
|
@@ -19341,6 +19399,15 @@ export declare class AlertRulesApi extends BaseAPI {
|
|
|
19341
19399
|
* @memberof AlertRulesApi
|
|
19342
19400
|
*/
|
|
19343
19401
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleResponse, any, {}>>;
|
|
19402
|
+
/**
|
|
19403
|
+
* Retrieve all alert rules for a specific organization
|
|
19404
|
+
* @summary List alert rules
|
|
19405
|
+
* @param {string} organizationId Organization ID
|
|
19406
|
+
* @param {*} [options] Override http request option.
|
|
19407
|
+
* @throws {RequiredError}
|
|
19408
|
+
* @memberof AlertRulesApi
|
|
19409
|
+
*/
|
|
19410
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleList, any, {}>>;
|
|
19344
19411
|
}
|
|
19345
19412
|
/**
|
|
19346
19413
|
* 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,20 @@ 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
|
+
PENDING_NOTIFICATION: 'PENDING_NOTIFICATION',
|
|
89
|
+
NOTIFIED: 'NOTIFIED',
|
|
90
|
+
SUPPRESSED: 'SUPPRESSED',
|
|
91
|
+
UNROUTED: 'UNROUTED'
|
|
92
|
+
};
|
|
79
93
|
/**
|
|
80
94
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
81
95
|
* @export
|
|
@@ -1481,7 +1495,7 @@ const AlertReceiversApiAxiosParamCreator = function (configuration) {
|
|
|
1481
1495
|
getAlertReceivers: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1482
1496
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1483
1497
|
(0, common_1.assertParamExists)('getAlertReceivers', 'organizationId', organizationId);
|
|
1484
|
-
const localVarPath = `/
|
|
1498
|
+
const localVarPath = `/organization/{organizationId}/alert-receivers`
|
|
1485
1499
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1486
1500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1487
1501
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1869,6 +1883,40 @@ const AlertRulesApiAxiosParamCreator = function (configuration) {
|
|
|
1869
1883
|
options: localVarRequestOptions,
|
|
1870
1884
|
};
|
|
1871
1885
|
}),
|
|
1886
|
+
/**
|
|
1887
|
+
* Retrieve all alert rules for a specific organization
|
|
1888
|
+
* @summary List alert rules
|
|
1889
|
+
* @param {string} organizationId Organization ID
|
|
1890
|
+
* @param {*} [options] Override http request option.
|
|
1891
|
+
* @throws {RequiredError}
|
|
1892
|
+
*/
|
|
1893
|
+
getAlertRules: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1894
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1895
|
+
(0, common_1.assertParamExists)('getAlertRules', 'organizationId', organizationId);
|
|
1896
|
+
const localVarPath = `/organization/{organizationId}/alert-rules`
|
|
1897
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1898
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1899
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1900
|
+
let baseOptions;
|
|
1901
|
+
if (configuration) {
|
|
1902
|
+
baseOptions = configuration.baseOptions;
|
|
1903
|
+
}
|
|
1904
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1905
|
+
const localVarHeaderParameter = {};
|
|
1906
|
+
const localVarQueryParameter = {};
|
|
1907
|
+
// authentication ApiKeyAuth required
|
|
1908
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1909
|
+
// authentication bearerAuth required
|
|
1910
|
+
// http bearer authentication required
|
|
1911
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1912
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1913
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1914
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1915
|
+
return {
|
|
1916
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1917
|
+
options: localVarRequestOptions,
|
|
1918
|
+
};
|
|
1919
|
+
}),
|
|
1872
1920
|
};
|
|
1873
1921
|
};
|
|
1874
1922
|
exports.AlertRulesApiAxiosParamCreator = AlertRulesApiAxiosParamCreator;
|
|
@@ -1944,6 +1992,22 @@ const AlertRulesApiFp = function (configuration) {
|
|
|
1944
1992
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1945
1993
|
});
|
|
1946
1994
|
},
|
|
1995
|
+
/**
|
|
1996
|
+
* Retrieve all alert rules for a specific organization
|
|
1997
|
+
* @summary List alert rules
|
|
1998
|
+
* @param {string} organizationId Organization ID
|
|
1999
|
+
* @param {*} [options] Override http request option.
|
|
2000
|
+
* @throws {RequiredError}
|
|
2001
|
+
*/
|
|
2002
|
+
getAlertRules(organizationId, options) {
|
|
2003
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2004
|
+
var _a, _b, _c;
|
|
2005
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAlertRules(organizationId, options);
|
|
2006
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2007
|
+
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;
|
|
2008
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2009
|
+
});
|
|
2010
|
+
},
|
|
1947
2011
|
};
|
|
1948
2012
|
};
|
|
1949
2013
|
exports.AlertRulesApiFp = AlertRulesApiFp;
|
|
@@ -1995,6 +2059,16 @@ const AlertRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
1995
2059
|
getAlertRule(alertRuleId, options) {
|
|
1996
2060
|
return localVarFp.getAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
|
|
1997
2061
|
},
|
|
2062
|
+
/**
|
|
2063
|
+
* Retrieve all alert rules for a specific organization
|
|
2064
|
+
* @summary List alert rules
|
|
2065
|
+
* @param {string} organizationId Organization ID
|
|
2066
|
+
* @param {*} [options] Override http request option.
|
|
2067
|
+
* @throws {RequiredError}
|
|
2068
|
+
*/
|
|
2069
|
+
getAlertRules(organizationId, options) {
|
|
2070
|
+
return localVarFp.getAlertRules(organizationId, options).then((request) => request(axios, basePath));
|
|
2071
|
+
},
|
|
1998
2072
|
};
|
|
1999
2073
|
};
|
|
2000
2074
|
exports.AlertRulesApiFactory = AlertRulesApiFactory;
|
|
@@ -2050,6 +2124,17 @@ class AlertRulesApi extends base_1.BaseAPI {
|
|
|
2050
2124
|
getAlertRule(alertRuleId, options) {
|
|
2051
2125
|
return (0, exports.AlertRulesApiFp)(this.configuration).getAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
|
|
2052
2126
|
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Retrieve all alert rules for a specific organization
|
|
2129
|
+
* @summary List alert rules
|
|
2130
|
+
* @param {string} organizationId Organization ID
|
|
2131
|
+
* @param {*} [options] Override http request option.
|
|
2132
|
+
* @throws {RequiredError}
|
|
2133
|
+
* @memberof AlertRulesApi
|
|
2134
|
+
*/
|
|
2135
|
+
getAlertRules(organizationId, options) {
|
|
2136
|
+
return (0, exports.AlertRulesApiFp)(this.configuration).getAlertRules(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
2137
|
+
}
|
|
2053
2138
|
}
|
|
2054
2139
|
exports.AlertRulesApi = AlertRulesApi;
|
|
2055
2140
|
/**
|
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,28 @@ 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 PENDING_NOTIFICATION: "PENDING_NOTIFICATION";
|
|
561
|
+
readonly NOTIFIED: "NOTIFIED";
|
|
562
|
+
readonly SUPPRESSED: "SUPPRESSED";
|
|
563
|
+
readonly UNROUTED: "UNROUTED";
|
|
564
|
+
};
|
|
565
|
+
export type AlertRuleState = typeof AlertRuleState[keyof typeof AlertRuleState];
|
|
532
566
|
/**
|
|
533
567
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
534
568
|
* @export
|
|
@@ -19218,6 +19252,14 @@ export declare const AlertRulesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
19218
19252
|
* @throws {RequiredError}
|
|
19219
19253
|
*/
|
|
19220
19254
|
getAlertRule: (alertRuleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19255
|
+
/**
|
|
19256
|
+
* Retrieve all alert rules for a specific organization
|
|
19257
|
+
* @summary List alert rules
|
|
19258
|
+
* @param {string} organizationId Organization ID
|
|
19259
|
+
* @param {*} [options] Override http request option.
|
|
19260
|
+
* @throws {RequiredError}
|
|
19261
|
+
*/
|
|
19262
|
+
getAlertRules: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19221
19263
|
};
|
|
19222
19264
|
/**
|
|
19223
19265
|
* AlertRulesApi - functional programming interface
|
|
@@ -19257,6 +19299,14 @@ export declare const AlertRulesApiFp: (configuration?: Configuration) => {
|
|
|
19257
19299
|
* @throws {RequiredError}
|
|
19258
19300
|
*/
|
|
19259
19301
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleResponse>>;
|
|
19302
|
+
/**
|
|
19303
|
+
* Retrieve all alert rules for a specific organization
|
|
19304
|
+
* @summary List alert rules
|
|
19305
|
+
* @param {string} organizationId Organization ID
|
|
19306
|
+
* @param {*} [options] Override http request option.
|
|
19307
|
+
* @throws {RequiredError}
|
|
19308
|
+
*/
|
|
19309
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>>;
|
|
19260
19310
|
};
|
|
19261
19311
|
/**
|
|
19262
19312
|
* AlertRulesApi - factory interface
|
|
@@ -19296,6 +19346,14 @@ export declare const AlertRulesApiFactory: (configuration?: Configuration, baseP
|
|
|
19296
19346
|
* @throws {RequiredError}
|
|
19297
19347
|
*/
|
|
19298
19348
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse>;
|
|
19349
|
+
/**
|
|
19350
|
+
* Retrieve all alert rules for a specific organization
|
|
19351
|
+
* @summary List alert rules
|
|
19352
|
+
* @param {string} organizationId Organization ID
|
|
19353
|
+
* @param {*} [options] Override http request option.
|
|
19354
|
+
* @throws {RequiredError}
|
|
19355
|
+
*/
|
|
19356
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
|
|
19299
19357
|
};
|
|
19300
19358
|
/**
|
|
19301
19359
|
* AlertRulesApi - object-oriented interface
|
|
@@ -19341,6 +19399,15 @@ export declare class AlertRulesApi extends BaseAPI {
|
|
|
19341
19399
|
* @memberof AlertRulesApi
|
|
19342
19400
|
*/
|
|
19343
19401
|
getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleResponse, any, {}>>;
|
|
19402
|
+
/**
|
|
19403
|
+
* Retrieve all alert rules for a specific organization
|
|
19404
|
+
* @summary List alert rules
|
|
19405
|
+
* @param {string} organizationId Organization ID
|
|
19406
|
+
* @param {*} [options] Override http request option.
|
|
19407
|
+
* @throws {RequiredError}
|
|
19408
|
+
* @memberof AlertRulesApi
|
|
19409
|
+
*/
|
|
19410
|
+
getAlertRules(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertRuleList, any, {}>>;
|
|
19344
19411
|
}
|
|
19345
19412
|
/**
|
|
19346
19413
|
* ApplicationActionsApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -64,6 +64,20 @@ 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
|
+
PENDING_NOTIFICATION: 'PENDING_NOTIFICATION',
|
|
77
|
+
NOTIFIED: 'NOTIFIED',
|
|
78
|
+
SUPPRESSED: 'SUPPRESSED',
|
|
79
|
+
UNROUTED: 'UNROUTED'
|
|
80
|
+
};
|
|
67
81
|
/**
|
|
68
82
|
* Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
|
|
69
83
|
* @export
|
|
@@ -1465,7 +1479,7 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration) {
|
|
|
1465
1479
|
getAlertReceivers: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1466
1480
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1467
1481
|
assertParamExists('getAlertReceivers', 'organizationId', organizationId);
|
|
1468
|
-
const localVarPath = `/
|
|
1482
|
+
const localVarPath = `/organization/{organizationId}/alert-receivers`
|
|
1469
1483
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1470
1484
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1471
1485
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1849,6 +1863,40 @@ export const AlertRulesApiAxiosParamCreator = function (configuration) {
|
|
|
1849
1863
|
options: localVarRequestOptions,
|
|
1850
1864
|
};
|
|
1851
1865
|
}),
|
|
1866
|
+
/**
|
|
1867
|
+
* Retrieve all alert rules for a specific organization
|
|
1868
|
+
* @summary List alert rules
|
|
1869
|
+
* @param {string} organizationId Organization ID
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
*/
|
|
1873
|
+
getAlertRules: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
|
|
1874
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1875
|
+
assertParamExists('getAlertRules', 'organizationId', organizationId);
|
|
1876
|
+
const localVarPath = `/organization/{organizationId}/alert-rules`
|
|
1877
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
1878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1879
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1880
|
+
let baseOptions;
|
|
1881
|
+
if (configuration) {
|
|
1882
|
+
baseOptions = configuration.baseOptions;
|
|
1883
|
+
}
|
|
1884
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1885
|
+
const localVarHeaderParameter = {};
|
|
1886
|
+
const localVarQueryParameter = {};
|
|
1887
|
+
// authentication ApiKeyAuth required
|
|
1888
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1889
|
+
// authentication bearerAuth required
|
|
1890
|
+
// http bearer authentication required
|
|
1891
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1894
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1895
|
+
return {
|
|
1896
|
+
url: toPathString(localVarUrlObj),
|
|
1897
|
+
options: localVarRequestOptions,
|
|
1898
|
+
};
|
|
1899
|
+
}),
|
|
1852
1900
|
};
|
|
1853
1901
|
};
|
|
1854
1902
|
/**
|
|
@@ -1923,6 +1971,22 @@ export const AlertRulesApiFp = function (configuration) {
|
|
|
1923
1971
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1924
1972
|
});
|
|
1925
1973
|
},
|
|
1974
|
+
/**
|
|
1975
|
+
* Retrieve all alert rules for a specific organization
|
|
1976
|
+
* @summary List alert rules
|
|
1977
|
+
* @param {string} organizationId Organization ID
|
|
1978
|
+
* @param {*} [options] Override http request option.
|
|
1979
|
+
* @throws {RequiredError}
|
|
1980
|
+
*/
|
|
1981
|
+
getAlertRules(organizationId, options) {
|
|
1982
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1983
|
+
var _a, _b, _c;
|
|
1984
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAlertRules(organizationId, options);
|
|
1985
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1986
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AlertRulesApi.getAlertRules']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1987
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1988
|
+
});
|
|
1989
|
+
},
|
|
1926
1990
|
};
|
|
1927
1991
|
};
|
|
1928
1992
|
/**
|
|
@@ -1973,6 +2037,16 @@ export const AlertRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
1973
2037
|
getAlertRule(alertRuleId, options) {
|
|
1974
2038
|
return localVarFp.getAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
|
|
1975
2039
|
},
|
|
2040
|
+
/**
|
|
2041
|
+
* Retrieve all alert rules for a specific organization
|
|
2042
|
+
* @summary List alert rules
|
|
2043
|
+
* @param {string} organizationId Organization ID
|
|
2044
|
+
* @param {*} [options] Override http request option.
|
|
2045
|
+
* @throws {RequiredError}
|
|
2046
|
+
*/
|
|
2047
|
+
getAlertRules(organizationId, options) {
|
|
2048
|
+
return localVarFp.getAlertRules(organizationId, options).then((request) => request(axios, basePath));
|
|
2049
|
+
},
|
|
1976
2050
|
};
|
|
1977
2051
|
};
|
|
1978
2052
|
/**
|
|
@@ -2027,6 +2101,17 @@ export class AlertRulesApi extends BaseAPI {
|
|
|
2027
2101
|
getAlertRule(alertRuleId, options) {
|
|
2028
2102
|
return AlertRulesApiFp(this.configuration).getAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
|
|
2029
2103
|
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Retrieve all alert rules for a specific organization
|
|
2106
|
+
* @summary List alert rules
|
|
2107
|
+
* @param {string} organizationId Organization ID
|
|
2108
|
+
* @param {*} [options] Override http request option.
|
|
2109
|
+
* @throws {RequiredError}
|
|
2110
|
+
* @memberof AlertRulesApi
|
|
2111
|
+
*/
|
|
2112
|
+
getAlertRules(organizationId, options) {
|
|
2113
|
+
return AlertRulesApiFp(this.configuration).getAlertRules(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
2114
|
+
}
|
|
2030
2115
|
}
|
|
2031
2116
|
/**
|
|
2032
2117
|
* ApplicationActionsApi - axios parameter creator
|