@datadog/datadog-api-client 1.30.0 → 1.32.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/dist/packages/datadog-api-client-common/configuration.js +27 -4
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/http.d.ts +1 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +1 -4
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +8 -22
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.d.ts +25 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +25 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +4 -2
- package/dist/packages/datadog-api-client-v1/index.js +16 -14
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/AWSNamespace.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/AWSNamespace.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/AWSNamespace.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/AzureAccount.d.ts +15 -6
- package/dist/packages/datadog-api-client-v1/models/AzureAccount.js +15 -3
- package/dist/packages/datadog-api-client-v1/models/AzureAccount.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/Dashboard.d.ts +0 -2
- package/dist/packages/datadog-api-client-v1/models/Dashboard.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +4 -2
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/LogsPipeline.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/LogsPipeline.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/LogsPipeline.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostAggregator.d.ts +19 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostAggregator.js +18 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostAggregator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostDataSource.d.ts +13 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostDataSource.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostQueryDefinition.d.ts +50 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostQueryDefinition.js +45 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionCostQueryDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionQueryDefinition.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorUpdateRequest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +7 -3
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +33 -16
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ResourceProviderConfig.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/ResourceProviderConfig.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/ResourceProviderConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SignalArchiveReason.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/SignalArchiveReason.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/SignalArchiveReason.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITestStep.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITestStep.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITestStep.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBatchResult.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBatchResult.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBatchResult.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsCITest.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsCITest.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsCITest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsDevice.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsDevice.js +6 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsDevice.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsFetchUptimesPayload.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsMobileTestOptions.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStep.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStep.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStep.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.js +6 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +92 -4
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +110 -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 +91 -3
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +110 -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 +92 -4
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +112 -2
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.d.ts +158 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js +588 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.js +107 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.d.ts +106 -0
- package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.js +350 -0
- package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/AgentlessScanningApi.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/apis/AgentlessScanningApi.js +103 -0
- package/dist/packages/datadog-api-client-v2/apis/AgentlessScanningApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.d.ts +250 -0
- package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.js +809 -0
- package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/CSMAgentsApi.d.ts +87 -0
- package/dist/packages/datadog-api-client-v2/apis/CSMAgentsApi.js +197 -0
- package/dist/packages/datadog-api-client-v2/apis/CSMAgentsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.js +245 -0
- package/dist/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.d.ts +0 -15
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js +0 -69
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DataDeletionApi.d.ts +104 -0
- package/dist/packages/datadog-api-client-v2/apis/DataDeletionApi.js +297 -0
- package/dist/packages/datadog-api-client-v2/apis/DataDeletionApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.d.ts +27 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +95 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +2 -2
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +22 -2
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +65 -3
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.d.ts +114 -0
- package/dist/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.js +398 -0
- package/dist/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.d.ts +19 -4
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +16 -2
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +799 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +2201 -373
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +1 -13
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.js +1 -0
- package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +297 -8
- package/dist/packages/datadog-api-client-v2/index.js +488 -37
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.d.ts +76 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.js +65 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequestData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequestData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountCreateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountPartition.d.ts +14 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountPartition.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountPartition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.d.ts +84 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.js +73 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponseData.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponseData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivityType.d.ts → AWSAccountType.d.ts} +3 -3
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivityType.js → AWSAccountType.js} +3 -3
- package/dist/packages/datadog-api-client-v2/models/AWSAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.d.ts +76 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.js +63 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountsResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountsResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAccountsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRole.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRole.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRole.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRoleType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRoleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRoleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRoleUpdate.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRoleUpdate.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAssumeRoleUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfig.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfig.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfigKeys.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfigKeys.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfigKeys.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfigRole.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfigRole.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSAuthConfigRole.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSCredentials.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSCredentials.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/AWSCredentials.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSCredentialsUpdate.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSCredentialsUpdate.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/AWSCredentialsUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegration.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegration.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegration.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationUpdate.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationUpdate.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsConfig.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsConfig.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivityResponse.d.ts → AWSLogsServicesResponseAttributes.d.ts} +4 -5
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AWSLogsServicesResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSMetricsConfig.d.ts +58 -0
- package/dist/packages/datadog-api-client-v2/models/AWSMetricsConfig.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/AWSMetricsConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFilters.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFilters.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFilters.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivityAttributes.d.ts → AWSNamespaceFiltersIncludeOnly.d.ts} +4 -4
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFiltersIncludeOnly.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceFiltersIncludeOnly.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNamespacesResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AWSNewExternalIDResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSRegions.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/AWSRegions.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/AWSRegions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSRegionsIncludeAll.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivityAttributes.js → AWSRegionsIncludeAll.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/AWSRegionsIncludeAll.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSRegionsIncludeOnly.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSRegionsIncludeOnly.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSRegionsIncludeOnly.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSResourcesConfig.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/AWSResourcesConfig.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/AWSResourcesConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSTracesConfig.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSTracesConfig.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/AWSTracesConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionAttributes.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionAttributesUpdate.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionAttributesUpdate.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionAttributesUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionDataUpdate.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionDataUpdate.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionDataUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionIntegration.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionIntegration.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionIntegration.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionIntegrationUpdate.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionIntegrationUpdate.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ActionConnectionIntegrationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Advisory.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/Advisory.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/Advisory.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEvent.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEvent.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEvent.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEventName.d.ts +20 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEventName.js +19 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEventName.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEventType.d.ts +18 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEventType.js +17 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEventType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppDefinitionType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AppDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AppDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppDeploymentType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AppDeploymentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AppDeploymentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppMeta.d.ts +68 -0
- package/dist/packages/datadog-api-client-v2/models/AppMeta.js +74 -0
- package/dist/packages/datadog-api-client-v2/models/AppMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppRelationship.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/AppRelationship.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/AppRelationship.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppsSortField.d.ts +18 -0
- package/dist/packages/datadog-api-client-v2/models/AppsSortField.js +17 -0
- package/dist/packages/datadog-api-client-v2/models/AppsSortField.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Asset.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivity.js → Asset.js} +14 -9
- package/dist/packages/datadog-api-client-v2/models/Asset.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AssetAttributes.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/models/AssetAttributes.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/AssetAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AssetEntityType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AssetEntityType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AssetEntityType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AssetOperatingSystem.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/AssetOperatingSystem.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AssetOperatingSystem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AssetRisks.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/AssetRisks.js +52 -0
- package/dist/packages/datadog-api-client-v2/models/AssetRisks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AssetType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/AssetType.js +14 -0
- package/dist/packages/datadog-api-client-v2/models/AssetType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AssetVersion.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/AssetVersion.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/AssetVersion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsAttributes.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsAttributes.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AwsScanOptionsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventFinishedPipeline.d.ts +125 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventFinishedPipeline.js +117 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventFinishedPipeline.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventInProgressPipeline.d.ts +120 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventInProgressPipeline.js +111 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventInProgressPipeline.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.d.ts +4 -117
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.js +0 -114
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineInProgressStatus.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineInProgressStatus.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipelineInProgressStatus.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CSMAgentsMetadata.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/CSMAgentsMetadata.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/CSMAgentsMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CSMAgentsType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CSMAgentsType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CSMAgentsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivity.d.ts → CVSS.d.ts} +11 -8
- package/dist/packages/datadog-api-client-v2/models/CVSS.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/CVSS.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CalculatedField.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/CalculatedField.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/CalculatedField.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CancelDataDeletionResponseBody.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CancelDataDeletionResponseBody.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/CancelDataDeletionResponseBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.d.ts +66 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthorType.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthorType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthorType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CodeLocation.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/CodeLocation.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/CodeLocation.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Component.d.ts +55 -0
- package/dist/packages/datadog-api-client-v2/models/Component.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/Component.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGrid.d.ts +55 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGrid.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGrid.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridProperties.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridProperties.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridProperties.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.d.ts +10 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.js +8 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentGridType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentProperties.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentProperties.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentProperties.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.d.ts +10 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.js +8 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentType.d.ts +30 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentType.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ComponentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsAttributes.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsAttributes.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ConvertJobResultsToSignalsRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateActionConnectionRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateActionConnectionRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/CreateActionConnectionRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateActionConnectionResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateActionConnectionResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CreateActionConnectionResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.d.ts +58 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponseData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponseData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBody.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBody.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyAttributes.d.ts +50 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyAttributes.js +52 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionResponseBody.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionResponseBody.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionResponseBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParameters.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParameters.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParameters.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersDataAttributes.d.ts +61 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersDataAttributes.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/CreateNotificationRuleParametersDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentsAttributes.d.ts +100 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentsAttributes.js +100 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentsResponse.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentsResponse.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/CsmAgentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisAttributes.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisAttributes.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisData.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCloudAccountsCoverageAnalysisResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCoverageAnalysis.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCoverageAnalysis.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/CsmCoverageAnalysis.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisAttributes.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisAttributes.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisData.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CsmHostsAndContainersCoverageAnalysisResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisAttributes.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisAttributes.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisData.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CsmServerlessCoverageAnalysisResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnection.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnection.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnection.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributes.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseItem.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseItem.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseItemAttributes.d.ts +84 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseItemAttributes.js +99 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseItemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseMeta.d.ts +56 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseMeta.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/DataDeletionResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponseData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponseData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DependencyLocation.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/DependencyLocation.js +60 -0
- package/dist/packages/datadog-api-client-v2/models/DependencyLocation.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Deployment.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/Deployment.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/Deployment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentMetadata.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentMetadata.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationship.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationship.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationship.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EPSS.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/EPSS.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/EPSS.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/EntityV3API.d.ts +60 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3API.js +53 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3API.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APIDatadog.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APIDatadog.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APIDatadog.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APIKind.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APIKind.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APIKind.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpec.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpec.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpec.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterface.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterface.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterface.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{EntityV3MetadataOwner.d.ts → EntityV3APISpecInterfaceDefinition.d.ts} +4 -4
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceDefinition.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceFileRef.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceFileRef.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3APISpecInterfaceFileRef.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EntityV3Metadata.d.ts +1 -2
- package/dist/packages/datadog-api-client-v2/models/EntityV3Metadata.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/EntityV3Metadata.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCategory.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventCategory.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/EventCategory.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/{CloudCostActivityResponse.js.map → EventCreateRequestPayload.js.map} +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponse.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponse.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayload.d.ts +65 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayload.js +57 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayloadAttributes.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayloadAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayloadAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GetActionConnectionResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GetActionConnectionResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/GetActionConnectionResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponse.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponse.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseData.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.d.ts +62 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.js +54 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.js.map +1 -0
- package/dist/packages/{datadog-api-client-v1/models/AzureAccountMetricsConfig.d.ts → datadog-api-client-v2/models/GetDataDeletionsResponseBody.d.ts} +10 -7
- package/dist/packages/datadog-api-client-v2/models/GetDataDeletionsResponseBody.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/GetDataDeletionsResponseBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GetSBOMResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GetSBOMResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/GetSBOMResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPBody.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPBody.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCredentials.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCredentials.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCredentials.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCredentialsUpdate.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCredentialsUpdate.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCredentialsUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPHeader.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPHeader.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPHeader.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPHeaderUpdate.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPHeaderUpdate.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPHeaderUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegration.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegration.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegration.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegrationType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegrationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegrationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegrationUpdate.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegrationUpdate.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPIntegrationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPToken.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPToken.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPToken.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuth.d.ts +57 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuth.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuth.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuthType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuthType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuthType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuthUpdate.d.ts +57 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuthUpdate.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenAuthUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenUpdate.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenUpdate.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPTokenUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobListMeta.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobListMeta.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobListMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobOptions.d.ts +70 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobOptions.js +57 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobOptions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobQuery.d.ts +61 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobQuery.js +54 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponseAttributes.d.ts +65 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponseAttributes.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponseData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JSONAPIErrorItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/JSONAPIErrorItem.js +8 -5
- package/dist/packages/datadog-api-client-v2/models/JSONAPIErrorItem.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JobCreateResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/JobCreateResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/JobCreateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JobCreateResponseData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/JobCreateResponseData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/JobCreateResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JobDefinition.d.ts +90 -0
- package/dist/packages/datadog-api-client-v2/models/JobDefinition.js +87 -0
- package/dist/packages/datadog-api-client-v2/models/JobDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.d.ts +56 -0
- package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.js +63 -0
- package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Library.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/Library.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/Library.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Links.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/Links.js +54 -0
- package/dist/packages/datadog-api-client-v2/models/Links.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponse.d.ts +47 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponse.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.d.ts +56 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMeta.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMeta.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListHistoricalJobsResponse.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/ListHistoricalJobsResponse.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ListHistoricalJobsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListVulnerabilitiesResponse.d.ts +47 -0
- package/dist/packages/datadog-api-client-v2/models/ListVulnerabilitiesResponse.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ListVulnerabilitiesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListVulnerableAssetsResponse.d.ts +47 -0
- package/dist/packages/datadog-api-client-v2/models/ListVulnerableAssetsResponse.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ListVulnerableAssetsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Metadata.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/Metadata.js +48 -0
- package/dist/packages/datadog-api-client-v2/models/Metadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricMetaPage.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/MetricMetaPage.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/MetricMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricMetaPageType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/MetricMetaPageType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricMetaPageType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricPaginationMeta.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MetricPaginationMeta.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/MetricPaginationMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurationsResponse.d.ts +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurationsResponse.js +8 -0
- package/dist/packages/datadog-api-client-v2/models/MetricsAndMetricTagConfigurationsResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsListResponseLinks.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/MetricsListResponseLinks.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/MetricsListResponseLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleAttributes.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponseData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandlesResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandlesResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookHandlesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookResponseAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookResponseAttributes.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/MicrosoftTeamsWorkflowsWebhookResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRule.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRule.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRule.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRuleAttributes.d.ts +82 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRuleAttributes.js +79 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRuleAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRuleResponse.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRuleResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRulesType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRulesType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/NotificationRulesType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +671 -12
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/OrderDirection.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/OrderDirection.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/OrderDirection.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParameters.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParameters.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParameters.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersData.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersDataAttributes.d.ts +65 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersDataAttributes.js +52 -0
- package/dist/packages/datadog-api-client-v2/models/PatchNotificationRuleParametersDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PublishAppResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/PublishAppResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/PublishAppResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Query.d.ts +54 -0
- package/dist/packages/datadog-api-client-v2/models/Query.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/Query.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/QueryType.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/QueryType.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/QueryType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Remediation.d.ts +65 -0
- package/dist/packages/datadog-api-client-v2/models/Remediation.js +66 -0
- package/dist/packages/datadog-api-client-v2/models/Remediation.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RuleSeverity.d.ts +16 -0
- package/dist/packages/datadog-api-client-v2/models/RuleSeverity.js +15 -0
- package/dist/packages/datadog-api-client-v2/models/RuleSeverity.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RuleTypesItems.d.ts +27 -0
- package/dist/packages/datadog-api-client-v2/models/RuleTypesItems.js +22 -0
- package/dist/packages/datadog-api-client-v2/models/RuleTypesItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RuleUser.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/{EntityV3MetadataOwner.js → RuleUser.js} +15 -7
- package/dist/packages/datadog-api-client-v2/models/RuleUser.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestAttributes.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RunHistoricalJobRequestDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOM.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/SBOM.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/SBOM.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.d.ts +59 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.js +57 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponent.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponent.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponent.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentType.d.ts +22 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentType.js +21 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadataComponent.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadataComponent.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadataComponent.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SLOReportInterval.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SLOReportInterval.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SLOReportInterval.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringReferenceTable.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringReferenceTable.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCaseCreate.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleEvaluationWindow.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleImpossibleTravelOptions.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleImpossibleTravelOptions.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleKeepAlive.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleNewValueOptions.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleThirdPartyOptions.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleThirdPartyOptions.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleUpdatePayload.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRulePayload.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRulePayload.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +5 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleTestPayload.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringThirdPartyRuleCaseCreate.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/Selectors.d.ts +54 -0
- package/dist/packages/datadog-api-client-v2/models/Selectors.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/Selectors.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpecVersion.d.ts +16 -0
- package/dist/packages/datadog-api-client-v2/models/SpecVersion.js +15 -0
- package/dist/packages/datadog-api-client-v2/models/SpecVersion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TokenType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/TokenType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/TokenType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TriggerSource.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/TriggerSource.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/TriggerSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UnpublishAppResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UnpublishAppResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/UnpublishAppResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateActionConnectionRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateActionConnectionRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateActionConnectionRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateActionConnectionResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateActionConnectionResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateActionConnectionResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.d.ts +58 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponse.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponse.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseData.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.d.ts +62 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.js +54 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UrlParam.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/UrlParam.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/UrlParam.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UrlParamUpdate.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/UrlParamUpdate.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/UrlParamUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilitiesType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilitiesType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilitiesType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Vulnerability.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/Vulnerability.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/Vulnerability.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.d.ts +122 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.js +121 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityCvss.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityCvss.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityCvss.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityDependencyLocations.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityDependencyLocations.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityDependencyLocations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityEcosystem.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityEcosystem.js +20 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityEcosystem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationships.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationships.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffects.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffects.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffects.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffectsData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffectsData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRelationshipsAffectsData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRisks.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRisks.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityRisks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilitySeverity.d.ts +16 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilitySeverity.js +15 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilitySeverity.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityStatus.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityStatus.js +14 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityStatus.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityTool.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityTool.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityTool.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityType.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityType.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesIncludeAll.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesIncludeAll.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesIncludeAll.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesIncludeOnly.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesIncludeOnly.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesIncludeOnly.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesList.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesList.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/XRayServicesList.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/packages/datadog-api-client-v1/models/AzureAccountMetricsConfig.js +0 -38
- package/dist/packages/datadog-api-client-v1/models/AzureAccountMetricsConfig.js.map +0 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsDeviceID.d.ts +0 -22
- package/dist/packages/datadog-api-client-v1/models/SyntheticsDeviceID.js +0 -21
- package/dist/packages/datadog-api-client-v1/models/SyntheticsDeviceID.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/CloudCostActivity.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/CloudCostActivityAttributes.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/CloudCostActivityResponse.js +0 -30
- package/dist/packages/datadog-api-client-v2/models/CloudCostActivityType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/EntityV3MetadataOwner.js.map +0 -1
|
@@ -31,6 +31,34 @@ const exception_1 = require("../../datadog-api-client-common/exception");
|
|
|
31
31
|
const SecurityMonitoringSignalListRequest_1 = require("../models/SecurityMonitoringSignalListRequest");
|
|
32
32
|
const SecurityMonitoringSignalListRequestPage_1 = require("../models/SecurityMonitoringSignalListRequestPage");
|
|
33
33
|
class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
34
|
+
cancelHistoricalJob(jobId, _options) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const _config = _options || this.configuration;
|
|
37
|
+
logger_1.logger.warn("Using unstable operation 'cancelHistoricalJob'");
|
|
38
|
+
if (!_config.unstableOperations["v2.cancelHistoricalJob"]) {
|
|
39
|
+
throw new Error("Unstable operation 'cancelHistoricalJob' is disabled");
|
|
40
|
+
}
|
|
41
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
42
|
+
if (jobId === null || jobId === undefined) {
|
|
43
|
+
throw new baseapi_1.RequiredError("jobId", "cancelHistoricalJob");
|
|
44
|
+
}
|
|
45
|
+
// Path Params
|
|
46
|
+
const localVarPath = "/api/v2/siem-historical-detections/jobs/{job_id}/cancel".replace("{job_id}", encodeURIComponent(String(jobId)));
|
|
47
|
+
// Make Request Context
|
|
48
|
+
const requestContext = _config
|
|
49
|
+
.getServer("v2.SecurityMonitoringApi.cancelHistoricalJob")
|
|
50
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
51
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
52
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
53
|
+
// Apply auth methods
|
|
54
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
55
|
+
"AuthZ",
|
|
56
|
+
"apiKeyAuth",
|
|
57
|
+
"appKeyAuth",
|
|
58
|
+
]);
|
|
59
|
+
return requestContext;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
34
62
|
convertExistingSecurityMonitoringRule(ruleId, _options) {
|
|
35
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
64
|
const _config = _options || this.configuration;
|
|
@@ -55,6 +83,40 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
55
83
|
return requestContext;
|
|
56
84
|
});
|
|
57
85
|
}
|
|
86
|
+
convertJobResultToSignal(body, _options) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
const _config = _options || this.configuration;
|
|
89
|
+
logger_1.logger.warn("Using unstable operation 'convertJobResultToSignal'");
|
|
90
|
+
if (!_config.unstableOperations["v2.convertJobResultToSignal"]) {
|
|
91
|
+
throw new Error("Unstable operation 'convertJobResultToSignal' is disabled");
|
|
92
|
+
}
|
|
93
|
+
// verify required parameter 'body' is not null or undefined
|
|
94
|
+
if (body === null || body === undefined) {
|
|
95
|
+
throw new baseapi_1.RequiredError("body", "convertJobResultToSignal");
|
|
96
|
+
}
|
|
97
|
+
// Path Params
|
|
98
|
+
const localVarPath = "/api/v2/siem-historical-detections/jobs/signal_convert";
|
|
99
|
+
// Make Request Context
|
|
100
|
+
const requestContext = _config
|
|
101
|
+
.getServer("v2.SecurityMonitoringApi.convertJobResultToSignal")
|
|
102
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
103
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
104
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
105
|
+
// Body Params
|
|
106
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
107
|
+
"application/json",
|
|
108
|
+
]);
|
|
109
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
110
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConvertJobResultsToSignalsRequest", ""), contentType);
|
|
111
|
+
requestContext.setBody(serializedBody);
|
|
112
|
+
// Apply auth methods
|
|
113
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
114
|
+
"apiKeyAuth",
|
|
115
|
+
"appKeyAuth",
|
|
116
|
+
]);
|
|
117
|
+
return requestContext;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
58
120
|
convertSecurityMonitoringRuleFromJSONToTerraform(body, _options) {
|
|
59
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
122
|
const _config = _options || this.configuration;
|
|
@@ -179,6 +241,96 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
179
241
|
return requestContext;
|
|
180
242
|
});
|
|
181
243
|
}
|
|
244
|
+
createSignalNotificationRule(body, _options) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const _config = _options || this.configuration;
|
|
247
|
+
// verify required parameter 'body' is not null or undefined
|
|
248
|
+
if (body === null || body === undefined) {
|
|
249
|
+
throw new baseapi_1.RequiredError("body", "createSignalNotificationRule");
|
|
250
|
+
}
|
|
251
|
+
// Path Params
|
|
252
|
+
const localVarPath = "/api/v2/security/signals/notification_rules";
|
|
253
|
+
// Make Request Context
|
|
254
|
+
const requestContext = _config
|
|
255
|
+
.getServer("v2.SecurityMonitoringApi.createSignalNotificationRule")
|
|
256
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
257
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
258
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
259
|
+
// Body Params
|
|
260
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
261
|
+
"application/json",
|
|
262
|
+
]);
|
|
263
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
264
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateNotificationRuleParameters", ""), contentType);
|
|
265
|
+
requestContext.setBody(serializedBody);
|
|
266
|
+
// Apply auth methods
|
|
267
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
268
|
+
"AuthZ",
|
|
269
|
+
"apiKeyAuth",
|
|
270
|
+
"appKeyAuth",
|
|
271
|
+
]);
|
|
272
|
+
return requestContext;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
createVulnerabilityNotificationRule(body, _options) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
const _config = _options || this.configuration;
|
|
278
|
+
// verify required parameter 'body' is not null or undefined
|
|
279
|
+
if (body === null || body === undefined) {
|
|
280
|
+
throw new baseapi_1.RequiredError("body", "createVulnerabilityNotificationRule");
|
|
281
|
+
}
|
|
282
|
+
// Path Params
|
|
283
|
+
const localVarPath = "/api/v2/security/vulnerabilities/notification_rules";
|
|
284
|
+
// Make Request Context
|
|
285
|
+
const requestContext = _config
|
|
286
|
+
.getServer("v2.SecurityMonitoringApi.createVulnerabilityNotificationRule")
|
|
287
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
288
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
289
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
290
|
+
// Body Params
|
|
291
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
292
|
+
"application/json",
|
|
293
|
+
]);
|
|
294
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
295
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateNotificationRuleParameters", ""), contentType);
|
|
296
|
+
requestContext.setBody(serializedBody);
|
|
297
|
+
// Apply auth methods
|
|
298
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
299
|
+
"AuthZ",
|
|
300
|
+
"apiKeyAuth",
|
|
301
|
+
"appKeyAuth",
|
|
302
|
+
]);
|
|
303
|
+
return requestContext;
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
deleteHistoricalJob(jobId, _options) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
const _config = _options || this.configuration;
|
|
309
|
+
logger_1.logger.warn("Using unstable operation 'deleteHistoricalJob'");
|
|
310
|
+
if (!_config.unstableOperations["v2.deleteHistoricalJob"]) {
|
|
311
|
+
throw new Error("Unstable operation 'deleteHistoricalJob' is disabled");
|
|
312
|
+
}
|
|
313
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
314
|
+
if (jobId === null || jobId === undefined) {
|
|
315
|
+
throw new baseapi_1.RequiredError("jobId", "deleteHistoricalJob");
|
|
316
|
+
}
|
|
317
|
+
// Path Params
|
|
318
|
+
const localVarPath = "/api/v2/siem-historical-detections/jobs/{job_id}".replace("{job_id}", encodeURIComponent(String(jobId)));
|
|
319
|
+
// Make Request Context
|
|
320
|
+
const requestContext = _config
|
|
321
|
+
.getServer("v2.SecurityMonitoringApi.deleteHistoricalJob")
|
|
322
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
323
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
324
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
325
|
+
// Apply auth methods
|
|
326
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
327
|
+
"AuthZ",
|
|
328
|
+
"apiKeyAuth",
|
|
329
|
+
"appKeyAuth",
|
|
330
|
+
]);
|
|
331
|
+
return requestContext;
|
|
332
|
+
});
|
|
333
|
+
}
|
|
182
334
|
deleteSecurityFilter(securityFilterId, _options) {
|
|
183
335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
336
|
const _config = _options || this.configuration;
|
|
@@ -251,6 +403,54 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
251
403
|
return requestContext;
|
|
252
404
|
});
|
|
253
405
|
}
|
|
406
|
+
deleteSignalNotificationRule(id, _options) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
const _config = _options || this.configuration;
|
|
409
|
+
// verify required parameter 'id' is not null or undefined
|
|
410
|
+
if (id === null || id === undefined) {
|
|
411
|
+
throw new baseapi_1.RequiredError("id", "deleteSignalNotificationRule");
|
|
412
|
+
}
|
|
413
|
+
// Path Params
|
|
414
|
+
const localVarPath = "/api/v2/security/signals/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
415
|
+
// Make Request Context
|
|
416
|
+
const requestContext = _config
|
|
417
|
+
.getServer("v2.SecurityMonitoringApi.deleteSignalNotificationRule")
|
|
418
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
419
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
420
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
421
|
+
// Apply auth methods
|
|
422
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
423
|
+
"AuthZ",
|
|
424
|
+
"apiKeyAuth",
|
|
425
|
+
"appKeyAuth",
|
|
426
|
+
]);
|
|
427
|
+
return requestContext;
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
deleteVulnerabilityNotificationRule(id, _options) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
const _config = _options || this.configuration;
|
|
433
|
+
// verify required parameter 'id' is not null or undefined
|
|
434
|
+
if (id === null || id === undefined) {
|
|
435
|
+
throw new baseapi_1.RequiredError("id", "deleteVulnerabilityNotificationRule");
|
|
436
|
+
}
|
|
437
|
+
// Path Params
|
|
438
|
+
const localVarPath = "/api/v2/security/vulnerabilities/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
439
|
+
// Make Request Context
|
|
440
|
+
const requestContext = _config
|
|
441
|
+
.getServer("v2.SecurityMonitoringApi.deleteVulnerabilityNotificationRule")
|
|
442
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
443
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
444
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
445
|
+
// Apply auth methods
|
|
446
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
447
|
+
"AuthZ",
|
|
448
|
+
"apiKeyAuth",
|
|
449
|
+
"appKeyAuth",
|
|
450
|
+
]);
|
|
451
|
+
return requestContext;
|
|
452
|
+
});
|
|
453
|
+
}
|
|
254
454
|
editSecurityMonitoringSignalAssignee(signalId, body, _options) {
|
|
255
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
456
|
const _config = _options || this.configuration;
|
|
@@ -385,6 +585,68 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
385
585
|
return requestContext;
|
|
386
586
|
});
|
|
387
587
|
}
|
|
588
|
+
getHistoricalJob(jobId, _options) {
|
|
589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
+
const _config = _options || this.configuration;
|
|
591
|
+
logger_1.logger.warn("Using unstable operation 'getHistoricalJob'");
|
|
592
|
+
if (!_config.unstableOperations["v2.getHistoricalJob"]) {
|
|
593
|
+
throw new Error("Unstable operation 'getHistoricalJob' is disabled");
|
|
594
|
+
}
|
|
595
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
596
|
+
if (jobId === null || jobId === undefined) {
|
|
597
|
+
throw new baseapi_1.RequiredError("jobId", "getHistoricalJob");
|
|
598
|
+
}
|
|
599
|
+
// Path Params
|
|
600
|
+
const localVarPath = "/api/v2/siem-historical-detections/jobs/{job_id}".replace("{job_id}", encodeURIComponent(String(jobId)));
|
|
601
|
+
// Make Request Context
|
|
602
|
+
const requestContext = _config
|
|
603
|
+
.getServer("v2.SecurityMonitoringApi.getHistoricalJob")
|
|
604
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
605
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
606
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
607
|
+
// Apply auth methods
|
|
608
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
609
|
+
"AuthZ",
|
|
610
|
+
"apiKeyAuth",
|
|
611
|
+
"appKeyAuth",
|
|
612
|
+
]);
|
|
613
|
+
return requestContext;
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
getSBOM(assetType, filterAssetName, filterRepoDigest, _options) {
|
|
617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
const _config = _options || this.configuration;
|
|
619
|
+
// verify required parameter 'assetType' is not null or undefined
|
|
620
|
+
if (assetType === null || assetType === undefined) {
|
|
621
|
+
throw new baseapi_1.RequiredError("assetType", "getSBOM");
|
|
622
|
+
}
|
|
623
|
+
// verify required parameter 'filterAssetName' is not null or undefined
|
|
624
|
+
if (filterAssetName === null || filterAssetName === undefined) {
|
|
625
|
+
throw new baseapi_1.RequiredError("filterAssetName", "getSBOM");
|
|
626
|
+
}
|
|
627
|
+
// Path Params
|
|
628
|
+
const localVarPath = "/api/v2/security/sboms/{asset_type}".replace("{asset_type}", encodeURIComponent(String(assetType)));
|
|
629
|
+
// Make Request Context
|
|
630
|
+
const requestContext = _config
|
|
631
|
+
.getServer("v2.SecurityMonitoringApi.getSBOM")
|
|
632
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
633
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
634
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
635
|
+
// Query Params
|
|
636
|
+
if (filterAssetName !== undefined) {
|
|
637
|
+
requestContext.setQueryParam("filter[asset_name]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetName, "string", ""), "");
|
|
638
|
+
}
|
|
639
|
+
if (filterRepoDigest !== undefined) {
|
|
640
|
+
requestContext.setQueryParam("filter[repo_digest]", ObjectSerializer_1.ObjectSerializer.serialize(filterRepoDigest, "string", ""), "");
|
|
641
|
+
}
|
|
642
|
+
// Apply auth methods
|
|
643
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
644
|
+
"apiKeyAuth",
|
|
645
|
+
"appKeyAuth",
|
|
646
|
+
]);
|
|
647
|
+
return requestContext;
|
|
648
|
+
});
|
|
649
|
+
}
|
|
388
650
|
getSecurityFilter(securityFilterId, _options) {
|
|
389
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
390
652
|
const _config = _options || this.configuration;
|
|
@@ -481,61 +743,21 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
481
743
|
return requestContext;
|
|
482
744
|
});
|
|
483
745
|
}
|
|
484
|
-
|
|
746
|
+
getSignalNotificationRule(id, _options) {
|
|
485
747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
486
748
|
const _config = _options || this.configuration;
|
|
487
|
-
|
|
488
|
-
if (
|
|
489
|
-
throw new
|
|
749
|
+
// verify required parameter 'id' is not null or undefined
|
|
750
|
+
if (id === null || id === undefined) {
|
|
751
|
+
throw new baseapi_1.RequiredError("id", "getSignalNotificationRule");
|
|
490
752
|
}
|
|
491
753
|
// Path Params
|
|
492
|
-
const localVarPath = "/api/v2/
|
|
754
|
+
const localVarPath = "/api/v2/security/signals/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
493
755
|
// Make Request Context
|
|
494
756
|
const requestContext = _config
|
|
495
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
757
|
+
.getServer("v2.SecurityMonitoringApi.getSignalNotificationRule")
|
|
496
758
|
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
497
759
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
498
760
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
499
|
-
// Query Params
|
|
500
|
-
if (pageLimit !== undefined) {
|
|
501
|
-
requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), "");
|
|
502
|
-
}
|
|
503
|
-
if (snapshotTimestamp !== undefined) {
|
|
504
|
-
requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer_1.ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), "");
|
|
505
|
-
}
|
|
506
|
-
if (pageCursor !== undefined) {
|
|
507
|
-
requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), "");
|
|
508
|
-
}
|
|
509
|
-
if (filterTags !== undefined) {
|
|
510
|
-
requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""), "");
|
|
511
|
-
}
|
|
512
|
-
if (filterEvaluationChangedAt !== undefined) {
|
|
513
|
-
requestContext.setQueryParam("filter[evaluation_changed_at]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluationChangedAt, "string", ""), "");
|
|
514
|
-
}
|
|
515
|
-
if (filterMuted !== undefined) {
|
|
516
|
-
requestContext.setQueryParam("filter[muted]", ObjectSerializer_1.ObjectSerializer.serialize(filterMuted, "boolean", ""), "");
|
|
517
|
-
}
|
|
518
|
-
if (filterRuleId !== undefined) {
|
|
519
|
-
requestContext.setQueryParam("filter[rule_id]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleId, "string", ""), "");
|
|
520
|
-
}
|
|
521
|
-
if (filterRuleName !== undefined) {
|
|
522
|
-
requestContext.setQueryParam("filter[rule_name]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleName, "string", ""), "");
|
|
523
|
-
}
|
|
524
|
-
if (filterResourceType !== undefined) {
|
|
525
|
-
requestContext.setQueryParam("filter[resource_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterResourceType, "string", ""), "");
|
|
526
|
-
}
|
|
527
|
-
if (filterDiscoveryTimestamp !== undefined) {
|
|
528
|
-
requestContext.setQueryParam("filter[discovery_timestamp]", ObjectSerializer_1.ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", ""), "");
|
|
529
|
-
}
|
|
530
|
-
if (filterEvaluation !== undefined) {
|
|
531
|
-
requestContext.setQueryParam("filter[evaluation]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", ""), "");
|
|
532
|
-
}
|
|
533
|
-
if (filterStatus !== undefined) {
|
|
534
|
-
requestContext.setQueryParam("filter[status]", ObjectSerializer_1.ObjectSerializer.serialize(filterStatus, "FindingStatus", ""), "");
|
|
535
|
-
}
|
|
536
|
-
if (filterVulnerabilityType !== undefined) {
|
|
537
|
-
requestContext.setQueryParam("filter[vulnerability_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterVulnerabilityType, "Array<FindingVulnerabilityType>", ""), "multi");
|
|
538
|
-
}
|
|
539
761
|
// Apply auth methods
|
|
540
762
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
541
763
|
"AuthZ",
|
|
@@ -545,14 +767,14 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
545
767
|
return requestContext;
|
|
546
768
|
});
|
|
547
769
|
}
|
|
548
|
-
|
|
770
|
+
getSignalNotificationRules(_options) {
|
|
549
771
|
return __awaiter(this, void 0, void 0, function* () {
|
|
550
772
|
const _config = _options || this.configuration;
|
|
551
773
|
// Path Params
|
|
552
|
-
const localVarPath = "/api/v2/
|
|
774
|
+
const localVarPath = "/api/v2/security/signals/notification_rules";
|
|
553
775
|
// Make Request Context
|
|
554
776
|
const requestContext = _config
|
|
555
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
777
|
+
.getServer("v2.SecurityMonitoringApi.getSignalNotificationRules")
|
|
556
778
|
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
557
779
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
558
780
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
@@ -565,24 +787,21 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
565
787
|
return requestContext;
|
|
566
788
|
});
|
|
567
789
|
}
|
|
568
|
-
|
|
790
|
+
getVulnerabilityNotificationRule(id, _options) {
|
|
569
791
|
return __awaiter(this, void 0, void 0, function* () {
|
|
570
792
|
const _config = _options || this.configuration;
|
|
793
|
+
// verify required parameter 'id' is not null or undefined
|
|
794
|
+
if (id === null || id === undefined) {
|
|
795
|
+
throw new baseapi_1.RequiredError("id", "getVulnerabilityNotificationRule");
|
|
796
|
+
}
|
|
571
797
|
// Path Params
|
|
572
|
-
const localVarPath = "/api/v2/
|
|
798
|
+
const localVarPath = "/api/v2/security/vulnerabilities/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
573
799
|
// Make Request Context
|
|
574
800
|
const requestContext = _config
|
|
575
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
801
|
+
.getServer("v2.SecurityMonitoringApi.getVulnerabilityNotificationRule")
|
|
576
802
|
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
577
803
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
578
804
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
579
|
-
// Query Params
|
|
580
|
-
if (pageSize !== undefined) {
|
|
581
|
-
requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), "");
|
|
582
|
-
}
|
|
583
|
-
if (pageNumber !== undefined) {
|
|
584
|
-
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), "");
|
|
585
|
-
}
|
|
586
805
|
// Apply auth methods
|
|
587
806
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
588
807
|
"AuthZ",
|
|
@@ -592,36 +811,17 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
592
811
|
return requestContext;
|
|
593
812
|
});
|
|
594
813
|
}
|
|
595
|
-
|
|
814
|
+
getVulnerabilityNotificationRules(_options) {
|
|
596
815
|
return __awaiter(this, void 0, void 0, function* () {
|
|
597
816
|
const _config = _options || this.configuration;
|
|
598
817
|
// Path Params
|
|
599
|
-
const localVarPath = "/api/v2/
|
|
818
|
+
const localVarPath = "/api/v2/security/vulnerabilities/notification_rules";
|
|
600
819
|
// Make Request Context
|
|
601
820
|
const requestContext = _config
|
|
602
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
821
|
+
.getServer("v2.SecurityMonitoringApi.getVulnerabilityNotificationRules")
|
|
603
822
|
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
604
823
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
605
824
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
606
|
-
// Query Params
|
|
607
|
-
if (filterQuery !== undefined) {
|
|
608
|
-
requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), "");
|
|
609
|
-
}
|
|
610
|
-
if (filterFrom !== undefined) {
|
|
611
|
-
requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), "");
|
|
612
|
-
}
|
|
613
|
-
if (filterTo !== undefined) {
|
|
614
|
-
requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), "");
|
|
615
|
-
}
|
|
616
|
-
if (sort !== undefined) {
|
|
617
|
-
requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "SecurityMonitoringSignalsSort", ""), "");
|
|
618
|
-
}
|
|
619
|
-
if (pageCursor !== undefined) {
|
|
620
|
-
requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), "");
|
|
621
|
-
}
|
|
622
|
-
if (pageLimit !== undefined) {
|
|
623
|
-
requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), "");
|
|
624
|
-
}
|
|
625
825
|
// Apply auth methods
|
|
626
826
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
627
827
|
"AuthZ",
|
|
@@ -631,17 +831,61 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
631
831
|
return requestContext;
|
|
632
832
|
});
|
|
633
833
|
}
|
|
634
|
-
|
|
834
|
+
listFindings(pageLimit, snapshotTimestamp, pageCursor, filterTags, filterEvaluationChangedAt, filterMuted, filterRuleId, filterRuleName, filterResourceType, filterDiscoveryTimestamp, filterEvaluation, filterStatus, filterVulnerabilityType, _options) {
|
|
635
835
|
return __awaiter(this, void 0, void 0, function* () {
|
|
636
836
|
const _config = _options || this.configuration;
|
|
837
|
+
logger_1.logger.warn("Using unstable operation 'listFindings'");
|
|
838
|
+
if (!_config.unstableOperations["v2.listFindings"]) {
|
|
839
|
+
throw new Error("Unstable operation 'listFindings' is disabled");
|
|
840
|
+
}
|
|
637
841
|
// Path Params
|
|
638
|
-
const localVarPath = "/api/v2/
|
|
842
|
+
const localVarPath = "/api/v2/posture_management/findings";
|
|
639
843
|
// Make Request Context
|
|
640
844
|
const requestContext = _config
|
|
641
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
845
|
+
.getServer("v2.SecurityMonitoringApi.listFindings")
|
|
642
846
|
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
643
847
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
644
848
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
849
|
+
// Query Params
|
|
850
|
+
if (pageLimit !== undefined) {
|
|
851
|
+
requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), "");
|
|
852
|
+
}
|
|
853
|
+
if (snapshotTimestamp !== undefined) {
|
|
854
|
+
requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer_1.ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), "");
|
|
855
|
+
}
|
|
856
|
+
if (pageCursor !== undefined) {
|
|
857
|
+
requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), "");
|
|
858
|
+
}
|
|
859
|
+
if (filterTags !== undefined) {
|
|
860
|
+
requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""), "");
|
|
861
|
+
}
|
|
862
|
+
if (filterEvaluationChangedAt !== undefined) {
|
|
863
|
+
requestContext.setQueryParam("filter[evaluation_changed_at]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluationChangedAt, "string", ""), "");
|
|
864
|
+
}
|
|
865
|
+
if (filterMuted !== undefined) {
|
|
866
|
+
requestContext.setQueryParam("filter[muted]", ObjectSerializer_1.ObjectSerializer.serialize(filterMuted, "boolean", ""), "");
|
|
867
|
+
}
|
|
868
|
+
if (filterRuleId !== undefined) {
|
|
869
|
+
requestContext.setQueryParam("filter[rule_id]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleId, "string", ""), "");
|
|
870
|
+
}
|
|
871
|
+
if (filterRuleName !== undefined) {
|
|
872
|
+
requestContext.setQueryParam("filter[rule_name]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleName, "string", ""), "");
|
|
873
|
+
}
|
|
874
|
+
if (filterResourceType !== undefined) {
|
|
875
|
+
requestContext.setQueryParam("filter[resource_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterResourceType, "string", ""), "");
|
|
876
|
+
}
|
|
877
|
+
if (filterDiscoveryTimestamp !== undefined) {
|
|
878
|
+
requestContext.setQueryParam("filter[discovery_timestamp]", ObjectSerializer_1.ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", ""), "");
|
|
879
|
+
}
|
|
880
|
+
if (filterEvaluation !== undefined) {
|
|
881
|
+
requestContext.setQueryParam("filter[evaluation]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", ""), "");
|
|
882
|
+
}
|
|
883
|
+
if (filterStatus !== undefined) {
|
|
884
|
+
requestContext.setQueryParam("filter[status]", ObjectSerializer_1.ObjectSerializer.serialize(filterStatus, "FindingStatus", ""), "");
|
|
885
|
+
}
|
|
886
|
+
if (filterVulnerabilityType !== undefined) {
|
|
887
|
+
requestContext.setQueryParam("filter[vulnerability_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterVulnerabilityType, "Array<FindingVulnerabilityType>", ""), "multi");
|
|
888
|
+
}
|
|
645
889
|
// Apply auth methods
|
|
646
890
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
647
891
|
"AuthZ",
|
|
@@ -651,58 +895,54 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
651
895
|
return requestContext;
|
|
652
896
|
});
|
|
653
897
|
}
|
|
654
|
-
|
|
898
|
+
listHistoricalJobs(pageSize, pageNumber, sort, filterQuery, _options) {
|
|
655
899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
656
900
|
const _config = _options || this.configuration;
|
|
657
|
-
logger_1.logger.warn("Using unstable operation '
|
|
658
|
-
if (!_config.unstableOperations["v2.
|
|
659
|
-
throw new Error("Unstable operation '
|
|
660
|
-
}
|
|
661
|
-
// verify required parameter 'body' is not null or undefined
|
|
662
|
-
if (body === null || body === undefined) {
|
|
663
|
-
throw new baseapi_1.RequiredError("body", "muteFindings");
|
|
901
|
+
logger_1.logger.warn("Using unstable operation 'listHistoricalJobs'");
|
|
902
|
+
if (!_config.unstableOperations["v2.listHistoricalJobs"]) {
|
|
903
|
+
throw new Error("Unstable operation 'listHistoricalJobs' is disabled");
|
|
664
904
|
}
|
|
665
905
|
// Path Params
|
|
666
|
-
const localVarPath = "/api/v2/
|
|
906
|
+
const localVarPath = "/api/v2/siem-historical-detections/jobs";
|
|
667
907
|
// Make Request Context
|
|
668
908
|
const requestContext = _config
|
|
669
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
670
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
909
|
+
.getServer("v2.SecurityMonitoringApi.listHistoricalJobs")
|
|
910
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
671
911
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
672
912
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
673
|
-
//
|
|
674
|
-
|
|
675
|
-
"
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
913
|
+
// Query Params
|
|
914
|
+
if (pageSize !== undefined) {
|
|
915
|
+
requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), "");
|
|
916
|
+
}
|
|
917
|
+
if (pageNumber !== undefined) {
|
|
918
|
+
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), "");
|
|
919
|
+
}
|
|
920
|
+
if (sort !== undefined) {
|
|
921
|
+
requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), "");
|
|
922
|
+
}
|
|
923
|
+
if (filterQuery !== undefined) {
|
|
924
|
+
requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), "");
|
|
925
|
+
}
|
|
680
926
|
// Apply auth methods
|
|
681
927
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
928
|
+
"AuthZ",
|
|
682
929
|
"apiKeyAuth",
|
|
683
930
|
"appKeyAuth",
|
|
684
931
|
]);
|
|
685
932
|
return requestContext;
|
|
686
933
|
});
|
|
687
934
|
}
|
|
688
|
-
|
|
935
|
+
listSecurityFilters(_options) {
|
|
689
936
|
return __awaiter(this, void 0, void 0, function* () {
|
|
690
937
|
const _config = _options || this.configuration;
|
|
691
938
|
// Path Params
|
|
692
|
-
const localVarPath = "/api/v2/security_monitoring/
|
|
939
|
+
const localVarPath = "/api/v2/security_monitoring/configuration/security_filters";
|
|
693
940
|
// Make Request Context
|
|
694
941
|
const requestContext = _config
|
|
695
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
696
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
942
|
+
.getServer("v2.SecurityMonitoringApi.listSecurityFilters")
|
|
943
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
697
944
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
698
945
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
699
|
-
// Body Params
|
|
700
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
701
|
-
"application/json",
|
|
702
|
-
]);
|
|
703
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
704
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalListRequest", ""), contentType);
|
|
705
|
-
requestContext.setBody(serializedBody);
|
|
706
946
|
// Apply auth methods
|
|
707
947
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
708
948
|
"AuthZ",
|
|
@@ -712,32 +952,24 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
712
952
|
return requestContext;
|
|
713
953
|
});
|
|
714
954
|
}
|
|
715
|
-
|
|
955
|
+
listSecurityMonitoringRules(pageSize, pageNumber, _options) {
|
|
716
956
|
return __awaiter(this, void 0, void 0, function* () {
|
|
717
957
|
const _config = _options || this.configuration;
|
|
718
|
-
// verify required parameter 'ruleId' is not null or undefined
|
|
719
|
-
if (ruleId === null || ruleId === undefined) {
|
|
720
|
-
throw new baseapi_1.RequiredError("ruleId", "testExistingSecurityMonitoringRule");
|
|
721
|
-
}
|
|
722
|
-
// verify required parameter 'body' is not null or undefined
|
|
723
|
-
if (body === null || body === undefined) {
|
|
724
|
-
throw new baseapi_1.RequiredError("body", "testExistingSecurityMonitoringRule");
|
|
725
|
-
}
|
|
726
958
|
// Path Params
|
|
727
|
-
const localVarPath = "/api/v2/security_monitoring/rules
|
|
959
|
+
const localVarPath = "/api/v2/security_monitoring/rules";
|
|
728
960
|
// Make Request Context
|
|
729
961
|
const requestContext = _config
|
|
730
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
731
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
962
|
+
.getServer("v2.SecurityMonitoringApi.listSecurityMonitoringRules")
|
|
963
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
732
964
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
733
965
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
734
|
-
//
|
|
735
|
-
|
|
736
|
-
"
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
966
|
+
// Query Params
|
|
967
|
+
if (pageSize !== undefined) {
|
|
968
|
+
requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), "");
|
|
969
|
+
}
|
|
970
|
+
if (pageNumber !== undefined) {
|
|
971
|
+
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), "");
|
|
972
|
+
}
|
|
741
973
|
// Apply auth methods
|
|
742
974
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
743
975
|
"AuthZ",
|
|
@@ -747,63 +979,36 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
747
979
|
return requestContext;
|
|
748
980
|
});
|
|
749
981
|
}
|
|
750
|
-
|
|
982
|
+
listSecurityMonitoringSignals(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) {
|
|
751
983
|
return __awaiter(this, void 0, void 0, function* () {
|
|
752
984
|
const _config = _options || this.configuration;
|
|
753
|
-
// verify required parameter 'body' is not null or undefined
|
|
754
|
-
if (body === null || body === undefined) {
|
|
755
|
-
throw new baseapi_1.RequiredError("body", "testSecurityMonitoringRule");
|
|
756
|
-
}
|
|
757
985
|
// Path Params
|
|
758
|
-
const localVarPath = "/api/v2/security_monitoring/
|
|
986
|
+
const localVarPath = "/api/v2/security_monitoring/signals";
|
|
759
987
|
// Make Request Context
|
|
760
988
|
const requestContext = _config
|
|
761
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
762
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
989
|
+
.getServer("v2.SecurityMonitoringApi.listSecurityMonitoringSignals")
|
|
990
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
763
991
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
764
992
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
765
|
-
//
|
|
766
|
-
|
|
767
|
-
"
|
|
768
|
-
]);
|
|
769
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
770
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleTestRequest", ""), contentType);
|
|
771
|
-
requestContext.setBody(serializedBody);
|
|
772
|
-
// Apply auth methods
|
|
773
|
-
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
774
|
-
"AuthZ",
|
|
775
|
-
"apiKeyAuth",
|
|
776
|
-
"appKeyAuth",
|
|
777
|
-
]);
|
|
778
|
-
return requestContext;
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
updateSecurityFilter(securityFilterId, body, _options) {
|
|
782
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
783
|
-
const _config = _options || this.configuration;
|
|
784
|
-
// verify required parameter 'securityFilterId' is not null or undefined
|
|
785
|
-
if (securityFilterId === null || securityFilterId === undefined) {
|
|
786
|
-
throw new baseapi_1.RequiredError("securityFilterId", "updateSecurityFilter");
|
|
993
|
+
// Query Params
|
|
994
|
+
if (filterQuery !== undefined) {
|
|
995
|
+
requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), "");
|
|
787
996
|
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
997
|
+
if (filterFrom !== undefined) {
|
|
998
|
+
requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), "");
|
|
999
|
+
}
|
|
1000
|
+
if (filterTo !== undefined) {
|
|
1001
|
+
requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), "");
|
|
1002
|
+
}
|
|
1003
|
+
if (sort !== undefined) {
|
|
1004
|
+
requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "SecurityMonitoringSignalsSort", ""), "");
|
|
1005
|
+
}
|
|
1006
|
+
if (pageCursor !== undefined) {
|
|
1007
|
+
requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), "");
|
|
1008
|
+
}
|
|
1009
|
+
if (pageLimit !== undefined) {
|
|
1010
|
+
requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), "");
|
|
791
1011
|
}
|
|
792
|
-
// Path Params
|
|
793
|
-
const localVarPath = "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace("{security_filter_id}", encodeURIComponent(String(securityFilterId)));
|
|
794
|
-
// Make Request Context
|
|
795
|
-
const requestContext = _config
|
|
796
|
-
.getServer("v2.SecurityMonitoringApi.updateSecurityFilter")
|
|
797
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
798
|
-
requestContext.setHeaderParam("Accept", "application/json");
|
|
799
|
-
requestContext.setHttpConfig(_config.httpConfig);
|
|
800
|
-
// Body Params
|
|
801
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
802
|
-
"application/json",
|
|
803
|
-
]);
|
|
804
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
805
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityFilterUpdateRequest", ""), contentType);
|
|
806
|
-
requestContext.setBody(serializedBody);
|
|
807
1012
|
// Apply auth methods
|
|
808
1013
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
809
1014
|
"AuthZ",
|
|
@@ -813,32 +1018,17 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
813
1018
|
return requestContext;
|
|
814
1019
|
});
|
|
815
1020
|
}
|
|
816
|
-
|
|
1021
|
+
listSecurityMonitoringSuppressions(_options) {
|
|
817
1022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
818
1023
|
const _config = _options || this.configuration;
|
|
819
|
-
// verify required parameter 'ruleId' is not null or undefined
|
|
820
|
-
if (ruleId === null || ruleId === undefined) {
|
|
821
|
-
throw new baseapi_1.RequiredError("ruleId", "updateSecurityMonitoringRule");
|
|
822
|
-
}
|
|
823
|
-
// verify required parameter 'body' is not null or undefined
|
|
824
|
-
if (body === null || body === undefined) {
|
|
825
|
-
throw new baseapi_1.RequiredError("body", "updateSecurityMonitoringRule");
|
|
826
|
-
}
|
|
827
1024
|
// Path Params
|
|
828
|
-
const localVarPath = "/api/v2/security_monitoring/
|
|
1025
|
+
const localVarPath = "/api/v2/security_monitoring/configuration/suppressions";
|
|
829
1026
|
// Make Request Context
|
|
830
1027
|
const requestContext = _config
|
|
831
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
832
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
1028
|
+
.getServer("v2.SecurityMonitoringApi.listSecurityMonitoringSuppressions")
|
|
1029
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
833
1030
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
834
1031
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
835
|
-
// Body Params
|
|
836
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
837
|
-
"application/json",
|
|
838
|
-
]);
|
|
839
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
840
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleUpdatePayload", ""), contentType);
|
|
841
|
-
requestContext.setBody(serializedBody);
|
|
842
1032
|
// Apply auth methods
|
|
843
1033
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
844
1034
|
"AuthZ",
|
|
@@ -848,31 +1038,273 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
848
1038
|
return requestContext;
|
|
849
1039
|
});
|
|
850
1040
|
}
|
|
851
|
-
|
|
1041
|
+
listVulnerabilities(pageToken, pageNumber, filterType, filterCvssBaseScoreOp, filterCvssBaseSeverity, filterCvssBaseVector, filterCvssDatadogScoreOp, filterCvssDatadogSeverity, filterCvssDatadogVector, filterStatus, filterTool, filterLibraryName, filterLibraryVersion, filterAdvisoryId, filterRisksExploitationProbability, filterRisksPocExploitAvailable, filterRisksExploitAvailable, filterRisksEpssScoreOp, filterRisksEpssSeverity, filterLanguage, filterEcosystem, filterCodeLocationLocation, filterCodeLocationFilePath, filterCodeLocationMethod, filterFixAvailable, filterRepoDigests, filterAssetName, filterAssetType, filterAssetVersionFirst, filterAssetVersionLast, filterAssetRepositoryUrl, filterAssetRisksInProduction, filterAssetRisksUnderAttack, filterAssetRisksIsPubliclyAccessible, filterAssetRisksHasPrivilegedAccess, filterAssetRisksHasAccessToSensitiveData, filterAssetEnvironments, filterAssetArch, filterAssetOperatingSystemName, filterAssetOperatingSystemVersion, _options) {
|
|
852
1042
|
return __awaiter(this, void 0, void 0, function* () {
|
|
853
1043
|
const _config = _options || this.configuration;
|
|
854
|
-
// verify required parameter 'suppressionId' is not null or undefined
|
|
855
|
-
if (suppressionId === null || suppressionId === undefined) {
|
|
856
|
-
throw new baseapi_1.RequiredError("suppressionId", "updateSecurityMonitoringSuppression");
|
|
857
|
-
}
|
|
858
|
-
// verify required parameter 'body' is not null or undefined
|
|
859
|
-
if (body === null || body === undefined) {
|
|
860
|
-
throw new baseapi_1.RequiredError("body", "updateSecurityMonitoringSuppression");
|
|
861
|
-
}
|
|
862
1044
|
// Path Params
|
|
863
|
-
const localVarPath = "/api/v2/
|
|
1045
|
+
const localVarPath = "/api/v2/security/vulnerabilities";
|
|
864
1046
|
// Make Request Context
|
|
865
1047
|
const requestContext = _config
|
|
866
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
867
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
1048
|
+
.getServer("v2.SecurityMonitoringApi.listVulnerabilities")
|
|
1049
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
868
1050
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
869
1051
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
870
|
-
//
|
|
871
|
-
|
|
872
|
-
"
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1052
|
+
// Query Params
|
|
1053
|
+
if (pageToken !== undefined) {
|
|
1054
|
+
requestContext.setQueryParam("page[token]", ObjectSerializer_1.ObjectSerializer.serialize(pageToken, "string", ""), "");
|
|
1055
|
+
}
|
|
1056
|
+
if (pageNumber !== undefined) {
|
|
1057
|
+
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), "");
|
|
1058
|
+
}
|
|
1059
|
+
if (filterType !== undefined) {
|
|
1060
|
+
requestContext.setQueryParam("filter[type]", ObjectSerializer_1.ObjectSerializer.serialize(filterType, "VulnerabilityType", ""), "");
|
|
1061
|
+
}
|
|
1062
|
+
if (filterCvssBaseScoreOp !== undefined) {
|
|
1063
|
+
requestContext.setQueryParam("filter[cvss.base.score][`$op`]", ObjectSerializer_1.ObjectSerializer.serialize(filterCvssBaseScoreOp, "number", "double"), "");
|
|
1064
|
+
}
|
|
1065
|
+
if (filterCvssBaseSeverity !== undefined) {
|
|
1066
|
+
requestContext.setQueryParam("filter[cvss.base.severity]", ObjectSerializer_1.ObjectSerializer.serialize(filterCvssBaseSeverity, "VulnerabilitySeverity", ""), "");
|
|
1067
|
+
}
|
|
1068
|
+
if (filterCvssBaseVector !== undefined) {
|
|
1069
|
+
requestContext.setQueryParam("filter[cvss.base.vector]", ObjectSerializer_1.ObjectSerializer.serialize(filterCvssBaseVector, "string", ""), "");
|
|
1070
|
+
}
|
|
1071
|
+
if (filterCvssDatadogScoreOp !== undefined) {
|
|
1072
|
+
requestContext.setQueryParam("filter[cvss.datadog.score][`$op`]", ObjectSerializer_1.ObjectSerializer.serialize(filterCvssDatadogScoreOp, "number", "double"), "");
|
|
1073
|
+
}
|
|
1074
|
+
if (filterCvssDatadogSeverity !== undefined) {
|
|
1075
|
+
requestContext.setQueryParam("filter[cvss.datadog.severity]", ObjectSerializer_1.ObjectSerializer.serialize(filterCvssDatadogSeverity, "VulnerabilitySeverity", ""), "");
|
|
1076
|
+
}
|
|
1077
|
+
if (filterCvssDatadogVector !== undefined) {
|
|
1078
|
+
requestContext.setQueryParam("filter[cvss.datadog.vector]", ObjectSerializer_1.ObjectSerializer.serialize(filterCvssDatadogVector, "string", ""), "");
|
|
1079
|
+
}
|
|
1080
|
+
if (filterStatus !== undefined) {
|
|
1081
|
+
requestContext.setQueryParam("filter[status]", ObjectSerializer_1.ObjectSerializer.serialize(filterStatus, "VulnerabilityStatus", ""), "");
|
|
1082
|
+
}
|
|
1083
|
+
if (filterTool !== undefined) {
|
|
1084
|
+
requestContext.setQueryParam("filter[tool]", ObjectSerializer_1.ObjectSerializer.serialize(filterTool, "VulnerabilityTool", ""), "");
|
|
1085
|
+
}
|
|
1086
|
+
if (filterLibraryName !== undefined) {
|
|
1087
|
+
requestContext.setQueryParam("filter[library.name]", ObjectSerializer_1.ObjectSerializer.serialize(filterLibraryName, "string", ""), "");
|
|
1088
|
+
}
|
|
1089
|
+
if (filterLibraryVersion !== undefined) {
|
|
1090
|
+
requestContext.setQueryParam("filter[library.version]", ObjectSerializer_1.ObjectSerializer.serialize(filterLibraryVersion, "string", ""), "");
|
|
1091
|
+
}
|
|
1092
|
+
if (filterAdvisoryId !== undefined) {
|
|
1093
|
+
requestContext.setQueryParam("filter[advisory_id]", ObjectSerializer_1.ObjectSerializer.serialize(filterAdvisoryId, "string", ""), "");
|
|
1094
|
+
}
|
|
1095
|
+
if (filterRisksExploitationProbability !== undefined) {
|
|
1096
|
+
requestContext.setQueryParam("filter[risks.exploitation_probability]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksExploitationProbability, "boolean", ""), "");
|
|
1097
|
+
}
|
|
1098
|
+
if (filterRisksPocExploitAvailable !== undefined) {
|
|
1099
|
+
requestContext.setQueryParam("filter[risks.poc_exploit_available]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksPocExploitAvailable, "boolean", ""), "");
|
|
1100
|
+
}
|
|
1101
|
+
if (filterRisksExploitAvailable !== undefined) {
|
|
1102
|
+
requestContext.setQueryParam("filter[risks.exploit_available]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksExploitAvailable, "boolean", ""), "");
|
|
1103
|
+
}
|
|
1104
|
+
if (filterRisksEpssScoreOp !== undefined) {
|
|
1105
|
+
requestContext.setQueryParam("filter[risks.epss.score][`$op`]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksEpssScoreOp, "number", "double"), "");
|
|
1106
|
+
}
|
|
1107
|
+
if (filterRisksEpssSeverity !== undefined) {
|
|
1108
|
+
requestContext.setQueryParam("filter[risks.epss.severity]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksEpssSeverity, "VulnerabilitySeverity", ""), "");
|
|
1109
|
+
}
|
|
1110
|
+
if (filterLanguage !== undefined) {
|
|
1111
|
+
requestContext.setQueryParam("filter[language]", ObjectSerializer_1.ObjectSerializer.serialize(filterLanguage, "string", ""), "");
|
|
1112
|
+
}
|
|
1113
|
+
if (filterEcosystem !== undefined) {
|
|
1114
|
+
requestContext.setQueryParam("filter[ecosystem]", ObjectSerializer_1.ObjectSerializer.serialize(filterEcosystem, "VulnerabilityEcosystem", ""), "");
|
|
1115
|
+
}
|
|
1116
|
+
if (filterCodeLocationLocation !== undefined) {
|
|
1117
|
+
requestContext.setQueryParam("filter[code_location.location]", ObjectSerializer_1.ObjectSerializer.serialize(filterCodeLocationLocation, "string", ""), "");
|
|
1118
|
+
}
|
|
1119
|
+
if (filterCodeLocationFilePath !== undefined) {
|
|
1120
|
+
requestContext.setQueryParam("filter[code_location.file_path]", ObjectSerializer_1.ObjectSerializer.serialize(filterCodeLocationFilePath, "string", ""), "");
|
|
1121
|
+
}
|
|
1122
|
+
if (filterCodeLocationMethod !== undefined) {
|
|
1123
|
+
requestContext.setQueryParam("filter[code_location.method]", ObjectSerializer_1.ObjectSerializer.serialize(filterCodeLocationMethod, "string", ""), "");
|
|
1124
|
+
}
|
|
1125
|
+
if (filterFixAvailable !== undefined) {
|
|
1126
|
+
requestContext.setQueryParam("filter[fix_available]", ObjectSerializer_1.ObjectSerializer.serialize(filterFixAvailable, "boolean", ""), "");
|
|
1127
|
+
}
|
|
1128
|
+
if (filterRepoDigests !== undefined) {
|
|
1129
|
+
requestContext.setQueryParam("filter[repo_digests]", ObjectSerializer_1.ObjectSerializer.serialize(filterRepoDigests, "string", ""), "");
|
|
1130
|
+
}
|
|
1131
|
+
if (filterAssetName !== undefined) {
|
|
1132
|
+
requestContext.setQueryParam("filter[asset.name]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetName, "string", ""), "");
|
|
1133
|
+
}
|
|
1134
|
+
if (filterAssetType !== undefined) {
|
|
1135
|
+
requestContext.setQueryParam("filter[asset.type]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetType, "AssetType", ""), "");
|
|
1136
|
+
}
|
|
1137
|
+
if (filterAssetVersionFirst !== undefined) {
|
|
1138
|
+
requestContext.setQueryParam("filter[asset.version.first]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetVersionFirst, "string", ""), "");
|
|
1139
|
+
}
|
|
1140
|
+
if (filterAssetVersionLast !== undefined) {
|
|
1141
|
+
requestContext.setQueryParam("filter[asset.version.last]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetVersionLast, "string", ""), "");
|
|
1142
|
+
}
|
|
1143
|
+
if (filterAssetRepositoryUrl !== undefined) {
|
|
1144
|
+
requestContext.setQueryParam("filter[asset.repository_url]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetRepositoryUrl, "string", ""), "");
|
|
1145
|
+
}
|
|
1146
|
+
if (filterAssetRisksInProduction !== undefined) {
|
|
1147
|
+
requestContext.setQueryParam("filter[asset.risks.in_production]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetRisksInProduction, "boolean", ""), "");
|
|
1148
|
+
}
|
|
1149
|
+
if (filterAssetRisksUnderAttack !== undefined) {
|
|
1150
|
+
requestContext.setQueryParam("filter[asset.risks.under_attack]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetRisksUnderAttack, "boolean", ""), "");
|
|
1151
|
+
}
|
|
1152
|
+
if (filterAssetRisksIsPubliclyAccessible !== undefined) {
|
|
1153
|
+
requestContext.setQueryParam("filter[asset.risks.is_publicly_accessible]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetRisksIsPubliclyAccessible, "boolean", ""), "");
|
|
1154
|
+
}
|
|
1155
|
+
if (filterAssetRisksHasPrivilegedAccess !== undefined) {
|
|
1156
|
+
requestContext.setQueryParam("filter[asset.risks.has_privileged_access]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetRisksHasPrivilegedAccess, "boolean", ""), "");
|
|
1157
|
+
}
|
|
1158
|
+
if (filterAssetRisksHasAccessToSensitiveData !== undefined) {
|
|
1159
|
+
requestContext.setQueryParam("filter[asset.risks.has_access_to_sensitive_data]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetRisksHasAccessToSensitiveData, "boolean", ""), "");
|
|
1160
|
+
}
|
|
1161
|
+
if (filterAssetEnvironments !== undefined) {
|
|
1162
|
+
requestContext.setQueryParam("filter[asset.environments]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetEnvironments, "string", ""), "");
|
|
1163
|
+
}
|
|
1164
|
+
if (filterAssetArch !== undefined) {
|
|
1165
|
+
requestContext.setQueryParam("filter[asset.arch]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetArch, "string", ""), "");
|
|
1166
|
+
}
|
|
1167
|
+
if (filterAssetOperatingSystemName !== undefined) {
|
|
1168
|
+
requestContext.setQueryParam("filter[asset.operating_system.name]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetOperatingSystemName, "string", ""), "");
|
|
1169
|
+
}
|
|
1170
|
+
if (filterAssetOperatingSystemVersion !== undefined) {
|
|
1171
|
+
requestContext.setQueryParam("filter[asset.operating_system.version]", ObjectSerializer_1.ObjectSerializer.serialize(filterAssetOperatingSystemVersion, "string", ""), "");
|
|
1172
|
+
}
|
|
1173
|
+
// Apply auth methods
|
|
1174
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1175
|
+
"apiKeyAuth",
|
|
1176
|
+
"appKeyAuth",
|
|
1177
|
+
]);
|
|
1178
|
+
return requestContext;
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
listVulnerableAssets(pageToken, pageNumber, filterName, filterType, filterVersionFirst, filterVersionLast, filterRepositoryUrl, filterRisksInProduction, filterRisksUnderAttack, filterRisksIsPubliclyAccessible, filterRisksHasPrivilegedAccess, filterRisksHasAccessToSensitiveData, filterEnvironments, filterArch, filterOperatingSystemName, filterOperatingSystemVersion, _options) {
|
|
1182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
|
+
const _config = _options || this.configuration;
|
|
1184
|
+
// Path Params
|
|
1185
|
+
const localVarPath = "/api/v2/security/assets";
|
|
1186
|
+
// Make Request Context
|
|
1187
|
+
const requestContext = _config
|
|
1188
|
+
.getServer("v2.SecurityMonitoringApi.listVulnerableAssets")
|
|
1189
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1190
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1191
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1192
|
+
// Query Params
|
|
1193
|
+
if (pageToken !== undefined) {
|
|
1194
|
+
requestContext.setQueryParam("page[token]", ObjectSerializer_1.ObjectSerializer.serialize(pageToken, "string", ""), "");
|
|
1195
|
+
}
|
|
1196
|
+
if (pageNumber !== undefined) {
|
|
1197
|
+
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), "");
|
|
1198
|
+
}
|
|
1199
|
+
if (filterName !== undefined) {
|
|
1200
|
+
requestContext.setQueryParam("filter[name]", ObjectSerializer_1.ObjectSerializer.serialize(filterName, "string", ""), "");
|
|
1201
|
+
}
|
|
1202
|
+
if (filterType !== undefined) {
|
|
1203
|
+
requestContext.setQueryParam("filter[type]", ObjectSerializer_1.ObjectSerializer.serialize(filterType, "AssetType", ""), "");
|
|
1204
|
+
}
|
|
1205
|
+
if (filterVersionFirst !== undefined) {
|
|
1206
|
+
requestContext.setQueryParam("filter[version.first]", ObjectSerializer_1.ObjectSerializer.serialize(filterVersionFirst, "string", ""), "");
|
|
1207
|
+
}
|
|
1208
|
+
if (filterVersionLast !== undefined) {
|
|
1209
|
+
requestContext.setQueryParam("filter[version.last]", ObjectSerializer_1.ObjectSerializer.serialize(filterVersionLast, "string", ""), "");
|
|
1210
|
+
}
|
|
1211
|
+
if (filterRepositoryUrl !== undefined) {
|
|
1212
|
+
requestContext.setQueryParam("filter[repository_url]", ObjectSerializer_1.ObjectSerializer.serialize(filterRepositoryUrl, "string", ""), "");
|
|
1213
|
+
}
|
|
1214
|
+
if (filterRisksInProduction !== undefined) {
|
|
1215
|
+
requestContext.setQueryParam("filter[risks.in_production]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksInProduction, "boolean", ""), "");
|
|
1216
|
+
}
|
|
1217
|
+
if (filterRisksUnderAttack !== undefined) {
|
|
1218
|
+
requestContext.setQueryParam("filter[risks.under_attack]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksUnderAttack, "boolean", ""), "");
|
|
1219
|
+
}
|
|
1220
|
+
if (filterRisksIsPubliclyAccessible !== undefined) {
|
|
1221
|
+
requestContext.setQueryParam("filter[risks.is_publicly_accessible]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksIsPubliclyAccessible, "boolean", ""), "");
|
|
1222
|
+
}
|
|
1223
|
+
if (filterRisksHasPrivilegedAccess !== undefined) {
|
|
1224
|
+
requestContext.setQueryParam("filter[risks.has_privileged_access]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksHasPrivilegedAccess, "boolean", ""), "");
|
|
1225
|
+
}
|
|
1226
|
+
if (filterRisksHasAccessToSensitiveData !== undefined) {
|
|
1227
|
+
requestContext.setQueryParam("filter[risks.has_access_to_sensitive_data]", ObjectSerializer_1.ObjectSerializer.serialize(filterRisksHasAccessToSensitiveData, "boolean", ""), "");
|
|
1228
|
+
}
|
|
1229
|
+
if (filterEnvironments !== undefined) {
|
|
1230
|
+
requestContext.setQueryParam("filter[environments]", ObjectSerializer_1.ObjectSerializer.serialize(filterEnvironments, "string", ""), "");
|
|
1231
|
+
}
|
|
1232
|
+
if (filterArch !== undefined) {
|
|
1233
|
+
requestContext.setQueryParam("filter[arch]", ObjectSerializer_1.ObjectSerializer.serialize(filterArch, "string", ""), "");
|
|
1234
|
+
}
|
|
1235
|
+
if (filterOperatingSystemName !== undefined) {
|
|
1236
|
+
requestContext.setQueryParam("filter[operating_system.name]", ObjectSerializer_1.ObjectSerializer.serialize(filterOperatingSystemName, "string", ""), "");
|
|
1237
|
+
}
|
|
1238
|
+
if (filterOperatingSystemVersion !== undefined) {
|
|
1239
|
+
requestContext.setQueryParam("filter[operating_system.version]", ObjectSerializer_1.ObjectSerializer.serialize(filterOperatingSystemVersion, "string", ""), "");
|
|
1240
|
+
}
|
|
1241
|
+
// Apply auth methods
|
|
1242
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1243
|
+
"apiKeyAuth",
|
|
1244
|
+
"appKeyAuth",
|
|
1245
|
+
]);
|
|
1246
|
+
return requestContext;
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
muteFindings(body, _options) {
|
|
1250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1251
|
+
const _config = _options || this.configuration;
|
|
1252
|
+
logger_1.logger.warn("Using unstable operation 'muteFindings'");
|
|
1253
|
+
if (!_config.unstableOperations["v2.muteFindings"]) {
|
|
1254
|
+
throw new Error("Unstable operation 'muteFindings' is disabled");
|
|
1255
|
+
}
|
|
1256
|
+
// verify required parameter 'body' is not null or undefined
|
|
1257
|
+
if (body === null || body === undefined) {
|
|
1258
|
+
throw new baseapi_1.RequiredError("body", "muteFindings");
|
|
1259
|
+
}
|
|
1260
|
+
// Path Params
|
|
1261
|
+
const localVarPath = "/api/v2/posture_management/findings";
|
|
1262
|
+
// Make Request Context
|
|
1263
|
+
const requestContext = _config
|
|
1264
|
+
.getServer("v2.SecurityMonitoringApi.muteFindings")
|
|
1265
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1266
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1267
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1268
|
+
// Body Params
|
|
1269
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1270
|
+
"application/json",
|
|
1271
|
+
]);
|
|
1272
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1273
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "BulkMuteFindingsRequest", ""), contentType);
|
|
1274
|
+
requestContext.setBody(serializedBody);
|
|
1275
|
+
// Apply auth methods
|
|
1276
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1277
|
+
"apiKeyAuth",
|
|
1278
|
+
"appKeyAuth",
|
|
1279
|
+
]);
|
|
1280
|
+
return requestContext;
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
patchSignalNotificationRule(id, body, _options) {
|
|
1284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1285
|
+
const _config = _options || this.configuration;
|
|
1286
|
+
// verify required parameter 'id' is not null or undefined
|
|
1287
|
+
if (id === null || id === undefined) {
|
|
1288
|
+
throw new baseapi_1.RequiredError("id", "patchSignalNotificationRule");
|
|
1289
|
+
}
|
|
1290
|
+
// verify required parameter 'body' is not null or undefined
|
|
1291
|
+
if (body === null || body === undefined) {
|
|
1292
|
+
throw new baseapi_1.RequiredError("body", "patchSignalNotificationRule");
|
|
1293
|
+
}
|
|
1294
|
+
// Path Params
|
|
1295
|
+
const localVarPath = "/api/v2/security/signals/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
1296
|
+
// Make Request Context
|
|
1297
|
+
const requestContext = _config
|
|
1298
|
+
.getServer("v2.SecurityMonitoringApi.patchSignalNotificationRule")
|
|
1299
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1300
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1301
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1302
|
+
// Body Params
|
|
1303
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1304
|
+
"application/json",
|
|
1305
|
+
]);
|
|
1306
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1307
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "PatchNotificationRuleParameters", ""), contentType);
|
|
876
1308
|
requestContext.setBody(serializedBody);
|
|
877
1309
|
// Apply auth methods
|
|
878
1310
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
@@ -883,52 +1315,1032 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
883
1315
|
return requestContext;
|
|
884
1316
|
});
|
|
885
1317
|
}
|
|
886
|
-
|
|
1318
|
+
patchVulnerabilityNotificationRule(id, body, _options) {
|
|
887
1319
|
return __awaiter(this, void 0, void 0, function* () {
|
|
888
1320
|
const _config = _options || this.configuration;
|
|
1321
|
+
// verify required parameter 'id' is not null or undefined
|
|
1322
|
+
if (id === null || id === undefined) {
|
|
1323
|
+
throw new baseapi_1.RequiredError("id", "patchVulnerabilityNotificationRule");
|
|
1324
|
+
}
|
|
889
1325
|
// verify required parameter 'body' is not null or undefined
|
|
890
1326
|
if (body === null || body === undefined) {
|
|
891
|
-
throw new baseapi_1.RequiredError("body", "
|
|
1327
|
+
throw new baseapi_1.RequiredError("body", "patchVulnerabilityNotificationRule");
|
|
1328
|
+
}
|
|
1329
|
+
// Path Params
|
|
1330
|
+
const localVarPath = "/api/v2/security/vulnerabilities/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
1331
|
+
// Make Request Context
|
|
1332
|
+
const requestContext = _config
|
|
1333
|
+
.getServer("v2.SecurityMonitoringApi.patchVulnerabilityNotificationRule")
|
|
1334
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1335
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1336
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1337
|
+
// Body Params
|
|
1338
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1339
|
+
"application/json",
|
|
1340
|
+
]);
|
|
1341
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1342
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "PatchNotificationRuleParameters", ""), contentType);
|
|
1343
|
+
requestContext.setBody(serializedBody);
|
|
1344
|
+
// Apply auth methods
|
|
1345
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1346
|
+
"AuthZ",
|
|
1347
|
+
"apiKeyAuth",
|
|
1348
|
+
"appKeyAuth",
|
|
1349
|
+
]);
|
|
1350
|
+
return requestContext;
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
runHistoricalJob(body, _options) {
|
|
1354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1355
|
+
const _config = _options || this.configuration;
|
|
1356
|
+
logger_1.logger.warn("Using unstable operation 'runHistoricalJob'");
|
|
1357
|
+
if (!_config.unstableOperations["v2.runHistoricalJob"]) {
|
|
1358
|
+
throw new Error("Unstable operation 'runHistoricalJob' is disabled");
|
|
1359
|
+
}
|
|
1360
|
+
// verify required parameter 'body' is not null or undefined
|
|
1361
|
+
if (body === null || body === undefined) {
|
|
1362
|
+
throw new baseapi_1.RequiredError("body", "runHistoricalJob");
|
|
1363
|
+
}
|
|
1364
|
+
// Path Params
|
|
1365
|
+
const localVarPath = "/api/v2/siem-historical-detections/jobs";
|
|
1366
|
+
// Make Request Context
|
|
1367
|
+
const requestContext = _config
|
|
1368
|
+
.getServer("v2.SecurityMonitoringApi.runHistoricalJob")
|
|
1369
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1370
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1371
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1372
|
+
// Body Params
|
|
1373
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1374
|
+
"application/json",
|
|
1375
|
+
]);
|
|
1376
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1377
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RunHistoricalJobRequest", ""), contentType);
|
|
1378
|
+
requestContext.setBody(serializedBody);
|
|
1379
|
+
// Apply auth methods
|
|
1380
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1381
|
+
"AuthZ",
|
|
1382
|
+
"apiKeyAuth",
|
|
1383
|
+
"appKeyAuth",
|
|
1384
|
+
]);
|
|
1385
|
+
return requestContext;
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
searchSecurityMonitoringSignals(body, _options) {
|
|
1389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1390
|
+
const _config = _options || this.configuration;
|
|
1391
|
+
// Path Params
|
|
1392
|
+
const localVarPath = "/api/v2/security_monitoring/signals/search";
|
|
1393
|
+
// Make Request Context
|
|
1394
|
+
const requestContext = _config
|
|
1395
|
+
.getServer("v2.SecurityMonitoringApi.searchSecurityMonitoringSignals")
|
|
1396
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1397
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1398
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1399
|
+
// Body Params
|
|
1400
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1401
|
+
"application/json",
|
|
1402
|
+
]);
|
|
1403
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1404
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalListRequest", ""), contentType);
|
|
1405
|
+
requestContext.setBody(serializedBody);
|
|
1406
|
+
// Apply auth methods
|
|
1407
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1408
|
+
"AuthZ",
|
|
1409
|
+
"apiKeyAuth",
|
|
1410
|
+
"appKeyAuth",
|
|
1411
|
+
]);
|
|
1412
|
+
return requestContext;
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
testExistingSecurityMonitoringRule(ruleId, body, _options) {
|
|
1416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1417
|
+
const _config = _options || this.configuration;
|
|
1418
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
1419
|
+
if (ruleId === null || ruleId === undefined) {
|
|
1420
|
+
throw new baseapi_1.RequiredError("ruleId", "testExistingSecurityMonitoringRule");
|
|
1421
|
+
}
|
|
1422
|
+
// verify required parameter 'body' is not null or undefined
|
|
1423
|
+
if (body === null || body === undefined) {
|
|
1424
|
+
throw new baseapi_1.RequiredError("body", "testExistingSecurityMonitoringRule");
|
|
1425
|
+
}
|
|
1426
|
+
// Path Params
|
|
1427
|
+
const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}/test".replace("{rule_id}", encodeURIComponent(String(ruleId)));
|
|
1428
|
+
// Make Request Context
|
|
1429
|
+
const requestContext = _config
|
|
1430
|
+
.getServer("v2.SecurityMonitoringApi.testExistingSecurityMonitoringRule")
|
|
1431
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1432
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1433
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1434
|
+
// Body Params
|
|
1435
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1436
|
+
"application/json",
|
|
1437
|
+
]);
|
|
1438
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1439
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleTestRequest", ""), contentType);
|
|
1440
|
+
requestContext.setBody(serializedBody);
|
|
1441
|
+
// Apply auth methods
|
|
1442
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1443
|
+
"AuthZ",
|
|
1444
|
+
"apiKeyAuth",
|
|
1445
|
+
"appKeyAuth",
|
|
1446
|
+
]);
|
|
1447
|
+
return requestContext;
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
testSecurityMonitoringRule(body, _options) {
|
|
1451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1452
|
+
const _config = _options || this.configuration;
|
|
1453
|
+
// verify required parameter 'body' is not null or undefined
|
|
1454
|
+
if (body === null || body === undefined) {
|
|
1455
|
+
throw new baseapi_1.RequiredError("body", "testSecurityMonitoringRule");
|
|
1456
|
+
}
|
|
1457
|
+
// Path Params
|
|
1458
|
+
const localVarPath = "/api/v2/security_monitoring/rules/test";
|
|
1459
|
+
// Make Request Context
|
|
1460
|
+
const requestContext = _config
|
|
1461
|
+
.getServer("v2.SecurityMonitoringApi.testSecurityMonitoringRule")
|
|
1462
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1463
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1464
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1465
|
+
// Body Params
|
|
1466
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1467
|
+
"application/json",
|
|
1468
|
+
]);
|
|
1469
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1470
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleTestRequest", ""), contentType);
|
|
1471
|
+
requestContext.setBody(serializedBody);
|
|
1472
|
+
// Apply auth methods
|
|
1473
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1474
|
+
"AuthZ",
|
|
1475
|
+
"apiKeyAuth",
|
|
1476
|
+
"appKeyAuth",
|
|
1477
|
+
]);
|
|
1478
|
+
return requestContext;
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
updateSecurityFilter(securityFilterId, body, _options) {
|
|
1482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1483
|
+
const _config = _options || this.configuration;
|
|
1484
|
+
// verify required parameter 'securityFilterId' is not null or undefined
|
|
1485
|
+
if (securityFilterId === null || securityFilterId === undefined) {
|
|
1486
|
+
throw new baseapi_1.RequiredError("securityFilterId", "updateSecurityFilter");
|
|
1487
|
+
}
|
|
1488
|
+
// verify required parameter 'body' is not null or undefined
|
|
1489
|
+
if (body === null || body === undefined) {
|
|
1490
|
+
throw new baseapi_1.RequiredError("body", "updateSecurityFilter");
|
|
1491
|
+
}
|
|
1492
|
+
// Path Params
|
|
1493
|
+
const localVarPath = "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace("{security_filter_id}", encodeURIComponent(String(securityFilterId)));
|
|
1494
|
+
// Make Request Context
|
|
1495
|
+
const requestContext = _config
|
|
1496
|
+
.getServer("v2.SecurityMonitoringApi.updateSecurityFilter")
|
|
1497
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1498
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1499
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1500
|
+
// Body Params
|
|
1501
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1502
|
+
"application/json",
|
|
1503
|
+
]);
|
|
1504
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1505
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityFilterUpdateRequest", ""), contentType);
|
|
1506
|
+
requestContext.setBody(serializedBody);
|
|
1507
|
+
// Apply auth methods
|
|
1508
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1509
|
+
"AuthZ",
|
|
1510
|
+
"apiKeyAuth",
|
|
1511
|
+
"appKeyAuth",
|
|
1512
|
+
]);
|
|
1513
|
+
return requestContext;
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1516
|
+
updateSecurityMonitoringRule(ruleId, body, _options) {
|
|
1517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1518
|
+
const _config = _options || this.configuration;
|
|
1519
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
1520
|
+
if (ruleId === null || ruleId === undefined) {
|
|
1521
|
+
throw new baseapi_1.RequiredError("ruleId", "updateSecurityMonitoringRule");
|
|
1522
|
+
}
|
|
1523
|
+
// verify required parameter 'body' is not null or undefined
|
|
1524
|
+
if (body === null || body === undefined) {
|
|
1525
|
+
throw new baseapi_1.RequiredError("body", "updateSecurityMonitoringRule");
|
|
1526
|
+
}
|
|
1527
|
+
// Path Params
|
|
1528
|
+
const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId)));
|
|
1529
|
+
// Make Request Context
|
|
1530
|
+
const requestContext = _config
|
|
1531
|
+
.getServer("v2.SecurityMonitoringApi.updateSecurityMonitoringRule")
|
|
1532
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1533
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1534
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1535
|
+
// Body Params
|
|
1536
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1537
|
+
"application/json",
|
|
1538
|
+
]);
|
|
1539
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1540
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleUpdatePayload", ""), contentType);
|
|
1541
|
+
requestContext.setBody(serializedBody);
|
|
1542
|
+
// Apply auth methods
|
|
1543
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1544
|
+
"AuthZ",
|
|
1545
|
+
"apiKeyAuth",
|
|
1546
|
+
"appKeyAuth",
|
|
1547
|
+
]);
|
|
1548
|
+
return requestContext;
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
updateSecurityMonitoringSuppression(suppressionId, body, _options) {
|
|
1552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1553
|
+
const _config = _options || this.configuration;
|
|
1554
|
+
// verify required parameter 'suppressionId' is not null or undefined
|
|
1555
|
+
if (suppressionId === null || suppressionId === undefined) {
|
|
1556
|
+
throw new baseapi_1.RequiredError("suppressionId", "updateSecurityMonitoringSuppression");
|
|
1557
|
+
}
|
|
1558
|
+
// verify required parameter 'body' is not null or undefined
|
|
1559
|
+
if (body === null || body === undefined) {
|
|
1560
|
+
throw new baseapi_1.RequiredError("body", "updateSecurityMonitoringSuppression");
|
|
1561
|
+
}
|
|
1562
|
+
// Path Params
|
|
1563
|
+
const localVarPath = "/api/v2/security_monitoring/configuration/suppressions/{suppression_id}".replace("{suppression_id}", encodeURIComponent(String(suppressionId)));
|
|
1564
|
+
// Make Request Context
|
|
1565
|
+
const requestContext = _config
|
|
1566
|
+
.getServer("v2.SecurityMonitoringApi.updateSecurityMonitoringSuppression")
|
|
1567
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1568
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
1569
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1570
|
+
// Body Params
|
|
1571
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1572
|
+
"application/json",
|
|
1573
|
+
]);
|
|
1574
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1575
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSuppressionUpdateRequest", ""), contentType);
|
|
1576
|
+
requestContext.setBody(serializedBody);
|
|
1577
|
+
// Apply auth methods
|
|
1578
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1579
|
+
"AuthZ",
|
|
1580
|
+
"apiKeyAuth",
|
|
1581
|
+
"appKeyAuth",
|
|
1582
|
+
]);
|
|
1583
|
+
return requestContext;
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
validateSecurityMonitoringRule(body, _options) {
|
|
1587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1588
|
+
const _config = _options || this.configuration;
|
|
1589
|
+
// verify required parameter 'body' is not null or undefined
|
|
1590
|
+
if (body === null || body === undefined) {
|
|
1591
|
+
throw new baseapi_1.RequiredError("body", "validateSecurityMonitoringRule");
|
|
1592
|
+
}
|
|
1593
|
+
// Path Params
|
|
1594
|
+
const localVarPath = "/api/v2/security_monitoring/rules/validation";
|
|
1595
|
+
// Make Request Context
|
|
1596
|
+
const requestContext = _config
|
|
1597
|
+
.getServer("v2.SecurityMonitoringApi.validateSecurityMonitoringRule")
|
|
1598
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1599
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
1600
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
1601
|
+
// Body Params
|
|
1602
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1603
|
+
"application/json",
|
|
1604
|
+
]);
|
|
1605
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1606
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleValidatePayload", ""), contentType);
|
|
1607
|
+
requestContext.setBody(serializedBody);
|
|
1608
|
+
// Apply auth methods
|
|
1609
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1610
|
+
"AuthZ",
|
|
1611
|
+
"apiKeyAuth",
|
|
1612
|
+
"appKeyAuth",
|
|
1613
|
+
]);
|
|
1614
|
+
return requestContext;
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
exports.SecurityMonitoringApiRequestFactory = SecurityMonitoringApiRequestFactory;
|
|
1619
|
+
class SecurityMonitoringApiResponseProcessor {
|
|
1620
|
+
/**
|
|
1621
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1622
|
+
* to the expected objects
|
|
1623
|
+
*
|
|
1624
|
+
* @params response Response returned by the server for a request to cancelHistoricalJob
|
|
1625
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1626
|
+
*/
|
|
1627
|
+
cancelHistoricalJob(response) {
|
|
1628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1629
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1630
|
+
if (response.httpStatusCode === 204) {
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
if (response.httpStatusCode === 400 ||
|
|
1634
|
+
response.httpStatusCode === 401 ||
|
|
1635
|
+
response.httpStatusCode === 403 ||
|
|
1636
|
+
response.httpStatusCode === 404 ||
|
|
1637
|
+
response.httpStatusCode === 409 ||
|
|
1638
|
+
response.httpStatusCode === 429) {
|
|
1639
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1640
|
+
let body;
|
|
1641
|
+
try {
|
|
1642
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1643
|
+
}
|
|
1644
|
+
catch (error) {
|
|
1645
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1646
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1647
|
+
}
|
|
1648
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1649
|
+
}
|
|
1650
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1651
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1652
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
1653
|
+
return body;
|
|
1654
|
+
}
|
|
1655
|
+
const body = (yield response.body.text()) || "";
|
|
1656
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1657
|
+
});
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1661
|
+
* to the expected objects
|
|
1662
|
+
*
|
|
1663
|
+
* @params response Response returned by the server for a request to convertExistingSecurityMonitoringRule
|
|
1664
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1665
|
+
*/
|
|
1666
|
+
convertExistingSecurityMonitoringRule(response) {
|
|
1667
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1668
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1669
|
+
if (response.httpStatusCode === 200) {
|
|
1670
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse");
|
|
1671
|
+
return body;
|
|
1672
|
+
}
|
|
1673
|
+
if (response.httpStatusCode === 400 ||
|
|
1674
|
+
response.httpStatusCode === 403 ||
|
|
1675
|
+
response.httpStatusCode === 404 ||
|
|
1676
|
+
response.httpStatusCode === 429) {
|
|
1677
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1678
|
+
let body;
|
|
1679
|
+
try {
|
|
1680
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1681
|
+
}
|
|
1682
|
+
catch (error) {
|
|
1683
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1684
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1685
|
+
}
|
|
1686
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1687
|
+
}
|
|
1688
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1689
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1690
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse", "");
|
|
1691
|
+
return body;
|
|
1692
|
+
}
|
|
1693
|
+
const body = (yield response.body.text()) || "";
|
|
1694
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1695
|
+
});
|
|
1696
|
+
}
|
|
1697
|
+
/**
|
|
1698
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1699
|
+
* to the expected objects
|
|
1700
|
+
*
|
|
1701
|
+
* @params response Response returned by the server for a request to convertJobResultToSignal
|
|
1702
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1703
|
+
*/
|
|
1704
|
+
convertJobResultToSignal(response) {
|
|
1705
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1706
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1707
|
+
if (response.httpStatusCode === 204) {
|
|
1708
|
+
return;
|
|
1709
|
+
}
|
|
1710
|
+
if (response.httpStatusCode === 400 ||
|
|
1711
|
+
response.httpStatusCode === 401 ||
|
|
1712
|
+
response.httpStatusCode === 403 ||
|
|
1713
|
+
response.httpStatusCode === 404 ||
|
|
1714
|
+
response.httpStatusCode === 429) {
|
|
1715
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1716
|
+
let body;
|
|
1717
|
+
try {
|
|
1718
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1719
|
+
}
|
|
1720
|
+
catch (error) {
|
|
1721
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1722
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1723
|
+
}
|
|
1724
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1725
|
+
}
|
|
1726
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1727
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1728
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
1729
|
+
return body;
|
|
1730
|
+
}
|
|
1731
|
+
const body = (yield response.body.text()) || "";
|
|
1732
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1737
|
+
* to the expected objects
|
|
1738
|
+
*
|
|
1739
|
+
* @params response Response returned by the server for a request to convertSecurityMonitoringRuleFromJSONToTerraform
|
|
1740
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1741
|
+
*/
|
|
1742
|
+
convertSecurityMonitoringRuleFromJSONToTerraform(response) {
|
|
1743
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1744
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1745
|
+
if (response.httpStatusCode === 200) {
|
|
1746
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse");
|
|
1747
|
+
return body;
|
|
1748
|
+
}
|
|
1749
|
+
if (response.httpStatusCode === 400 ||
|
|
1750
|
+
response.httpStatusCode === 401 ||
|
|
1751
|
+
response.httpStatusCode === 403 ||
|
|
1752
|
+
response.httpStatusCode === 404 ||
|
|
1753
|
+
response.httpStatusCode === 429) {
|
|
1754
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1755
|
+
let body;
|
|
1756
|
+
try {
|
|
1757
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1758
|
+
}
|
|
1759
|
+
catch (error) {
|
|
1760
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1761
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1762
|
+
}
|
|
1763
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1764
|
+
}
|
|
1765
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1766
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1767
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse", "");
|
|
1768
|
+
return body;
|
|
1769
|
+
}
|
|
1770
|
+
const body = (yield response.body.text()) || "";
|
|
1771
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1774
|
+
/**
|
|
1775
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1776
|
+
* to the expected objects
|
|
1777
|
+
*
|
|
1778
|
+
* @params response Response returned by the server for a request to createSecurityFilter
|
|
1779
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1780
|
+
*/
|
|
1781
|
+
createSecurityFilter(response) {
|
|
1782
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1783
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1784
|
+
if (response.httpStatusCode === 200) {
|
|
1785
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse");
|
|
1786
|
+
return body;
|
|
1787
|
+
}
|
|
1788
|
+
if (response.httpStatusCode === 400 ||
|
|
1789
|
+
response.httpStatusCode === 403 ||
|
|
1790
|
+
response.httpStatusCode === 409 ||
|
|
1791
|
+
response.httpStatusCode === 429) {
|
|
1792
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1793
|
+
let body;
|
|
1794
|
+
try {
|
|
1795
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1796
|
+
}
|
|
1797
|
+
catch (error) {
|
|
1798
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1799
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1800
|
+
}
|
|
1801
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1802
|
+
}
|
|
1803
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1804
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1805
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse", "");
|
|
1806
|
+
return body;
|
|
1807
|
+
}
|
|
1808
|
+
const body = (yield response.body.text()) || "";
|
|
1809
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1814
|
+
* to the expected objects
|
|
1815
|
+
*
|
|
1816
|
+
* @params response Response returned by the server for a request to createSecurityMonitoringRule
|
|
1817
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1818
|
+
*/
|
|
1819
|
+
createSecurityMonitoringRule(response) {
|
|
1820
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1821
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1822
|
+
if (response.httpStatusCode === 200) {
|
|
1823
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse");
|
|
1824
|
+
return body;
|
|
1825
|
+
}
|
|
1826
|
+
if (response.httpStatusCode === 400 ||
|
|
1827
|
+
response.httpStatusCode === 403 ||
|
|
1828
|
+
response.httpStatusCode === 429) {
|
|
1829
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1830
|
+
let body;
|
|
1831
|
+
try {
|
|
1832
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1833
|
+
}
|
|
1834
|
+
catch (error) {
|
|
1835
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1836
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1837
|
+
}
|
|
1838
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1839
|
+
}
|
|
1840
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1841
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1842
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse", "");
|
|
1843
|
+
return body;
|
|
1844
|
+
}
|
|
1845
|
+
const body = (yield response.body.text()) || "";
|
|
1846
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1847
|
+
});
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1851
|
+
* to the expected objects
|
|
1852
|
+
*
|
|
1853
|
+
* @params response Response returned by the server for a request to createSecurityMonitoringSuppression
|
|
1854
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1855
|
+
*/
|
|
1856
|
+
createSecurityMonitoringSuppression(response) {
|
|
1857
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1858
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1859
|
+
if (response.httpStatusCode === 200) {
|
|
1860
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse");
|
|
1861
|
+
return body;
|
|
1862
|
+
}
|
|
1863
|
+
if (response.httpStatusCode === 400 ||
|
|
1864
|
+
response.httpStatusCode === 403 ||
|
|
1865
|
+
response.httpStatusCode === 409 ||
|
|
1866
|
+
response.httpStatusCode === 429) {
|
|
1867
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1868
|
+
let body;
|
|
1869
|
+
try {
|
|
1870
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1871
|
+
}
|
|
1872
|
+
catch (error) {
|
|
1873
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1874
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1875
|
+
}
|
|
1876
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1877
|
+
}
|
|
1878
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1879
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1880
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse", "");
|
|
1881
|
+
return body;
|
|
1882
|
+
}
|
|
1883
|
+
const body = (yield response.body.text()) || "";
|
|
1884
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1889
|
+
* to the expected objects
|
|
1890
|
+
*
|
|
1891
|
+
* @params response Response returned by the server for a request to createSignalNotificationRule
|
|
1892
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1893
|
+
*/
|
|
1894
|
+
createSignalNotificationRule(response) {
|
|
1895
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1896
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1897
|
+
if (response.httpStatusCode === 201) {
|
|
1898
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse");
|
|
1899
|
+
return body;
|
|
1900
|
+
}
|
|
1901
|
+
if (response.httpStatusCode === 400 ||
|
|
1902
|
+
response.httpStatusCode === 403 ||
|
|
1903
|
+
response.httpStatusCode === 429) {
|
|
1904
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1905
|
+
let body;
|
|
1906
|
+
try {
|
|
1907
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1908
|
+
}
|
|
1909
|
+
catch (error) {
|
|
1910
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1911
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1912
|
+
}
|
|
1913
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1914
|
+
}
|
|
1915
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1916
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1917
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse", "");
|
|
1918
|
+
return body;
|
|
1919
|
+
}
|
|
1920
|
+
const body = (yield response.body.text()) || "";
|
|
1921
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1922
|
+
});
|
|
1923
|
+
}
|
|
1924
|
+
/**
|
|
1925
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1926
|
+
* to the expected objects
|
|
1927
|
+
*
|
|
1928
|
+
* @params response Response returned by the server for a request to createVulnerabilityNotificationRule
|
|
1929
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1930
|
+
*/
|
|
1931
|
+
createVulnerabilityNotificationRule(response) {
|
|
1932
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1933
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1934
|
+
if (response.httpStatusCode === 201) {
|
|
1935
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse");
|
|
1936
|
+
return body;
|
|
1937
|
+
}
|
|
1938
|
+
if (response.httpStatusCode === 400 ||
|
|
1939
|
+
response.httpStatusCode === 403 ||
|
|
1940
|
+
response.httpStatusCode === 429) {
|
|
1941
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1942
|
+
let body;
|
|
1943
|
+
try {
|
|
1944
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1945
|
+
}
|
|
1946
|
+
catch (error) {
|
|
1947
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1948
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1949
|
+
}
|
|
1950
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1951
|
+
}
|
|
1952
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1953
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1954
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse", "");
|
|
1955
|
+
return body;
|
|
1956
|
+
}
|
|
1957
|
+
const body = (yield response.body.text()) || "";
|
|
1958
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1963
|
+
* to the expected objects
|
|
1964
|
+
*
|
|
1965
|
+
* @params response Response returned by the server for a request to deleteHistoricalJob
|
|
1966
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1967
|
+
*/
|
|
1968
|
+
deleteHistoricalJob(response) {
|
|
1969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1970
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1971
|
+
if (response.httpStatusCode === 204) {
|
|
1972
|
+
return;
|
|
1973
|
+
}
|
|
1974
|
+
if (response.httpStatusCode === 400 ||
|
|
1975
|
+
response.httpStatusCode === 401 ||
|
|
1976
|
+
response.httpStatusCode === 403 ||
|
|
1977
|
+
response.httpStatusCode === 404 ||
|
|
1978
|
+
response.httpStatusCode === 409 ||
|
|
1979
|
+
response.httpStatusCode === 429) {
|
|
1980
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1981
|
+
let body;
|
|
1982
|
+
try {
|
|
1983
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1984
|
+
}
|
|
1985
|
+
catch (error) {
|
|
1986
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1987
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1988
|
+
}
|
|
1989
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1990
|
+
}
|
|
1991
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1992
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1993
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
1994
|
+
return body;
|
|
1995
|
+
}
|
|
1996
|
+
const body = (yield response.body.text()) || "";
|
|
1997
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2002
|
+
* to the expected objects
|
|
2003
|
+
*
|
|
2004
|
+
* @params response Response returned by the server for a request to deleteSecurityFilter
|
|
2005
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2006
|
+
*/
|
|
2007
|
+
deleteSecurityFilter(response) {
|
|
2008
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2009
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2010
|
+
if (response.httpStatusCode === 204) {
|
|
2011
|
+
return;
|
|
2012
|
+
}
|
|
2013
|
+
if (response.httpStatusCode === 403 ||
|
|
2014
|
+
response.httpStatusCode === 404 ||
|
|
2015
|
+
response.httpStatusCode === 429) {
|
|
2016
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2017
|
+
let body;
|
|
2018
|
+
try {
|
|
2019
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2020
|
+
}
|
|
2021
|
+
catch (error) {
|
|
2022
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2023
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2024
|
+
}
|
|
2025
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2026
|
+
}
|
|
2027
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2028
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2029
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
2030
|
+
return body;
|
|
2031
|
+
}
|
|
2032
|
+
const body = (yield response.body.text()) || "";
|
|
2033
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2036
|
+
/**
|
|
2037
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2038
|
+
* to the expected objects
|
|
2039
|
+
*
|
|
2040
|
+
* @params response Response returned by the server for a request to deleteSecurityMonitoringRule
|
|
2041
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2042
|
+
*/
|
|
2043
|
+
deleteSecurityMonitoringRule(response) {
|
|
2044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2045
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2046
|
+
if (response.httpStatusCode === 204) {
|
|
2047
|
+
return;
|
|
2048
|
+
}
|
|
2049
|
+
if (response.httpStatusCode === 403 ||
|
|
2050
|
+
response.httpStatusCode === 404 ||
|
|
2051
|
+
response.httpStatusCode === 429) {
|
|
2052
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2053
|
+
let body;
|
|
2054
|
+
try {
|
|
2055
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2056
|
+
}
|
|
2057
|
+
catch (error) {
|
|
2058
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2059
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2060
|
+
}
|
|
2061
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2062
|
+
}
|
|
2063
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2064
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2065
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
2066
|
+
return body;
|
|
2067
|
+
}
|
|
2068
|
+
const body = (yield response.body.text()) || "";
|
|
2069
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2074
|
+
* to the expected objects
|
|
2075
|
+
*
|
|
2076
|
+
* @params response Response returned by the server for a request to deleteSecurityMonitoringSuppression
|
|
2077
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2078
|
+
*/
|
|
2079
|
+
deleteSecurityMonitoringSuppression(response) {
|
|
2080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2081
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2082
|
+
if (response.httpStatusCode === 204) {
|
|
2083
|
+
return;
|
|
2084
|
+
}
|
|
2085
|
+
if (response.httpStatusCode === 403 ||
|
|
2086
|
+
response.httpStatusCode === 404 ||
|
|
2087
|
+
response.httpStatusCode === 429) {
|
|
2088
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2089
|
+
let body;
|
|
2090
|
+
try {
|
|
2091
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2092
|
+
}
|
|
2093
|
+
catch (error) {
|
|
2094
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2095
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2096
|
+
}
|
|
2097
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2098
|
+
}
|
|
2099
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2100
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2101
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
2102
|
+
return body;
|
|
2103
|
+
}
|
|
2104
|
+
const body = (yield response.body.text()) || "";
|
|
2105
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2110
|
+
* to the expected objects
|
|
2111
|
+
*
|
|
2112
|
+
* @params response Response returned by the server for a request to deleteSignalNotificationRule
|
|
2113
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2114
|
+
*/
|
|
2115
|
+
deleteSignalNotificationRule(response) {
|
|
2116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2117
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2118
|
+
if (response.httpStatusCode === 204) {
|
|
2119
|
+
return;
|
|
2120
|
+
}
|
|
2121
|
+
if (response.httpStatusCode === 403 ||
|
|
2122
|
+
response.httpStatusCode === 404 ||
|
|
2123
|
+
response.httpStatusCode === 429) {
|
|
2124
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2125
|
+
let body;
|
|
2126
|
+
try {
|
|
2127
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2128
|
+
}
|
|
2129
|
+
catch (error) {
|
|
2130
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2131
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2132
|
+
}
|
|
2133
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2134
|
+
}
|
|
2135
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2136
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2137
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
2138
|
+
return body;
|
|
2139
|
+
}
|
|
2140
|
+
const body = (yield response.body.text()) || "";
|
|
2141
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
/**
|
|
2145
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2146
|
+
* to the expected objects
|
|
2147
|
+
*
|
|
2148
|
+
* @params response Response returned by the server for a request to deleteVulnerabilityNotificationRule
|
|
2149
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2150
|
+
*/
|
|
2151
|
+
deleteVulnerabilityNotificationRule(response) {
|
|
2152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2153
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2154
|
+
if (response.httpStatusCode === 204) {
|
|
2155
|
+
return;
|
|
2156
|
+
}
|
|
2157
|
+
if (response.httpStatusCode === 403 ||
|
|
2158
|
+
response.httpStatusCode === 404 ||
|
|
2159
|
+
response.httpStatusCode === 429) {
|
|
2160
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2161
|
+
let body;
|
|
2162
|
+
try {
|
|
2163
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2164
|
+
}
|
|
2165
|
+
catch (error) {
|
|
2166
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2167
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2168
|
+
}
|
|
2169
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2170
|
+
}
|
|
2171
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2172
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2173
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
2174
|
+
return body;
|
|
2175
|
+
}
|
|
2176
|
+
const body = (yield response.body.text()) || "";
|
|
2177
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2182
|
+
* to the expected objects
|
|
2183
|
+
*
|
|
2184
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee
|
|
2185
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2186
|
+
*/
|
|
2187
|
+
editSecurityMonitoringSignalAssignee(response) {
|
|
2188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2189
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2190
|
+
if (response.httpStatusCode === 200) {
|
|
2191
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse");
|
|
2192
|
+
return body;
|
|
2193
|
+
}
|
|
2194
|
+
if (response.httpStatusCode === 400 ||
|
|
2195
|
+
response.httpStatusCode === 403 ||
|
|
2196
|
+
response.httpStatusCode === 404 ||
|
|
2197
|
+
response.httpStatusCode === 429) {
|
|
2198
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2199
|
+
let body;
|
|
2200
|
+
try {
|
|
2201
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2202
|
+
}
|
|
2203
|
+
catch (error) {
|
|
2204
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2205
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2206
|
+
}
|
|
2207
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2208
|
+
}
|
|
2209
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2210
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2211
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", "");
|
|
2212
|
+
return body;
|
|
2213
|
+
}
|
|
2214
|
+
const body = (yield response.body.text()) || "";
|
|
2215
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2218
|
+
/**
|
|
2219
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2220
|
+
* to the expected objects
|
|
2221
|
+
*
|
|
2222
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalIncidents
|
|
2223
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2224
|
+
*/
|
|
2225
|
+
editSecurityMonitoringSignalIncidents(response) {
|
|
2226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2227
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2228
|
+
if (response.httpStatusCode === 200) {
|
|
2229
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse");
|
|
2230
|
+
return body;
|
|
2231
|
+
}
|
|
2232
|
+
if (response.httpStatusCode === 400 ||
|
|
2233
|
+
response.httpStatusCode === 403 ||
|
|
2234
|
+
response.httpStatusCode === 404 ||
|
|
2235
|
+
response.httpStatusCode === 429) {
|
|
2236
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2237
|
+
let body;
|
|
2238
|
+
try {
|
|
2239
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2240
|
+
}
|
|
2241
|
+
catch (error) {
|
|
2242
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2243
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2244
|
+
}
|
|
2245
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2246
|
+
}
|
|
2247
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2248
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2249
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", "");
|
|
2250
|
+
return body;
|
|
2251
|
+
}
|
|
2252
|
+
const body = (yield response.body.text()) || "";
|
|
2253
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2254
|
+
});
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2258
|
+
* to the expected objects
|
|
2259
|
+
*
|
|
2260
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalState
|
|
2261
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2262
|
+
*/
|
|
2263
|
+
editSecurityMonitoringSignalState(response) {
|
|
2264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2265
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2266
|
+
if (response.httpStatusCode === 200) {
|
|
2267
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse");
|
|
2268
|
+
return body;
|
|
2269
|
+
}
|
|
2270
|
+
if (response.httpStatusCode === 400 ||
|
|
2271
|
+
response.httpStatusCode === 403 ||
|
|
2272
|
+
response.httpStatusCode === 404 ||
|
|
2273
|
+
response.httpStatusCode === 429) {
|
|
2274
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2275
|
+
let body;
|
|
2276
|
+
try {
|
|
2277
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2278
|
+
}
|
|
2279
|
+
catch (error) {
|
|
2280
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2281
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2282
|
+
}
|
|
2283
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2284
|
+
}
|
|
2285
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2286
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2287
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", "");
|
|
2288
|
+
return body;
|
|
2289
|
+
}
|
|
2290
|
+
const body = (yield response.body.text()) || "";
|
|
2291
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2292
|
+
});
|
|
2293
|
+
}
|
|
2294
|
+
/**
|
|
2295
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2296
|
+
* to the expected objects
|
|
2297
|
+
*
|
|
2298
|
+
* @params response Response returned by the server for a request to getFinding
|
|
2299
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
2300
|
+
*/
|
|
2301
|
+
getFinding(response) {
|
|
2302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2303
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2304
|
+
if (response.httpStatusCode === 200) {
|
|
2305
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse");
|
|
2306
|
+
return body;
|
|
2307
|
+
}
|
|
2308
|
+
if (response.httpStatusCode === 400 ||
|
|
2309
|
+
response.httpStatusCode === 403 ||
|
|
2310
|
+
response.httpStatusCode === 404 ||
|
|
2311
|
+
response.httpStatusCode === 429) {
|
|
2312
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2313
|
+
let body;
|
|
2314
|
+
try {
|
|
2315
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
2316
|
+
}
|
|
2317
|
+
catch (error) {
|
|
2318
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2319
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2320
|
+
}
|
|
2321
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2322
|
+
}
|
|
2323
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2324
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2325
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse", "");
|
|
2326
|
+
return body;
|
|
892
2327
|
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
// Make Request Context
|
|
896
|
-
const requestContext = _config
|
|
897
|
-
.getServer("v2.SecurityMonitoringApi.validateSecurityMonitoringRule")
|
|
898
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
899
|
-
requestContext.setHeaderParam("Accept", "*/*");
|
|
900
|
-
requestContext.setHttpConfig(_config.httpConfig);
|
|
901
|
-
// Body Params
|
|
902
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
903
|
-
"application/json",
|
|
904
|
-
]);
|
|
905
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
906
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleValidatePayload", ""), contentType);
|
|
907
|
-
requestContext.setBody(serializedBody);
|
|
908
|
-
// Apply auth methods
|
|
909
|
-
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
910
|
-
"AuthZ",
|
|
911
|
-
"apiKeyAuth",
|
|
912
|
-
"appKeyAuth",
|
|
913
|
-
]);
|
|
914
|
-
return requestContext;
|
|
2328
|
+
const body = (yield response.body.text()) || "";
|
|
2329
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
915
2330
|
});
|
|
916
2331
|
}
|
|
917
|
-
}
|
|
918
|
-
exports.SecurityMonitoringApiRequestFactory = SecurityMonitoringApiRequestFactory;
|
|
919
|
-
class SecurityMonitoringApiResponseProcessor {
|
|
920
2332
|
/**
|
|
921
2333
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
922
2334
|
* to the expected objects
|
|
923
2335
|
*
|
|
924
|
-
* @params response Response returned by the server for a request to
|
|
2336
|
+
* @params response Response returned by the server for a request to getHistoricalJob
|
|
925
2337
|
* @throws ApiException if the response code was not in [200, 299]
|
|
926
2338
|
*/
|
|
927
|
-
|
|
2339
|
+
getHistoricalJob(response) {
|
|
928
2340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
929
2341
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
930
2342
|
if (response.httpStatusCode === 200) {
|
|
931
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2343
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HistoricalJobResponse");
|
|
932
2344
|
return body;
|
|
933
2345
|
}
|
|
934
2346
|
if (response.httpStatusCode === 400 ||
|
|
@@ -948,7 +2360,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
948
2360
|
}
|
|
949
2361
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
950
2362
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
951
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2363
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HistoricalJobResponse", "");
|
|
952
2364
|
return body;
|
|
953
2365
|
}
|
|
954
2366
|
const body = (yield response.body.text()) || "";
|
|
@@ -959,21 +2371,31 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
959
2371
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
960
2372
|
* to the expected objects
|
|
961
2373
|
*
|
|
962
|
-
* @params response Response returned by the server for a request to
|
|
2374
|
+
* @params response Response returned by the server for a request to getSBOM
|
|
963
2375
|
* @throws ApiException if the response code was not in [200, 299]
|
|
964
2376
|
*/
|
|
965
|
-
|
|
2377
|
+
getSBOM(response) {
|
|
966
2378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
967
2379
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
968
2380
|
if (response.httpStatusCode === 200) {
|
|
969
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2381
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetSBOMResponse");
|
|
970
2382
|
return body;
|
|
971
2383
|
}
|
|
972
2384
|
if (response.httpStatusCode === 400 ||
|
|
973
|
-
response.httpStatusCode === 401 ||
|
|
974
2385
|
response.httpStatusCode === 403 ||
|
|
975
|
-
response.httpStatusCode === 404
|
|
976
|
-
response.
|
|
2386
|
+
response.httpStatusCode === 404) {
|
|
2387
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2388
|
+
let body;
|
|
2389
|
+
try {
|
|
2390
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
2391
|
+
}
|
|
2392
|
+
catch (error) {
|
|
2393
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2394
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2395
|
+
}
|
|
2396
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2397
|
+
}
|
|
2398
|
+
if (response.httpStatusCode === 429) {
|
|
977
2399
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
978
2400
|
let body;
|
|
979
2401
|
try {
|
|
@@ -987,7 +2409,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
987
2409
|
}
|
|
988
2410
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
989
2411
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
990
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2412
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetSBOMResponse", "");
|
|
991
2413
|
return body;
|
|
992
2414
|
}
|
|
993
2415
|
const body = (yield response.body.text()) || "";
|
|
@@ -998,19 +2420,18 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
998
2420
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
999
2421
|
* to the expected objects
|
|
1000
2422
|
*
|
|
1001
|
-
* @params response Response returned by the server for a request to
|
|
2423
|
+
* @params response Response returned by the server for a request to getSecurityFilter
|
|
1002
2424
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1003
2425
|
*/
|
|
1004
|
-
|
|
2426
|
+
getSecurityFilter(response) {
|
|
1005
2427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1006
2428
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1007
2429
|
if (response.httpStatusCode === 200) {
|
|
1008
2430
|
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse");
|
|
1009
2431
|
return body;
|
|
1010
2432
|
}
|
|
1011
|
-
if (response.httpStatusCode ===
|
|
1012
|
-
response.httpStatusCode ===
|
|
1013
|
-
response.httpStatusCode === 409 ||
|
|
2433
|
+
if (response.httpStatusCode === 403 ||
|
|
2434
|
+
response.httpStatusCode === 404 ||
|
|
1014
2435
|
response.httpStatusCode === 429) {
|
|
1015
2436
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1016
2437
|
let body;
|
|
@@ -1036,19 +2457,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1036
2457
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1037
2458
|
* to the expected objects
|
|
1038
2459
|
*
|
|
1039
|
-
* @params response Response returned by the server for a request to
|
|
2460
|
+
* @params response Response returned by the server for a request to getSecurityMonitoringRule
|
|
1040
2461
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1041
2462
|
*/
|
|
1042
|
-
|
|
2463
|
+
getSecurityMonitoringRule(response) {
|
|
1043
2464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1044
2465
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1045
2466
|
if (response.httpStatusCode === 200) {
|
|
1046
2467
|
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse");
|
|
1047
2468
|
return body;
|
|
1048
2469
|
}
|
|
1049
|
-
if (response.httpStatusCode ===
|
|
1050
|
-
response.httpStatusCode === 403 ||
|
|
1051
|
-
response.httpStatusCode === 429) {
|
|
2470
|
+
if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
|
|
1052
2471
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1053
2472
|
let body;
|
|
1054
2473
|
try {
|
|
@@ -1073,20 +2492,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1073
2492
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1074
2493
|
* to the expected objects
|
|
1075
2494
|
*
|
|
1076
|
-
* @params response Response returned by the server for a request to
|
|
2495
|
+
* @params response Response returned by the server for a request to getSecurityMonitoringSignal
|
|
1077
2496
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1078
2497
|
*/
|
|
1079
|
-
|
|
2498
|
+
getSecurityMonitoringSignal(response) {
|
|
1080
2499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1081
2500
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1082
2501
|
if (response.httpStatusCode === 200) {
|
|
1083
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2502
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalResponse");
|
|
1084
2503
|
return body;
|
|
1085
2504
|
}
|
|
1086
|
-
if (response.httpStatusCode ===
|
|
1087
|
-
response.httpStatusCode === 403 ||
|
|
1088
|
-
response.httpStatusCode === 409 ||
|
|
1089
|
-
response.httpStatusCode === 429) {
|
|
2505
|
+
if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
|
|
1090
2506
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1091
2507
|
let body;
|
|
1092
2508
|
try {
|
|
@@ -1100,7 +2516,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1100
2516
|
}
|
|
1101
2517
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1102
2518
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1103
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2519
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalResponse", "");
|
|
1104
2520
|
return body;
|
|
1105
2521
|
}
|
|
1106
2522
|
const body = (yield response.body.text()) || "";
|
|
@@ -1111,14 +2527,15 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1111
2527
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1112
2528
|
* to the expected objects
|
|
1113
2529
|
*
|
|
1114
|
-
* @params response Response returned by the server for a request to
|
|
2530
|
+
* @params response Response returned by the server for a request to getSecurityMonitoringSuppression
|
|
1115
2531
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1116
2532
|
*/
|
|
1117
|
-
|
|
2533
|
+
getSecurityMonitoringSuppression(response) {
|
|
1118
2534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1119
2535
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1120
|
-
if (response.httpStatusCode ===
|
|
1121
|
-
|
|
2536
|
+
if (response.httpStatusCode === 200) {
|
|
2537
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse");
|
|
2538
|
+
return body;
|
|
1122
2539
|
}
|
|
1123
2540
|
if (response.httpStatusCode === 403 ||
|
|
1124
2541
|
response.httpStatusCode === 404 ||
|
|
@@ -1136,7 +2553,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1136
2553
|
}
|
|
1137
2554
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1138
2555
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1139
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2556
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse", "");
|
|
1140
2557
|
return body;
|
|
1141
2558
|
}
|
|
1142
2559
|
const body = (yield response.body.text()) || "";
|
|
@@ -1147,16 +2564,18 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1147
2564
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1148
2565
|
* to the expected objects
|
|
1149
2566
|
*
|
|
1150
|
-
* @params response Response returned by the server for a request to
|
|
2567
|
+
* @params response Response returned by the server for a request to getSignalNotificationRule
|
|
1151
2568
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1152
2569
|
*/
|
|
1153
|
-
|
|
2570
|
+
getSignalNotificationRule(response) {
|
|
1154
2571
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1155
2572
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1156
|
-
if (response.httpStatusCode ===
|
|
1157
|
-
|
|
2573
|
+
if (response.httpStatusCode === 200) {
|
|
2574
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse");
|
|
2575
|
+
return body;
|
|
1158
2576
|
}
|
|
1159
|
-
if (response.httpStatusCode ===
|
|
2577
|
+
if (response.httpStatusCode === 400 ||
|
|
2578
|
+
response.httpStatusCode === 403 ||
|
|
1160
2579
|
response.httpStatusCode === 404 ||
|
|
1161
2580
|
response.httpStatusCode === 429) {
|
|
1162
2581
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
@@ -1172,7 +2591,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1172
2591
|
}
|
|
1173
2592
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1174
2593
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1175
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2594
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse", "");
|
|
1176
2595
|
return body;
|
|
1177
2596
|
}
|
|
1178
2597
|
const body = (yield response.body.text()) || "";
|
|
@@ -1183,18 +2602,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1183
2602
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1184
2603
|
* to the expected objects
|
|
1185
2604
|
*
|
|
1186
|
-
* @params response Response returned by the server for a request to
|
|
2605
|
+
* @params response Response returned by the server for a request to getSignalNotificationRules
|
|
1187
2606
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1188
2607
|
*/
|
|
1189
|
-
|
|
2608
|
+
getSignalNotificationRules(response) {
|
|
1190
2609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1191
2610
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1192
|
-
if (response.httpStatusCode ===
|
|
1193
|
-
|
|
2611
|
+
if (response.httpStatusCode === 200) {
|
|
2612
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any");
|
|
2613
|
+
return body;
|
|
1194
2614
|
}
|
|
1195
|
-
if (response.httpStatusCode === 403 ||
|
|
1196
|
-
response.httpStatusCode === 404 ||
|
|
1197
|
-
response.httpStatusCode === 429) {
|
|
2615
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1198
2616
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1199
2617
|
let body;
|
|
1200
2618
|
try {
|
|
@@ -1208,7 +2626,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1208
2626
|
}
|
|
1209
2627
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1210
2628
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1211
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2629
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", "");
|
|
1212
2630
|
return body;
|
|
1213
2631
|
}
|
|
1214
2632
|
const body = (yield response.body.text()) || "";
|
|
@@ -1219,14 +2637,14 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1219
2637
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1220
2638
|
* to the expected objects
|
|
1221
2639
|
*
|
|
1222
|
-
* @params response Response returned by the server for a request to
|
|
2640
|
+
* @params response Response returned by the server for a request to getVulnerabilityNotificationRule
|
|
1223
2641
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1224
2642
|
*/
|
|
1225
|
-
|
|
2643
|
+
getVulnerabilityNotificationRule(response) {
|
|
1226
2644
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1227
2645
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1228
2646
|
if (response.httpStatusCode === 200) {
|
|
1229
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2647
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse");
|
|
1230
2648
|
return body;
|
|
1231
2649
|
}
|
|
1232
2650
|
if (response.httpStatusCode === 400 ||
|
|
@@ -1246,7 +2664,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1246
2664
|
}
|
|
1247
2665
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1248
2666
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1249
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2667
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse", "");
|
|
1250
2668
|
return body;
|
|
1251
2669
|
}
|
|
1252
2670
|
const body = (yield response.body.text()) || "";
|
|
@@ -1257,20 +2675,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1257
2675
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1258
2676
|
* to the expected objects
|
|
1259
2677
|
*
|
|
1260
|
-
* @params response Response returned by the server for a request to
|
|
2678
|
+
* @params response Response returned by the server for a request to getVulnerabilityNotificationRules
|
|
1261
2679
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1262
2680
|
*/
|
|
1263
|
-
|
|
2681
|
+
getVulnerabilityNotificationRules(response) {
|
|
1264
2682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
2683
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1266
2684
|
if (response.httpStatusCode === 200) {
|
|
1267
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2685
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any");
|
|
1268
2686
|
return body;
|
|
1269
2687
|
}
|
|
1270
|
-
if (response.httpStatusCode ===
|
|
1271
|
-
response.httpStatusCode === 403 ||
|
|
1272
|
-
response.httpStatusCode === 404 ||
|
|
1273
|
-
response.httpStatusCode === 429) {
|
|
2688
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1274
2689
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1275
2690
|
let body;
|
|
1276
2691
|
try {
|
|
@@ -1284,7 +2699,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1284
2699
|
}
|
|
1285
2700
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1286
2701
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1287
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2702
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", "");
|
|
1288
2703
|
return body;
|
|
1289
2704
|
}
|
|
1290
2705
|
const body = (yield response.body.text()) || "";
|
|
@@ -1295,14 +2710,14 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1295
2710
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1296
2711
|
* to the expected objects
|
|
1297
2712
|
*
|
|
1298
|
-
* @params response Response returned by the server for a request to
|
|
2713
|
+
* @params response Response returned by the server for a request to listFindings
|
|
1299
2714
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1300
2715
|
*/
|
|
1301
|
-
|
|
2716
|
+
listFindings(response) {
|
|
1302
2717
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1303
2718
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1304
2719
|
if (response.httpStatusCode === 200) {
|
|
1305
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2720
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListFindingsResponse");
|
|
1306
2721
|
return body;
|
|
1307
2722
|
}
|
|
1308
2723
|
if (response.httpStatusCode === 400 ||
|
|
@@ -1312,7 +2727,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1312
2727
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1313
2728
|
let body;
|
|
1314
2729
|
try {
|
|
1315
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
2730
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
1316
2731
|
}
|
|
1317
2732
|
catch (error) {
|
|
1318
2733
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1322,7 +2737,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1322
2737
|
}
|
|
1323
2738
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1324
2739
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1325
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2740
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListFindingsResponse", "");
|
|
1326
2741
|
return body;
|
|
1327
2742
|
}
|
|
1328
2743
|
const body = (yield response.body.text()) || "";
|
|
@@ -1333,24 +2748,23 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1333
2748
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1334
2749
|
* to the expected objects
|
|
1335
2750
|
*
|
|
1336
|
-
* @params response Response returned by the server for a request to
|
|
2751
|
+
* @params response Response returned by the server for a request to listHistoricalJobs
|
|
1337
2752
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1338
2753
|
*/
|
|
1339
|
-
|
|
2754
|
+
listHistoricalJobs(response) {
|
|
1340
2755
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1341
2756
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1342
2757
|
if (response.httpStatusCode === 200) {
|
|
1343
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2758
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListHistoricalJobsResponse");
|
|
1344
2759
|
return body;
|
|
1345
2760
|
}
|
|
1346
2761
|
if (response.httpStatusCode === 400 ||
|
|
1347
2762
|
response.httpStatusCode === 403 ||
|
|
1348
|
-
response.httpStatusCode === 404 ||
|
|
1349
2763
|
response.httpStatusCode === 429) {
|
|
1350
2764
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1351
2765
|
let body;
|
|
1352
2766
|
try {
|
|
1353
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
2767
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1354
2768
|
}
|
|
1355
2769
|
catch (error) {
|
|
1356
2770
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1360,7 +2774,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1360
2774
|
}
|
|
1361
2775
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1362
2776
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1363
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2777
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListHistoricalJobsResponse", "");
|
|
1364
2778
|
return body;
|
|
1365
2779
|
}
|
|
1366
2780
|
const body = (yield response.body.text()) || "";
|
|
@@ -1371,19 +2785,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1371
2785
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1372
2786
|
* to the expected objects
|
|
1373
2787
|
*
|
|
1374
|
-
* @params response Response returned by the server for a request to
|
|
2788
|
+
* @params response Response returned by the server for a request to listSecurityFilters
|
|
1375
2789
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1376
2790
|
*/
|
|
1377
|
-
|
|
2791
|
+
listSecurityFilters(response) {
|
|
1378
2792
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1379
2793
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1380
2794
|
if (response.httpStatusCode === 200) {
|
|
1381
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2795
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFiltersResponse");
|
|
1382
2796
|
return body;
|
|
1383
2797
|
}
|
|
1384
|
-
if (response.httpStatusCode === 403 ||
|
|
1385
|
-
response.httpStatusCode === 404 ||
|
|
1386
|
-
response.httpStatusCode === 429) {
|
|
2798
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1387
2799
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1388
2800
|
let body;
|
|
1389
2801
|
try {
|
|
@@ -1397,7 +2809,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1397
2809
|
}
|
|
1398
2810
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1399
2811
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1400
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2812
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFiltersResponse", "");
|
|
1401
2813
|
return body;
|
|
1402
2814
|
}
|
|
1403
2815
|
const body = (yield response.body.text()) || "";
|
|
@@ -1408,17 +2820,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1408
2820
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1409
2821
|
* to the expected objects
|
|
1410
2822
|
*
|
|
1411
|
-
* @params response Response returned by the server for a request to
|
|
2823
|
+
* @params response Response returned by the server for a request to listSecurityMonitoringRules
|
|
1412
2824
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1413
2825
|
*/
|
|
1414
|
-
|
|
2826
|
+
listSecurityMonitoringRules(response) {
|
|
1415
2827
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1416
2828
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1417
2829
|
if (response.httpStatusCode === 200) {
|
|
1418
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2830
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringListRulesResponse");
|
|
1419
2831
|
return body;
|
|
1420
2832
|
}
|
|
1421
|
-
if (response.httpStatusCode ===
|
|
2833
|
+
if (response.httpStatusCode === 400 || response.httpStatusCode === 429) {
|
|
1422
2834
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1423
2835
|
let body;
|
|
1424
2836
|
try {
|
|
@@ -1432,7 +2844,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1432
2844
|
}
|
|
1433
2845
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1434
2846
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1435
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2847
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringListRulesResponse", "");
|
|
1436
2848
|
return body;
|
|
1437
2849
|
}
|
|
1438
2850
|
const body = (yield response.body.text()) || "";
|
|
@@ -1443,17 +2855,19 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1443
2855
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1444
2856
|
* to the expected objects
|
|
1445
2857
|
*
|
|
1446
|
-
* @params response Response returned by the server for a request to
|
|
2858
|
+
* @params response Response returned by the server for a request to listSecurityMonitoringSignals
|
|
1447
2859
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1448
2860
|
*/
|
|
1449
|
-
|
|
2861
|
+
listSecurityMonitoringSignals(response) {
|
|
1450
2862
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1451
2863
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1452
2864
|
if (response.httpStatusCode === 200) {
|
|
1453
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2865
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalsListResponse");
|
|
1454
2866
|
return body;
|
|
1455
2867
|
}
|
|
1456
|
-
if (response.httpStatusCode ===
|
|
2868
|
+
if (response.httpStatusCode === 400 ||
|
|
2869
|
+
response.httpStatusCode === 403 ||
|
|
2870
|
+
response.httpStatusCode === 429) {
|
|
1457
2871
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1458
2872
|
let body;
|
|
1459
2873
|
try {
|
|
@@ -1467,7 +2881,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1467
2881
|
}
|
|
1468
2882
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1469
2883
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1470
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2884
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalsListResponse", "");
|
|
1471
2885
|
return body;
|
|
1472
2886
|
}
|
|
1473
2887
|
const body = (yield response.body.text()) || "";
|
|
@@ -1478,19 +2892,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1478
2892
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1479
2893
|
* to the expected objects
|
|
1480
2894
|
*
|
|
1481
|
-
* @params response Response returned by the server for a request to
|
|
2895
|
+
* @params response Response returned by the server for a request to listSecurityMonitoringSuppressions
|
|
1482
2896
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1483
2897
|
*/
|
|
1484
|
-
|
|
2898
|
+
listSecurityMonitoringSuppressions(response) {
|
|
1485
2899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1486
2900
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1487
2901
|
if (response.httpStatusCode === 200) {
|
|
1488
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2902
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionsResponse");
|
|
1489
2903
|
return body;
|
|
1490
2904
|
}
|
|
1491
|
-
if (response.httpStatusCode === 403 ||
|
|
1492
|
-
response.httpStatusCode === 404 ||
|
|
1493
|
-
response.httpStatusCode === 429) {
|
|
2905
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1494
2906
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1495
2907
|
let body;
|
|
1496
2908
|
try {
|
|
@@ -1504,7 +2916,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1504
2916
|
}
|
|
1505
2917
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1506
2918
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1507
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2919
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionsResponse", "");
|
|
1508
2920
|
return body;
|
|
1509
2921
|
}
|
|
1510
2922
|
const body = (yield response.body.text()) || "";
|
|
@@ -1515,20 +2927,19 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1515
2927
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1516
2928
|
* to the expected objects
|
|
1517
2929
|
*
|
|
1518
|
-
* @params response Response returned by the server for a request to
|
|
2930
|
+
* @params response Response returned by the server for a request to listVulnerabilities
|
|
1519
2931
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1520
2932
|
*/
|
|
1521
|
-
|
|
2933
|
+
listVulnerabilities(response) {
|
|
1522
2934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1523
2935
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1524
2936
|
if (response.httpStatusCode === 200) {
|
|
1525
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2937
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListVulnerabilitiesResponse");
|
|
1526
2938
|
return body;
|
|
1527
2939
|
}
|
|
1528
2940
|
if (response.httpStatusCode === 400 ||
|
|
1529
2941
|
response.httpStatusCode === 403 ||
|
|
1530
|
-
response.httpStatusCode === 404
|
|
1531
|
-
response.httpStatusCode === 429) {
|
|
2942
|
+
response.httpStatusCode === 404) {
|
|
1532
2943
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1533
2944
|
let body;
|
|
1534
2945
|
try {
|
|
@@ -1540,9 +2951,21 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1540
2951
|
}
|
|
1541
2952
|
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1542
2953
|
}
|
|
2954
|
+
if (response.httpStatusCode === 429) {
|
|
2955
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2956
|
+
let body;
|
|
2957
|
+
try {
|
|
2958
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2959
|
+
}
|
|
2960
|
+
catch (error) {
|
|
2961
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2962
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2963
|
+
}
|
|
2964
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2965
|
+
}
|
|
1543
2966
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1544
2967
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1545
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2968
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListVulnerabilitiesResponse", "");
|
|
1546
2969
|
return body;
|
|
1547
2970
|
}
|
|
1548
2971
|
const body = (yield response.body.text()) || "";
|
|
@@ -1553,17 +2976,31 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1553
2976
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1554
2977
|
* to the expected objects
|
|
1555
2978
|
*
|
|
1556
|
-
* @params response Response returned by the server for a request to
|
|
2979
|
+
* @params response Response returned by the server for a request to listVulnerableAssets
|
|
1557
2980
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1558
2981
|
*/
|
|
1559
|
-
|
|
2982
|
+
listVulnerableAssets(response) {
|
|
1560
2983
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1561
2984
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1562
2985
|
if (response.httpStatusCode === 200) {
|
|
1563
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2986
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListVulnerableAssetsResponse");
|
|
1564
2987
|
return body;
|
|
1565
2988
|
}
|
|
1566
|
-
if (response.httpStatusCode ===
|
|
2989
|
+
if (response.httpStatusCode === 400 ||
|
|
2990
|
+
response.httpStatusCode === 403 ||
|
|
2991
|
+
response.httpStatusCode === 404) {
|
|
2992
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2993
|
+
let body;
|
|
2994
|
+
try {
|
|
2995
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
2996
|
+
}
|
|
2997
|
+
catch (error) {
|
|
2998
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2999
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3000
|
+
}
|
|
3001
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
3002
|
+
}
|
|
3003
|
+
if (response.httpStatusCode === 429) {
|
|
1567
3004
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1568
3005
|
let body;
|
|
1569
3006
|
try {
|
|
@@ -1577,7 +3014,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1577
3014
|
}
|
|
1578
3015
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1579
3016
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1580
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3017
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListVulnerableAssetsResponse", "");
|
|
1581
3018
|
return body;
|
|
1582
3019
|
}
|
|
1583
3020
|
const body = (yield response.body.text()) || "";
|
|
@@ -1588,21 +3025,25 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1588
3025
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1589
3026
|
* to the expected objects
|
|
1590
3027
|
*
|
|
1591
|
-
* @params response Response returned by the server for a request to
|
|
3028
|
+
* @params response Response returned by the server for a request to muteFindings
|
|
1592
3029
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1593
3030
|
*/
|
|
1594
|
-
|
|
3031
|
+
muteFindings(response) {
|
|
1595
3032
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1596
3033
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1597
3034
|
if (response.httpStatusCode === 200) {
|
|
1598
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3035
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BulkMuteFindingsResponse");
|
|
1599
3036
|
return body;
|
|
1600
3037
|
}
|
|
1601
|
-
if (response.httpStatusCode === 400 ||
|
|
3038
|
+
if (response.httpStatusCode === 400 ||
|
|
3039
|
+
response.httpStatusCode === 403 ||
|
|
3040
|
+
response.httpStatusCode === 404 ||
|
|
3041
|
+
response.httpStatusCode === 422 ||
|
|
3042
|
+
response.httpStatusCode === 429) {
|
|
1602
3043
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1603
3044
|
let body;
|
|
1604
3045
|
try {
|
|
1605
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
3046
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
1606
3047
|
}
|
|
1607
3048
|
catch (error) {
|
|
1608
3049
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1612,7 +3053,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1612
3053
|
}
|
|
1613
3054
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1614
3055
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1615
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3056
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BulkMuteFindingsResponse", "");
|
|
1616
3057
|
return body;
|
|
1617
3058
|
}
|
|
1618
3059
|
const body = (yield response.body.text()) || "";
|
|
@@ -1623,18 +3064,19 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1623
3064
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1624
3065
|
* to the expected objects
|
|
1625
3066
|
*
|
|
1626
|
-
* @params response Response returned by the server for a request to
|
|
3067
|
+
* @params response Response returned by the server for a request to patchSignalNotificationRule
|
|
1627
3068
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1628
3069
|
*/
|
|
1629
|
-
|
|
3070
|
+
patchSignalNotificationRule(response) {
|
|
1630
3071
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1631
3072
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1632
3073
|
if (response.httpStatusCode === 200) {
|
|
1633
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3074
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse");
|
|
1634
3075
|
return body;
|
|
1635
3076
|
}
|
|
1636
3077
|
if (response.httpStatusCode === 400 ||
|
|
1637
3078
|
response.httpStatusCode === 403 ||
|
|
3079
|
+
response.httpStatusCode === 404 ||
|
|
1638
3080
|
response.httpStatusCode === 429) {
|
|
1639
3081
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1640
3082
|
let body;
|
|
@@ -1647,9 +3089,21 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1647
3089
|
}
|
|
1648
3090
|
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1649
3091
|
}
|
|
3092
|
+
if (response.httpStatusCode === 422) {
|
|
3093
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
3094
|
+
let body;
|
|
3095
|
+
try {
|
|
3096
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
3097
|
+
}
|
|
3098
|
+
catch (error) {
|
|
3099
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
3100
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3101
|
+
}
|
|
3102
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
3103
|
+
}
|
|
1650
3104
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1651
3105
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1652
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3106
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse", "");
|
|
1653
3107
|
return body;
|
|
1654
3108
|
}
|
|
1655
3109
|
const body = (yield response.body.text()) || "";
|
|
@@ -1660,17 +3114,20 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1660
3114
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1661
3115
|
* to the expected objects
|
|
1662
3116
|
*
|
|
1663
|
-
* @params response Response returned by the server for a request to
|
|
3117
|
+
* @params response Response returned by the server for a request to patchVulnerabilityNotificationRule
|
|
1664
3118
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1665
3119
|
*/
|
|
1666
|
-
|
|
3120
|
+
patchVulnerabilityNotificationRule(response) {
|
|
1667
3121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1668
3122
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1669
3123
|
if (response.httpStatusCode === 200) {
|
|
1670
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3124
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse");
|
|
1671
3125
|
return body;
|
|
1672
3126
|
}
|
|
1673
|
-
if (response.httpStatusCode ===
|
|
3127
|
+
if (response.httpStatusCode === 400 ||
|
|
3128
|
+
response.httpStatusCode === 403 ||
|
|
3129
|
+
response.httpStatusCode === 404 ||
|
|
3130
|
+
response.httpStatusCode === 429) {
|
|
1674
3131
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1675
3132
|
let body;
|
|
1676
3133
|
try {
|
|
@@ -1682,9 +3139,21 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1682
3139
|
}
|
|
1683
3140
|
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1684
3141
|
}
|
|
3142
|
+
if (response.httpStatusCode === 422) {
|
|
3143
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
3144
|
+
let body;
|
|
3145
|
+
try {
|
|
3146
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
3147
|
+
}
|
|
3148
|
+
catch (error) {
|
|
3149
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
3150
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3151
|
+
}
|
|
3152
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
3153
|
+
}
|
|
1685
3154
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1686
3155
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1687
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3156
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse", "");
|
|
1688
3157
|
return body;
|
|
1689
3158
|
}
|
|
1690
3159
|
const body = (yield response.body.text()) || "";
|
|
@@ -1695,25 +3164,25 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1695
3164
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1696
3165
|
* to the expected objects
|
|
1697
3166
|
*
|
|
1698
|
-
* @params response Response returned by the server for a request to
|
|
3167
|
+
* @params response Response returned by the server for a request to runHistoricalJob
|
|
1699
3168
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1700
3169
|
*/
|
|
1701
|
-
|
|
3170
|
+
runHistoricalJob(response) {
|
|
1702
3171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1703
3172
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1704
|
-
if (response.httpStatusCode ===
|
|
1705
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3173
|
+
if (response.httpStatusCode === 201) {
|
|
3174
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "JobCreateResponse");
|
|
1706
3175
|
return body;
|
|
1707
3176
|
}
|
|
1708
3177
|
if (response.httpStatusCode === 400 ||
|
|
3178
|
+
response.httpStatusCode === 401 ||
|
|
1709
3179
|
response.httpStatusCode === 403 ||
|
|
1710
3180
|
response.httpStatusCode === 404 ||
|
|
1711
|
-
response.httpStatusCode === 422 ||
|
|
1712
3181
|
response.httpStatusCode === 429) {
|
|
1713
3182
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1714
3183
|
let body;
|
|
1715
3184
|
try {
|
|
1716
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
3185
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1717
3186
|
}
|
|
1718
3187
|
catch (error) {
|
|
1719
3188
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1723,7 +3192,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1723
3192
|
}
|
|
1724
3193
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1725
3194
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1726
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
3195
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "JobCreateResponse", "");
|
|
1727
3196
|
return body;
|
|
1728
3197
|
}
|
|
1729
3198
|
const body = (yield response.body.text()) || "";
|
|
@@ -2008,6 +3477,20 @@ class SecurityMonitoringApi {
|
|
|
2008
3477
|
this.responseProcessor =
|
|
2009
3478
|
responseProcessor || new SecurityMonitoringApiResponseProcessor();
|
|
2010
3479
|
}
|
|
3480
|
+
/**
|
|
3481
|
+
* Cancel a historical job.
|
|
3482
|
+
* @param param The request object
|
|
3483
|
+
*/
|
|
3484
|
+
cancelHistoricalJob(param, options) {
|
|
3485
|
+
const requestContextPromise = this.requestFactory.cancelHistoricalJob(param.jobId, options);
|
|
3486
|
+
return requestContextPromise.then((requestContext) => {
|
|
3487
|
+
return this.configuration.httpApi
|
|
3488
|
+
.send(requestContext)
|
|
3489
|
+
.then((responseContext) => {
|
|
3490
|
+
return this.responseProcessor.cancelHistoricalJob(responseContext);
|
|
3491
|
+
});
|
|
3492
|
+
});
|
|
3493
|
+
}
|
|
2011
3494
|
/**
|
|
2012
3495
|
* Convert an existing rule from JSON to Terraform for datadog provider
|
|
2013
3496
|
* resource datadog_security_monitoring_rule.
|
|
@@ -2023,6 +3506,20 @@ class SecurityMonitoringApi {
|
|
|
2023
3506
|
});
|
|
2024
3507
|
});
|
|
2025
3508
|
}
|
|
3509
|
+
/**
|
|
3510
|
+
* Convert a job result to a signal.
|
|
3511
|
+
* @param param The request object
|
|
3512
|
+
*/
|
|
3513
|
+
convertJobResultToSignal(param, options) {
|
|
3514
|
+
const requestContextPromise = this.requestFactory.convertJobResultToSignal(param.body, options);
|
|
3515
|
+
return requestContextPromise.then((requestContext) => {
|
|
3516
|
+
return this.configuration.httpApi
|
|
3517
|
+
.send(requestContext)
|
|
3518
|
+
.then((responseContext) => {
|
|
3519
|
+
return this.responseProcessor.convertJobResultToSignal(responseContext);
|
|
3520
|
+
});
|
|
3521
|
+
});
|
|
3522
|
+
}
|
|
2026
3523
|
/**
|
|
2027
3524
|
* Convert a rule that doesn't (yet) exist from JSON to Terraform for datadog provider
|
|
2028
3525
|
* resource datadog_security_monitoring_rule.
|
|
@@ -2083,6 +3580,48 @@ class SecurityMonitoringApi {
|
|
|
2083
3580
|
});
|
|
2084
3581
|
});
|
|
2085
3582
|
}
|
|
3583
|
+
/**
|
|
3584
|
+
* Create a new notification rule for security signals and return the created rule.
|
|
3585
|
+
* @param param The request object
|
|
3586
|
+
*/
|
|
3587
|
+
createSignalNotificationRule(param, options) {
|
|
3588
|
+
const requestContextPromise = this.requestFactory.createSignalNotificationRule(param.body, options);
|
|
3589
|
+
return requestContextPromise.then((requestContext) => {
|
|
3590
|
+
return this.configuration.httpApi
|
|
3591
|
+
.send(requestContext)
|
|
3592
|
+
.then((responseContext) => {
|
|
3593
|
+
return this.responseProcessor.createSignalNotificationRule(responseContext);
|
|
3594
|
+
});
|
|
3595
|
+
});
|
|
3596
|
+
}
|
|
3597
|
+
/**
|
|
3598
|
+
* Create a new notification rule for security vulnerabilities and return the created rule.
|
|
3599
|
+
* @param param The request object
|
|
3600
|
+
*/
|
|
3601
|
+
createVulnerabilityNotificationRule(param, options) {
|
|
3602
|
+
const requestContextPromise = this.requestFactory.createVulnerabilityNotificationRule(param.body, options);
|
|
3603
|
+
return requestContextPromise.then((requestContext) => {
|
|
3604
|
+
return this.configuration.httpApi
|
|
3605
|
+
.send(requestContext)
|
|
3606
|
+
.then((responseContext) => {
|
|
3607
|
+
return this.responseProcessor.createVulnerabilityNotificationRule(responseContext);
|
|
3608
|
+
});
|
|
3609
|
+
});
|
|
3610
|
+
}
|
|
3611
|
+
/**
|
|
3612
|
+
* Delete an existing job.
|
|
3613
|
+
* @param param The request object
|
|
3614
|
+
*/
|
|
3615
|
+
deleteHistoricalJob(param, options) {
|
|
3616
|
+
const requestContextPromise = this.requestFactory.deleteHistoricalJob(param.jobId, options);
|
|
3617
|
+
return requestContextPromise.then((requestContext) => {
|
|
3618
|
+
return this.configuration.httpApi
|
|
3619
|
+
.send(requestContext)
|
|
3620
|
+
.then((responseContext) => {
|
|
3621
|
+
return this.responseProcessor.deleteHistoricalJob(responseContext);
|
|
3622
|
+
});
|
|
3623
|
+
});
|
|
3624
|
+
}
|
|
2086
3625
|
/**
|
|
2087
3626
|
* Delete a specific security filter.
|
|
2088
3627
|
* @param param The request object
|
|
@@ -2125,6 +3664,34 @@ class SecurityMonitoringApi {
|
|
|
2125
3664
|
});
|
|
2126
3665
|
});
|
|
2127
3666
|
}
|
|
3667
|
+
/**
|
|
3668
|
+
* Delete a notification rule for security signals.
|
|
3669
|
+
* @param param The request object
|
|
3670
|
+
*/
|
|
3671
|
+
deleteSignalNotificationRule(param, options) {
|
|
3672
|
+
const requestContextPromise = this.requestFactory.deleteSignalNotificationRule(param.id, options);
|
|
3673
|
+
return requestContextPromise.then((requestContext) => {
|
|
3674
|
+
return this.configuration.httpApi
|
|
3675
|
+
.send(requestContext)
|
|
3676
|
+
.then((responseContext) => {
|
|
3677
|
+
return this.responseProcessor.deleteSignalNotificationRule(responseContext);
|
|
3678
|
+
});
|
|
3679
|
+
});
|
|
3680
|
+
}
|
|
3681
|
+
/**
|
|
3682
|
+
* Delete a notification rule for security vulnerabilities.
|
|
3683
|
+
* @param param The request object
|
|
3684
|
+
*/
|
|
3685
|
+
deleteVulnerabilityNotificationRule(param, options) {
|
|
3686
|
+
const requestContextPromise = this.requestFactory.deleteVulnerabilityNotificationRule(param.id, options);
|
|
3687
|
+
return requestContextPromise.then((requestContext) => {
|
|
3688
|
+
return this.configuration.httpApi
|
|
3689
|
+
.send(requestContext)
|
|
3690
|
+
.then((responseContext) => {
|
|
3691
|
+
return this.responseProcessor.deleteVulnerabilityNotificationRule(responseContext);
|
|
3692
|
+
});
|
|
3693
|
+
});
|
|
3694
|
+
}
|
|
2128
3695
|
/**
|
|
2129
3696
|
* Modify the triage assignee of a security signal.
|
|
2130
3697
|
* @param param The request object
|
|
@@ -2181,6 +3748,34 @@ class SecurityMonitoringApi {
|
|
|
2181
3748
|
});
|
|
2182
3749
|
});
|
|
2183
3750
|
}
|
|
3751
|
+
/**
|
|
3752
|
+
* Get a job's details.
|
|
3753
|
+
* @param param The request object
|
|
3754
|
+
*/
|
|
3755
|
+
getHistoricalJob(param, options) {
|
|
3756
|
+
const requestContextPromise = this.requestFactory.getHistoricalJob(param.jobId, options);
|
|
3757
|
+
return requestContextPromise.then((requestContext) => {
|
|
3758
|
+
return this.configuration.httpApi
|
|
3759
|
+
.send(requestContext)
|
|
3760
|
+
.then((responseContext) => {
|
|
3761
|
+
return this.responseProcessor.getHistoricalJob(responseContext);
|
|
3762
|
+
});
|
|
3763
|
+
});
|
|
3764
|
+
}
|
|
3765
|
+
/**
|
|
3766
|
+
* Get a single SBOM related to an asset by its type and name.
|
|
3767
|
+
* @param param The request object
|
|
3768
|
+
*/
|
|
3769
|
+
getSBOM(param, options) {
|
|
3770
|
+
const requestContextPromise = this.requestFactory.getSBOM(param.assetType, param.filterAssetName, param.filterRepoDigest, options);
|
|
3771
|
+
return requestContextPromise.then((requestContext) => {
|
|
3772
|
+
return this.configuration.httpApi
|
|
3773
|
+
.send(requestContext)
|
|
3774
|
+
.then((responseContext) => {
|
|
3775
|
+
return this.responseProcessor.getSBOM(responseContext);
|
|
3776
|
+
});
|
|
3777
|
+
});
|
|
3778
|
+
}
|
|
2184
3779
|
/**
|
|
2185
3780
|
* Get the details of a specific security filter.
|
|
2186
3781
|
*
|
|
@@ -2241,7 +3836,65 @@ class SecurityMonitoringApi {
|
|
|
2241
3836
|
});
|
|
2242
3837
|
}
|
|
2243
3838
|
/**
|
|
2244
|
-
* Get
|
|
3839
|
+
* Get the details of a notification rule for security signals.
|
|
3840
|
+
* @param param The request object
|
|
3841
|
+
*/
|
|
3842
|
+
getSignalNotificationRule(param, options) {
|
|
3843
|
+
const requestContextPromise = this.requestFactory.getSignalNotificationRule(param.id, options);
|
|
3844
|
+
return requestContextPromise.then((requestContext) => {
|
|
3845
|
+
return this.configuration.httpApi
|
|
3846
|
+
.send(requestContext)
|
|
3847
|
+
.then((responseContext) => {
|
|
3848
|
+
return this.responseProcessor.getSignalNotificationRule(responseContext);
|
|
3849
|
+
});
|
|
3850
|
+
});
|
|
3851
|
+
}
|
|
3852
|
+
/**
|
|
3853
|
+
* Returns the list of notification rules for security signals.
|
|
3854
|
+
* @param param The request object
|
|
3855
|
+
*/
|
|
3856
|
+
getSignalNotificationRules(options) {
|
|
3857
|
+
const requestContextPromise = this.requestFactory.getSignalNotificationRules(options);
|
|
3858
|
+
return requestContextPromise.then((requestContext) => {
|
|
3859
|
+
return this.configuration.httpApi
|
|
3860
|
+
.send(requestContext)
|
|
3861
|
+
.then((responseContext) => {
|
|
3862
|
+
return this.responseProcessor.getSignalNotificationRules(responseContext);
|
|
3863
|
+
});
|
|
3864
|
+
});
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
* Get the details of a notification rule for security vulnerabilities.
|
|
3868
|
+
* @param param The request object
|
|
3869
|
+
*/
|
|
3870
|
+
getVulnerabilityNotificationRule(param, options) {
|
|
3871
|
+
const requestContextPromise = this.requestFactory.getVulnerabilityNotificationRule(param.id, options);
|
|
3872
|
+
return requestContextPromise.then((requestContext) => {
|
|
3873
|
+
return this.configuration.httpApi
|
|
3874
|
+
.send(requestContext)
|
|
3875
|
+
.then((responseContext) => {
|
|
3876
|
+
return this.responseProcessor.getVulnerabilityNotificationRule(responseContext);
|
|
3877
|
+
});
|
|
3878
|
+
});
|
|
3879
|
+
}
|
|
3880
|
+
/**
|
|
3881
|
+
* Returns the list of notification rules for security vulnerabilities.
|
|
3882
|
+
* @param param The request object
|
|
3883
|
+
*/
|
|
3884
|
+
getVulnerabilityNotificationRules(options) {
|
|
3885
|
+
const requestContextPromise = this.requestFactory.getVulnerabilityNotificationRules(options);
|
|
3886
|
+
return requestContextPromise.then((requestContext) => {
|
|
3887
|
+
return this.configuration.httpApi
|
|
3888
|
+
.send(requestContext)
|
|
3889
|
+
.then((responseContext) => {
|
|
3890
|
+
return this.responseProcessor.getVulnerabilityNotificationRules(responseContext);
|
|
3891
|
+
});
|
|
3892
|
+
});
|
|
3893
|
+
}
|
|
3894
|
+
/**
|
|
3895
|
+
* Get a list of findings. These include both misconfigurations and identity risks.
|
|
3896
|
+
*
|
|
3897
|
+
* **Note**: To filter and return only identity risks, add the following query parameter: `?filter[tags]=dd_rule_type:ciem`
|
|
2245
3898
|
*
|
|
2246
3899
|
* ### Filtering
|
|
2247
3900
|
*
|
|
@@ -2324,6 +3977,20 @@ class SecurityMonitoringApi {
|
|
|
2324
3977
|
}
|
|
2325
3978
|
});
|
|
2326
3979
|
}
|
|
3980
|
+
/**
|
|
3981
|
+
* List historical jobs.
|
|
3982
|
+
* @param param The request object
|
|
3983
|
+
*/
|
|
3984
|
+
listHistoricalJobs(param = {}, options) {
|
|
3985
|
+
const requestContextPromise = this.requestFactory.listHistoricalJobs(param.pageSize, param.pageNumber, param.sort, param.filterQuery, options);
|
|
3986
|
+
return requestContextPromise.then((requestContext) => {
|
|
3987
|
+
return this.configuration.httpApi
|
|
3988
|
+
.send(requestContext)
|
|
3989
|
+
.then((responseContext) => {
|
|
3990
|
+
return this.responseProcessor.listHistoricalJobs(responseContext);
|
|
3991
|
+
});
|
|
3992
|
+
});
|
|
3993
|
+
}
|
|
2327
3994
|
/**
|
|
2328
3995
|
* Get the list of configured security filters with their definitions.
|
|
2329
3996
|
* @param param The request object
|
|
@@ -2423,6 +4090,125 @@ class SecurityMonitoringApi {
|
|
|
2423
4090
|
});
|
|
2424
4091
|
});
|
|
2425
4092
|
}
|
|
4093
|
+
/**
|
|
4094
|
+
* Get a list of vulnerabilities.
|
|
4095
|
+
*
|
|
4096
|
+
* ### Pagination
|
|
4097
|
+
*
|
|
4098
|
+
* Pagination is enabled by default in both `vulnerabilities` and `assets`. The size of the page varies depending on the endpoint and cannot be modified. To automate the request of the next page, you can use the links section in the response.
|
|
4099
|
+
*
|
|
4100
|
+
* This endpoint will return paginated responses. The pages are stored in the links section of the response:
|
|
4101
|
+
*
|
|
4102
|
+
* ```JSON
|
|
4103
|
+
* {
|
|
4104
|
+
* "data": [...],
|
|
4105
|
+
* "meta": {...},
|
|
4106
|
+
* "links": {
|
|
4107
|
+
* "self": "https://.../api/v2/security/vulnerabilities",
|
|
4108
|
+
* "first": "https://.../api/v2/security/vulnerabilities?page[number]=1&page[token]=abc",
|
|
4109
|
+
* "last": "https://.../api/v2/security/vulnerabilities?page[number]=43&page[token]=abc",
|
|
4110
|
+
* "next": "https://.../api/v2/security/vulnerabilities?page[number]=2&page[token]=abc"
|
|
4111
|
+
* }
|
|
4112
|
+
* }
|
|
4113
|
+
* ```
|
|
4114
|
+
*
|
|
4115
|
+
*
|
|
4116
|
+
* - `links.previous` is empty if the first page is requested.
|
|
4117
|
+
* - `links.next` is empty if the last page is requested.
|
|
4118
|
+
*
|
|
4119
|
+
* #### Token
|
|
4120
|
+
*
|
|
4121
|
+
* Vulnerabilities can be created, updated or deleted at any point in time.
|
|
4122
|
+
*
|
|
4123
|
+
* Upon the first request, a token is created to ensure consistency across subsequent paginated requests.
|
|
4124
|
+
*
|
|
4125
|
+
* A token is valid only for 24 hours.
|
|
4126
|
+
*
|
|
4127
|
+
* #### First request
|
|
4128
|
+
*
|
|
4129
|
+
* We consider a request to be the first request when there is no `page[token]` parameter.
|
|
4130
|
+
*
|
|
4131
|
+
* The response of this first request contains the newly created token in the `links` section.
|
|
4132
|
+
*
|
|
4133
|
+
* This token can then be used in the subsequent paginated requests.
|
|
4134
|
+
*
|
|
4135
|
+
* #### Subsequent requests
|
|
4136
|
+
*
|
|
4137
|
+
* Any request containing valid `page[token]` and `page[number]` parameters will be considered a subsequent request.
|
|
4138
|
+
*
|
|
4139
|
+
* If the `token` is invalid, a `404` response will be returned.
|
|
4140
|
+
*
|
|
4141
|
+
* If the page `number` is invalid, a `400` response will be returned.
|
|
4142
|
+
*
|
|
4143
|
+
* ### Filtering
|
|
4144
|
+
*
|
|
4145
|
+
* The request can include some filter parameters to filter the data to be retrieved. The format of the filter parameters follows the [JSON:API format](https://jsonapi.org/format/#fetching-filtering): `filter[$prop_name]`, where `prop_name` is the property name in the entity being filtered by.
|
|
4146
|
+
*
|
|
4147
|
+
* All filters can include multiple values, where data will be filtered with an OR clause: `filter[title]=Title1,Title2` will filter all vulnerabilities where title is equal to `Title1` OR `Title2`.
|
|
4148
|
+
*
|
|
4149
|
+
* String filters are case sensitive.
|
|
4150
|
+
*
|
|
4151
|
+
* Boolean filters accept `true` or `false` as values.
|
|
4152
|
+
*
|
|
4153
|
+
* Number filters must include an operator as a second filter input: `filter[$prop_name][$operator]`. For example, for the vulnerabilities endpoint: `filter[cvss.base.score][lte]=8`.
|
|
4154
|
+
*
|
|
4155
|
+
* Available operators are: `eq` (==), `lt` (<), `lte` (<=), `gt` (>) and `gte` (>=).
|
|
4156
|
+
*
|
|
4157
|
+
* ### Metadata
|
|
4158
|
+
*
|
|
4159
|
+
* Following [JSON:API format](https://jsonapi.org/format/#document-meta), object including non-standard meta-information.
|
|
4160
|
+
*
|
|
4161
|
+
* This endpoint includes the meta member in the response. For more details on each of the properties included in this section, check the endpoints response tables.
|
|
4162
|
+
*
|
|
4163
|
+
* ```JSON
|
|
4164
|
+
* {
|
|
4165
|
+
* "data": [...],
|
|
4166
|
+
* "meta": {
|
|
4167
|
+
* "total": 1500,
|
|
4168
|
+
* "count": 18732,
|
|
4169
|
+
* "token": "some_token"
|
|
4170
|
+
* },
|
|
4171
|
+
* "links": {...}
|
|
4172
|
+
* }
|
|
4173
|
+
* ```
|
|
4174
|
+
* @param param The request object
|
|
4175
|
+
*/
|
|
4176
|
+
listVulnerabilities(param = {}, options) {
|
|
4177
|
+
const requestContextPromise = this.requestFactory.listVulnerabilities(param.pageToken, param.pageNumber, param.filterType, param.filterCvssBaseScoreOp, param.filterCvssBaseSeverity, param.filterCvssBaseVector, param.filterCvssDatadogScoreOp, param.filterCvssDatadogSeverity, param.filterCvssDatadogVector, param.filterStatus, param.filterTool, param.filterLibraryName, param.filterLibraryVersion, param.filterAdvisoryId, param.filterRisksExploitationProbability, param.filterRisksPocExploitAvailable, param.filterRisksExploitAvailable, param.filterRisksEpssScoreOp, param.filterRisksEpssSeverity, param.filterLanguage, param.filterEcosystem, param.filterCodeLocationLocation, param.filterCodeLocationFilePath, param.filterCodeLocationMethod, param.filterFixAvailable, param.filterRepoDigests, param.filterAssetName, param.filterAssetType, param.filterAssetVersionFirst, param.filterAssetVersionLast, param.filterAssetRepositoryUrl, param.filterAssetRisksInProduction, param.filterAssetRisksUnderAttack, param.filterAssetRisksIsPubliclyAccessible, param.filterAssetRisksHasPrivilegedAccess, param.filterAssetRisksHasAccessToSensitiveData, param.filterAssetEnvironments, param.filterAssetArch, param.filterAssetOperatingSystemName, param.filterAssetOperatingSystemVersion, options);
|
|
4178
|
+
return requestContextPromise.then((requestContext) => {
|
|
4179
|
+
return this.configuration.httpApi
|
|
4180
|
+
.send(requestContext)
|
|
4181
|
+
.then((responseContext) => {
|
|
4182
|
+
return this.responseProcessor.listVulnerabilities(responseContext);
|
|
4183
|
+
});
|
|
4184
|
+
});
|
|
4185
|
+
}
|
|
4186
|
+
/**
|
|
4187
|
+
* Get a list of vulnerable assets.
|
|
4188
|
+
*
|
|
4189
|
+
* ### Pagination
|
|
4190
|
+
*
|
|
4191
|
+
* Please review the [Pagination section for the "List Vulnerabilities"](#pagination) endpoint.
|
|
4192
|
+
*
|
|
4193
|
+
* ### Filtering
|
|
4194
|
+
*
|
|
4195
|
+
* Please review the [Filtering section for the "List Vulnerabilities"](#filtering) endpoint.
|
|
4196
|
+
*
|
|
4197
|
+
* ### Metadata
|
|
4198
|
+
*
|
|
4199
|
+
* Please review the [Metadata section for the "List Vulnerabilities"](#metadata) endpoint.
|
|
4200
|
+
* @param param The request object
|
|
4201
|
+
*/
|
|
4202
|
+
listVulnerableAssets(param = {}, options) {
|
|
4203
|
+
const requestContextPromise = this.requestFactory.listVulnerableAssets(param.pageToken, param.pageNumber, param.filterName, param.filterType, param.filterVersionFirst, param.filterVersionLast, param.filterRepositoryUrl, param.filterRisksInProduction, param.filterRisksUnderAttack, param.filterRisksIsPubliclyAccessible, param.filterRisksHasPrivilegedAccess, param.filterRisksHasAccessToSensitiveData, param.filterEnvironments, param.filterArch, param.filterOperatingSystemName, param.filterOperatingSystemVersion, options);
|
|
4204
|
+
return requestContextPromise.then((requestContext) => {
|
|
4205
|
+
return this.configuration.httpApi
|
|
4206
|
+
.send(requestContext)
|
|
4207
|
+
.then((responseContext) => {
|
|
4208
|
+
return this.responseProcessor.listVulnerableAssets(responseContext);
|
|
4209
|
+
});
|
|
4210
|
+
});
|
|
4211
|
+
}
|
|
2426
4212
|
/**
|
|
2427
4213
|
* Mute or unmute findings.
|
|
2428
4214
|
* @param param The request object
|
|
@@ -2437,6 +4223,48 @@ class SecurityMonitoringApi {
|
|
|
2437
4223
|
});
|
|
2438
4224
|
});
|
|
2439
4225
|
}
|
|
4226
|
+
/**
|
|
4227
|
+
* Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated.
|
|
4228
|
+
* @param param The request object
|
|
4229
|
+
*/
|
|
4230
|
+
patchSignalNotificationRule(param, options) {
|
|
4231
|
+
const requestContextPromise = this.requestFactory.patchSignalNotificationRule(param.id, param.body, options);
|
|
4232
|
+
return requestContextPromise.then((requestContext) => {
|
|
4233
|
+
return this.configuration.httpApi
|
|
4234
|
+
.send(requestContext)
|
|
4235
|
+
.then((responseContext) => {
|
|
4236
|
+
return this.responseProcessor.patchSignalNotificationRule(responseContext);
|
|
4237
|
+
});
|
|
4238
|
+
});
|
|
4239
|
+
}
|
|
4240
|
+
/**
|
|
4241
|
+
* Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated.
|
|
4242
|
+
* @param param The request object
|
|
4243
|
+
*/
|
|
4244
|
+
patchVulnerabilityNotificationRule(param, options) {
|
|
4245
|
+
const requestContextPromise = this.requestFactory.patchVulnerabilityNotificationRule(param.id, param.body, options);
|
|
4246
|
+
return requestContextPromise.then((requestContext) => {
|
|
4247
|
+
return this.configuration.httpApi
|
|
4248
|
+
.send(requestContext)
|
|
4249
|
+
.then((responseContext) => {
|
|
4250
|
+
return this.responseProcessor.patchVulnerabilityNotificationRule(responseContext);
|
|
4251
|
+
});
|
|
4252
|
+
});
|
|
4253
|
+
}
|
|
4254
|
+
/**
|
|
4255
|
+
* Run a historical job.
|
|
4256
|
+
* @param param The request object
|
|
4257
|
+
*/
|
|
4258
|
+
runHistoricalJob(param, options) {
|
|
4259
|
+
const requestContextPromise = this.requestFactory.runHistoricalJob(param.body, options);
|
|
4260
|
+
return requestContextPromise.then((requestContext) => {
|
|
4261
|
+
return this.configuration.httpApi
|
|
4262
|
+
.send(requestContext)
|
|
4263
|
+
.then((responseContext) => {
|
|
4264
|
+
return this.responseProcessor.runHistoricalJob(responseContext);
|
|
4265
|
+
});
|
|
4266
|
+
});
|
|
4267
|
+
}
|
|
2440
4268
|
/**
|
|
2441
4269
|
* Returns security signals that match a search query.
|
|
2442
4270
|
* Both this endpoint and the GET endpoint can be used interchangeably for listing
|