@datadog/datadog-api-client 1.0.0 → 1.3.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 +78 -0
- package/LICENSE-3rdparty.csv +1 -0
- package/README.md +52 -7
- package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
- package/dist/packages/datadog-api-client-common/configuration.js +5 -9
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +8 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.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/PagerDutyIntegrationApi.js +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.d.ts +44 -7
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +44 -36
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +25 -3
- package/dist/packages/datadog-api-client-v1/index.js +41 -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/FormulaAndFunctionEventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.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 +11 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +11 -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/ListStreamSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.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 +21 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +22 -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 +32 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +40 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +128 -6
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
- 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/SyntheticsBasicAuth.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
- 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/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.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 +17 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +17 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.d.ts +15 -5
- package/dist/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.js +9 -1
- package/dist/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.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 +9 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +9 -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 +9 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +9 -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 +32 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +40 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.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-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +9 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.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/EventsApi.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +494 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +2 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +3 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +537 -22
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.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 +474 -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 +107 -3
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -15
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +58 -3
- package/dist/packages/datadog-api-client-v2/index.js +97 -8
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/Event.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.d.ts +110 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js +103 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventPriority.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/EventPriority.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventPriority.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponse.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponse.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponseAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponseAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventStatusType.d.ts +14 -0
- package/dist/packages/datadog-api-client-v2/models/EventStatusType.js +17 -0
- package/dist/packages/datadog-api-client-v2/models/EventStatusType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/EventType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/EventType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListRequest.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListRequest.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponse.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponse.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponseLinks.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponseLinks.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponseLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryFilter.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryFilter.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryFilter.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryOptions.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryOptions.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryOptions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsRequestPage.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/EventsRequestPage.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/EventsRequestPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadata.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadata.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsSort.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/EventsSort.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventsSort.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsWarning.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventsWarning.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/EventsWarning.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsage.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsage.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMetadata.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMetadata.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsagePagination.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsagePagination.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsagePagination.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageResponse.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageResponse.js.map +1 -0
- 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/MetricContentEncoding.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.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/MetricResource.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/MetricSeries.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/MonitorType.d.ts +68 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js +73 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +141 -6
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.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/SecurityMonitoringRuleQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.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 +3 -2
|
@@ -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,102 @@ 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
|
+
"apiKeyAuth",
|
|
210
|
+
"appKeyAuth",
|
|
211
|
+
]);
|
|
212
|
+
return [2 /*return*/, requestContext];
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
SecurityMonitoringApiRequestFactory.prototype.editSecurityMonitoringSignalIncidents = function (signalId, body, _options) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
218
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
219
|
+
return __generator(this, function (_a) {
|
|
220
|
+
_config = _options || this.configuration;
|
|
221
|
+
// verify required parameter 'signalId' is not null or undefined
|
|
222
|
+
if (signalId === null || signalId === undefined) {
|
|
223
|
+
throw new baseapi_1.RequiredError("Required parameter signalId was null or undefined when calling editSecurityMonitoringSignalIncidents.");
|
|
224
|
+
}
|
|
225
|
+
// verify required parameter 'body' is not null or undefined
|
|
226
|
+
if (body === null || body === undefined) {
|
|
227
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling editSecurityMonitoringSignalIncidents.");
|
|
228
|
+
}
|
|
229
|
+
localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/incidents".replace("{" + "signal_id" + "}", encodeURIComponent(String(signalId)));
|
|
230
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.editSecurityMonitoringSignalIncidents").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
231
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
232
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
233
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
234
|
+
"application/json",
|
|
235
|
+
]);
|
|
236
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
237
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalIncidentsUpdateRequest", ""), contentType);
|
|
238
|
+
requestContext.setBody(serializedBody);
|
|
239
|
+
// Apply auth methods
|
|
240
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
241
|
+
"apiKeyAuth",
|
|
242
|
+
"appKeyAuth",
|
|
243
|
+
]);
|
|
244
|
+
return [2 /*return*/, requestContext];
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
SecurityMonitoringApiRequestFactory.prototype.editSecurityMonitoringSignalState = function (signalId, body, _options) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
250
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
_config = _options || this.configuration;
|
|
253
|
+
// verify required parameter 'signalId' is not null or undefined
|
|
254
|
+
if (signalId === null || signalId === undefined) {
|
|
255
|
+
throw new baseapi_1.RequiredError("Required parameter signalId was null or undefined when calling editSecurityMonitoringSignalState.");
|
|
256
|
+
}
|
|
257
|
+
// verify required parameter 'body' is not null or undefined
|
|
258
|
+
if (body === null || body === undefined) {
|
|
259
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling editSecurityMonitoringSignalState.");
|
|
260
|
+
}
|
|
261
|
+
localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/state".replace("{" + "signal_id" + "}", encodeURIComponent(String(signalId)));
|
|
262
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.editSecurityMonitoringSignalState").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
263
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
264
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
265
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
266
|
+
"application/json",
|
|
267
|
+
]);
|
|
268
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
269
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalStateUpdateRequest", ""), contentType);
|
|
270
|
+
requestContext.setBody(serializedBody);
|
|
271
|
+
// Apply auth methods
|
|
272
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
273
|
+
"apiKeyAuth",
|
|
274
|
+
"appKeyAuth",
|
|
275
|
+
]);
|
|
276
|
+
return [2 /*return*/, requestContext];
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
185
280
|
SecurityMonitoringApiRequestFactory.prototype.getSecurityFilter = function (securityFilterId, _options) {
|
|
186
281
|
return __awaiter(this, void 0, void 0, function () {
|
|
187
282
|
var _config, localVarPath, requestContext;
|
|
@@ -278,10 +373,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
278
373
|
var _config, localVarPath, requestContext;
|
|
279
374
|
return __generator(this, function (_a) {
|
|
280
375
|
_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
376
|
localVarPath = "/api/v2/security_monitoring/signals";
|
|
286
377
|
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.listSecurityMonitoringSignals").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
287
378
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
@@ -320,10 +411,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
320
411
|
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
321
412
|
return __generator(this, function (_a) {
|
|
322
413
|
_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
414
|
localVarPath = "/api/v2/security_monitoring/signals/search";
|
|
328
415
|
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.searchSecurityMonitoringSignals").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
329
416
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
@@ -696,6 +783,249 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
696
783
|
});
|
|
697
784
|
});
|
|
698
785
|
};
|
|
786
|
+
/**
|
|
787
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
788
|
+
* to the expected objects
|
|
789
|
+
*
|
|
790
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee
|
|
791
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
792
|
+
*/
|
|
793
|
+
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalAssignee = function (response) {
|
|
794
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
795
|
+
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;
|
|
796
|
+
return __generator(this, function (_0) {
|
|
797
|
+
switch (_0.label) {
|
|
798
|
+
case 0:
|
|
799
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
800
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
|
|
801
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
802
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
803
|
+
return [4 /*yield*/, response.body.text()];
|
|
804
|
+
case 1:
|
|
805
|
+
body_20 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
|
|
806
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
807
|
+
""]);
|
|
808
|
+
return [2 /*return*/, body_20];
|
|
809
|
+
case 2:
|
|
810
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
811
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
812
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
813
|
+
return [4 /*yield*/, response.body.text()];
|
|
814
|
+
case 3:
|
|
815
|
+
body_21 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
|
|
816
|
+
"APIErrorResponse",
|
|
817
|
+
""]);
|
|
818
|
+
throw new exception_1.ApiException(400, body_21);
|
|
819
|
+
case 4:
|
|
820
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
821
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
822
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
823
|
+
return [4 /*yield*/, response.body.text()];
|
|
824
|
+
case 5:
|
|
825
|
+
body_22 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
|
|
826
|
+
"APIErrorResponse",
|
|
827
|
+
""]);
|
|
828
|
+
throw new exception_1.ApiException(403, body_22);
|
|
829
|
+
case 6:
|
|
830
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
831
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
832
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
833
|
+
return [4 /*yield*/, response.body.text()];
|
|
834
|
+
case 7:
|
|
835
|
+
body_23 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
836
|
+
"APIErrorResponse",
|
|
837
|
+
""]);
|
|
838
|
+
throw new exception_1.ApiException(404, body_23);
|
|
839
|
+
case 8:
|
|
840
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
841
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
842
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
843
|
+
return [4 /*yield*/, response.body.text()];
|
|
844
|
+
case 9:
|
|
845
|
+
body_24 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
846
|
+
"APIErrorResponse",
|
|
847
|
+
""]);
|
|
848
|
+
throw new exception_1.ApiException(429, body_24);
|
|
849
|
+
case 10:
|
|
850
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
851
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
852
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
853
|
+
return [4 /*yield*/, response.body.text()];
|
|
854
|
+
case 11:
|
|
855
|
+
body_25 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
856
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
857
|
+
""]);
|
|
858
|
+
return [2 /*return*/, body_25];
|
|
859
|
+
case 12: return [4 /*yield*/, response.body.text()];
|
|
860
|
+
case 13:
|
|
861
|
+
body = (_0.sent()) || "";
|
|
862
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
869
|
+
* to the expected objects
|
|
870
|
+
*
|
|
871
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalIncidents
|
|
872
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
873
|
+
*/
|
|
874
|
+
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalIncidents = function (response) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
876
|
+
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;
|
|
877
|
+
return __generator(this, function (_0) {
|
|
878
|
+
switch (_0.label) {
|
|
879
|
+
case 0:
|
|
880
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
881
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
|
|
882
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
883
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
884
|
+
return [4 /*yield*/, response.body.text()];
|
|
885
|
+
case 1:
|
|
886
|
+
body_26 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
|
|
887
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
888
|
+
""]);
|
|
889
|
+
return [2 /*return*/, body_26];
|
|
890
|
+
case 2:
|
|
891
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
892
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
893
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
894
|
+
return [4 /*yield*/, response.body.text()];
|
|
895
|
+
case 3:
|
|
896
|
+
body_27 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
|
|
897
|
+
"APIErrorResponse",
|
|
898
|
+
""]);
|
|
899
|
+
throw new exception_1.ApiException(400, body_27);
|
|
900
|
+
case 4:
|
|
901
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
902
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
903
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
904
|
+
return [4 /*yield*/, response.body.text()];
|
|
905
|
+
case 5:
|
|
906
|
+
body_28 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
|
|
907
|
+
"APIErrorResponse",
|
|
908
|
+
""]);
|
|
909
|
+
throw new exception_1.ApiException(403, body_28);
|
|
910
|
+
case 6:
|
|
911
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
912
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
913
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
914
|
+
return [4 /*yield*/, response.body.text()];
|
|
915
|
+
case 7:
|
|
916
|
+
body_29 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
917
|
+
"APIErrorResponse",
|
|
918
|
+
""]);
|
|
919
|
+
throw new exception_1.ApiException(404, body_29);
|
|
920
|
+
case 8:
|
|
921
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
922
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
923
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
924
|
+
return [4 /*yield*/, response.body.text()];
|
|
925
|
+
case 9:
|
|
926
|
+
body_30 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
927
|
+
"APIErrorResponse",
|
|
928
|
+
""]);
|
|
929
|
+
throw new exception_1.ApiException(429, body_30);
|
|
930
|
+
case 10:
|
|
931
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
932
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
933
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
934
|
+
return [4 /*yield*/, response.body.text()];
|
|
935
|
+
case 11:
|
|
936
|
+
body_31 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
937
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
938
|
+
""]);
|
|
939
|
+
return [2 /*return*/, body_31];
|
|
940
|
+
case 12: return [4 /*yield*/, response.body.text()];
|
|
941
|
+
case 13:
|
|
942
|
+
body = (_0.sent()) || "";
|
|
943
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
});
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
950
|
+
* to the expected objects
|
|
951
|
+
*
|
|
952
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalState
|
|
953
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
954
|
+
*/
|
|
955
|
+
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalState = function (response) {
|
|
956
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
957
|
+
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;
|
|
958
|
+
return __generator(this, function (_0) {
|
|
959
|
+
switch (_0.label) {
|
|
960
|
+
case 0:
|
|
961
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
962
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
|
|
963
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
964
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
965
|
+
return [4 /*yield*/, response.body.text()];
|
|
966
|
+
case 1:
|
|
967
|
+
body_32 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
|
|
968
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
969
|
+
""]);
|
|
970
|
+
return [2 /*return*/, body_32];
|
|
971
|
+
case 2:
|
|
972
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
973
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
974
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
975
|
+
return [4 /*yield*/, response.body.text()];
|
|
976
|
+
case 3:
|
|
977
|
+
body_33 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
|
|
978
|
+
"APIErrorResponse",
|
|
979
|
+
""]);
|
|
980
|
+
throw new exception_1.ApiException(400, body_33);
|
|
981
|
+
case 4:
|
|
982
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
983
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
984
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
985
|
+
return [4 /*yield*/, response.body.text()];
|
|
986
|
+
case 5:
|
|
987
|
+
body_34 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
|
|
988
|
+
"APIErrorResponse",
|
|
989
|
+
""]);
|
|
990
|
+
throw new exception_1.ApiException(403, body_34);
|
|
991
|
+
case 6:
|
|
992
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
993
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
994
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
995
|
+
return [4 /*yield*/, response.body.text()];
|
|
996
|
+
case 7:
|
|
997
|
+
body_35 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
998
|
+
"APIErrorResponse",
|
|
999
|
+
""]);
|
|
1000
|
+
throw new exception_1.ApiException(404, body_35);
|
|
1001
|
+
case 8:
|
|
1002
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1003
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1004
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1005
|
+
return [4 /*yield*/, response.body.text()];
|
|
1006
|
+
case 9:
|
|
1007
|
+
body_36 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1008
|
+
"APIErrorResponse",
|
|
1009
|
+
""]);
|
|
1010
|
+
throw new exception_1.ApiException(429, body_36);
|
|
1011
|
+
case 10:
|
|
1012
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1013
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1014
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1015
|
+
return [4 /*yield*/, response.body.text()];
|
|
1016
|
+
case 11:
|
|
1017
|
+
body_37 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1018
|
+
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
1019
|
+
""]);
|
|
1020
|
+
return [2 /*return*/, body_37];
|
|
1021
|
+
case 12: return [4 /*yield*/, response.body.text()];
|
|
1022
|
+
case 13:
|
|
1023
|
+
body = (_0.sent()) || "";
|
|
1024
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
});
|
|
1028
|
+
};
|
|
699
1029
|
/**
|
|
700
1030
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
701
1031
|
* to the expected objects
|
|
@@ -705,7 +1035,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
705
1035
|
*/
|
|
706
1036
|
SecurityMonitoringApiResponseProcessor.prototype.getSecurityFilter = function (response) {
|
|
707
1037
|
return __awaiter(this, void 0, void 0, function () {
|
|
708
|
-
var contentType,
|
|
1038
|
+
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
1039
|
return __generator(this, function (_w) {
|
|
710
1040
|
switch (_w.label) {
|
|
711
1041
|
case 0:
|
|
@@ -715,50 +1045,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
715
1045
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
716
1046
|
return [4 /*yield*/, response.body.text()];
|
|
717
1047
|
case 1:
|
|
718
|
-
|
|
1048
|
+
body_38 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
|
|
719
1049
|
"SecurityFilterResponse",
|
|
720
1050
|
""]);
|
|
721
|
-
return [2 /*return*/,
|
|
1051
|
+
return [2 /*return*/, body_38];
|
|
722
1052
|
case 2:
|
|
723
1053
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
724
1054
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
725
1055
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
726
1056
|
return [4 /*yield*/, response.body.text()];
|
|
727
1057
|
case 3:
|
|
728
|
-
|
|
1058
|
+
body_39 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
|
|
729
1059
|
"APIErrorResponse",
|
|
730
1060
|
""]);
|
|
731
|
-
throw new exception_1.ApiException(403,
|
|
1061
|
+
throw new exception_1.ApiException(403, body_39);
|
|
732
1062
|
case 4:
|
|
733
1063
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
734
1064
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
735
1065
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
736
1066
|
return [4 /*yield*/, response.body.text()];
|
|
737
1067
|
case 5:
|
|
738
|
-
|
|
1068
|
+
body_40 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
|
|
739
1069
|
"APIErrorResponse",
|
|
740
1070
|
""]);
|
|
741
|
-
throw new exception_1.ApiException(404,
|
|
1071
|
+
throw new exception_1.ApiException(404, body_40);
|
|
742
1072
|
case 6:
|
|
743
1073
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
744
1074
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
745
1075
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
746
1076
|
return [4 /*yield*/, response.body.text()];
|
|
747
1077
|
case 7:
|
|
748
|
-
|
|
1078
|
+
body_41 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
749
1079
|
"APIErrorResponse",
|
|
750
1080
|
""]);
|
|
751
|
-
throw new exception_1.ApiException(429,
|
|
1081
|
+
throw new exception_1.ApiException(429, body_41);
|
|
752
1082
|
case 8:
|
|
753
1083
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
754
1084
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
755
1085
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
756
1086
|
return [4 /*yield*/, response.body.text()];
|
|
757
1087
|
case 9:
|
|
758
|
-
|
|
1088
|
+
body_42 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
759
1089
|
"SecurityFilterResponse",
|
|
760
1090
|
""]);
|
|
761
|
-
return [2 /*return*/,
|
|
1091
|
+
return [2 /*return*/, body_42];
|
|
762
1092
|
case 10: return [4 /*yield*/, response.body.text()];
|
|
763
1093
|
case 11:
|
|
764
1094
|
body = (_w.sent()) || "";
|
|
@@ -776,7 +1106,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
776
1106
|
*/
|
|
777
1107
|
SecurityMonitoringApiResponseProcessor.prototype.getSecurityMonitoringRule = function (response) {
|
|
778
1108
|
return __awaiter(this, void 0, void 0, function () {
|
|
779
|
-
var contentType,
|
|
1109
|
+
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
1110
|
return __generator(this, function (_s) {
|
|
781
1111
|
switch (_s.label) {
|
|
782
1112
|
case 0:
|
|
@@ -786,40 +1116,40 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
786
1116
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
787
1117
|
return [4 /*yield*/, response.body.text()];
|
|
788
1118
|
case 1:
|
|
789
|
-
|
|
1119
|
+
body_43 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
|
|
790
1120
|
"SecurityMonitoringRuleResponse",
|
|
791
1121
|
""]);
|
|
792
|
-
return [2 /*return*/,
|
|
1122
|
+
return [2 /*return*/, body_43];
|
|
793
1123
|
case 2:
|
|
794
1124
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
795
1125
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
796
1126
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
797
1127
|
return [4 /*yield*/, response.body.text()];
|
|
798
1128
|
case 3:
|
|
799
|
-
|
|
1129
|
+
body_44 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
|
|
800
1130
|
"APIErrorResponse",
|
|
801
1131
|
""]);
|
|
802
|
-
throw new exception_1.ApiException(404,
|
|
1132
|
+
throw new exception_1.ApiException(404, body_44);
|
|
803
1133
|
case 4:
|
|
804
1134
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
805
1135
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
806
1136
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
807
1137
|
return [4 /*yield*/, response.body.text()];
|
|
808
1138
|
case 5:
|
|
809
|
-
|
|
1139
|
+
body_45 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
810
1140
|
"APIErrorResponse",
|
|
811
1141
|
""]);
|
|
812
|
-
throw new exception_1.ApiException(429,
|
|
1142
|
+
throw new exception_1.ApiException(429, body_45);
|
|
813
1143
|
case 6:
|
|
814
1144
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
815
1145
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
816
1146
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
817
1147
|
return [4 /*yield*/, response.body.text()];
|
|
818
1148
|
case 7:
|
|
819
|
-
|
|
1149
|
+
body_46 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
820
1150
|
"SecurityMonitoringRuleResponse",
|
|
821
1151
|
""]);
|
|
822
|
-
return [2 /*return*/,
|
|
1152
|
+
return [2 /*return*/, body_46];
|
|
823
1153
|
case 8: return [4 /*yield*/, response.body.text()];
|
|
824
1154
|
case 9:
|
|
825
1155
|
body = (_s.sent()) || "";
|
|
@@ -837,7 +1167,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
837
1167
|
*/
|
|
838
1168
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityFilters = function (response) {
|
|
839
1169
|
return __awaiter(this, void 0, void 0, function () {
|
|
840
|
-
var contentType,
|
|
1170
|
+
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
1171
|
return __generator(this, function (_s) {
|
|
842
1172
|
switch (_s.label) {
|
|
843
1173
|
case 0:
|
|
@@ -847,40 +1177,40 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
847
1177
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
848
1178
|
return [4 /*yield*/, response.body.text()];
|
|
849
1179
|
case 1:
|
|
850
|
-
|
|
1180
|
+
body_47 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
|
|
851
1181
|
"SecurityFiltersResponse",
|
|
852
1182
|
""]);
|
|
853
|
-
return [2 /*return*/,
|
|
1183
|
+
return [2 /*return*/, body_47];
|
|
854
1184
|
case 2:
|
|
855
1185
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
856
1186
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
857
1187
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
858
1188
|
return [4 /*yield*/, response.body.text()];
|
|
859
1189
|
case 3:
|
|
860
|
-
|
|
1190
|
+
body_48 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
|
|
861
1191
|
"APIErrorResponse",
|
|
862
1192
|
""]);
|
|
863
|
-
throw new exception_1.ApiException(403,
|
|
1193
|
+
throw new exception_1.ApiException(403, body_48);
|
|
864
1194
|
case 4:
|
|
865
1195
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
866
1196
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
867
1197
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
868
1198
|
return [4 /*yield*/, response.body.text()];
|
|
869
1199
|
case 5:
|
|
870
|
-
|
|
1200
|
+
body_49 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
871
1201
|
"APIErrorResponse",
|
|
872
1202
|
""]);
|
|
873
|
-
throw new exception_1.ApiException(429,
|
|
1203
|
+
throw new exception_1.ApiException(429, body_49);
|
|
874
1204
|
case 6:
|
|
875
1205
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
876
1206
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
877
1207
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
878
1208
|
return [4 /*yield*/, response.body.text()];
|
|
879
1209
|
case 7:
|
|
880
|
-
|
|
1210
|
+
body_50 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
881
1211
|
"SecurityFiltersResponse",
|
|
882
1212
|
""]);
|
|
883
|
-
return [2 /*return*/,
|
|
1213
|
+
return [2 /*return*/, body_50];
|
|
884
1214
|
case 8: return [4 /*yield*/, response.body.text()];
|
|
885
1215
|
case 9:
|
|
886
1216
|
body = (_s.sent()) || "";
|
|
@@ -898,7 +1228,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
898
1228
|
*/
|
|
899
1229
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringRules = function (response) {
|
|
900
1230
|
return __awaiter(this, void 0, void 0, function () {
|
|
901
|
-
var contentType,
|
|
1231
|
+
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
1232
|
return __generator(this, function (_s) {
|
|
903
1233
|
switch (_s.label) {
|
|
904
1234
|
case 0:
|
|
@@ -908,40 +1238,40 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
908
1238
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
909
1239
|
return [4 /*yield*/, response.body.text()];
|
|
910
1240
|
case 1:
|
|
911
|
-
|
|
1241
|
+
body_51 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
|
|
912
1242
|
"SecurityMonitoringListRulesResponse",
|
|
913
1243
|
""]);
|
|
914
|
-
return [2 /*return*/,
|
|
1244
|
+
return [2 /*return*/, body_51];
|
|
915
1245
|
case 2:
|
|
916
1246
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
917
1247
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
918
1248
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
919
1249
|
return [4 /*yield*/, response.body.text()];
|
|
920
1250
|
case 3:
|
|
921
|
-
|
|
1251
|
+
body_52 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
|
|
922
1252
|
"APIErrorResponse",
|
|
923
1253
|
""]);
|
|
924
|
-
throw new exception_1.ApiException(400,
|
|
1254
|
+
throw new exception_1.ApiException(400, body_52);
|
|
925
1255
|
case 4:
|
|
926
1256
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
927
1257
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
928
1258
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
929
1259
|
return [4 /*yield*/, response.body.text()];
|
|
930
1260
|
case 5:
|
|
931
|
-
|
|
1261
|
+
body_53 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
932
1262
|
"APIErrorResponse",
|
|
933
1263
|
""]);
|
|
934
|
-
throw new exception_1.ApiException(429,
|
|
1264
|
+
throw new exception_1.ApiException(429, body_53);
|
|
935
1265
|
case 6:
|
|
936
1266
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
937
1267
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
938
1268
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
939
1269
|
return [4 /*yield*/, response.body.text()];
|
|
940
1270
|
case 7:
|
|
941
|
-
|
|
1271
|
+
body_54 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
942
1272
|
"SecurityMonitoringListRulesResponse",
|
|
943
1273
|
""]);
|
|
944
|
-
return [2 /*return*/,
|
|
1274
|
+
return [2 /*return*/, body_54];
|
|
945
1275
|
case 8: return [4 /*yield*/, response.body.text()];
|
|
946
1276
|
case 9:
|
|
947
1277
|
body = (_s.sent()) || "";
|
|
@@ -959,7 +1289,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
959
1289
|
*/
|
|
960
1290
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringSignals = function (response) {
|
|
961
1291
|
return __awaiter(this, void 0, void 0, function () {
|
|
962
|
-
var contentType,
|
|
1292
|
+
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
1293
|
return __generator(this, function (_w) {
|
|
964
1294
|
switch (_w.label) {
|
|
965
1295
|
case 0:
|
|
@@ -969,50 +1299,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
969
1299
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
970
1300
|
return [4 /*yield*/, response.body.text()];
|
|
971
1301
|
case 1:
|
|
972
|
-
|
|
1302
|
+
body_55 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
|
|
973
1303
|
"SecurityMonitoringSignalsListResponse",
|
|
974
1304
|
""]);
|
|
975
|
-
return [2 /*return*/,
|
|
1305
|
+
return [2 /*return*/, body_55];
|
|
976
1306
|
case 2:
|
|
977
1307
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
978
1308
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
979
1309
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
980
1310
|
return [4 /*yield*/, response.body.text()];
|
|
981
1311
|
case 3:
|
|
982
|
-
|
|
1312
|
+
body_56 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
|
|
983
1313
|
"APIErrorResponse",
|
|
984
1314
|
""]);
|
|
985
|
-
throw new exception_1.ApiException(400,
|
|
1315
|
+
throw new exception_1.ApiException(400, body_56);
|
|
986
1316
|
case 4:
|
|
987
1317
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
988
1318
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
989
1319
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
990
1320
|
return [4 /*yield*/, response.body.text()];
|
|
991
1321
|
case 5:
|
|
992
|
-
|
|
1322
|
+
body_57 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
|
|
993
1323
|
"APIErrorResponse",
|
|
994
1324
|
""]);
|
|
995
|
-
throw new exception_1.ApiException(403,
|
|
1325
|
+
throw new exception_1.ApiException(403, body_57);
|
|
996
1326
|
case 6:
|
|
997
1327
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
998
1328
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
999
1329
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1000
1330
|
return [4 /*yield*/, response.body.text()];
|
|
1001
1331
|
case 7:
|
|
1002
|
-
|
|
1332
|
+
body_58 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1003
1333
|
"APIErrorResponse",
|
|
1004
1334
|
""]);
|
|
1005
|
-
throw new exception_1.ApiException(429,
|
|
1335
|
+
throw new exception_1.ApiException(429, body_58);
|
|
1006
1336
|
case 8:
|
|
1007
1337
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1008
1338
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1009
1339
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1010
1340
|
return [4 /*yield*/, response.body.text()];
|
|
1011
1341
|
case 9:
|
|
1012
|
-
|
|
1342
|
+
body_59 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1013
1343
|
"SecurityMonitoringSignalsListResponse",
|
|
1014
1344
|
""]);
|
|
1015
|
-
return [2 /*return*/,
|
|
1345
|
+
return [2 /*return*/, body_59];
|
|
1016
1346
|
case 10: return [4 /*yield*/, response.body.text()];
|
|
1017
1347
|
case 11:
|
|
1018
1348
|
body = (_w.sent()) || "";
|
|
@@ -1030,7 +1360,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1030
1360
|
*/
|
|
1031
1361
|
SecurityMonitoringApiResponseProcessor.prototype.searchSecurityMonitoringSignals = function (response) {
|
|
1032
1362
|
return __awaiter(this, void 0, void 0, function () {
|
|
1033
|
-
var contentType,
|
|
1363
|
+
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
1364
|
return __generator(this, function (_w) {
|
|
1035
1365
|
switch (_w.label) {
|
|
1036
1366
|
case 0:
|
|
@@ -1040,50 +1370,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1040
1370
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1041
1371
|
return [4 /*yield*/, response.body.text()];
|
|
1042
1372
|
case 1:
|
|
1043
|
-
|
|
1373
|
+
body_60 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
|
|
1044
1374
|
"SecurityMonitoringSignalsListResponse",
|
|
1045
1375
|
""]);
|
|
1046
|
-
return [2 /*return*/,
|
|
1376
|
+
return [2 /*return*/, body_60];
|
|
1047
1377
|
case 2:
|
|
1048
1378
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
1049
1379
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1050
1380
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1051
1381
|
return [4 /*yield*/, response.body.text()];
|
|
1052
1382
|
case 3:
|
|
1053
|
-
|
|
1383
|
+
body_61 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
|
|
1054
1384
|
"APIErrorResponse",
|
|
1055
1385
|
""]);
|
|
1056
|
-
throw new exception_1.ApiException(400,
|
|
1386
|
+
throw new exception_1.ApiException(400, body_61);
|
|
1057
1387
|
case 4:
|
|
1058
1388
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
1059
1389
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1060
1390
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1061
1391
|
return [4 /*yield*/, response.body.text()];
|
|
1062
1392
|
case 5:
|
|
1063
|
-
|
|
1393
|
+
body_62 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
|
|
1064
1394
|
"APIErrorResponse",
|
|
1065
1395
|
""]);
|
|
1066
|
-
throw new exception_1.ApiException(403,
|
|
1396
|
+
throw new exception_1.ApiException(403, body_62);
|
|
1067
1397
|
case 6:
|
|
1068
1398
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1069
1399
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1070
1400
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1071
1401
|
return [4 /*yield*/, response.body.text()];
|
|
1072
1402
|
case 7:
|
|
1073
|
-
|
|
1403
|
+
body_63 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1074
1404
|
"APIErrorResponse",
|
|
1075
1405
|
""]);
|
|
1076
|
-
throw new exception_1.ApiException(429,
|
|
1406
|
+
throw new exception_1.ApiException(429, body_63);
|
|
1077
1407
|
case 8:
|
|
1078
1408
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1079
1409
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1080
1410
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1081
1411
|
return [4 /*yield*/, response.body.text()];
|
|
1082
1412
|
case 9:
|
|
1083
|
-
|
|
1413
|
+
body_64 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1084
1414
|
"SecurityMonitoringSignalsListResponse",
|
|
1085
1415
|
""]);
|
|
1086
|
-
return [2 /*return*/,
|
|
1416
|
+
return [2 /*return*/, body_64];
|
|
1087
1417
|
case 10: return [4 /*yield*/, response.body.text()];
|
|
1088
1418
|
case 11:
|
|
1089
1419
|
body = (_w.sent()) || "";
|
|
@@ -1101,7 +1431,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1101
1431
|
*/
|
|
1102
1432
|
SecurityMonitoringApiResponseProcessor.prototype.updateSecurityFilter = function (response) {
|
|
1103
1433
|
return __awaiter(this, void 0, void 0, function () {
|
|
1104
|
-
var contentType,
|
|
1434
|
+
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
1435
|
return __generator(this, function (_4) {
|
|
1106
1436
|
switch (_4.label) {
|
|
1107
1437
|
case 0:
|
|
@@ -1111,70 +1441,70 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1111
1441
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1112
1442
|
return [4 /*yield*/, response.body.text()];
|
|
1113
1443
|
case 1:
|
|
1114
|
-
|
|
1444
|
+
body_65 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
|
|
1115
1445
|
"SecurityFilterResponse",
|
|
1116
1446
|
""]);
|
|
1117
|
-
return [2 /*return*/,
|
|
1447
|
+
return [2 /*return*/, body_65];
|
|
1118
1448
|
case 2:
|
|
1119
1449
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
1120
1450
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1121
1451
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1122
1452
|
return [4 /*yield*/, response.body.text()];
|
|
1123
1453
|
case 3:
|
|
1124
|
-
|
|
1454
|
+
body_66 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
|
|
1125
1455
|
"APIErrorResponse",
|
|
1126
1456
|
""]);
|
|
1127
|
-
throw new exception_1.ApiException(400,
|
|
1457
|
+
throw new exception_1.ApiException(400, body_66);
|
|
1128
1458
|
case 4:
|
|
1129
1459
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
1130
1460
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1131
1461
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1132
1462
|
return [4 /*yield*/, response.body.text()];
|
|
1133
1463
|
case 5:
|
|
1134
|
-
|
|
1464
|
+
body_67 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
|
|
1135
1465
|
"APIErrorResponse",
|
|
1136
1466
|
""]);
|
|
1137
|
-
throw new exception_1.ApiException(403,
|
|
1467
|
+
throw new exception_1.ApiException(403, body_67);
|
|
1138
1468
|
case 6:
|
|
1139
1469
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1140
1470
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1141
1471
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1142
1472
|
return [4 /*yield*/, response.body.text()];
|
|
1143
1473
|
case 7:
|
|
1144
|
-
|
|
1474
|
+
body_68 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1145
1475
|
"APIErrorResponse",
|
|
1146
1476
|
""]);
|
|
1147
|
-
throw new exception_1.ApiException(404,
|
|
1477
|
+
throw new exception_1.ApiException(404, body_68);
|
|
1148
1478
|
case 8:
|
|
1149
1479
|
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1150
1480
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1151
1481
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1152
1482
|
return [4 /*yield*/, response.body.text()];
|
|
1153
1483
|
case 9:
|
|
1154
|
-
|
|
1484
|
+
body_69 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1155
1485
|
"APIErrorResponse",
|
|
1156
1486
|
""]);
|
|
1157
|
-
throw new exception_1.ApiException(409,
|
|
1487
|
+
throw new exception_1.ApiException(409, body_69);
|
|
1158
1488
|
case 10:
|
|
1159
1489
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1160
1490
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1161
1491
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1162
1492
|
return [4 /*yield*/, response.body.text()];
|
|
1163
1493
|
case 11:
|
|
1164
|
-
|
|
1494
|
+
body_70 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1165
1495
|
"APIErrorResponse",
|
|
1166
1496
|
""]);
|
|
1167
|
-
throw new exception_1.ApiException(429,
|
|
1497
|
+
throw new exception_1.ApiException(429, body_70);
|
|
1168
1498
|
case 12:
|
|
1169
1499
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1170
1500
|
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1171
1501
|
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1172
1502
|
return [4 /*yield*/, response.body.text()];
|
|
1173
1503
|
case 13:
|
|
1174
|
-
|
|
1504
|
+
body_71 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1175
1505
|
"SecurityFilterResponse",
|
|
1176
1506
|
""]);
|
|
1177
|
-
return [2 /*return*/,
|
|
1507
|
+
return [2 /*return*/, body_71];
|
|
1178
1508
|
case 14: return [4 /*yield*/, response.body.text()];
|
|
1179
1509
|
case 15:
|
|
1180
1510
|
body = (_4.sent()) || "";
|
|
@@ -1192,7 +1522,7 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1192
1522
|
*/
|
|
1193
1523
|
SecurityMonitoringApiResponseProcessor.prototype.updateSecurityMonitoringRule = function (response) {
|
|
1194
1524
|
return __awaiter(this, void 0, void 0, function () {
|
|
1195
|
-
var contentType,
|
|
1525
|
+
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
1526
|
return __generator(this, function (_4) {
|
|
1197
1527
|
switch (_4.label) {
|
|
1198
1528
|
case 0:
|
|
@@ -1202,70 +1532,70 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1202
1532
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1203
1533
|
return [4 /*yield*/, response.body.text()];
|
|
1204
1534
|
case 1:
|
|
1205
|
-
|
|
1535
|
+
body_72 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
|
|
1206
1536
|
"SecurityMonitoringRuleResponse",
|
|
1207
1537
|
""]);
|
|
1208
|
-
return [2 /*return*/,
|
|
1538
|
+
return [2 /*return*/, body_72];
|
|
1209
1539
|
case 2:
|
|
1210
1540
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
|
|
1211
1541
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1212
1542
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1213
1543
|
return [4 /*yield*/, response.body.text()];
|
|
1214
1544
|
case 3:
|
|
1215
|
-
|
|
1545
|
+
body_73 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
|
|
1216
1546
|
"APIErrorResponse",
|
|
1217
1547
|
""]);
|
|
1218
|
-
throw new exception_1.ApiException(400,
|
|
1548
|
+
throw new exception_1.ApiException(400, body_73);
|
|
1219
1549
|
case 4:
|
|
1220
1550
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
1221
1551
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1222
1552
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1223
1553
|
return [4 /*yield*/, response.body.text()];
|
|
1224
1554
|
case 5:
|
|
1225
|
-
|
|
1555
|
+
body_74 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
|
|
1226
1556
|
"APIErrorResponse",
|
|
1227
1557
|
""]);
|
|
1228
|
-
throw new exception_1.ApiException(401,
|
|
1558
|
+
throw new exception_1.ApiException(401, body_74);
|
|
1229
1559
|
case 6:
|
|
1230
1560
|
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1231
1561
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1232
1562
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1233
1563
|
return [4 /*yield*/, response.body.text()];
|
|
1234
1564
|
case 7:
|
|
1235
|
-
|
|
1565
|
+
body_75 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1236
1566
|
"APIErrorResponse",
|
|
1237
1567
|
""]);
|
|
1238
|
-
throw new exception_1.ApiException(403,
|
|
1568
|
+
throw new exception_1.ApiException(403, body_75);
|
|
1239
1569
|
case 8:
|
|
1240
1570
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1241
1571
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1242
1572
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1243
1573
|
return [4 /*yield*/, response.body.text()];
|
|
1244
1574
|
case 9:
|
|
1245
|
-
|
|
1575
|
+
body_76 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1246
1576
|
"APIErrorResponse",
|
|
1247
1577
|
""]);
|
|
1248
|
-
throw new exception_1.ApiException(404,
|
|
1578
|
+
throw new exception_1.ApiException(404, body_76);
|
|
1249
1579
|
case 10:
|
|
1250
1580
|
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1251
1581
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1252
1582
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1253
1583
|
return [4 /*yield*/, response.body.text()];
|
|
1254
1584
|
case 11:
|
|
1255
|
-
|
|
1585
|
+
body_77 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1256
1586
|
"APIErrorResponse",
|
|
1257
1587
|
""]);
|
|
1258
|
-
throw new exception_1.ApiException(429,
|
|
1588
|
+
throw new exception_1.ApiException(429, body_77);
|
|
1259
1589
|
case 12:
|
|
1260
1590
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1261
1591
|
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1262
1592
|
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1263
1593
|
return [4 /*yield*/, response.body.text()];
|
|
1264
1594
|
case 13:
|
|
1265
|
-
|
|
1595
|
+
body_78 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1266
1596
|
"SecurityMonitoringRuleResponse",
|
|
1267
1597
|
""]);
|
|
1268
|
-
return [2 /*return*/,
|
|
1598
|
+
return [2 /*return*/, body_78];
|
|
1269
1599
|
case 14: return [4 /*yield*/, response.body.text()];
|
|
1270
1600
|
case 15:
|
|
1271
1601
|
body = (_4.sent()) || "";
|
|
@@ -1348,6 +1678,51 @@ var SecurityMonitoringApi = /** @class */ (function () {
|
|
|
1348
1678
|
});
|
|
1349
1679
|
});
|
|
1350
1680
|
};
|
|
1681
|
+
/**
|
|
1682
|
+
* Modify the triage assignee of a security signal.
|
|
1683
|
+
* @param param The request object
|
|
1684
|
+
*/
|
|
1685
|
+
SecurityMonitoringApi.prototype.editSecurityMonitoringSignalAssignee = function (param, options) {
|
|
1686
|
+
var _this = this;
|
|
1687
|
+
var requestContextPromise = this.requestFactory.editSecurityMonitoringSignalAssignee(param.signalId, param.body, options);
|
|
1688
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1689
|
+
return _this.configuration.httpApi
|
|
1690
|
+
.send(requestContext)
|
|
1691
|
+
.then(function (responseContext) {
|
|
1692
|
+
return _this.responseProcessor.editSecurityMonitoringSignalAssignee(responseContext);
|
|
1693
|
+
});
|
|
1694
|
+
});
|
|
1695
|
+
};
|
|
1696
|
+
/**
|
|
1697
|
+
* Change the related incidents for a security signal.
|
|
1698
|
+
* @param param The request object
|
|
1699
|
+
*/
|
|
1700
|
+
SecurityMonitoringApi.prototype.editSecurityMonitoringSignalIncidents = function (param, options) {
|
|
1701
|
+
var _this = this;
|
|
1702
|
+
var requestContextPromise = this.requestFactory.editSecurityMonitoringSignalIncidents(param.signalId, param.body, options);
|
|
1703
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1704
|
+
return _this.configuration.httpApi
|
|
1705
|
+
.send(requestContext)
|
|
1706
|
+
.then(function (responseContext) {
|
|
1707
|
+
return _this.responseProcessor.editSecurityMonitoringSignalIncidents(responseContext);
|
|
1708
|
+
});
|
|
1709
|
+
});
|
|
1710
|
+
};
|
|
1711
|
+
/**
|
|
1712
|
+
* Change the triage state of a security signal.
|
|
1713
|
+
* @param param The request object
|
|
1714
|
+
*/
|
|
1715
|
+
SecurityMonitoringApi.prototype.editSecurityMonitoringSignalState = function (param, options) {
|
|
1716
|
+
var _this = this;
|
|
1717
|
+
var requestContextPromise = this.requestFactory.editSecurityMonitoringSignalState(param.signalId, param.body, options);
|
|
1718
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1719
|
+
return _this.configuration.httpApi
|
|
1720
|
+
.send(requestContext)
|
|
1721
|
+
.then(function (responseContext) {
|
|
1722
|
+
return _this.responseProcessor.editSecurityMonitoringSignalState(responseContext);
|
|
1723
|
+
});
|
|
1724
|
+
});
|
|
1725
|
+
};
|
|
1351
1726
|
/**
|
|
1352
1727
|
* Get the details of a specific security filter.
|
|
1353
1728
|
*
|