@datadog/datadog-api-client 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +4 -4
- package/dist/packages/datadog-api-client-common/configuration.js +1 -4
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js +14 -0
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.d.ts +27 -0
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +148 -15
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.d.ts +23 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +146 -38
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +0 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +132 -17
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.d.ts +11 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +8 -2
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +0 -8
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +22 -3
- package/dist/packages/datadog-api-client-v1/index.js +39 -10
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DistributionPointItem.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointItem.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsContentEncoding.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsContentEncoding.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsContentEncoding.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsPayload.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsPayload.js +29 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsPayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsSeries.d.ts +46 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsSeries.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsSeries.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionPointsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestQuery.d.ts +13 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestQuery.js +3 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetHistogramRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetRequest.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetRequest.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/DistributionWidgetRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatName.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatName.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionApmResourceStatName.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +10 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +10 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesSyntheticsPrivateLocations.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesSyntheticsPrivateLocations.js +37 -0
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesSyntheticsPrivateLocations.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.d.ts +6 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +19 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +19 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +24 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +30 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +101 -3
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/OrgDowngradedResponse.d.ts +28 -0
- package/dist/packages/datadog-api-client-v1/models/OrgDowngradedResponse.js +33 -0
- package/dist/packages/datadog-api-client-v1/models/OrgDowngradedResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/Organization.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/Organization.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/Organization.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOHistoryMetrics.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOResponseData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponse.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponse.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseData.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacets.d.ts +58 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacets.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacets.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectInt.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectInt.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectInt.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectString.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectString.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributesFacetsObjectString.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseLinks.d.ts +44 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseLinks.js +49 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseMeta.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseMeta.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseMetaPage.d.ts +56 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseMetaPage.js +68 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/ServiceLevelObjective.d.ts +3 -3
- package/dist/packages/datadog-api-client-v1/models/ServiceLevelObjectiveQuery.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/ServiceLevelObjectiveQuery.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/ServiceLevelObjectiveRequest.d.ts +3 -3
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITest.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionBody.d.ts +6 -2
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionBody.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +7 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +7 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +7 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +7 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +24 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +30 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.d.ts +188 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.js +188 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +0 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +1 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +82 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +477 -99
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +131 -12
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +19 -2
- package/dist/packages/datadog-api-client-v2/index.js +28 -2
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IntakePayloadAccepted.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/IntakePayloadAccepted.js +3 -3
- package/dist/packages/datadog-api-client-v2/models/IntakePayloadAccepted.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricIntakeType.d.ts +1 -2
- package/dist/packages/datadog-api-client-v2/models/MetricIntakeType.js +1 -2
- package/dist/packages/datadog-api-client-v2/models/MetricIntakeType.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricSeries.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +63 -4
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.d.ts +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.js +9 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningMethod.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningMethod.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningMethod.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningThreshold.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningThreshold.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptionsLearningThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.d.ts +6 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.d.ts +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.js +13 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateData.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateData.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalAssigneeUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateAttributes.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateData.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateData.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalIncidentsUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalState.d.ts +9 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalState.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalState.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateAttributes.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateData.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateData.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalStateUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageAttributes.d.ts +63 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageAttributes.js +66 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateData.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateData.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateResponse.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalTriageUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringTriageUser.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringTriageUser.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringTriageUser.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -67,7 +67,6 @@ exports.SecurityMonitoringApi = exports.SecurityMonitoringApiResponseProcessor =
|
|
|
67
67
|
var baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
68
68
|
var configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
69
69
|
var http_1 = require("../../datadog-api-client-common/http/http");
|
|
70
|
-
var logger_1 = require("../../../logger");
|
|
71
70
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
72
71
|
var exception_1 = require("../../datadog-api-client-common/exception");
|
|
73
72
|
var util_1 = require("../../datadog-api-client-common/util");
|
|
@@ -182,6 +181,105 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
182
181
|
});
|
|
183
182
|
});
|
|
184
183
|
};
|
|
184
|
+
SecurityMonitoringApiRequestFactory.prototype.editSecurityMonitoringSignalAssignee = function (signalId, body, _options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
186
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
187
|
+
return __generator(this, function (_a) {
|
|
188
|
+
_config = _options || this.configuration;
|
|
189
|
+
// verify required parameter 'signalId' is not null or undefined
|
|
190
|
+
if (signalId === null || signalId === undefined) {
|
|
191
|
+
throw new baseapi_1.RequiredError("Required parameter signalId was null or undefined when calling editSecurityMonitoringSignalAssignee.");
|
|
192
|
+
}
|
|
193
|
+
// verify required parameter 'body' is not null or undefined
|
|
194
|
+
if (body === null || body === undefined) {
|
|
195
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling editSecurityMonitoringSignalAssignee.");
|
|
196
|
+
}
|
|
197
|
+
localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/assignee".replace("{" + "signal_id" + "}", encodeURIComponent(String(signalId)));
|
|
198
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.editSecurityMonitoringSignalAssignee").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
199
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
200
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
201
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
202
|
+
"application/json",
|
|
203
|
+
]);
|
|
204
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
205
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalAssigneeUpdateRequest", ""), contentType);
|
|
206
|
+
requestContext.setBody(serializedBody);
|
|
207
|
+
// Apply auth methods
|
|
208
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
209
|
+
"AuthZ",
|
|
210
|
+
"apiKeyAuth",
|
|
211
|
+
"appKeyAuth",
|
|
212
|
+
]);
|
|
213
|
+
return [2 /*return*/, requestContext];
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
SecurityMonitoringApiRequestFactory.prototype.editSecurityMonitoringSignalIncidents = function (signalId, body, _options) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
219
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
220
|
+
return __generator(this, function (_a) {
|
|
221
|
+
_config = _options || this.configuration;
|
|
222
|
+
// verify required parameter 'signalId' is not null or undefined
|
|
223
|
+
if (signalId === null || signalId === undefined) {
|
|
224
|
+
throw new baseapi_1.RequiredError("Required parameter signalId was null or undefined when calling editSecurityMonitoringSignalIncidents.");
|
|
225
|
+
}
|
|
226
|
+
// verify required parameter 'body' is not null or undefined
|
|
227
|
+
if (body === null || body === undefined) {
|
|
228
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling editSecurityMonitoringSignalIncidents.");
|
|
229
|
+
}
|
|
230
|
+
localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/incidents".replace("{" + "signal_id" + "}", encodeURIComponent(String(signalId)));
|
|
231
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.editSecurityMonitoringSignalIncidents").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
232
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
233
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
234
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
235
|
+
"application/json",
|
|
236
|
+
]);
|
|
237
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
238
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalIncidentsUpdateRequest", ""), contentType);
|
|
239
|
+
requestContext.setBody(serializedBody);
|
|
240
|
+
// Apply auth methods
|
|
241
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
242
|
+
"AuthZ",
|
|
243
|
+
"apiKeyAuth",
|
|
244
|
+
"appKeyAuth",
|
|
245
|
+
]);
|
|
246
|
+
return [2 /*return*/, requestContext];
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
SecurityMonitoringApiRequestFactory.prototype.editSecurityMonitoringSignalState = function (signalId, body, _options) {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
252
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
253
|
+
return __generator(this, function (_a) {
|
|
254
|
+
_config = _options || this.configuration;
|
|
255
|
+
// verify required parameter 'signalId' is not null or undefined
|
|
256
|
+
if (signalId === null || signalId === undefined) {
|
|
257
|
+
throw new baseapi_1.RequiredError("Required parameter signalId was null or undefined when calling editSecurityMonitoringSignalState.");
|
|
258
|
+
}
|
|
259
|
+
// verify required parameter 'body' is not null or undefined
|
|
260
|
+
if (body === null || body === undefined) {
|
|
261
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling editSecurityMonitoringSignalState.");
|
|
262
|
+
}
|
|
263
|
+
localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/state".replace("{" + "signal_id" + "}", encodeURIComponent(String(signalId)));
|
|
264
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.editSecurityMonitoringSignalState").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
265
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
266
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
267
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
268
|
+
"application/json",
|
|
269
|
+
]);
|
|
270
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
271
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalStateUpdateRequest", ""), contentType);
|
|
272
|
+
requestContext.setBody(serializedBody);
|
|
273
|
+
// Apply auth methods
|
|
274
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
275
|
+
"AuthZ",
|
|
276
|
+
"apiKeyAuth",
|
|
277
|
+
"appKeyAuth",
|
|
278
|
+
]);
|
|
279
|
+
return [2 /*return*/, requestContext];
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
};
|
|
185
283
|
SecurityMonitoringApiRequestFactory.prototype.getSecurityFilter = function (securityFilterId, _options) {
|
|
186
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
187
285
|
var _config, localVarPath, requestContext;
|
|
@@ -278,10 +376,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
278
376
|
var _config, localVarPath, requestContext;
|
|
279
377
|
return __generator(this, function (_a) {
|
|
280
378
|
_config = _options || this.configuration;
|
|
281
|
-
logger_1.logger.warn("Using unstable operation 'listSecurityMonitoringSignals'");
|
|
282
|
-
if (!_config.unstableOperations["v2.listSecurityMonitoringSignals"]) {
|
|
283
|
-
throw new Error("Unstable operation 'listSecurityMonitoringSignals' is disabled");
|
|
284
|
-
}
|
|
285
379
|
localVarPath = "/api/v2/security_monitoring/signals";
|
|
286
380
|
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.listSecurityMonitoringSignals").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
287
381
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
@@ -320,10 +414,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
320
414
|
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
321
415
|
return __generator(this, function (_a) {
|
|
322
416
|
_config = _options || this.configuration;
|
|
323
|
-
logger_1.logger.warn("Using unstable operation 'searchSecurityMonitoringSignals'");
|
|
324
|
-
if (!_config.unstableOperations["v2.searchSecurityMonitoringSignals"]) {
|
|
325
|
-
throw new Error("Unstable operation 'searchSecurityMonitoringSignals' is disabled");
|
|
326
|
-
}
|
|
327
417
|
localVarPath = "/api/v2/security_monitoring/signals/search";
|
|
328
418
|
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.searchSecurityMonitoringSignals").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
329
419
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
@@ -696,6 +786,249 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
696
786
|
});
|
|
697
787
|
});
|
|
698
788
|
};
|
|
789
|
+
/**
|
|
790
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
791
|
+
* to the expected objects
|
|
792
|
+
*
|
|
793
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee
|
|
794
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
795
|
+
*/
|
|
796
|
+
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalAssignee = function (response) {
|
|
797
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
798
|
+
var contentType, body_20, _a, _b, _c, _d, body_21, _e, _f, _g, _h, body_22, _j, _k, _l, _m, body_23, _o, _p, _q, _r, body_24, _s, _t, _u, _v, body_25, _w, _x, _y, _z, body;
|
|
799
|
+
return __generator(this, function (_0) {
|
|
800
|
+
switch (_0.label) {
|
|
801
|
+
case 0:
|
|
802
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
803
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
|
|
804
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
805
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
806
|
+
return [4 /*yield*/, response.body.text()];
|
|
807
|
+
case 1:
|
|
808
|
+
body_20 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
|
|
809
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
810
|
+
""]);
|
|
811
|
+
return [2 /*return*/, body_20];
|
|
812
|
+
case 2:
|
|
813
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
814
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
815
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
816
|
+
return [4 /*yield*/, response.body.text()];
|
|
817
|
+
case 3:
|
|
818
|
+
body_21 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
|
|
819
|
+
"APIErrorResponse",
|
|
820
|
+
""]);
|
|
821
|
+
throw new exception_1.ApiException(400, body_21);
|
|
822
|
+
case 4:
|
|
823
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
824
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
825
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
826
|
+
return [4 /*yield*/, response.body.text()];
|
|
827
|
+
case 5:
|
|
828
|
+
body_22 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
|
|
829
|
+
"APIErrorResponse",
|
|
830
|
+
""]);
|
|
831
|
+
throw new exception_1.ApiException(403, body_22);
|
|
832
|
+
case 6:
|
|
833
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
834
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
835
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
836
|
+
return [4 /*yield*/, response.body.text()];
|
|
837
|
+
case 7:
|
|
838
|
+
body_23 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
839
|
+
"APIErrorResponse",
|
|
840
|
+
""]);
|
|
841
|
+
throw new exception_1.ApiException(404, body_23);
|
|
842
|
+
case 8:
|
|
843
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
844
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
845
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
846
|
+
return [4 /*yield*/, response.body.text()];
|
|
847
|
+
case 9:
|
|
848
|
+
body_24 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
849
|
+
"APIErrorResponse",
|
|
850
|
+
""]);
|
|
851
|
+
throw new exception_1.ApiException(429, body_24);
|
|
852
|
+
case 10:
|
|
853
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
854
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
855
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
856
|
+
return [4 /*yield*/, response.body.text()];
|
|
857
|
+
case 11:
|
|
858
|
+
body_25 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
859
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
860
|
+
""]);
|
|
861
|
+
return [2 /*return*/, body_25];
|
|
862
|
+
case 12: return [4 /*yield*/, response.body.text()];
|
|
863
|
+
case 13:
|
|
864
|
+
body = (_0.sent()) || "";
|
|
865
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
});
|
|
869
|
+
};
|
|
870
|
+
/**
|
|
871
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
872
|
+
* to the expected objects
|
|
873
|
+
*
|
|
874
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalIncidents
|
|
875
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
876
|
+
*/
|
|
877
|
+
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalIncidents = function (response) {
|
|
878
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
879
|
+
var contentType, body_26, _a, _b, _c, _d, body_27, _e, _f, _g, _h, body_28, _j, _k, _l, _m, body_29, _o, _p, _q, _r, body_30, _s, _t, _u, _v, body_31, _w, _x, _y, _z, body;
|
|
880
|
+
return __generator(this, function (_0) {
|
|
881
|
+
switch (_0.label) {
|
|
882
|
+
case 0:
|
|
883
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
884
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
|
|
885
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
886
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
887
|
+
return [4 /*yield*/, response.body.text()];
|
|
888
|
+
case 1:
|
|
889
|
+
body_26 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
|
|
890
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
891
|
+
""]);
|
|
892
|
+
return [2 /*return*/, body_26];
|
|
893
|
+
case 2:
|
|
894
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
895
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
896
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
897
|
+
return [4 /*yield*/, response.body.text()];
|
|
898
|
+
case 3:
|
|
899
|
+
body_27 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
|
|
900
|
+
"APIErrorResponse",
|
|
901
|
+
""]);
|
|
902
|
+
throw new exception_1.ApiException(400, body_27);
|
|
903
|
+
case 4:
|
|
904
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
905
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
906
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
907
|
+
return [4 /*yield*/, response.body.text()];
|
|
908
|
+
case 5:
|
|
909
|
+
body_28 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
|
|
910
|
+
"APIErrorResponse",
|
|
911
|
+
""]);
|
|
912
|
+
throw new exception_1.ApiException(403, body_28);
|
|
913
|
+
case 6:
|
|
914
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
915
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
916
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
917
|
+
return [4 /*yield*/, response.body.text()];
|
|
918
|
+
case 7:
|
|
919
|
+
body_29 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
920
|
+
"APIErrorResponse",
|
|
921
|
+
""]);
|
|
922
|
+
throw new exception_1.ApiException(404, body_29);
|
|
923
|
+
case 8:
|
|
924
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
925
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
926
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
927
|
+
return [4 /*yield*/, response.body.text()];
|
|
928
|
+
case 9:
|
|
929
|
+
body_30 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
930
|
+
"APIErrorResponse",
|
|
931
|
+
""]);
|
|
932
|
+
throw new exception_1.ApiException(429, body_30);
|
|
933
|
+
case 10:
|
|
934
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
935
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
936
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
937
|
+
return [4 /*yield*/, response.body.text()];
|
|
938
|
+
case 11:
|
|
939
|
+
body_31 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
940
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
941
|
+
""]);
|
|
942
|
+
return [2 /*return*/, body_31];
|
|
943
|
+
case 12: return [4 /*yield*/, response.body.text()];
|
|
944
|
+
case 13:
|
|
945
|
+
body = (_0.sent()) || "";
|
|
946
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
});
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
953
|
+
* to the expected objects
|
|
954
|
+
*
|
|
955
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalState
|
|
956
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
957
|
+
*/
|
|
958
|
+
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalState = function (response) {
|
|
959
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
960
|
+
var contentType, body_32, _a, _b, _c, _d, body_33, _e, _f, _g, _h, body_34, _j, _k, _l, _m, body_35, _o, _p, _q, _r, body_36, _s, _t, _u, _v, body_37, _w, _x, _y, _z, body;
|
|
961
|
+
return __generator(this, function (_0) {
|
|
962
|
+
switch (_0.label) {
|
|
963
|
+
case 0:
|
|
964
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
965
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
|
|
966
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
967
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
968
|
+
return [4 /*yield*/, response.body.text()];
|
|
969
|
+
case 1:
|
|
970
|
+
body_32 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
|
|
971
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
972
|
+
""]);
|
|
973
|
+
return [2 /*return*/, body_32];
|
|
974
|
+
case 2:
|
|
975
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
976
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
977
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
978
|
+
return [4 /*yield*/, response.body.text()];
|
|
979
|
+
case 3:
|
|
980
|
+
body_33 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
|
|
981
|
+
"APIErrorResponse",
|
|
982
|
+
""]);
|
|
983
|
+
throw new exception_1.ApiException(400, body_33);
|
|
984
|
+
case 4:
|
|
985
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
986
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
987
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
988
|
+
return [4 /*yield*/, response.body.text()];
|
|
989
|
+
case 5:
|
|
990
|
+
body_34 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
|
|
991
|
+
"APIErrorResponse",
|
|
992
|
+
""]);
|
|
993
|
+
throw new exception_1.ApiException(403, body_34);
|
|
994
|
+
case 6:
|
|
995
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
996
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
997
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
998
|
+
return [4 /*yield*/, response.body.text()];
|
|
999
|
+
case 7:
|
|
1000
|
+
body_35 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1001
|
+
"APIErrorResponse",
|
|
1002
|
+
""]);
|
|
1003
|
+
throw new exception_1.ApiException(404, body_35);
|
|
1004
|
+
case 8:
|
|
1005
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1006
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1007
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1008
|
+
return [4 /*yield*/, response.body.text()];
|
|
1009
|
+
case 9:
|
|
1010
|
+
body_36 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1011
|
+
"APIErrorResponse",
|
|
1012
|
+
""]);
|
|
1013
|
+
throw new exception_1.ApiException(429, body_36);
|
|
1014
|
+
case 10:
|
|
1015
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1016
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1017
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1018
|
+
return [4 /*yield*/, response.body.text()];
|
|
1019
|
+
case 11:
|
|
1020
|
+
body_37 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1021
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
1022
|
+
""]);
|
|
1023
|
+
return [2 /*return*/, body_37];
|
|
1024
|
+
case 12: return [4 /*yield*/, response.body.text()];
|
|
1025
|
+
case 13:
|
|
1026
|
+
body = (_0.sent()) || "";
|
|
1027
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1028
|
+
}
|
|
1029
|
+
});
|
|
1030
|
+
});
|
|
1031
|
+
};
|
|
699
1032
|
/**
|
|
700
1033
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
701
1034
|
* to the expected objects
|
|
@@ -705,7 +1038,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
705
1038
|
*/
|
|
706
1039
|
SecurityMonitoringApiResponseProcessor.prototype.getSecurityFilter = function (response) {
|
|
707
1040
|
return __awaiter(this, void 0, void 0, function () {
|
|
708
|
-
var contentType,
|
|
1041
|
+
var contentType, body_38, _a, _b, _c, _d, body_39, _e, _f, _g, _h, body_40, _j, _k, _l, _m, body_41, _o, _p, _q, _r, body_42, _s, _t, _u, _v, body;
|
|
709
1042
|
return __generator(this, function (_w) {
|
|
710
1043
|
switch (_w.label) {
|
|
711
1044
|
case 0:
|
|
@@ -715,50 +1048,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
715
1048
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
716
1049
|
return [4 /*yield*/, response.body.text()];
|
|
717
1050
|
case 1:
|
|
718
|
-
|
|
1051
|
+
body_38 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
|
|
719
1052
|
"SecurityFilterResponse",
|
|
720
1053
|
""]);
|
|
721
|
-
return [2 /*return*/,
|
|
1054
|
+
return [2 /*return*/, body_38];
|
|
722
1055
|
case 2:
|
|
723
1056
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
724
1057
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
725
1058
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
726
1059
|
return [4 /*yield*/, response.body.text()];
|
|
727
1060
|
case 3:
|
|
728
|
-
|
|
1061
|
+
body_39 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
|
|
729
1062
|
"APIErrorResponse",
|
|
730
1063
|
""]);
|
|
731
|
-
throw new exception_1.ApiException(403,
|
|
1064
|
+
throw new exception_1.ApiException(403, body_39);
|
|
732
1065
|
case 4:
|
|
733
1066
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
734
1067
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
735
1068
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
736
1069
|
return [4 /*yield*/, response.body.text()];
|
|
737
1070
|
case 5:
|
|
738
|
-
|
|
1071
|
+
body_40 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
|
|
739
1072
|
"APIErrorResponse",
|
|
740
1073
|
""]);
|
|
741
|
-
throw new exception_1.ApiException(404,
|
|
1074
|
+
throw new exception_1.ApiException(404, body_40);
|
|
742
1075
|
case 6:
|
|
743
1076
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
744
1077
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
745
1078
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
746
1079
|
return [4 /*yield*/, response.body.text()];
|
|
747
1080
|
case 7:
|
|
748
|
-
|
|
1081
|
+
body_41 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
749
1082
|
"APIErrorResponse",
|
|
750
1083
|
""]);
|
|
751
|
-
throw new exception_1.ApiException(429,
|
|
1084
|
+
throw new exception_1.ApiException(429, body_41);
|
|
752
1085
|
case 8:
|
|
753
1086
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
754
1087
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
755
1088
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
756
1089
|
return [4 /*yield*/, response.body.text()];
|
|
757
1090
|
case 9:
|
|
758
|
-
|
|
1091
|
+
body_42 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
759
1092
|
"SecurityFilterResponse",
|
|
760
1093
|
""]);
|
|
761
|
-
return [2 /*return*/,
|
|
1094
|
+
return [2 /*return*/, body_42];
|
|
762
1095
|
case 10: return [4 /*yield*/, response.body.text()];
|
|
763
1096
|
case 11:
|
|
764
1097
|
body = (_w.sent()) || "";
|
|
@@ -776,7 +1109,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
776
1109
|
*/
|
|
777
1110
|
SecurityMonitoringApiResponseProcessor.prototype.getSecurityMonitoringRule = function (response) {
|
|
778
1111
|
return __awaiter(this, void 0, void 0, function () {
|
|
779
|
-
var contentType,
|
|
1112
|
+
var contentType, body_43, _a, _b, _c, _d, body_44, _e, _f, _g, _h, body_45, _j, _k, _l, _m, body_46, _o, _p, _q, _r, body;
|
|
780
1113
|
return __generator(this, function (_s) {
|
|
781
1114
|
switch (_s.label) {
|
|
782
1115
|
case 0:
|
|
@@ -786,40 +1119,40 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
786
1119
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
787
1120
|
return [4 /*yield*/, response.body.text()];
|
|
788
1121
|
case 1:
|
|
789
|
-
|
|
1122
|
+
body_43 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
|
|
790
1123
|
"SecurityMonitoringRuleResponse",
|
|
791
1124
|
""]);
|
|
792
|
-
return [2 /*return*/,
|
|
1125
|
+
return [2 /*return*/, body_43];
|
|
793
1126
|
case 2:
|
|
794
1127
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
795
1128
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
796
1129
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
797
1130
|
return [4 /*yield*/, response.body.text()];
|
|
798
1131
|
case 3:
|
|
799
|
-
|
|
1132
|
+
body_44 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
|
|
800
1133
|
"APIErrorResponse",
|
|
801
1134
|
""]);
|
|
802
|
-
throw new exception_1.ApiException(404,
|
|
1135
|
+
throw new exception_1.ApiException(404, body_44);
|
|
803
1136
|
case 4:
|
|
804
1137
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
805
1138
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
806
1139
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
807
1140
|
return [4 /*yield*/, response.body.text()];
|
|
808
1141
|
case 5:
|
|
809
|
-
|
|
1142
|
+
body_45 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
810
1143
|
"APIErrorResponse",
|
|
811
1144
|
""]);
|
|
812
|
-
throw new exception_1.ApiException(429,
|
|
1145
|
+
throw new exception_1.ApiException(429, body_45);
|
|
813
1146
|
case 6:
|
|
814
1147
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
815
1148
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
816
1149
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
817
1150
|
return [4 /*yield*/, response.body.text()];
|
|
818
1151
|
case 7:
|
|
819
|
-
|
|
1152
|
+
body_46 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
820
1153
|
"SecurityMonitoringRuleResponse",
|
|
821
1154
|
""]);
|
|
822
|
-
return [2 /*return*/,
|
|
1155
|
+
return [2 /*return*/, body_46];
|
|
823
1156
|
case 8: return [4 /*yield*/, response.body.text()];
|
|
824
1157
|
case 9:
|
|
825
1158
|
body = (_s.sent()) || "";
|
|
@@ -837,7 +1170,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
837
1170
|
*/
|
|
838
1171
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityFilters = function (response) {
|
|
839
1172
|
return __awaiter(this, void 0, void 0, function () {
|
|
840
|
-
var contentType,
|
|
1173
|
+
var contentType, body_47, _a, _b, _c, _d, body_48, _e, _f, _g, _h, body_49, _j, _k, _l, _m, body_50, _o, _p, _q, _r, body;
|
|
841
1174
|
return __generator(this, function (_s) {
|
|
842
1175
|
switch (_s.label) {
|
|
843
1176
|
case 0:
|
|
@@ -847,40 +1180,40 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
847
1180
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
848
1181
|
return [4 /*yield*/, response.body.text()];
|
|
849
1182
|
case 1:
|
|
850
|
-
|
|
1183
|
+
body_47 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
|
|
851
1184
|
"SecurityFiltersResponse",
|
|
852
1185
|
""]);
|
|
853
|
-
return [2 /*return*/,
|
|
1186
|
+
return [2 /*return*/, body_47];
|
|
854
1187
|
case 2:
|
|
855
1188
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
856
1189
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
857
1190
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
858
1191
|
return [4 /*yield*/, response.body.text()];
|
|
859
1192
|
case 3:
|
|
860
|
-
|
|
1193
|
+
body_48 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
|
|
861
1194
|
"APIErrorResponse",
|
|
862
1195
|
""]);
|
|
863
|
-
throw new exception_1.ApiException(403,
|
|
1196
|
+
throw new exception_1.ApiException(403, body_48);
|
|
864
1197
|
case 4:
|
|
865
1198
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
866
1199
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
867
1200
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
868
1201
|
return [4 /*yield*/, response.body.text()];
|
|
869
1202
|
case 5:
|
|
870
|
-
|
|
1203
|
+
body_49 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
871
1204
|
"APIErrorResponse",
|
|
872
1205
|
""]);
|
|
873
|
-
throw new exception_1.ApiException(429,
|
|
1206
|
+
throw new exception_1.ApiException(429, body_49);
|
|
874
1207
|
case 6:
|
|
875
1208
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
876
1209
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
877
1210
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
878
1211
|
return [4 /*yield*/, response.body.text()];
|
|
879
1212
|
case 7:
|
|
880
|
-
|
|
1213
|
+
body_50 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
881
1214
|
"SecurityFiltersResponse",
|
|
882
1215
|
""]);
|
|
883
|
-
return [2 /*return*/,
|
|
1216
|
+
return [2 /*return*/, body_50];
|
|
884
1217
|
case 8: return [4 /*yield*/, response.body.text()];
|
|
885
1218
|
case 9:
|
|
886
1219
|
body = (_s.sent()) || "";
|
|
@@ -898,7 +1231,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
898
1231
|
*/
|
|
899
1232
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringRules = function (response) {
|
|
900
1233
|
return __awaiter(this, void 0, void 0, function () {
|
|
901
|
-
var contentType,
|
|
1234
|
+
var contentType, body_51, _a, _b, _c, _d, body_52, _e, _f, _g, _h, body_53, _j, _k, _l, _m, body_54, _o, _p, _q, _r, body;
|
|
902
1235
|
return __generator(this, function (_s) {
|
|
903
1236
|
switch (_s.label) {
|
|
904
1237
|
case 0:
|
|
@@ -908,40 +1241,40 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
908
1241
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
909
1242
|
return [4 /*yield*/, response.body.text()];
|
|
910
1243
|
case 1:
|
|
911
|
-
|
|
1244
|
+
body_51 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
|
|
912
1245
|
"SecurityMonitoringListRulesResponse",
|
|
913
1246
|
""]);
|
|
914
|
-
return [2 /*return*/,
|
|
1247
|
+
return [2 /*return*/, body_51];
|
|
915
1248
|
case 2:
|
|
916
1249
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
917
1250
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
918
1251
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
919
1252
|
return [4 /*yield*/, response.body.text()];
|
|
920
1253
|
case 3:
|
|
921
|
-
|
|
1254
|
+
body_52 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
|
|
922
1255
|
"APIErrorResponse",
|
|
923
1256
|
""]);
|
|
924
|
-
throw new exception_1.ApiException(400,
|
|
1257
|
+
throw new exception_1.ApiException(400, body_52);
|
|
925
1258
|
case 4:
|
|
926
1259
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
927
1260
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
928
1261
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
929
1262
|
return [4 /*yield*/, response.body.text()];
|
|
930
1263
|
case 5:
|
|
931
|
-
|
|
1264
|
+
body_53 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
932
1265
|
"APIErrorResponse",
|
|
933
1266
|
""]);
|
|
934
|
-
throw new exception_1.ApiException(429,
|
|
1267
|
+
throw new exception_1.ApiException(429, body_53);
|
|
935
1268
|
case 6:
|
|
936
1269
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
937
1270
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
938
1271
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
939
1272
|
return [4 /*yield*/, response.body.text()];
|
|
940
1273
|
case 7:
|
|
941
|
-
|
|
1274
|
+
body_54 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
942
1275
|
"SecurityMonitoringListRulesResponse",
|
|
943
1276
|
""]);
|
|
944
|
-
return [2 /*return*/,
|
|
1277
|
+
return [2 /*return*/, body_54];
|
|
945
1278
|
case 8: return [4 /*yield*/, response.body.text()];
|
|
946
1279
|
case 9:
|
|
947
1280
|
body = (_s.sent()) || "";
|
|
@@ -959,7 +1292,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
959
1292
|
*/
|
|
960
1293
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringSignals = function (response) {
|
|
961
1294
|
return __awaiter(this, void 0, void 0, function () {
|
|
962
|
-
var contentType,
|
|
1295
|
+
var contentType, body_55, _a, _b, _c, _d, body_56, _e, _f, _g, _h, body_57, _j, _k, _l, _m, body_58, _o, _p, _q, _r, body_59, _s, _t, _u, _v, body;
|
|
963
1296
|
return __generator(this, function (_w) {
|
|
964
1297
|
switch (_w.label) {
|
|
965
1298
|
case 0:
|
|
@@ -969,50 +1302,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
969
1302
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
970
1303
|
return [4 /*yield*/, response.body.text()];
|
|
971
1304
|
case 1:
|
|
972
|
-
|
|
1305
|
+
body_55 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
|
|
973
1306
|
"SecurityMonitoringSignalsListResponse",
|
|
974
1307
|
""]);
|
|
975
|
-
return [2 /*return*/,
|
|
1308
|
+
return [2 /*return*/, body_55];
|
|
976
1309
|
case 2:
|
|
977
1310
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
978
1311
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
979
1312
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
980
1313
|
return [4 /*yield*/, response.body.text()];
|
|
981
1314
|
case 3:
|
|
982
|
-
|
|
1315
|
+
body_56 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
|
|
983
1316
|
"APIErrorResponse",
|
|
984
1317
|
""]);
|
|
985
|
-
throw new exception_1.ApiException(400,
|
|
1318
|
+
throw new exception_1.ApiException(400, body_56);
|
|
986
1319
|
case 4:
|
|
987
1320
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
988
1321
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
989
1322
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
990
1323
|
return [4 /*yield*/, response.body.text()];
|
|
991
1324
|
case 5:
|
|
992
|
-
|
|
1325
|
+
body_57 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
|
|
993
1326
|
"APIErrorResponse",
|
|
994
1327
|
""]);
|
|
995
|
-
throw new exception_1.ApiException(403,
|
|
1328
|
+
throw new exception_1.ApiException(403, body_57);
|
|
996
1329
|
case 6:
|
|
997
1330
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
998
1331
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
999
1332
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1000
1333
|
return [4 /*yield*/, response.body.text()];
|
|
1001
1334
|
case 7:
|
|
1002
|
-
|
|
1335
|
+
body_58 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1003
1336
|
"APIErrorResponse",
|
|
1004
1337
|
""]);
|
|
1005
|
-
throw new exception_1.ApiException(429,
|
|
1338
|
+
throw new exception_1.ApiException(429, body_58);
|
|
1006
1339
|
case 8:
|
|
1007
1340
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1008
1341
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1009
1342
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1010
1343
|
return [4 /*yield*/, response.body.text()];
|
|
1011
1344
|
case 9:
|
|
1012
|
-
|
|
1345
|
+
body_59 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1013
1346
|
"SecurityMonitoringSignalsListResponse",
|
|
1014
1347
|
""]);
|
|
1015
|
-
return [2 /*return*/,
|
|
1348
|
+
return [2 /*return*/, body_59];
|
|
1016
1349
|
case 10: return [4 /*yield*/, response.body.text()];
|
|
1017
1350
|
case 11:
|
|
1018
1351
|
body = (_w.sent()) || "";
|
|
@@ -1030,7 +1363,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1030
1363
|
*/
|
|
1031
1364
|
SecurityMonitoringApiResponseProcessor.prototype.searchSecurityMonitoringSignals = function (response) {
|
|
1032
1365
|
return __awaiter(this, void 0, void 0, function () {
|
|
1033
|
-
var contentType,
|
|
1366
|
+
var contentType, body_60, _a, _b, _c, _d, body_61, _e, _f, _g, _h, body_62, _j, _k, _l, _m, body_63, _o, _p, _q, _r, body_64, _s, _t, _u, _v, body;
|
|
1034
1367
|
return __generator(this, function (_w) {
|
|
1035
1368
|
switch (_w.label) {
|
|
1036
1369
|
case 0:
|
|
@@ -1040,50 +1373,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1040
1373
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1041
1374
|
return [4 /*yield*/, response.body.text()];
|
|
1042
1375
|
case 1:
|
|
1043
|
-
|
|
1376
|
+
body_60 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
|
|
1044
1377
|
"SecurityMonitoringSignalsListResponse",
|
|
1045
1378
|
""]);
|
|
1046
|
-
return [2 /*return*/,
|
|
1379
|
+
return [2 /*return*/, body_60];
|
|
1047
1380
|
case 2:
|
|
1048
1381
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
1049
1382
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1050
1383
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1051
1384
|
return [4 /*yield*/, response.body.text()];
|
|
1052
1385
|
case 3:
|
|
1053
|
-
|
|
1386
|
+
body_61 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
|
|
1054
1387
|
"APIErrorResponse",
|
|
1055
1388
|
""]);
|
|
1056
|
-
throw new exception_1.ApiException(400,
|
|
1389
|
+
throw new exception_1.ApiException(400, body_61);
|
|
1057
1390
|
case 4:
|
|
1058
1391
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
1059
1392
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1060
1393
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1061
1394
|
return [4 /*yield*/, response.body.text()];
|
|
1062
1395
|
case 5:
|
|
1063
|
-
|
|
1396
|
+
body_62 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
|
|
1064
1397
|
"APIErrorResponse",
|
|
1065
1398
|
""]);
|
|
1066
|
-
throw new exception_1.ApiException(403,
|
|
1399
|
+
throw new exception_1.ApiException(403, body_62);
|
|
1067
1400
|
case 6:
|
|
1068
1401
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1069
1402
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1070
1403
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1071
1404
|
return [4 /*yield*/, response.body.text()];
|
|
1072
1405
|
case 7:
|
|
1073
|
-
|
|
1406
|
+
body_63 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1074
1407
|
"APIErrorResponse",
|
|
1075
1408
|
""]);
|
|
1076
|
-
throw new exception_1.ApiException(429,
|
|
1409
|
+
throw new exception_1.ApiException(429, body_63);
|
|
1077
1410
|
case 8:
|
|
1078
1411
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1079
1412
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1080
1413
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1081
1414
|
return [4 /*yield*/, response.body.text()];
|
|
1082
1415
|
case 9:
|
|
1083
|
-
|
|
1416
|
+
body_64 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1084
1417
|
"SecurityMonitoringSignalsListResponse",
|
|
1085
1418
|
""]);
|
|
1086
|
-
return [2 /*return*/,
|
|
1419
|
+
return [2 /*return*/, body_64];
|
|
1087
1420
|
case 10: return [4 /*yield*/, response.body.text()];
|
|
1088
1421
|
case 11:
|
|
1089
1422
|
body = (_w.sent()) || "";
|
|
@@ -1101,7 +1434,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1101
1434
|
*/
|
|
1102
1435
|
SecurityMonitoringApiResponseProcessor.prototype.updateSecurityFilter = function (response) {
|
|
1103
1436
|
return __awaiter(this, void 0, void 0, function () {
|
|
1104
|
-
var contentType,
|
|
1437
|
+
var contentType, body_65, _a, _b, _c, _d, body_66, _e, _f, _g, _h, body_67, _j, _k, _l, _m, body_68, _o, _p, _q, _r, body_69, _s, _t, _u, _v, body_70, _w, _x, _y, _z, body_71, _0, _1, _2, _3, body;
|
|
1105
1438
|
return __generator(this, function (_4) {
|
|
1106
1439
|
switch (_4.label) {
|
|
1107
1440
|
case 0:
|
|
@@ -1111,70 +1444,70 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1111
1444
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1112
1445
|
return [4 /*yield*/, response.body.text()];
|
|
1113
1446
|
case 1:
|
|
1114
|
-
|
|
1447
|
+
body_65 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
|
|
1115
1448
|
"SecurityFilterResponse",
|
|
1116
1449
|
""]);
|
|
1117
|
-
return [2 /*return*/,
|
|
1450
|
+
return [2 /*return*/, body_65];
|
|
1118
1451
|
case 2:
|
|
1119
1452
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
1120
1453
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1121
1454
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1122
1455
|
return [4 /*yield*/, response.body.text()];
|
|
1123
1456
|
case 3:
|
|
1124
|
-
|
|
1457
|
+
body_66 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
|
|
1125
1458
|
"APIErrorResponse",
|
|
1126
1459
|
""]);
|
|
1127
|
-
throw new exception_1.ApiException(400,
|
|
1460
|
+
throw new exception_1.ApiException(400, body_66);
|
|
1128
1461
|
case 4:
|
|
1129
1462
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
1130
1463
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1131
1464
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1132
1465
|
return [4 /*yield*/, response.body.text()];
|
|
1133
1466
|
case 5:
|
|
1134
|
-
|
|
1467
|
+
body_67 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
|
|
1135
1468
|
"APIErrorResponse",
|
|
1136
1469
|
""]);
|
|
1137
|
-
throw new exception_1.ApiException(403,
|
|
1470
|
+
throw new exception_1.ApiException(403, body_67);
|
|
1138
1471
|
case 6:
|
|
1139
1472
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1140
1473
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1141
1474
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1142
1475
|
return [4 /*yield*/, response.body.text()];
|
|
1143
1476
|
case 7:
|
|
1144
|
-
|
|
1477
|
+
body_68 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1145
1478
|
"APIErrorResponse",
|
|
1146
1479
|
""]);
|
|
1147
|
-
throw new exception_1.ApiException(404,
|
|
1480
|
+
throw new exception_1.ApiException(404, body_68);
|
|
1148
1481
|
case 8:
|
|
1149
1482
|
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1150
1483
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1151
1484
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1152
1485
|
return [4 /*yield*/, response.body.text()];
|
|
1153
1486
|
case 9:
|
|
1154
|
-
|
|
1487
|
+
body_69 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1155
1488
|
"APIErrorResponse",
|
|
1156
1489
|
""]);
|
|
1157
|
-
throw new exception_1.ApiException(409,
|
|
1490
|
+
throw new exception_1.ApiException(409, body_69);
|
|
1158
1491
|
case 10:
|
|
1159
1492
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1160
1493
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1161
1494
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1162
1495
|
return [4 /*yield*/, response.body.text()];
|
|
1163
1496
|
case 11:
|
|
1164
|
-
|
|
1497
|
+
body_70 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1165
1498
|
"APIErrorResponse",
|
|
1166
1499
|
""]);
|
|
1167
|
-
throw new exception_1.ApiException(429,
|
|
1500
|
+
throw new exception_1.ApiException(429, body_70);
|
|
1168
1501
|
case 12:
|
|
1169
1502
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1170
1503
|
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1171
1504
|
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1172
1505
|
return [4 /*yield*/, response.body.text()];
|
|
1173
1506
|
case 13:
|
|
1174
|
-
|
|
1507
|
+
body_71 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1175
1508
|
"SecurityFilterResponse",
|
|
1176
1509
|
""]);
|
|
1177
|
-
return [2 /*return*/,
|
|
1510
|
+
return [2 /*return*/, body_71];
|
|
1178
1511
|
case 14: return [4 /*yield*/, response.body.text()];
|
|
1179
1512
|
case 15:
|
|
1180
1513
|
body = (_4.sent()) || "";
|
|
@@ -1192,7 +1525,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1192
1525
|
*/
|
|
1193
1526
|
SecurityMonitoringApiResponseProcessor.prototype.updateSecurityMonitoringRule = function (response) {
|
|
1194
1527
|
return __awaiter(this, void 0, void 0, function () {
|
|
1195
|
-
var contentType,
|
|
1528
|
+
var contentType, body_72, _a, _b, _c, _d, body_73, _e, _f, _g, _h, body_74, _j, _k, _l, _m, body_75, _o, _p, _q, _r, body_76, _s, _t, _u, _v, body_77, _w, _x, _y, _z, body_78, _0, _1, _2, _3, body;
|
|
1196
1529
|
return __generator(this, function (_4) {
|
|
1197
1530
|
switch (_4.label) {
|
|
1198
1531
|
case 0:
|
|
@@ -1202,70 +1535,70 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1202
1535
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1203
1536
|
return [4 /*yield*/, response.body.text()];
|
|
1204
1537
|
case 1:
|
|
1205
|
-
|
|
1538
|
+
body_72 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
|
|
1206
1539
|
"SecurityMonitoringRuleResponse",
|
|
1207
1540
|
""]);
|
|
1208
|
-
return [2 /*return*/,
|
|
1541
|
+
return [2 /*return*/, body_72];
|
|
1209
1542
|
case 2:
|
|
1210
1543
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
1211
1544
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1212
1545
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1213
1546
|
return [4 /*yield*/, response.body.text()];
|
|
1214
1547
|
case 3:
|
|
1215
|
-
|
|
1548
|
+
body_73 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
|
|
1216
1549
|
"APIErrorResponse",
|
|
1217
1550
|
""]);
|
|
1218
|
-
throw new exception_1.ApiException(400,
|
|
1551
|
+
throw new exception_1.ApiException(400, body_73);
|
|
1219
1552
|
case 4:
|
|
1220
1553
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
1221
1554
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1222
1555
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1223
1556
|
return [4 /*yield*/, response.body.text()];
|
|
1224
1557
|
case 5:
|
|
1225
|
-
|
|
1558
|
+
body_74 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
|
|
1226
1559
|
"APIErrorResponse",
|
|
1227
1560
|
""]);
|
|
1228
|
-
throw new exception_1.ApiException(401,
|
|
1561
|
+
throw new exception_1.ApiException(401, body_74);
|
|
1229
1562
|
case 6:
|
|
1230
1563
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1231
1564
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1232
1565
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1233
1566
|
return [4 /*yield*/, response.body.text()];
|
|
1234
1567
|
case 7:
|
|
1235
|
-
|
|
1568
|
+
body_75 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1236
1569
|
"APIErrorResponse",
|
|
1237
1570
|
""]);
|
|
1238
|
-
throw new exception_1.ApiException(403,
|
|
1571
|
+
throw new exception_1.ApiException(403, body_75);
|
|
1239
1572
|
case 8:
|
|
1240
1573
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1241
1574
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1242
1575
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1243
1576
|
return [4 /*yield*/, response.body.text()];
|
|
1244
1577
|
case 9:
|
|
1245
|
-
|
|
1578
|
+
body_76 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1246
1579
|
"APIErrorResponse",
|
|
1247
1580
|
""]);
|
|
1248
|
-
throw new exception_1.ApiException(404,
|
|
1581
|
+
throw new exception_1.ApiException(404, body_76);
|
|
1249
1582
|
case 10:
|
|
1250
1583
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1251
1584
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1252
1585
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1253
1586
|
return [4 /*yield*/, response.body.text()];
|
|
1254
1587
|
case 11:
|
|
1255
|
-
|
|
1588
|
+
body_77 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1256
1589
|
"APIErrorResponse",
|
|
1257
1590
|
""]);
|
|
1258
|
-
throw new exception_1.ApiException(429,
|
|
1591
|
+
throw new exception_1.ApiException(429, body_77);
|
|
1259
1592
|
case 12:
|
|
1260
1593
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1261
1594
|
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1262
1595
|
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1263
1596
|
return [4 /*yield*/, response.body.text()];
|
|
1264
1597
|
case 13:
|
|
1265
|
-
|
|
1598
|
+
body_78 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1266
1599
|
"SecurityMonitoringRuleResponse",
|
|
1267
1600
|
""]);
|
|
1268
|
-
return [2 /*return*/,
|
|
1601
|
+
return [2 /*return*/, body_78];
|
|
1269
1602
|
case 14: return [4 /*yield*/, response.body.text()];
|
|
1270
1603
|
case 15:
|
|
1271
1604
|
body = (_4.sent()) || "";
|
|
@@ -1348,6 +1681,51 @@ var SecurityMonitoringApi = /** @class */ (function () {
|
|
|
1348
1681
|
});
|
|
1349
1682
|
});
|
|
1350
1683
|
};
|
|
1684
|
+
/**
|
|
1685
|
+
* Modify the triage assignee of a security signal.
|
|
1686
|
+
* @param param The request object
|
|
1687
|
+
*/
|
|
1688
|
+
SecurityMonitoringApi.prototype.editSecurityMonitoringSignalAssignee = function (param, options) {
|
|
1689
|
+
var _this = this;
|
|
1690
|
+
var requestContextPromise = this.requestFactory.editSecurityMonitoringSignalAssignee(param.signalId, param.body, options);
|
|
1691
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1692
|
+
return _this.configuration.httpApi
|
|
1693
|
+
.send(requestContext)
|
|
1694
|
+
.then(function (responseContext) {
|
|
1695
|
+
return _this.responseProcessor.editSecurityMonitoringSignalAssignee(responseContext);
|
|
1696
|
+
});
|
|
1697
|
+
});
|
|
1698
|
+
};
|
|
1699
|
+
/**
|
|
1700
|
+
* Change the related incidents for a security signal.
|
|
1701
|
+
* @param param The request object
|
|
1702
|
+
*/
|
|
1703
|
+
SecurityMonitoringApi.prototype.editSecurityMonitoringSignalIncidents = function (param, options) {
|
|
1704
|
+
var _this = this;
|
|
1705
|
+
var requestContextPromise = this.requestFactory.editSecurityMonitoringSignalIncidents(param.signalId, param.body, options);
|
|
1706
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1707
|
+
return _this.configuration.httpApi
|
|
1708
|
+
.send(requestContext)
|
|
1709
|
+
.then(function (responseContext) {
|
|
1710
|
+
return _this.responseProcessor.editSecurityMonitoringSignalIncidents(responseContext);
|
|
1711
|
+
});
|
|
1712
|
+
});
|
|
1713
|
+
};
|
|
1714
|
+
/**
|
|
1715
|
+
* Change the triage state of a security signal.
|
|
1716
|
+
* @param param The request object
|
|
1717
|
+
*/
|
|
1718
|
+
SecurityMonitoringApi.prototype.editSecurityMonitoringSignalState = function (param, options) {
|
|
1719
|
+
var _this = this;
|
|
1720
|
+
var requestContextPromise = this.requestFactory.editSecurityMonitoringSignalState(param.signalId, param.body, options);
|
|
1721
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1722
|
+
return _this.configuration.httpApi
|
|
1723
|
+
.send(requestContext)
|
|
1724
|
+
.then(function (responseContext) {
|
|
1725
|
+
return _this.responseProcessor.editSecurityMonitoringSignalState(responseContext);
|
|
1726
|
+
});
|
|
1727
|
+
});
|
|
1728
|
+
};
|
|
1351
1729
|
/**
|
|
1352
1730
|
* Get the details of a specific security filter.
|
|
1353
1731
|
*
|