@datadog/datadog-api-client 1.31.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 +41 -0
- package/dist/packages/datadog-api-client-common/configuration.js +4 -6
- 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 -1
- 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/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/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/ObjectSerializer.js +22 -2
- 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/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/UsageSummaryDate.d.ts +75 -3
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +90 -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 +74 -2
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +90 -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 +74 -2
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +90 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- 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/{AppsApi.d.ts → AppBuilderApi.d.ts} +91 -33
- package/dist/packages/datadog-api-client-v2/apis/{AppsApi.js → AppBuilderApi.js} +220 -33
- package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.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/{AppDeploymentApi.js → CSMCoverageAnalysisApi.js} +101 -71
- package/dist/packages/datadog-api-client-v2/apis/CSMCoverageAnalysisApi.js.map +1 -0
- 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 +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +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 +17 -4
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +14 -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 +652 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +1520 -198
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +1 -1
- 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/index.d.ts +144 -45
- package/dist/packages/datadog-api-client-v2/index.js +246 -86
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/{InputSchemaDataAttributesParametersItemsDataAttributes.d.ts → AWSAssumeRole.d.ts} +13 -16
- 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/{InputSchemaDataType.d.ts → AWSAssumeRoleType.d.ts} +3 -3
- package/dist/packages/datadog-api-client-v2/models/{DisableAppResponseDataType.js → AWSAssumeRoleType.js} +3 -3
- 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/{DeployAppResponseDataType.d.ts → AWSCredentials.d.ts} +3 -3
- 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/{DisableAppResponseDataType.d.ts → AWSCredentialsUpdate.d.ts} +3 -3
- 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/{AppBuilderErrorErrorsItems.d.ts → AWSIntegration.d.ts} +8 -7
- 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/{ScriptDataType.d.ts → AWSIntegrationType.d.ts} +3 -3
- package/dist/packages/datadog-api-client-v2/models/{ScriptDataType.js → AWSIntegrationType.js} +3 -3
- 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/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/{CreateAppRequestDataType.d.ts → ActionConnectionDataType.d.ts} +3 -3
- package/dist/packages/datadog-api-client-v2/models/{CreateAppResponseDataType.js → ActionConnectionDataType.js} +3 -3
- 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/{AppBuilderErrorErrorsItemsSource.d.ts → Advisory.d.ts} +10 -6
- package/dist/packages/datadog-api-client-v2/models/{DeployAppResponseDataAttributes.js → Advisory.js} +19 -9
- package/dist/packages/datadog-api-client-v2/models/Advisory.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEvent.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/AppBuilderEvent.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/{GetAppResponseDataType.d.ts → AppDefinitionType.d.ts} +2 -2
- package/dist/packages/datadog-api-client-v2/models/{GetAppResponseDataType.js → AppDefinitionType.js} +1 -1
- package/dist/packages/datadog-api-client-v2/models/AppDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{DeploymentIncludedType.d.ts → AppDeploymentType.d.ts} +2 -2
- package/dist/packages/datadog-api-client-v2/models/{DeploymentIncludedType.js → AppDeploymentType.js} +1 -1
- package/dist/packages/datadog-api-client-v2/models/AppDeploymentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppMeta.d.ts +13 -17
- package/dist/packages/datadog-api-client-v2/models/AppMeta.js +8 -8
- package/dist/packages/datadog-api-client-v2/models/AppMeta.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/{GetAppResponseRelationship.d.ts → AppRelationship.d.ts} +4 -4
- package/dist/packages/datadog-api-client-v2/models/{GetAppResponseRelationship.js → AppRelationship.js} +7 -7
- package/dist/packages/datadog-api-client-v2/models/AppRelationship.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/{InputSchemaData.js → Asset.js} +12 -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/{InputSchemaDataType.js → AssetEntityType.js} +3 -3
- 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/{DisableAppResponseDataAttributes.js → AssetOperatingSystem.js} +14 -9
- 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/{Script.d.ts → AssetVersion.d.ts} +8 -5
- 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/{InputSchemaData.d.ts → AwsScanOptionsData.d.ts} +9 -9
- 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/{DeleteAppsRequestDataItemsType.d.ts → AwsScanOptionsType.d.ts} +3 -3
- package/dist/packages/datadog-api-client-v2/models/{CreateAppRequestDataType.js → AwsScanOptionsType.js} +3 -3
- 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/CVSS.d.ts +45 -0
- 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/ChangeEventCustomAttributes.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.js.map +1 -1
- 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 +6 -6
- package/dist/packages/datadog-api-client-v2/models/Component.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ComponentGrid.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/ComponentGrid.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ComponentGridProperties.d.ts +4 -4
- package/dist/packages/datadog-api-client-v2/models/ComponentGridProperties.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ComponentGridPropertiesIsVisible.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ComponentGridType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ComponentProperties.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/ComponentProperties.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ComponentPropertiesIsVisible.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ComponentType.d.ts +1 -1
- 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 +2 -2
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequest.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestData.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestData.js +2 -2
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.d.ts +9 -19
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.js +5 -13
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponse.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponse.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponseData.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponseData.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponseData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/{DeleteAppResponseDataType.d.ts → CreateDataDeletionRequestBodyDataType.d.ts} +3 -3
- package/dist/packages/datadog-api-client-v2/models/{DeleteAppsRequestDataItemsType.js → CreateDataDeletionRequestBodyDataType.js} +3 -3
- package/dist/packages/datadog-api-client-v2/models/CreateDataDeletionRequestBodyDataType.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/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 +4 -4
- package/dist/packages/datadog-api-client-v2/models/CustomConnection.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/CustomConnection.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributes.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributes.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionAttributesOnPremRunner.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/CustomConnectionType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponse.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponse.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponseData.d.ts +4 -4
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponseData.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponseData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequest.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequest.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItems.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponse.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponse.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItems.js.map +1 -1
- 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/{DeploymentIncluded.js → Deployment.js} +11 -10
- 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/{DeploymentIncludedAttributes.js → DeploymentAttributes.js} +8 -7
- package/dist/packages/datadog-api-client-v2/models/DeploymentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{DeploymentRelationshipMeta.d.ts → DeploymentMetadata.d.ts} +7 -7
- package/dist/packages/datadog-api-client-v2/models/{DeploymentMeta.js → DeploymentMetadata.js} +10 -8
- package/dist/packages/datadog-api-client-v2/models/DeploymentMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationship.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationship.js +2 -2
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationship.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipData.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipData.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipData.js.map +1 -1
- 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/{DeployAppResponseDataType.js → EntityV3APIKind.js} +3 -3
- 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/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 +9 -9
- package/dist/packages/datadog-api-client-v2/models/GetAppResponse.js +3 -3
- package/dist/packages/datadog-api-client-v2/models/GetAppResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseData.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseData.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.d.ts +10 -20
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.js +5 -13
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/{DeploymentIncludedAttributes.d.ts → GetSBOMResponse.d.ts} +5 -4
- package/dist/packages/datadog-api-client-v2/models/{Script.js → GetSBOMResponse.js} +9 -8
- 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/{DeploymentMeta.d.ts → HTTPTokenUpdate.d.ts} +11 -10
- 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/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/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/{AppBuilderErrorErrorsItemsSource.js → JSONAPIErrorItemSource.js} +11 -7
- package/dist/packages/datadog-api-client-v2/models/JSONAPIErrorItemSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JobDefinition.d.ts +7 -12
- package/dist/packages/datadog-api-client-v2/models/JobDefinition.js +2 -6
- package/dist/packages/datadog-api-client-v2/models/JobDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/{DisableAppResponseDataAttributes.d.ts → Library.d.ts} +8 -4
- 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/{DeploymentIncludedMeta.d.ts → Links.d.ts} +14 -10
- package/dist/packages/datadog-api-client-v2/models/{DeploymentIncludedMeta.js → Links.js} +23 -17
- package/dist/packages/datadog-api-client-v2/models/Links.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponse.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponse.js +2 -2
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.d.ts +8 -8
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItems.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsAttributes.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsRelationships.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMeta.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMeta.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseMetaPage.js +1 -1
- 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/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/{DeployAppResponseData.d.ts → MicrosoftTeamsWorkflowsWebhookHandleResponseData.d.ts} +9 -14
- 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/{DeployAppResponseDataAttributes.d.ts → MicrosoftTeamsWorkflowsWebhookResponseAttributes.d.ts} +4 -4
- 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-v1/models/AzureAccountMetricsConfig.d.ts → datadog-api-client-v2/models/NotificationRuleResponse.d.ts} +8 -7
- 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/{CreateAppResponseDataType.d.ts → NotificationRulesType.d.ts} +3 -3
- package/dist/packages/datadog-api-client-v2/models/{DeleteAppResponseDataType.js → NotificationRulesType.js} +3 -3
- package/dist/packages/datadog-api-client-v2/models/NotificationRulesType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +347 -68
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- 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/{DisableAppResponse.js → PublishAppResponse.js} +8 -8
- package/dist/packages/datadog-api-client-v2/models/PublishAppResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Query.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/Query.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/Query.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/QueryType.d.ts +1 -1
- 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/{ScriptData.d.ts → SBOM.d.ts} +9 -9
- package/dist/packages/datadog-api-client-v2/models/{ScriptData.js → SBOM.js} +9 -9
- 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/{DeploymentIncluded.d.ts → SBOMComponent.d.ts} +15 -13
- 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/{ScriptDataAttributes.d.ts → SBOMMetadataComponent.d.ts} +4 -8
- package/dist/packages/datadog-api-client-v2/models/{ScriptDataAttributes.js → SBOMMetadataComponent.js} +7 -11
- 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/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 +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/{DeployAppResponse.d.ts → UpdateActionConnectionRequest.d.ts} +5 -5
- 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 +2 -2
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequest.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestData.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestData.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.d.ts +9 -19
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.js +5 -13
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponse.d.ts +9 -9
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponse.js +3 -3
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseData.d.ts +6 -6
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseData.js +3 -2
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.d.ts +10 -20
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.js +5 -13
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataAttributes.js.map +1 -1
- 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/{DeploymentRelationshipDataType.js → VulnerabilitiesType.js} +3 -3
- 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/{InputSchema.d.ts → VulnerabilityCvss.d.ts} +9 -5
- 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/{AppBuilderError.d.ts → VulnerabilityRelationshipsAffects.d.ts} +5 -5
- 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/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-v2/apis/AppDeploymentApi.d.ts +0 -55
- package/dist/packages/datadog-api-client-v2/apis/AppDeploymentApi.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/apis/AppsApi.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/AppBuilderError.js +0 -30
- package/dist/packages/datadog-api-client-v2/models/AppBuilderError.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/AppBuilderErrorErrorsItems.js +0 -34
- package/dist/packages/datadog-api-client-v2/models/AppBuilderErrorErrorsItems.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/AppBuilderErrorErrorsItemsSource.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/CreateAppRequestDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/CreateAppResponseDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppResponseDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsRequestDataItemsType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItemsType.d.ts +0 -11
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItemsType.js +0 -10
- package/dist/packages/datadog-api-client-v2/models/DeleteAppsResponseDataItemsType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeployAppResponse.js +0 -30
- package/dist/packages/datadog-api-client-v2/models/DeployAppResponse.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeployAppResponseData.js +0 -42
- package/dist/packages/datadog-api-client-v2/models/DeployAppResponseData.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeployAppResponseDataAttributes.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeployAppResponseDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentIncluded.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentIncludedAttributes.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentIncludedMeta.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentIncludedType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentMeta.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipDataType.d.ts +0 -11
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipMeta.js +0 -48
- package/dist/packages/datadog-api-client-v2/models/DeploymentRelationshipMeta.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DisableAppResponse.d.ts +0 -37
- package/dist/packages/datadog-api-client-v2/models/DisableAppResponse.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DisableAppResponseData.d.ts +0 -51
- package/dist/packages/datadog-api-client-v2/models/DisableAppResponseData.js +0 -42
- package/dist/packages/datadog-api-client-v2/models/DisableAppResponseData.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DisableAppResponseDataAttributes.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/DisableAppResponseDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/EntityV3MetadataOwner.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/GetAppResponseRelationship.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/InputSchema.js +0 -30
- package/dist/packages/datadog-api-client-v2/models/InputSchema.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/InputSchemaData.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributes.d.ts +0 -37
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributes.js +0 -30
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributes.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItems.d.ts +0 -37
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItems.js +0 -30
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItems.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItemsData.d.ts +0 -37
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItemsData.js +0 -30
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItemsData.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItemsDataAttributes.js +0 -55
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataAttributesParametersItemsDataAttributes.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/InputSchemaDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsType.d.ts +0 -11
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsType.js +0 -10
- package/dist/packages/datadog-api-client-v2/models/ListAppsResponseDataItemsType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/Script.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/ScriptData.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/ScriptDataAttributes.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/ScriptDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataType.d.ts +0 -11
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataType.js +0 -10
- package/dist/packages/datadog-api-client-v2/models/UpdateAppRequestDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataType.d.ts +0 -11
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataType.js +0 -10
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseDataType.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseRelationship.d.ts +0 -42
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseRelationship.js +0 -34
- package/dist/packages/datadog-api-client-v2/models/UpdateAppResponseRelationship.js.map +0 -1
|
@@ -241,6 +241,68 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
241
241
|
return requestContext;
|
|
242
242
|
});
|
|
243
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
|
+
}
|
|
244
306
|
deleteHistoricalJob(jobId, _options) {
|
|
245
307
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
308
|
const _config = _options || this.configuration;
|
|
@@ -341,6 +403,54 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
341
403
|
return requestContext;
|
|
342
404
|
});
|
|
343
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
|
+
}
|
|
344
454
|
editSecurityMonitoringSignalAssignee(signalId, body, _options) {
|
|
345
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
346
456
|
const _config = _options || this.configuration;
|
|
@@ -503,6 +613,40 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
503
613
|
return requestContext;
|
|
504
614
|
});
|
|
505
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
|
+
}
|
|
506
650
|
getSecurityFilter(securityFilterId, _options) {
|
|
507
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
508
652
|
const _config = _options || this.configuration;
|
|
@@ -599,6 +743,94 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
599
743
|
return requestContext;
|
|
600
744
|
});
|
|
601
745
|
}
|
|
746
|
+
getSignalNotificationRule(id, _options) {
|
|
747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
748
|
+
const _config = _options || this.configuration;
|
|
749
|
+
// verify required parameter 'id' is not null or undefined
|
|
750
|
+
if (id === null || id === undefined) {
|
|
751
|
+
throw new baseapi_1.RequiredError("id", "getSignalNotificationRule");
|
|
752
|
+
}
|
|
753
|
+
// Path Params
|
|
754
|
+
const localVarPath = "/api/v2/security/signals/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
755
|
+
// Make Request Context
|
|
756
|
+
const requestContext = _config
|
|
757
|
+
.getServer("v2.SecurityMonitoringApi.getSignalNotificationRule")
|
|
758
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
759
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
760
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
761
|
+
// Apply auth methods
|
|
762
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
763
|
+
"AuthZ",
|
|
764
|
+
"apiKeyAuth",
|
|
765
|
+
"appKeyAuth",
|
|
766
|
+
]);
|
|
767
|
+
return requestContext;
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
getSignalNotificationRules(_options) {
|
|
771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
772
|
+
const _config = _options || this.configuration;
|
|
773
|
+
// Path Params
|
|
774
|
+
const localVarPath = "/api/v2/security/signals/notification_rules";
|
|
775
|
+
// Make Request Context
|
|
776
|
+
const requestContext = _config
|
|
777
|
+
.getServer("v2.SecurityMonitoringApi.getSignalNotificationRules")
|
|
778
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
779
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
780
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
781
|
+
// Apply auth methods
|
|
782
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
783
|
+
"AuthZ",
|
|
784
|
+
"apiKeyAuth",
|
|
785
|
+
"appKeyAuth",
|
|
786
|
+
]);
|
|
787
|
+
return requestContext;
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
getVulnerabilityNotificationRule(id, _options) {
|
|
791
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
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
|
+
}
|
|
797
|
+
// Path Params
|
|
798
|
+
const localVarPath = "/api/v2/security/vulnerabilities/notification_rules/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
799
|
+
// Make Request Context
|
|
800
|
+
const requestContext = _config
|
|
801
|
+
.getServer("v2.SecurityMonitoringApi.getVulnerabilityNotificationRule")
|
|
802
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
803
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
804
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
805
|
+
// Apply auth methods
|
|
806
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
807
|
+
"AuthZ",
|
|
808
|
+
"apiKeyAuth",
|
|
809
|
+
"appKeyAuth",
|
|
810
|
+
]);
|
|
811
|
+
return requestContext;
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
getVulnerabilityNotificationRules(_options) {
|
|
815
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
816
|
+
const _config = _options || this.configuration;
|
|
817
|
+
// Path Params
|
|
818
|
+
const localVarPath = "/api/v2/security/vulnerabilities/notification_rules";
|
|
819
|
+
// Make Request Context
|
|
820
|
+
const requestContext = _config
|
|
821
|
+
.getServer("v2.SecurityMonitoringApi.getVulnerabilityNotificationRules")
|
|
822
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
823
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
824
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
825
|
+
// Apply auth methods
|
|
826
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
827
|
+
"AuthZ",
|
|
828
|
+
"apiKeyAuth",
|
|
829
|
+
"appKeyAuth",
|
|
830
|
+
]);
|
|
831
|
+
return requestContext;
|
|
832
|
+
});
|
|
833
|
+
}
|
|
602
834
|
listFindings(pageLimit, snapshotTimestamp, pageCursor, filterTags, filterEvaluationChangedAt, filterMuted, filterRuleId, filterRuleName, filterResourceType, filterDiscoveryTimestamp, filterEvaluation, filterStatus, filterVulnerabilityType, _options) {
|
|
603
835
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
836
|
const _config = _options || this.configuration;
|
|
@@ -806,32 +1038,138 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
806
1038
|
return requestContext;
|
|
807
1039
|
});
|
|
808
1040
|
}
|
|
809
|
-
|
|
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) {
|
|
810
1042
|
return __awaiter(this, void 0, void 0, function* () {
|
|
811
1043
|
const _config = _options || this.configuration;
|
|
812
|
-
logger_1.logger.warn("Using unstable operation 'muteFindings'");
|
|
813
|
-
if (!_config.unstableOperations["v2.muteFindings"]) {
|
|
814
|
-
throw new Error("Unstable operation 'muteFindings' is disabled");
|
|
815
|
-
}
|
|
816
|
-
// verify required parameter 'body' is not null or undefined
|
|
817
|
-
if (body === null || body === undefined) {
|
|
818
|
-
throw new baseapi_1.RequiredError("body", "muteFindings");
|
|
819
|
-
}
|
|
820
1044
|
// Path Params
|
|
821
|
-
const localVarPath = "/api/v2/
|
|
1045
|
+
const localVarPath = "/api/v2/security/vulnerabilities";
|
|
822
1046
|
// Make Request Context
|
|
823
1047
|
const requestContext = _config
|
|
824
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
825
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
1048
|
+
.getServer("v2.SecurityMonitoringApi.listVulnerabilities")
|
|
1049
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
826
1050
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
827
1051
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
828
|
-
//
|
|
829
|
-
|
|
830
|
-
"
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
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
|
+
}
|
|
835
1173
|
// Apply auth methods
|
|
836
1174
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
837
1175
|
"apiKeyAuth",
|
|
@@ -840,23 +1178,195 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
840
1178
|
return requestContext;
|
|
841
1179
|
});
|
|
842
1180
|
}
|
|
843
|
-
|
|
1181
|
+
listVulnerableAssets(pageToken, pageNumber, filterName, filterType, filterVersionFirst, filterVersionLast, filterRepositoryUrl, filterRisksInProduction, filterRisksUnderAttack, filterRisksIsPubliclyAccessible, filterRisksHasPrivilegedAccess, filterRisksHasAccessToSensitiveData, filterEnvironments, filterArch, filterOperatingSystemName, filterOperatingSystemVersion, _options) {
|
|
844
1182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
845
1183
|
const _config = _options || this.configuration;
|
|
846
|
-
logger_1.logger.warn("Using unstable operation 'runHistoricalJob'");
|
|
847
|
-
if (!_config.unstableOperations["v2.runHistoricalJob"]) {
|
|
848
|
-
throw new Error("Unstable operation 'runHistoricalJob' is disabled");
|
|
849
|
-
}
|
|
850
|
-
// verify required parameter 'body' is not null or undefined
|
|
851
|
-
if (body === null || body === undefined) {
|
|
852
|
-
throw new baseapi_1.RequiredError("body", "runHistoricalJob");
|
|
853
|
-
}
|
|
854
1184
|
// Path Params
|
|
855
|
-
const localVarPath = "/api/v2/
|
|
1185
|
+
const localVarPath = "/api/v2/security/assets";
|
|
856
1186
|
// Make Request Context
|
|
857
1187
|
const requestContext = _config
|
|
858
|
-
.getServer("v2.SecurityMonitoringApi.
|
|
859
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
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);
|
|
1308
|
+
requestContext.setBody(serializedBody);
|
|
1309
|
+
// Apply auth methods
|
|
1310
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
1311
|
+
"AuthZ",
|
|
1312
|
+
"apiKeyAuth",
|
|
1313
|
+
"appKeyAuth",
|
|
1314
|
+
]);
|
|
1315
|
+
return requestContext;
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
patchVulnerabilityNotificationRule(id, body, _options) {
|
|
1319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
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
|
+
}
|
|
1325
|
+
// verify required parameter 'body' is not null or undefined
|
|
1326
|
+
if (body === null || body === undefined) {
|
|
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);
|
|
860
1370
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
861
1371
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
862
1372
|
// Body Params
|
|
@@ -1104,27 +1614,512 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
1104
1614
|
return requestContext;
|
|
1105
1615
|
});
|
|
1106
1616
|
}
|
|
1107
|
-
}
|
|
1108
|
-
exports.SecurityMonitoringApiRequestFactory = SecurityMonitoringApiRequestFactory;
|
|
1109
|
-
class SecurityMonitoringApiResponseProcessor {
|
|
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
|
+
}
|
|
1110
2108
|
/**
|
|
1111
2109
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1112
2110
|
* to the expected objects
|
|
1113
2111
|
*
|
|
1114
|
-
* @params response Response returned by the server for a request to
|
|
2112
|
+
* @params response Response returned by the server for a request to deleteSignalNotificationRule
|
|
1115
2113
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1116
2114
|
*/
|
|
1117
|
-
|
|
2115
|
+
deleteSignalNotificationRule(response) {
|
|
1118
2116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1119
2117
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1120
2118
|
if (response.httpStatusCode === 204) {
|
|
1121
2119
|
return;
|
|
1122
2120
|
}
|
|
1123
|
-
if (response.httpStatusCode ===
|
|
1124
|
-
response.httpStatusCode === 401 ||
|
|
1125
|
-
response.httpStatusCode === 403 ||
|
|
2121
|
+
if (response.httpStatusCode === 403 ||
|
|
1126
2122
|
response.httpStatusCode === 404 ||
|
|
1127
|
-
response.httpStatusCode === 409 ||
|
|
1128
2123
|
response.httpStatusCode === 429) {
|
|
1129
2124
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1130
2125
|
let body;
|
|
@@ -1150,18 +2145,16 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1150
2145
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1151
2146
|
* to the expected objects
|
|
1152
2147
|
*
|
|
1153
|
-
* @params response Response returned by the server for a request to
|
|
2148
|
+
* @params response Response returned by the server for a request to deleteVulnerabilityNotificationRule
|
|
1154
2149
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1155
2150
|
*/
|
|
1156
|
-
|
|
2151
|
+
deleteVulnerabilityNotificationRule(response) {
|
|
1157
2152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1158
2153
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1159
|
-
if (response.httpStatusCode ===
|
|
1160
|
-
|
|
1161
|
-
return body;
|
|
2154
|
+
if (response.httpStatusCode === 204) {
|
|
2155
|
+
return;
|
|
1162
2156
|
}
|
|
1163
|
-
if (response.httpStatusCode ===
|
|
1164
|
-
response.httpStatusCode === 403 ||
|
|
2157
|
+
if (response.httpStatusCode === 403 ||
|
|
1165
2158
|
response.httpStatusCode === 404 ||
|
|
1166
2159
|
response.httpStatusCode === 429) {
|
|
1167
2160
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
@@ -1177,7 +2170,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1177
2170
|
}
|
|
1178
2171
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1179
2172
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1180
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2173
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
1181
2174
|
return body;
|
|
1182
2175
|
}
|
|
1183
2176
|
const body = (yield response.body.text()) || "";
|
|
@@ -1188,17 +2181,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1188
2181
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1189
2182
|
* to the expected objects
|
|
1190
2183
|
*
|
|
1191
|
-
* @params response Response returned by the server for a request to
|
|
2184
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee
|
|
1192
2185
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1193
2186
|
*/
|
|
1194
|
-
|
|
2187
|
+
editSecurityMonitoringSignalAssignee(response) {
|
|
1195
2188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1196
2189
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1197
|
-
if (response.httpStatusCode ===
|
|
1198
|
-
|
|
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;
|
|
1199
2193
|
}
|
|
1200
2194
|
if (response.httpStatusCode === 400 ||
|
|
1201
|
-
response.httpStatusCode === 401 ||
|
|
1202
2195
|
response.httpStatusCode === 403 ||
|
|
1203
2196
|
response.httpStatusCode === 404 ||
|
|
1204
2197
|
response.httpStatusCode === 429) {
|
|
@@ -1215,7 +2208,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1215
2208
|
}
|
|
1216
2209
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1217
2210
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1218
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2211
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", "");
|
|
1219
2212
|
return body;
|
|
1220
2213
|
}
|
|
1221
2214
|
const body = (yield response.body.text()) || "";
|
|
@@ -1226,18 +2219,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1226
2219
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1227
2220
|
* to the expected objects
|
|
1228
2221
|
*
|
|
1229
|
-
* @params response Response returned by the server for a request to
|
|
2222
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalIncidents
|
|
1230
2223
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1231
2224
|
*/
|
|
1232
|
-
|
|
2225
|
+
editSecurityMonitoringSignalIncidents(response) {
|
|
1233
2226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1234
2227
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1235
2228
|
if (response.httpStatusCode === 200) {
|
|
1236
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2229
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse");
|
|
1237
2230
|
return body;
|
|
1238
2231
|
}
|
|
1239
2232
|
if (response.httpStatusCode === 400 ||
|
|
1240
|
-
response.httpStatusCode === 401 ||
|
|
1241
2233
|
response.httpStatusCode === 403 ||
|
|
1242
2234
|
response.httpStatusCode === 404 ||
|
|
1243
2235
|
response.httpStatusCode === 429) {
|
|
@@ -1254,7 +2246,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1254
2246
|
}
|
|
1255
2247
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1256
2248
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1257
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2249
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", "");
|
|
1258
2250
|
return body;
|
|
1259
2251
|
}
|
|
1260
2252
|
const body = (yield response.body.text()) || "";
|
|
@@ -1265,19 +2257,19 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1265
2257
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1266
2258
|
* to the expected objects
|
|
1267
2259
|
*
|
|
1268
|
-
* @params response Response returned by the server for a request to
|
|
2260
|
+
* @params response Response returned by the server for a request to editSecurityMonitoringSignalState
|
|
1269
2261
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1270
2262
|
*/
|
|
1271
|
-
|
|
2263
|
+
editSecurityMonitoringSignalState(response) {
|
|
1272
2264
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1273
2265
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1274
2266
|
if (response.httpStatusCode === 200) {
|
|
1275
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2267
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse");
|
|
1276
2268
|
return body;
|
|
1277
2269
|
}
|
|
1278
2270
|
if (response.httpStatusCode === 400 ||
|
|
1279
2271
|
response.httpStatusCode === 403 ||
|
|
1280
|
-
response.httpStatusCode ===
|
|
2272
|
+
response.httpStatusCode === 404 ||
|
|
1281
2273
|
response.httpStatusCode === 429) {
|
|
1282
2274
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1283
2275
|
let body;
|
|
@@ -1292,7 +2284,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1292
2284
|
}
|
|
1293
2285
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1294
2286
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1295
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2287
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", "");
|
|
1296
2288
|
return body;
|
|
1297
2289
|
}
|
|
1298
2290
|
const body = (yield response.body.text()) || "";
|
|
@@ -1303,23 +2295,24 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1303
2295
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1304
2296
|
* to the expected objects
|
|
1305
2297
|
*
|
|
1306
|
-
* @params response Response returned by the server for a request to
|
|
2298
|
+
* @params response Response returned by the server for a request to getFinding
|
|
1307
2299
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1308
2300
|
*/
|
|
1309
|
-
|
|
2301
|
+
getFinding(response) {
|
|
1310
2302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1311
2303
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1312
2304
|
if (response.httpStatusCode === 200) {
|
|
1313
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2305
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse");
|
|
1314
2306
|
return body;
|
|
1315
2307
|
}
|
|
1316
2308
|
if (response.httpStatusCode === 400 ||
|
|
1317
2309
|
response.httpStatusCode === 403 ||
|
|
2310
|
+
response.httpStatusCode === 404 ||
|
|
1318
2311
|
response.httpStatusCode === 429) {
|
|
1319
2312
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1320
2313
|
let body;
|
|
1321
2314
|
try {
|
|
1322
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
2315
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
1323
2316
|
}
|
|
1324
2317
|
catch (error) {
|
|
1325
2318
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1329,7 +2322,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1329
2322
|
}
|
|
1330
2323
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1331
2324
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1332
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2325
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse", "");
|
|
1333
2326
|
return body;
|
|
1334
2327
|
}
|
|
1335
2328
|
const body = (yield response.body.text()) || "";
|
|
@@ -1340,19 +2333,19 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1340
2333
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1341
2334
|
* to the expected objects
|
|
1342
2335
|
*
|
|
1343
|
-
* @params response Response returned by the server for a request to
|
|
2336
|
+
* @params response Response returned by the server for a request to getHistoricalJob
|
|
1344
2337
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1345
2338
|
*/
|
|
1346
|
-
|
|
2339
|
+
getHistoricalJob(response) {
|
|
1347
2340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1348
2341
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1349
2342
|
if (response.httpStatusCode === 200) {
|
|
1350
|
-
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");
|
|
1351
2344
|
return body;
|
|
1352
2345
|
}
|
|
1353
2346
|
if (response.httpStatusCode === 400 ||
|
|
1354
2347
|
response.httpStatusCode === 403 ||
|
|
1355
|
-
response.httpStatusCode ===
|
|
2348
|
+
response.httpStatusCode === 404 ||
|
|
1356
2349
|
response.httpStatusCode === 429) {
|
|
1357
2350
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1358
2351
|
let body;
|
|
@@ -1367,7 +2360,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1367
2360
|
}
|
|
1368
2361
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1369
2362
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1370
|
-
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", "");
|
|
1371
2364
|
return body;
|
|
1372
2365
|
}
|
|
1373
2366
|
const body = (yield response.body.text()) || "";
|
|
@@ -1378,21 +2371,31 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1378
2371
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1379
2372
|
* to the expected objects
|
|
1380
2373
|
*
|
|
1381
|
-
* @params response Response returned by the server for a request to
|
|
2374
|
+
* @params response Response returned by the server for a request to getSBOM
|
|
1382
2375
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1383
2376
|
*/
|
|
1384
|
-
|
|
2377
|
+
getSBOM(response) {
|
|
1385
2378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1386
2379
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1387
|
-
if (response.httpStatusCode ===
|
|
1388
|
-
|
|
2380
|
+
if (response.httpStatusCode === 200) {
|
|
2381
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetSBOMResponse");
|
|
2382
|
+
return body;
|
|
1389
2383
|
}
|
|
1390
2384
|
if (response.httpStatusCode === 400 ||
|
|
1391
|
-
response.httpStatusCode === 401 ||
|
|
1392
2385
|
response.httpStatusCode === 403 ||
|
|
1393
|
-
response.httpStatusCode === 404
|
|
1394
|
-
response.
|
|
1395
|
-
|
|
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) {
|
|
1396
2399
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1397
2400
|
let body;
|
|
1398
2401
|
try {
|
|
@@ -1406,7 +2409,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1406
2409
|
}
|
|
1407
2410
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1408
2411
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1409
|
-
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", "");
|
|
1410
2413
|
return body;
|
|
1411
2414
|
}
|
|
1412
2415
|
const body = (yield response.body.text()) || "";
|
|
@@ -1417,14 +2420,15 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1417
2420
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1418
2421
|
* to the expected objects
|
|
1419
2422
|
*
|
|
1420
|
-
* @params response Response returned by the server for a request to
|
|
2423
|
+
* @params response Response returned by the server for a request to getSecurityFilter
|
|
1421
2424
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1422
2425
|
*/
|
|
1423
|
-
|
|
2426
|
+
getSecurityFilter(response) {
|
|
1424
2427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1425
2428
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1426
|
-
if (response.httpStatusCode ===
|
|
1427
|
-
|
|
2429
|
+
if (response.httpStatusCode === 200) {
|
|
2430
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse");
|
|
2431
|
+
return body;
|
|
1428
2432
|
}
|
|
1429
2433
|
if (response.httpStatusCode === 403 ||
|
|
1430
2434
|
response.httpStatusCode === 404 ||
|
|
@@ -1442,7 +2446,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1442
2446
|
}
|
|
1443
2447
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1444
2448
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1445
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2449
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse", "");
|
|
1446
2450
|
return body;
|
|
1447
2451
|
}
|
|
1448
2452
|
const body = (yield response.body.text()) || "";
|
|
@@ -1453,18 +2457,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1453
2457
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1454
2458
|
* to the expected objects
|
|
1455
2459
|
*
|
|
1456
|
-
* @params response Response returned by the server for a request to
|
|
2460
|
+
* @params response Response returned by the server for a request to getSecurityMonitoringRule
|
|
1457
2461
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1458
2462
|
*/
|
|
1459
|
-
|
|
2463
|
+
getSecurityMonitoringRule(response) {
|
|
1460
2464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1461
2465
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1462
|
-
if (response.httpStatusCode ===
|
|
1463
|
-
|
|
2466
|
+
if (response.httpStatusCode === 200) {
|
|
2467
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse");
|
|
2468
|
+
return body;
|
|
1464
2469
|
}
|
|
1465
|
-
if (response.httpStatusCode ===
|
|
1466
|
-
response.httpStatusCode === 404 ||
|
|
1467
|
-
response.httpStatusCode === 429) {
|
|
2470
|
+
if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
|
|
1468
2471
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1469
2472
|
let body;
|
|
1470
2473
|
try {
|
|
@@ -1478,7 +2481,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1478
2481
|
}
|
|
1479
2482
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1480
2483
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1481
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2484
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse", "");
|
|
1482
2485
|
return body;
|
|
1483
2486
|
}
|
|
1484
2487
|
const body = (yield response.body.text()) || "";
|
|
@@ -1489,18 +2492,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1489
2492
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1490
2493
|
* to the expected objects
|
|
1491
2494
|
*
|
|
1492
|
-
* @params response Response returned by the server for a request to
|
|
2495
|
+
* @params response Response returned by the server for a request to getSecurityMonitoringSignal
|
|
1493
2496
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1494
2497
|
*/
|
|
1495
|
-
|
|
2498
|
+
getSecurityMonitoringSignal(response) {
|
|
1496
2499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1497
2500
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1498
|
-
if (response.httpStatusCode ===
|
|
1499
|
-
|
|
2501
|
+
if (response.httpStatusCode === 200) {
|
|
2502
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalResponse");
|
|
2503
|
+
return body;
|
|
1500
2504
|
}
|
|
1501
|
-
if (response.httpStatusCode ===
|
|
1502
|
-
response.httpStatusCode === 404 ||
|
|
1503
|
-
response.httpStatusCode === 429) {
|
|
2505
|
+
if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
|
|
1504
2506
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1505
2507
|
let body;
|
|
1506
2508
|
try {
|
|
@@ -1514,7 +2516,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1514
2516
|
}
|
|
1515
2517
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1516
2518
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1517
|
-
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", "");
|
|
1518
2520
|
return body;
|
|
1519
2521
|
}
|
|
1520
2522
|
const body = (yield response.body.text()) || "";
|
|
@@ -1525,18 +2527,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1525
2527
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1526
2528
|
* to the expected objects
|
|
1527
2529
|
*
|
|
1528
|
-
* @params response Response returned by the server for a request to
|
|
2530
|
+
* @params response Response returned by the server for a request to getSecurityMonitoringSuppression
|
|
1529
2531
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1530
2532
|
*/
|
|
1531
|
-
|
|
2533
|
+
getSecurityMonitoringSuppression(response) {
|
|
1532
2534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1533
2535
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1534
2536
|
if (response.httpStatusCode === 200) {
|
|
1535
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2537
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse");
|
|
1536
2538
|
return body;
|
|
1537
2539
|
}
|
|
1538
|
-
if (response.httpStatusCode ===
|
|
1539
|
-
response.httpStatusCode === 403 ||
|
|
2540
|
+
if (response.httpStatusCode === 403 ||
|
|
1540
2541
|
response.httpStatusCode === 404 ||
|
|
1541
2542
|
response.httpStatusCode === 429) {
|
|
1542
2543
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
@@ -1552,7 +2553,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1552
2553
|
}
|
|
1553
2554
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1554
2555
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1555
|
-
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", "");
|
|
1556
2557
|
return body;
|
|
1557
2558
|
}
|
|
1558
2559
|
const body = (yield response.body.text()) || "";
|
|
@@ -1563,14 +2564,14 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1563
2564
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1564
2565
|
* to the expected objects
|
|
1565
2566
|
*
|
|
1566
|
-
* @params response Response returned by the server for a request to
|
|
2567
|
+
* @params response Response returned by the server for a request to getSignalNotificationRule
|
|
1567
2568
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1568
2569
|
*/
|
|
1569
|
-
|
|
2570
|
+
getSignalNotificationRule(response) {
|
|
1570
2571
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1571
2572
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1572
2573
|
if (response.httpStatusCode === 200) {
|
|
1573
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2574
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotificationRuleResponse");
|
|
1574
2575
|
return body;
|
|
1575
2576
|
}
|
|
1576
2577
|
if (response.httpStatusCode === 400 ||
|
|
@@ -1590,7 +2591,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1590
2591
|
}
|
|
1591
2592
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1592
2593
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1593
|
-
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", "");
|
|
1594
2595
|
return body;
|
|
1595
2596
|
}
|
|
1596
2597
|
const body = (yield response.body.text()) || "";
|
|
@@ -1601,20 +2602,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1601
2602
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1602
2603
|
* to the expected objects
|
|
1603
2604
|
*
|
|
1604
|
-
* @params response Response returned by the server for a request to
|
|
2605
|
+
* @params response Response returned by the server for a request to getSignalNotificationRules
|
|
1605
2606
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1606
2607
|
*/
|
|
1607
|
-
|
|
2608
|
+
getSignalNotificationRules(response) {
|
|
1608
2609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1609
2610
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1610
2611
|
if (response.httpStatusCode === 200) {
|
|
1611
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2612
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any");
|
|
1612
2613
|
return body;
|
|
1613
2614
|
}
|
|
1614
|
-
if (response.httpStatusCode ===
|
|
1615
|
-
response.httpStatusCode === 403 ||
|
|
1616
|
-
response.httpStatusCode === 404 ||
|
|
1617
|
-
response.httpStatusCode === 429) {
|
|
2615
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1618
2616
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1619
2617
|
let body;
|
|
1620
2618
|
try {
|
|
@@ -1628,7 +2626,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1628
2626
|
}
|
|
1629
2627
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1630
2628
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1631
|
-
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", "");
|
|
1632
2630
|
return body;
|
|
1633
2631
|
}
|
|
1634
2632
|
const body = (yield response.body.text()) || "";
|
|
@@ -1639,14 +2637,14 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1639
2637
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1640
2638
|
* to the expected objects
|
|
1641
2639
|
*
|
|
1642
|
-
* @params response Response returned by the server for a request to
|
|
2640
|
+
* @params response Response returned by the server for a request to getVulnerabilityNotificationRule
|
|
1643
2641
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1644
2642
|
*/
|
|
1645
|
-
|
|
2643
|
+
getVulnerabilityNotificationRule(response) {
|
|
1646
2644
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1647
2645
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1648
2646
|
if (response.httpStatusCode === 200) {
|
|
1649
|
-
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");
|
|
1650
2648
|
return body;
|
|
1651
2649
|
}
|
|
1652
2650
|
if (response.httpStatusCode === 400 ||
|
|
@@ -1656,7 +2654,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1656
2654
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1657
2655
|
let body;
|
|
1658
2656
|
try {
|
|
1659
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
2657
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1660
2658
|
}
|
|
1661
2659
|
catch (error) {
|
|
1662
2660
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1666,7 +2664,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1666
2664
|
}
|
|
1667
2665
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1668
2666
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1669
|
-
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", "");
|
|
1670
2668
|
return body;
|
|
1671
2669
|
}
|
|
1672
2670
|
const body = (yield response.body.text()) || "";
|
|
@@ -1677,20 +2675,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1677
2675
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1678
2676
|
* to the expected objects
|
|
1679
2677
|
*
|
|
1680
|
-
* @params response Response returned by the server for a request to
|
|
2678
|
+
* @params response Response returned by the server for a request to getVulnerabilityNotificationRules
|
|
1681
2679
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1682
2680
|
*/
|
|
1683
|
-
|
|
2681
|
+
getVulnerabilityNotificationRules(response) {
|
|
1684
2682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1685
2683
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1686
2684
|
if (response.httpStatusCode === 200) {
|
|
1687
|
-
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");
|
|
1688
2686
|
return body;
|
|
1689
2687
|
}
|
|
1690
|
-
if (response.httpStatusCode ===
|
|
1691
|
-
response.httpStatusCode === 403 ||
|
|
1692
|
-
response.httpStatusCode === 404 ||
|
|
1693
|
-
response.httpStatusCode === 429) {
|
|
2688
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1694
2689
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1695
2690
|
let body;
|
|
1696
2691
|
try {
|
|
@@ -1704,7 +2699,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1704
2699
|
}
|
|
1705
2700
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1706
2701
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1707
|
-
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", "");
|
|
1708
2703
|
return body;
|
|
1709
2704
|
}
|
|
1710
2705
|
const body = (yield response.body.text()) || "";
|
|
@@ -1715,23 +2710,24 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1715
2710
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1716
2711
|
* to the expected objects
|
|
1717
2712
|
*
|
|
1718
|
-
* @params response Response returned by the server for a request to
|
|
2713
|
+
* @params response Response returned by the server for a request to listFindings
|
|
1719
2714
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1720
2715
|
*/
|
|
1721
|
-
|
|
2716
|
+
listFindings(response) {
|
|
1722
2717
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1723
2718
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1724
2719
|
if (response.httpStatusCode === 200) {
|
|
1725
|
-
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");
|
|
1726
2721
|
return body;
|
|
1727
2722
|
}
|
|
1728
|
-
if (response.httpStatusCode ===
|
|
2723
|
+
if (response.httpStatusCode === 400 ||
|
|
2724
|
+
response.httpStatusCode === 403 ||
|
|
1729
2725
|
response.httpStatusCode === 404 ||
|
|
1730
2726
|
response.httpStatusCode === 429) {
|
|
1731
2727
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1732
2728
|
let body;
|
|
1733
2729
|
try {
|
|
1734
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
2730
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
1735
2731
|
}
|
|
1736
2732
|
catch (error) {
|
|
1737
2733
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1741,7 +2737,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1741
2737
|
}
|
|
1742
2738
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1743
2739
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1744
|
-
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", "");
|
|
1745
2741
|
return body;
|
|
1746
2742
|
}
|
|
1747
2743
|
const body = (yield response.body.text()) || "";
|
|
@@ -1752,17 +2748,19 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1752
2748
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1753
2749
|
* to the expected objects
|
|
1754
2750
|
*
|
|
1755
|
-
* @params response Response returned by the server for a request to
|
|
2751
|
+
* @params response Response returned by the server for a request to listHistoricalJobs
|
|
1756
2752
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1757
2753
|
*/
|
|
1758
|
-
|
|
2754
|
+
listHistoricalJobs(response) {
|
|
1759
2755
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1760
2756
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1761
2757
|
if (response.httpStatusCode === 200) {
|
|
1762
|
-
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");
|
|
1763
2759
|
return body;
|
|
1764
2760
|
}
|
|
1765
|
-
if (response.httpStatusCode ===
|
|
2761
|
+
if (response.httpStatusCode === 400 ||
|
|
2762
|
+
response.httpStatusCode === 403 ||
|
|
2763
|
+
response.httpStatusCode === 429) {
|
|
1766
2764
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1767
2765
|
let body;
|
|
1768
2766
|
try {
|
|
@@ -1776,7 +2774,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1776
2774
|
}
|
|
1777
2775
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1778
2776
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1779
|
-
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", "");
|
|
1780
2778
|
return body;
|
|
1781
2779
|
}
|
|
1782
2780
|
const body = (yield response.body.text()) || "";
|
|
@@ -1787,17 +2785,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1787
2785
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1788
2786
|
* to the expected objects
|
|
1789
2787
|
*
|
|
1790
|
-
* @params response Response returned by the server for a request to
|
|
2788
|
+
* @params response Response returned by the server for a request to listSecurityFilters
|
|
1791
2789
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1792
2790
|
*/
|
|
1793
|
-
|
|
2791
|
+
listSecurityFilters(response) {
|
|
1794
2792
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1795
2793
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1796
2794
|
if (response.httpStatusCode === 200) {
|
|
1797
|
-
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");
|
|
1798
2796
|
return body;
|
|
1799
2797
|
}
|
|
1800
|
-
if (response.httpStatusCode ===
|
|
2798
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1801
2799
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1802
2800
|
let body;
|
|
1803
2801
|
try {
|
|
@@ -1811,7 +2809,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1811
2809
|
}
|
|
1812
2810
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1813
2811
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1814
|
-
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", "");
|
|
1815
2813
|
return body;
|
|
1816
2814
|
}
|
|
1817
2815
|
const body = (yield response.body.text()) || "";
|
|
@@ -1822,19 +2820,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1822
2820
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1823
2821
|
* to the expected objects
|
|
1824
2822
|
*
|
|
1825
|
-
* @params response Response returned by the server for a request to
|
|
2823
|
+
* @params response Response returned by the server for a request to listSecurityMonitoringRules
|
|
1826
2824
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1827
2825
|
*/
|
|
1828
|
-
|
|
2826
|
+
listSecurityMonitoringRules(response) {
|
|
1829
2827
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1830
2828
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1831
2829
|
if (response.httpStatusCode === 200) {
|
|
1832
|
-
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");
|
|
1833
2831
|
return body;
|
|
1834
2832
|
}
|
|
1835
|
-
if (response.httpStatusCode ===
|
|
1836
|
-
response.httpStatusCode === 404 ||
|
|
1837
|
-
response.httpStatusCode === 429) {
|
|
2833
|
+
if (response.httpStatusCode === 400 || response.httpStatusCode === 429) {
|
|
1838
2834
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1839
2835
|
let body;
|
|
1840
2836
|
try {
|
|
@@ -1848,7 +2844,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1848
2844
|
}
|
|
1849
2845
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1850
2846
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1851
|
-
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", "");
|
|
1852
2848
|
return body;
|
|
1853
2849
|
}
|
|
1854
2850
|
const body = (yield response.body.text()) || "";
|
|
@@ -1859,24 +2855,23 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1859
2855
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1860
2856
|
* to the expected objects
|
|
1861
2857
|
*
|
|
1862
|
-
* @params response Response returned by the server for a request to
|
|
2858
|
+
* @params response Response returned by the server for a request to listSecurityMonitoringSignals
|
|
1863
2859
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1864
2860
|
*/
|
|
1865
|
-
|
|
2861
|
+
listSecurityMonitoringSignals(response) {
|
|
1866
2862
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1867
2863
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1868
2864
|
if (response.httpStatusCode === 200) {
|
|
1869
|
-
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");
|
|
1870
2866
|
return body;
|
|
1871
2867
|
}
|
|
1872
2868
|
if (response.httpStatusCode === 400 ||
|
|
1873
2869
|
response.httpStatusCode === 403 ||
|
|
1874
|
-
response.httpStatusCode === 404 ||
|
|
1875
2870
|
response.httpStatusCode === 429) {
|
|
1876
2871
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1877
2872
|
let body;
|
|
1878
2873
|
try {
|
|
1879
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
2874
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1880
2875
|
}
|
|
1881
2876
|
catch (error) {
|
|
1882
2877
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -1886,7 +2881,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1886
2881
|
}
|
|
1887
2882
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1888
2883
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1889
|
-
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", "");
|
|
1890
2885
|
return body;
|
|
1891
2886
|
}
|
|
1892
2887
|
const body = (yield response.body.text()) || "";
|
|
@@ -1897,19 +2892,17 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1897
2892
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1898
2893
|
* to the expected objects
|
|
1899
2894
|
*
|
|
1900
|
-
* @params response Response returned by the server for a request to
|
|
2895
|
+
* @params response Response returned by the server for a request to listSecurityMonitoringSuppressions
|
|
1901
2896
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1902
2897
|
*/
|
|
1903
|
-
|
|
2898
|
+
listSecurityMonitoringSuppressions(response) {
|
|
1904
2899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1905
2900
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1906
2901
|
if (response.httpStatusCode === 200) {
|
|
1907
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
1908
|
-
return body;
|
|
1909
|
-
}
|
|
1910
|
-
if (response.httpStatusCode ===
|
|
1911
|
-
response.httpStatusCode === 403 ||
|
|
1912
|
-
response.httpStatusCode === 429) {
|
|
2902
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionsResponse");
|
|
2903
|
+
return body;
|
|
2904
|
+
}
|
|
2905
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1913
2906
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1914
2907
|
let body;
|
|
1915
2908
|
try {
|
|
@@ -1923,7 +2916,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1923
2916
|
}
|
|
1924
2917
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1925
2918
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1926
|
-
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", "");
|
|
1927
2920
|
return body;
|
|
1928
2921
|
}
|
|
1929
2922
|
const body = (yield response.body.text()) || "";
|
|
@@ -1934,17 +2927,31 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1934
2927
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1935
2928
|
* to the expected objects
|
|
1936
2929
|
*
|
|
1937
|
-
* @params response Response returned by the server for a request to
|
|
2930
|
+
* @params response Response returned by the server for a request to listVulnerabilities
|
|
1938
2931
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1939
2932
|
*/
|
|
1940
|
-
|
|
2933
|
+
listVulnerabilities(response) {
|
|
1941
2934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1942
2935
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1943
2936
|
if (response.httpStatusCode === 200) {
|
|
1944
|
-
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");
|
|
1945
2938
|
return body;
|
|
1946
2939
|
}
|
|
1947
|
-
if (response.httpStatusCode ===
|
|
2940
|
+
if (response.httpStatusCode === 400 ||
|
|
2941
|
+
response.httpStatusCode === 403 ||
|
|
2942
|
+
response.httpStatusCode === 404) {
|
|
2943
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2944
|
+
let body;
|
|
2945
|
+
try {
|
|
2946
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
2947
|
+
}
|
|
2948
|
+
catch (error) {
|
|
2949
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
2950
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2951
|
+
}
|
|
2952
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2953
|
+
}
|
|
2954
|
+
if (response.httpStatusCode === 429) {
|
|
1948
2955
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1949
2956
|
let body;
|
|
1950
2957
|
try {
|
|
@@ -1958,7 +2965,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1958
2965
|
}
|
|
1959
2966
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1960
2967
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1961
|
-
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", "");
|
|
1962
2969
|
return body;
|
|
1963
2970
|
}
|
|
1964
2971
|
const body = (yield response.body.text()) || "";
|
|
@@ -1969,17 +2976,31 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1969
2976
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1970
2977
|
* to the expected objects
|
|
1971
2978
|
*
|
|
1972
|
-
* @params response Response returned by the server for a request to
|
|
2979
|
+
* @params response Response returned by the server for a request to listVulnerableAssets
|
|
1973
2980
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1974
2981
|
*/
|
|
1975
|
-
|
|
2982
|
+
listVulnerableAssets(response) {
|
|
1976
2983
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1977
2984
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1978
2985
|
if (response.httpStatusCode === 200) {
|
|
1979
|
-
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");
|
|
1980
2987
|
return body;
|
|
1981
2988
|
}
|
|
1982
|
-
if (response.httpStatusCode === 400 ||
|
|
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) {
|
|
1983
3004
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1984
3005
|
let body;
|
|
1985
3006
|
try {
|
|
@@ -1993,7 +3014,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
1993
3014
|
}
|
|
1994
3015
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1995
3016
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1996
|
-
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", "");
|
|
1997
3018
|
return body;
|
|
1998
3019
|
}
|
|
1999
3020
|
const body = (yield response.body.text()) || "";
|
|
@@ -2004,23 +3025,25 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
2004
3025
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2005
3026
|
* to the expected objects
|
|
2006
3027
|
*
|
|
2007
|
-
* @params response Response returned by the server for a request to
|
|
3028
|
+
* @params response Response returned by the server for a request to muteFindings
|
|
2008
3029
|
* @throws ApiException if the response code was not in [200, 299]
|
|
2009
3030
|
*/
|
|
2010
|
-
|
|
3031
|
+
muteFindings(response) {
|
|
2011
3032
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2012
3033
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2013
3034
|
if (response.httpStatusCode === 200) {
|
|
2014
|
-
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");
|
|
2015
3036
|
return body;
|
|
2016
3037
|
}
|
|
2017
3038
|
if (response.httpStatusCode === 400 ||
|
|
2018
3039
|
response.httpStatusCode === 403 ||
|
|
3040
|
+
response.httpStatusCode === 404 ||
|
|
3041
|
+
response.httpStatusCode === 422 ||
|
|
2019
3042
|
response.httpStatusCode === 429) {
|
|
2020
3043
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2021
3044
|
let body;
|
|
2022
3045
|
try {
|
|
2023
|
-
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "
|
|
3046
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
|
|
2024
3047
|
}
|
|
2025
3048
|
catch (error) {
|
|
2026
3049
|
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
@@ -2030,7 +3053,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
2030
3053
|
}
|
|
2031
3054
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2032
3055
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2033
|
-
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", "");
|
|
2034
3057
|
return body;
|
|
2035
3058
|
}
|
|
2036
3059
|
const body = (yield response.body.text()) || "";
|
|
@@ -2041,17 +3064,20 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
2041
3064
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2042
3065
|
* to the expected objects
|
|
2043
3066
|
*
|
|
2044
|
-
* @params response Response returned by the server for a request to
|
|
3067
|
+
* @params response Response returned by the server for a request to patchSignalNotificationRule
|
|
2045
3068
|
* @throws ApiException if the response code was not in [200, 299]
|
|
2046
3069
|
*/
|
|
2047
|
-
|
|
3070
|
+
patchSignalNotificationRule(response) {
|
|
2048
3071
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2049
3072
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2050
3073
|
if (response.httpStatusCode === 200) {
|
|
2051
|
-
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");
|
|
2052
3075
|
return body;
|
|
2053
3076
|
}
|
|
2054
|
-
if (response.httpStatusCode ===
|
|
3077
|
+
if (response.httpStatusCode === 400 ||
|
|
3078
|
+
response.httpStatusCode === 403 ||
|
|
3079
|
+
response.httpStatusCode === 404 ||
|
|
3080
|
+
response.httpStatusCode === 429) {
|
|
2055
3081
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2056
3082
|
let body;
|
|
2057
3083
|
try {
|
|
@@ -2063,9 +3089,21 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
2063
3089
|
}
|
|
2064
3090
|
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
2065
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
|
+
}
|
|
2066
3104
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2067
3105
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2068
|
-
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", "");
|
|
2069
3107
|
return body;
|
|
2070
3108
|
}
|
|
2071
3109
|
const body = (yield response.body.text()) || "";
|
|
@@ -2076,21 +3114,32 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
2076
3114
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
2077
3115
|
* to the expected objects
|
|
2078
3116
|
*
|
|
2079
|
-
* @params response Response returned by the server for a request to
|
|
3117
|
+
* @params response Response returned by the server for a request to patchVulnerabilityNotificationRule
|
|
2080
3118
|
* @throws ApiException if the response code was not in [200, 299]
|
|
2081
3119
|
*/
|
|
2082
|
-
|
|
3120
|
+
patchVulnerabilityNotificationRule(response) {
|
|
2083
3121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2084
3122
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2085
3123
|
if (response.httpStatusCode === 200) {
|
|
2086
|
-
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");
|
|
2087
3125
|
return body;
|
|
2088
3126
|
}
|
|
2089
3127
|
if (response.httpStatusCode === 400 ||
|
|
2090
3128
|
response.httpStatusCode === 403 ||
|
|
2091
3129
|
response.httpStatusCode === 404 ||
|
|
2092
|
-
response.httpStatusCode === 422 ||
|
|
2093
3130
|
response.httpStatusCode === 429) {
|
|
3131
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
3132
|
+
let body;
|
|
3133
|
+
try {
|
|
3134
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3135
|
+
}
|
|
3136
|
+
catch (error) {
|
|
3137
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
3138
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3139
|
+
}
|
|
3140
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
3141
|
+
}
|
|
3142
|
+
if (response.httpStatusCode === 422) {
|
|
2094
3143
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
2095
3144
|
let body;
|
|
2096
3145
|
try {
|
|
@@ -2104,7 +3153,7 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
2104
3153
|
}
|
|
2105
3154
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
2106
3155
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
2107
|
-
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", "");
|
|
2108
3157
|
return body;
|
|
2109
3158
|
}
|
|
2110
3159
|
const body = (yield response.body.text()) || "";
|
|
@@ -2531,6 +3580,34 @@ class SecurityMonitoringApi {
|
|
|
2531
3580
|
});
|
|
2532
3581
|
});
|
|
2533
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
|
+
}
|
|
2534
3611
|
/**
|
|
2535
3612
|
* Delete an existing job.
|
|
2536
3613
|
* @param param The request object
|
|
@@ -2587,6 +3664,34 @@ class SecurityMonitoringApi {
|
|
|
2587
3664
|
});
|
|
2588
3665
|
});
|
|
2589
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
|
+
}
|
|
2590
3695
|
/**
|
|
2591
3696
|
* Modify the triage assignee of a security signal.
|
|
2592
3697
|
* @param param The request object
|
|
@@ -2657,6 +3762,20 @@ class SecurityMonitoringApi {
|
|
|
2657
3762
|
});
|
|
2658
3763
|
});
|
|
2659
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
|
+
}
|
|
2660
3779
|
/**
|
|
2661
3780
|
* Get the details of a specific security filter.
|
|
2662
3781
|
*
|
|
@@ -2716,6 +3835,62 @@ class SecurityMonitoringApi {
|
|
|
2716
3835
|
});
|
|
2717
3836
|
});
|
|
2718
3837
|
}
|
|
3838
|
+
/**
|
|
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
|
+
}
|
|
2719
3894
|
/**
|
|
2720
3895
|
* Get a list of findings. These include both misconfigurations and identity risks.
|
|
2721
3896
|
*
|
|
@@ -2915,6 +4090,125 @@ class SecurityMonitoringApi {
|
|
|
2915
4090
|
});
|
|
2916
4091
|
});
|
|
2917
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
|
+
}
|
|
2918
4212
|
/**
|
|
2919
4213
|
* Mute or unmute findings.
|
|
2920
4214
|
* @param param The request object
|
|
@@ -2929,6 +4223,34 @@ class SecurityMonitoringApi {
|
|
|
2929
4223
|
});
|
|
2930
4224
|
});
|
|
2931
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
|
+
}
|
|
2932
4254
|
/**
|
|
2933
4255
|
* Run a historical job.
|
|
2934
4256
|
* @param param The request object
|