@datadog/datadog-api-client 1.2.0 → 1.4.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 +54 -0
- package/LICENSE-3rdparty.csv +1 -0
- package/README.md +120 -3
- package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
- package/dist/packages/datadog-api-client-common/configuration.js +3 -6
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +11 -5
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
- package/dist/packages/datadog-api-client-common/util.js +1 -32
- package/dist/packages/datadog-api-client-common/util.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1129 -1641
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +23 -0
- package/dist/packages/datadog-api-client-v1/index.js +37 -7
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +6 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +71 -3
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -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 +12 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +14 -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 +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +549 -122
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -688
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +49 -6
- package/dist/packages/datadog-api-client-v2/index.js +69 -15
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +98 -12
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
|
@@ -67,9 +67,9 @@ exports.SecurityMonitoringApi = exports.SecurityMonitoringApiResponseProcessor =
|
|
|
67
67
|
var baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
68
68
|
var configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
69
69
|
var http_1 = require("../../datadog-api-client-common/http/http");
|
|
70
|
+
var logger_1 = require("../../../logger");
|
|
70
71
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
71
72
|
var exception_1 = require("../../datadog-api-client-common/exception");
|
|
72
|
-
var util_1 = require("../../datadog-api-client-common/util");
|
|
73
73
|
var SecurityMonitoringSignalListRequest_1 = require("../models/SecurityMonitoringSignalListRequest");
|
|
74
74
|
var SecurityMonitoringSignalListRequestPage_1 = require("../models/SecurityMonitoringSignalListRequestPage");
|
|
75
75
|
var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
@@ -206,7 +206,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
206
206
|
requestContext.setBody(serializedBody);
|
|
207
207
|
// Apply auth methods
|
|
208
208
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
209
|
-
"AuthZ",
|
|
210
209
|
"apiKeyAuth",
|
|
211
210
|
"appKeyAuth",
|
|
212
211
|
]);
|
|
@@ -239,7 +238,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
239
238
|
requestContext.setBody(serializedBody);
|
|
240
239
|
// Apply auth methods
|
|
241
240
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
242
|
-
"AuthZ",
|
|
243
241
|
"apiKeyAuth",
|
|
244
242
|
"appKeyAuth",
|
|
245
243
|
]);
|
|
@@ -272,7 +270,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
272
270
|
requestContext.setBody(serializedBody);
|
|
273
271
|
// Apply auth methods
|
|
274
272
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
275
|
-
"AuthZ",
|
|
276
273
|
"apiKeyAuth",
|
|
277
274
|
"appKeyAuth",
|
|
278
275
|
]);
|
|
@@ -326,6 +323,29 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
326
323
|
});
|
|
327
324
|
});
|
|
328
325
|
};
|
|
326
|
+
SecurityMonitoringApiRequestFactory.prototype.getSecurityMonitoringSignal = function (signalId, _options) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
328
|
+
var _config, localVarPath, requestContext;
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
_config = _options || this.configuration;
|
|
331
|
+
// verify required parameter 'signalId' is not null or undefined
|
|
332
|
+
if (signalId === null || signalId === undefined) {
|
|
333
|
+
throw new baseapi_1.RequiredError("Required parameter signalId was null or undefined when calling getSecurityMonitoringSignal.");
|
|
334
|
+
}
|
|
335
|
+
localVarPath = "/api/v2/security_monitoring/signals/{signal_id}".replace("{" + "signal_id" + "}", encodeURIComponent(String(signalId)));
|
|
336
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.getSecurityMonitoringSignal").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
337
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
338
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
339
|
+
// Apply auth methods
|
|
340
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
341
|
+
"AuthZ",
|
|
342
|
+
"apiKeyAuth",
|
|
343
|
+
"appKeyAuth",
|
|
344
|
+
]);
|
|
345
|
+
return [2 /*return*/, requestContext];
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
};
|
|
329
349
|
SecurityMonitoringApiRequestFactory.prototype.listSecurityFilters = function (_options) {
|
|
330
350
|
return __awaiter(this, void 0, void 0, function () {
|
|
331
351
|
var _config, localVarPath, requestContext;
|
|
@@ -515,73 +535,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
515
535
|
*/
|
|
516
536
|
SecurityMonitoringApiResponseProcessor.prototype.createSecurityFilter = function (response) {
|
|
517
537
|
return __awaiter(this, void 0, void 0, function () {
|
|
518
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
519
|
-
return __generator(this, function (
|
|
520
|
-
switch (
|
|
538
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
539
|
+
return __generator(this, function (_l) {
|
|
540
|
+
switch (_l.label) {
|
|
521
541
|
case 0:
|
|
522
542
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
523
|
-
if (!(
|
|
543
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
524
544
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
525
545
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
526
546
|
return [4 /*yield*/, response.body.text()];
|
|
527
547
|
case 1:
|
|
528
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
529
|
-
"SecurityFilterResponse"
|
|
530
|
-
""]);
|
|
548
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
549
|
+
"SecurityFilterResponse"]);
|
|
531
550
|
return [2 /*return*/, body_1];
|
|
532
551
|
case 2:
|
|
533
|
-
if (!(
|
|
534
|
-
|
|
535
|
-
|
|
552
|
+
if (!(response.httpStatusCode == 400 ||
|
|
553
|
+
response.httpStatusCode == 403 ||
|
|
554
|
+
response.httpStatusCode == 409 ||
|
|
555
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
556
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
536
557
|
return [4 /*yield*/, response.body.text()];
|
|
537
558
|
case 3:
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
""
|
|
541
|
-
|
|
559
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
560
|
+
try {
|
|
561
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
562
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
563
|
+
}
|
|
564
|
+
catch (error) {
|
|
565
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
566
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
567
|
+
}
|
|
568
|
+
_l.label = 4;
|
|
542
569
|
case 4:
|
|
543
|
-
if (!(
|
|
544
|
-
|
|
545
|
-
|
|
570
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
571
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
572
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
546
573
|
return [4 /*yield*/, response.body.text()];
|
|
547
574
|
case 5:
|
|
548
|
-
body_3 =
|
|
549
|
-
"APIErrorResponse",
|
|
550
|
-
""]);
|
|
551
|
-
throw new exception_1.ApiException(403, body_3);
|
|
552
|
-
case 6:
|
|
553
|
-
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
554
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
555
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
556
|
-
return [4 /*yield*/, response.body.text()];
|
|
557
|
-
case 7:
|
|
558
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
559
|
-
"APIErrorResponse",
|
|
560
|
-
""]);
|
|
561
|
-
throw new exception_1.ApiException(409, body_4);
|
|
562
|
-
case 8:
|
|
563
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
564
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
565
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
566
|
-
return [4 /*yield*/, response.body.text()];
|
|
567
|
-
case 9:
|
|
568
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
569
|
-
"APIErrorResponse",
|
|
570
|
-
""]);
|
|
571
|
-
throw new exception_1.ApiException(429, body_5);
|
|
572
|
-
case 10:
|
|
573
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
574
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
575
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
576
|
-
return [4 /*yield*/, response.body.text()];
|
|
577
|
-
case 11:
|
|
578
|
-
body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
575
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
579
576
|
"SecurityFilterResponse",
|
|
580
577
|
""]);
|
|
581
|
-
return [2 /*return*/,
|
|
582
|
-
case
|
|
583
|
-
case
|
|
584
|
-
body = (
|
|
578
|
+
return [2 /*return*/, body_3];
|
|
579
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
580
|
+
case 7:
|
|
581
|
+
body = (_l.sent()) || "";
|
|
585
582
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
586
583
|
}
|
|
587
584
|
});
|
|
@@ -596,63 +593,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
596
593
|
*/
|
|
597
594
|
SecurityMonitoringApiResponseProcessor.prototype.createSecurityMonitoringRule = function (response) {
|
|
598
595
|
return __awaiter(this, void 0, void 0, function () {
|
|
599
|
-
var contentType,
|
|
600
|
-
return __generator(this, function (
|
|
601
|
-
switch (
|
|
596
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
597
|
+
return __generator(this, function (_l) {
|
|
598
|
+
switch (_l.label) {
|
|
602
599
|
case 0:
|
|
603
600
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
604
|
-
if (!(
|
|
601
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
605
602
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
606
603
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
607
604
|
return [4 /*yield*/, response.body.text()];
|
|
608
605
|
case 1:
|
|
609
|
-
|
|
610
|
-
"SecurityMonitoringRuleResponse"
|
|
611
|
-
|
|
612
|
-
return [2 /*return*/, body_7];
|
|
606
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
607
|
+
"SecurityMonitoringRuleResponse"]);
|
|
608
|
+
return [2 /*return*/, body_4];
|
|
613
609
|
case 2:
|
|
614
|
-
if (!(
|
|
615
|
-
|
|
616
|
-
|
|
610
|
+
if (!(response.httpStatusCode == 400 ||
|
|
611
|
+
response.httpStatusCode == 403 ||
|
|
612
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
613
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
617
614
|
return [4 /*yield*/, response.body.text()];
|
|
618
615
|
case 3:
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
""
|
|
622
|
-
|
|
616
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
617
|
+
try {
|
|
618
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
619
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
620
|
+
}
|
|
621
|
+
catch (error) {
|
|
622
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
623
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
624
|
+
}
|
|
625
|
+
_l.label = 4;
|
|
623
626
|
case 4:
|
|
624
|
-
if (!(
|
|
625
|
-
|
|
626
|
-
|
|
627
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
628
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
629
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
627
630
|
return [4 /*yield*/, response.body.text()];
|
|
628
631
|
case 5:
|
|
629
|
-
|
|
630
|
-
"APIErrorResponse",
|
|
631
|
-
""]);
|
|
632
|
-
throw new exception_1.ApiException(403, body_9);
|
|
633
|
-
case 6:
|
|
634
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
635
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
636
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
637
|
-
return [4 /*yield*/, response.body.text()];
|
|
638
|
-
case 7:
|
|
639
|
-
body_10 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
640
|
-
"APIErrorResponse",
|
|
641
|
-
""]);
|
|
642
|
-
throw new exception_1.ApiException(429, body_10);
|
|
643
|
-
case 8:
|
|
644
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
645
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
646
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
647
|
-
return [4 /*yield*/, response.body.text()];
|
|
648
|
-
case 9:
|
|
649
|
-
body_11 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
632
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
650
633
|
"SecurityMonitoringRuleResponse",
|
|
651
634
|
""]);
|
|
652
|
-
return [2 /*return*/,
|
|
653
|
-
case
|
|
654
|
-
case
|
|
655
|
-
body = (
|
|
635
|
+
return [2 /*return*/, body_6];
|
|
636
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
637
|
+
case 7:
|
|
638
|
+
body = (_l.sent()) || "";
|
|
656
639
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
657
640
|
}
|
|
658
641
|
});
|
|
@@ -667,56 +650,43 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
667
650
|
*/
|
|
668
651
|
SecurityMonitoringApiResponseProcessor.prototype.deleteSecurityFilter = function (response) {
|
|
669
652
|
return __awaiter(this, void 0, void 0, function () {
|
|
670
|
-
var contentType,
|
|
671
|
-
return __generator(this, function (
|
|
672
|
-
switch (
|
|
653
|
+
var contentType, bodyText, _a, _b, body_7, body_8, _c, _d, _e, _f, body;
|
|
654
|
+
return __generator(this, function (_g) {
|
|
655
|
+
switch (_g.label) {
|
|
673
656
|
case 0:
|
|
674
657
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
675
|
-
if (
|
|
658
|
+
if (response.httpStatusCode == 204) {
|
|
676
659
|
return [2 /*return*/];
|
|
677
660
|
}
|
|
678
|
-
if (!(
|
|
679
|
-
|
|
680
|
-
|
|
661
|
+
if (!(response.httpStatusCode == 403 ||
|
|
662
|
+
response.httpStatusCode == 404 ||
|
|
663
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
664
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
681
665
|
return [4 /*yield*/, response.body.text()];
|
|
682
666
|
case 1:
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
""
|
|
686
|
-
|
|
667
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
668
|
+
try {
|
|
669
|
+
body_7 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
670
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_7);
|
|
671
|
+
}
|
|
672
|
+
catch (error) {
|
|
673
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
674
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
675
|
+
}
|
|
676
|
+
_g.label = 2;
|
|
687
677
|
case 2:
|
|
688
|
-
if (!(
|
|
689
|
-
|
|
690
|
-
|
|
678
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
679
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
680
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
691
681
|
return [4 /*yield*/, response.body.text()];
|
|
692
682
|
case 3:
|
|
693
|
-
|
|
694
|
-
"APIErrorResponse",
|
|
695
|
-
""]);
|
|
696
|
-
throw new exception_1.ApiException(404, body_13);
|
|
697
|
-
case 4:
|
|
698
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
699
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
700
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
701
|
-
return [4 /*yield*/, response.body.text()];
|
|
702
|
-
case 5:
|
|
703
|
-
body_14 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
704
|
-
"APIErrorResponse",
|
|
705
|
-
""]);
|
|
706
|
-
throw new exception_1.ApiException(429, body_14);
|
|
707
|
-
case 6:
|
|
708
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
709
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
710
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
711
|
-
return [4 /*yield*/, response.body.text()];
|
|
712
|
-
case 7:
|
|
713
|
-
body_15 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
683
|
+
body_8 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
714
684
|
"void",
|
|
715
685
|
""]);
|
|
716
|
-
return [2 /*return*/,
|
|
717
|
-
case
|
|
718
|
-
case
|
|
719
|
-
body = (
|
|
686
|
+
return [2 /*return*/, body_8];
|
|
687
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
688
|
+
case 5:
|
|
689
|
+
body = (_g.sent()) || "";
|
|
720
690
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
721
691
|
}
|
|
722
692
|
});
|
|
@@ -731,56 +701,43 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
731
701
|
*/
|
|
732
702
|
SecurityMonitoringApiResponseProcessor.prototype.deleteSecurityMonitoringRule = function (response) {
|
|
733
703
|
return __awaiter(this, void 0, void 0, function () {
|
|
734
|
-
var contentType,
|
|
735
|
-
return __generator(this, function (
|
|
736
|
-
switch (
|
|
704
|
+
var contentType, bodyText, _a, _b, body_9, body_10, _c, _d, _e, _f, body;
|
|
705
|
+
return __generator(this, function (_g) {
|
|
706
|
+
switch (_g.label) {
|
|
737
707
|
case 0:
|
|
738
708
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
739
|
-
if (
|
|
709
|
+
if (response.httpStatusCode == 204) {
|
|
740
710
|
return [2 /*return*/];
|
|
741
711
|
}
|
|
742
|
-
if (!(
|
|
743
|
-
|
|
744
|
-
|
|
712
|
+
if (!(response.httpStatusCode == 403 ||
|
|
713
|
+
response.httpStatusCode == 404 ||
|
|
714
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
715
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
745
716
|
return [4 /*yield*/, response.body.text()];
|
|
746
717
|
case 1:
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
""
|
|
750
|
-
|
|
718
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
719
|
+
try {
|
|
720
|
+
body_9 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
721
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_9);
|
|
722
|
+
}
|
|
723
|
+
catch (error) {
|
|
724
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
725
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
726
|
+
}
|
|
727
|
+
_g.label = 2;
|
|
751
728
|
case 2:
|
|
752
|
-
if (!(
|
|
753
|
-
|
|
754
|
-
|
|
729
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
730
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
731
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
755
732
|
return [4 /*yield*/, response.body.text()];
|
|
756
733
|
case 3:
|
|
757
|
-
|
|
758
|
-
"APIErrorResponse",
|
|
759
|
-
""]);
|
|
760
|
-
throw new exception_1.ApiException(404, body_17);
|
|
761
|
-
case 4:
|
|
762
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
763
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
764
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
765
|
-
return [4 /*yield*/, response.body.text()];
|
|
766
|
-
case 5:
|
|
767
|
-
body_18 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
768
|
-
"APIErrorResponse",
|
|
769
|
-
""]);
|
|
770
|
-
throw new exception_1.ApiException(429, body_18);
|
|
771
|
-
case 6:
|
|
772
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
773
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
774
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
775
|
-
return [4 /*yield*/, response.body.text()];
|
|
776
|
-
case 7:
|
|
777
|
-
body_19 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
734
|
+
body_10 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
778
735
|
"void",
|
|
779
736
|
""]);
|
|
780
|
-
return [2 /*return*/,
|
|
781
|
-
case
|
|
782
|
-
case
|
|
783
|
-
body = (
|
|
737
|
+
return [2 /*return*/, body_10];
|
|
738
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
739
|
+
case 5:
|
|
740
|
+
body = (_g.sent()) || "";
|
|
784
741
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
785
742
|
}
|
|
786
743
|
});
|
|
@@ -795,73 +752,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
795
752
|
*/
|
|
796
753
|
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalAssignee = function (response) {
|
|
797
754
|
return __awaiter(this, void 0, void 0, function () {
|
|
798
|
-
var contentType,
|
|
799
|
-
return __generator(this, function (
|
|
800
|
-
switch (
|
|
755
|
+
var contentType, body_11, _a, _b, _c, _d, bodyText, _e, _f, body_12, body_13, _g, _h, _j, _k, body;
|
|
756
|
+
return __generator(this, function (_l) {
|
|
757
|
+
switch (_l.label) {
|
|
801
758
|
case 0:
|
|
802
759
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
803
|
-
if (!(
|
|
760
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
804
761
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
805
762
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
806
763
|
return [4 /*yield*/, response.body.text()];
|
|
807
764
|
case 1:
|
|
808
|
-
|
|
809
|
-
"SecurityMonitoringSignalTriageUpdateResponse"
|
|
810
|
-
|
|
811
|
-
return [2 /*return*/, body_20];
|
|
765
|
+
body_11 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
766
|
+
"SecurityMonitoringSignalTriageUpdateResponse"]);
|
|
767
|
+
return [2 /*return*/, body_11];
|
|
812
768
|
case 2:
|
|
813
|
-
if (!(
|
|
814
|
-
|
|
815
|
-
|
|
769
|
+
if (!(response.httpStatusCode == 400 ||
|
|
770
|
+
response.httpStatusCode == 403 ||
|
|
771
|
+
response.httpStatusCode == 404 ||
|
|
772
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
773
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
816
774
|
return [4 /*yield*/, response.body.text()];
|
|
817
775
|
case 3:
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
""
|
|
821
|
-
|
|
776
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
777
|
+
try {
|
|
778
|
+
body_12 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
779
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_12);
|
|
780
|
+
}
|
|
781
|
+
catch (error) {
|
|
782
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
783
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
784
|
+
}
|
|
785
|
+
_l.label = 4;
|
|
822
786
|
case 4:
|
|
823
|
-
if (!(
|
|
824
|
-
|
|
825
|
-
|
|
787
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
788
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
789
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
826
790
|
return [4 /*yield*/, response.body.text()];
|
|
827
791
|
case 5:
|
|
828
|
-
|
|
829
|
-
"APIErrorResponse",
|
|
830
|
-
""]);
|
|
831
|
-
throw new exception_1.ApiException(403, body_22);
|
|
832
|
-
case 6:
|
|
833
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
834
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
835
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
836
|
-
return [4 /*yield*/, response.body.text()];
|
|
837
|
-
case 7:
|
|
838
|
-
body_23 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
839
|
-
"APIErrorResponse",
|
|
840
|
-
""]);
|
|
841
|
-
throw new exception_1.ApiException(404, body_23);
|
|
842
|
-
case 8:
|
|
843
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
844
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
845
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
846
|
-
return [4 /*yield*/, response.body.text()];
|
|
847
|
-
case 9:
|
|
848
|
-
body_24 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
849
|
-
"APIErrorResponse",
|
|
850
|
-
""]);
|
|
851
|
-
throw new exception_1.ApiException(429, body_24);
|
|
852
|
-
case 10:
|
|
853
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
854
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
855
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
856
|
-
return [4 /*yield*/, response.body.text()];
|
|
857
|
-
case 11:
|
|
858
|
-
body_25 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
792
|
+
body_13 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
859
793
|
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
860
794
|
""]);
|
|
861
|
-
return [2 /*return*/,
|
|
862
|
-
case
|
|
863
|
-
case
|
|
864
|
-
body = (
|
|
795
|
+
return [2 /*return*/, body_13];
|
|
796
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
797
|
+
case 7:
|
|
798
|
+
body = (_l.sent()) || "";
|
|
865
799
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
866
800
|
}
|
|
867
801
|
});
|
|
@@ -876,73 +810,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
876
810
|
*/
|
|
877
811
|
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalIncidents = function (response) {
|
|
878
812
|
return __awaiter(this, void 0, void 0, function () {
|
|
879
|
-
var contentType,
|
|
880
|
-
return __generator(this, function (
|
|
881
|
-
switch (
|
|
813
|
+
var contentType, body_14, _a, _b, _c, _d, bodyText, _e, _f, body_15, body_16, _g, _h, _j, _k, body;
|
|
814
|
+
return __generator(this, function (_l) {
|
|
815
|
+
switch (_l.label) {
|
|
882
816
|
case 0:
|
|
883
817
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
884
|
-
if (!(
|
|
818
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
885
819
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
886
820
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
887
821
|
return [4 /*yield*/, response.body.text()];
|
|
888
822
|
case 1:
|
|
889
|
-
|
|
890
|
-
"SecurityMonitoringSignalTriageUpdateResponse"
|
|
891
|
-
|
|
892
|
-
return [2 /*return*/, body_26];
|
|
823
|
+
body_14 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
824
|
+
"SecurityMonitoringSignalTriageUpdateResponse"]);
|
|
825
|
+
return [2 /*return*/, body_14];
|
|
893
826
|
case 2:
|
|
894
|
-
if (!(
|
|
895
|
-
|
|
896
|
-
|
|
827
|
+
if (!(response.httpStatusCode == 400 ||
|
|
828
|
+
response.httpStatusCode == 403 ||
|
|
829
|
+
response.httpStatusCode == 404 ||
|
|
830
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
831
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
897
832
|
return [4 /*yield*/, response.body.text()];
|
|
898
833
|
case 3:
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
""
|
|
902
|
-
|
|
834
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
835
|
+
try {
|
|
836
|
+
body_15 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
837
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_15);
|
|
838
|
+
}
|
|
839
|
+
catch (error) {
|
|
840
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
841
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
842
|
+
}
|
|
843
|
+
_l.label = 4;
|
|
903
844
|
case 4:
|
|
904
|
-
if (!(
|
|
905
|
-
|
|
906
|
-
|
|
845
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
846
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
847
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
907
848
|
return [4 /*yield*/, response.body.text()];
|
|
908
849
|
case 5:
|
|
909
|
-
|
|
910
|
-
"APIErrorResponse",
|
|
911
|
-
""]);
|
|
912
|
-
throw new exception_1.ApiException(403, body_28);
|
|
913
|
-
case 6:
|
|
914
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
915
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
916
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
917
|
-
return [4 /*yield*/, response.body.text()];
|
|
918
|
-
case 7:
|
|
919
|
-
body_29 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
920
|
-
"APIErrorResponse",
|
|
921
|
-
""]);
|
|
922
|
-
throw new exception_1.ApiException(404, body_29);
|
|
923
|
-
case 8:
|
|
924
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
925
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
926
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
927
|
-
return [4 /*yield*/, response.body.text()];
|
|
928
|
-
case 9:
|
|
929
|
-
body_30 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
930
|
-
"APIErrorResponse",
|
|
931
|
-
""]);
|
|
932
|
-
throw new exception_1.ApiException(429, body_30);
|
|
933
|
-
case 10:
|
|
934
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
935
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
936
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
937
|
-
return [4 /*yield*/, response.body.text()];
|
|
938
|
-
case 11:
|
|
939
|
-
body_31 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
850
|
+
body_16 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
940
851
|
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
941
852
|
""]);
|
|
942
|
-
return [2 /*return*/,
|
|
943
|
-
case
|
|
944
|
-
case
|
|
945
|
-
body = (
|
|
853
|
+
return [2 /*return*/, body_16];
|
|
854
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
855
|
+
case 7:
|
|
856
|
+
body = (_l.sent()) || "";
|
|
946
857
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
947
858
|
}
|
|
948
859
|
});
|
|
@@ -957,73 +868,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
957
868
|
*/
|
|
958
869
|
SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalState = function (response) {
|
|
959
870
|
return __awaiter(this, void 0, void 0, function () {
|
|
960
|
-
var contentType,
|
|
961
|
-
return __generator(this, function (
|
|
962
|
-
switch (
|
|
871
|
+
var contentType, body_17, _a, _b, _c, _d, bodyText, _e, _f, body_18, body_19, _g, _h, _j, _k, body;
|
|
872
|
+
return __generator(this, function (_l) {
|
|
873
|
+
switch (_l.label) {
|
|
963
874
|
case 0:
|
|
964
875
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
965
|
-
if (!(
|
|
876
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
966
877
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
967
878
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
968
879
|
return [4 /*yield*/, response.body.text()];
|
|
969
880
|
case 1:
|
|
970
|
-
|
|
971
|
-
"SecurityMonitoringSignalTriageUpdateResponse"
|
|
972
|
-
|
|
973
|
-
return [2 /*return*/, body_32];
|
|
881
|
+
body_17 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
882
|
+
"SecurityMonitoringSignalTriageUpdateResponse"]);
|
|
883
|
+
return [2 /*return*/, body_17];
|
|
974
884
|
case 2:
|
|
975
|
-
if (!(
|
|
976
|
-
|
|
977
|
-
|
|
885
|
+
if (!(response.httpStatusCode == 400 ||
|
|
886
|
+
response.httpStatusCode == 403 ||
|
|
887
|
+
response.httpStatusCode == 404 ||
|
|
888
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
889
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
978
890
|
return [4 /*yield*/, response.body.text()];
|
|
979
891
|
case 3:
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
""
|
|
983
|
-
|
|
892
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
893
|
+
try {
|
|
894
|
+
body_18 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
895
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_18);
|
|
896
|
+
}
|
|
897
|
+
catch (error) {
|
|
898
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
899
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
900
|
+
}
|
|
901
|
+
_l.label = 4;
|
|
984
902
|
case 4:
|
|
985
|
-
if (!(
|
|
986
|
-
|
|
987
|
-
|
|
903
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
904
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
905
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
988
906
|
return [4 /*yield*/, response.body.text()];
|
|
989
907
|
case 5:
|
|
990
|
-
|
|
991
|
-
"APIErrorResponse",
|
|
992
|
-
""]);
|
|
993
|
-
throw new exception_1.ApiException(403, body_34);
|
|
994
|
-
case 6:
|
|
995
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
996
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
997
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
998
|
-
return [4 /*yield*/, response.body.text()];
|
|
999
|
-
case 7:
|
|
1000
|
-
body_35 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1001
|
-
"APIErrorResponse",
|
|
1002
|
-
""]);
|
|
1003
|
-
throw new exception_1.ApiException(404, body_35);
|
|
1004
|
-
case 8:
|
|
1005
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1006
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1007
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1008
|
-
return [4 /*yield*/, response.body.text()];
|
|
1009
|
-
case 9:
|
|
1010
|
-
body_36 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1011
|
-
"APIErrorResponse",
|
|
1012
|
-
""]);
|
|
1013
|
-
throw new exception_1.ApiException(429, body_36);
|
|
1014
|
-
case 10:
|
|
1015
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1016
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1017
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1018
|
-
return [4 /*yield*/, response.body.text()];
|
|
1019
|
-
case 11:
|
|
1020
|
-
body_37 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
908
|
+
body_19 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1021
909
|
"SecurityMonitoringSignalTriageUpdateResponse",
|
|
1022
910
|
""]);
|
|
1023
|
-
return [2 /*return*/,
|
|
1024
|
-
case
|
|
1025
|
-
case
|
|
1026
|
-
body = (
|
|
911
|
+
return [2 /*return*/, body_19];
|
|
912
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
913
|
+
case 7:
|
|
914
|
+
body = (_l.sent()) || "";
|
|
1027
915
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1028
916
|
}
|
|
1029
917
|
});
|
|
@@ -1038,63 +926,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1038
926
|
*/
|
|
1039
927
|
SecurityMonitoringApiResponseProcessor.prototype.getSecurityFilter = function (response) {
|
|
1040
928
|
return __awaiter(this, void 0, void 0, function () {
|
|
1041
|
-
var contentType,
|
|
1042
|
-
return __generator(this, function (
|
|
1043
|
-
switch (
|
|
929
|
+
var contentType, body_20, _a, _b, _c, _d, bodyText, _e, _f, body_21, body_22, _g, _h, _j, _k, body;
|
|
930
|
+
return __generator(this, function (_l) {
|
|
931
|
+
switch (_l.label) {
|
|
1044
932
|
case 0:
|
|
1045
933
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1046
|
-
if (!(
|
|
934
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1047
935
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1048
936
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1049
937
|
return [4 /*yield*/, response.body.text()];
|
|
1050
938
|
case 1:
|
|
1051
|
-
|
|
1052
|
-
"SecurityFilterResponse"
|
|
1053
|
-
|
|
1054
|
-
return [2 /*return*/, body_38];
|
|
939
|
+
body_20 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
940
|
+
"SecurityFilterResponse"]);
|
|
941
|
+
return [2 /*return*/, body_20];
|
|
1055
942
|
case 2:
|
|
1056
|
-
if (!(
|
|
1057
|
-
|
|
1058
|
-
|
|
943
|
+
if (!(response.httpStatusCode == 403 ||
|
|
944
|
+
response.httpStatusCode == 404 ||
|
|
945
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
946
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1059
947
|
return [4 /*yield*/, response.body.text()];
|
|
1060
948
|
case 3:
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
""
|
|
1064
|
-
|
|
949
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
950
|
+
try {
|
|
951
|
+
body_21 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
952
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_21);
|
|
953
|
+
}
|
|
954
|
+
catch (error) {
|
|
955
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
956
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
957
|
+
}
|
|
958
|
+
_l.label = 4;
|
|
1065
959
|
case 4:
|
|
1066
|
-
if (!(
|
|
1067
|
-
|
|
1068
|
-
|
|
960
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
961
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
962
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1069
963
|
return [4 /*yield*/, response.body.text()];
|
|
1070
964
|
case 5:
|
|
1071
|
-
|
|
1072
|
-
"APIErrorResponse",
|
|
1073
|
-
""]);
|
|
1074
|
-
throw new exception_1.ApiException(404, body_40);
|
|
1075
|
-
case 6:
|
|
1076
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1077
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1078
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1079
|
-
return [4 /*yield*/, response.body.text()];
|
|
1080
|
-
case 7:
|
|
1081
|
-
body_41 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1082
|
-
"APIErrorResponse",
|
|
1083
|
-
""]);
|
|
1084
|
-
throw new exception_1.ApiException(429, body_41);
|
|
1085
|
-
case 8:
|
|
1086
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1087
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1088
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1089
|
-
return [4 /*yield*/, response.body.text()];
|
|
1090
|
-
case 9:
|
|
1091
|
-
body_42 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
965
|
+
body_22 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1092
966
|
"SecurityFilterResponse",
|
|
1093
967
|
""]);
|
|
1094
|
-
return [2 /*return*/,
|
|
1095
|
-
case
|
|
1096
|
-
case
|
|
1097
|
-
body = (
|
|
968
|
+
return [2 /*return*/, body_22];
|
|
969
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
970
|
+
case 7:
|
|
971
|
+
body = (_l.sent()) || "";
|
|
1098
972
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1099
973
|
}
|
|
1100
974
|
});
|
|
@@ -1109,53 +983,102 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1109
983
|
*/
|
|
1110
984
|
SecurityMonitoringApiResponseProcessor.prototype.getSecurityMonitoringRule = function (response) {
|
|
1111
985
|
return __awaiter(this, void 0, void 0, function () {
|
|
1112
|
-
var contentType,
|
|
1113
|
-
return __generator(this, function (
|
|
1114
|
-
switch (
|
|
986
|
+
var contentType, body_23, _a, _b, _c, _d, bodyText, _e, _f, body_24, body_25, _g, _h, _j, _k, body;
|
|
987
|
+
return __generator(this, function (_l) {
|
|
988
|
+
switch (_l.label) {
|
|
1115
989
|
case 0:
|
|
1116
990
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1117
|
-
if (!(
|
|
991
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1118
992
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1119
993
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1120
994
|
return [4 /*yield*/, response.body.text()];
|
|
1121
995
|
case 1:
|
|
1122
|
-
|
|
996
|
+
body_23 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
997
|
+
"SecurityMonitoringRuleResponse"]);
|
|
998
|
+
return [2 /*return*/, body_23];
|
|
999
|
+
case 2:
|
|
1000
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1001
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1002
|
+
return [4 /*yield*/, response.body.text()];
|
|
1003
|
+
case 3:
|
|
1004
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1005
|
+
try {
|
|
1006
|
+
body_24 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1007
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_24);
|
|
1008
|
+
}
|
|
1009
|
+
catch (error) {
|
|
1010
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1011
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1012
|
+
}
|
|
1013
|
+
_l.label = 4;
|
|
1014
|
+
case 4:
|
|
1015
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1016
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1017
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1018
|
+
return [4 /*yield*/, response.body.text()];
|
|
1019
|
+
case 5:
|
|
1020
|
+
body_25 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1123
1021
|
"SecurityMonitoringRuleResponse",
|
|
1124
1022
|
""]);
|
|
1125
|
-
return [2 /*return*/,
|
|
1023
|
+
return [2 /*return*/, body_25];
|
|
1024
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1025
|
+
case 7:
|
|
1026
|
+
body = (_l.sent()) || "";
|
|
1027
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1028
|
+
}
|
|
1029
|
+
});
|
|
1030
|
+
});
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1034
|
+
* to the expected objects
|
|
1035
|
+
*
|
|
1036
|
+
* @params response Response returned by the server for a request to getSecurityMonitoringSignal
|
|
1037
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1038
|
+
*/
|
|
1039
|
+
SecurityMonitoringApiResponseProcessor.prototype.getSecurityMonitoringSignal = function (response) {
|
|
1040
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1041
|
+
var contentType, body_26, _a, _b, _c, _d, bodyText, _e, _f, body_27, body_28, _g, _h, _j, _k, body;
|
|
1042
|
+
return __generator(this, function (_l) {
|
|
1043
|
+
switch (_l.label) {
|
|
1044
|
+
case 0:
|
|
1045
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1046
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1047
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1048
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1049
|
+
return [4 /*yield*/, response.body.text()];
|
|
1050
|
+
case 1:
|
|
1051
|
+
body_26 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1052
|
+
"SecurityMonitoringSignal"]);
|
|
1053
|
+
return [2 /*return*/, body_26];
|
|
1126
1054
|
case 2:
|
|
1127
|
-
if (!(
|
|
1128
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1129
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1055
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1056
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1130
1057
|
return [4 /*yield*/, response.body.text()];
|
|
1131
1058
|
case 3:
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
""
|
|
1135
|
-
|
|
1059
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1060
|
+
try {
|
|
1061
|
+
body_27 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1062
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_27);
|
|
1063
|
+
}
|
|
1064
|
+
catch (error) {
|
|
1065
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1066
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1067
|
+
}
|
|
1068
|
+
_l.label = 4;
|
|
1136
1069
|
case 4:
|
|
1137
|
-
if (!(
|
|
1138
|
-
|
|
1139
|
-
|
|
1070
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1071
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1072
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1140
1073
|
return [4 /*yield*/, response.body.text()];
|
|
1141
1074
|
case 5:
|
|
1142
|
-
|
|
1143
|
-
"
|
|
1075
|
+
body_28 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1076
|
+
"SecurityMonitoringSignal",
|
|
1144
1077
|
""]);
|
|
1145
|
-
|
|
1146
|
-
case 6:
|
|
1147
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1148
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1149
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1150
|
-
return [4 /*yield*/, response.body.text()];
|
|
1078
|
+
return [2 /*return*/, body_28];
|
|
1079
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1151
1080
|
case 7:
|
|
1152
|
-
|
|
1153
|
-
"SecurityMonitoringRuleResponse",
|
|
1154
|
-
""]);
|
|
1155
|
-
return [2 /*return*/, body_46];
|
|
1156
|
-
case 8: return [4 /*yield*/, response.body.text()];
|
|
1157
|
-
case 9:
|
|
1158
|
-
body = (_s.sent()) || "";
|
|
1081
|
+
body = (_l.sent()) || "";
|
|
1159
1082
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1160
1083
|
}
|
|
1161
1084
|
});
|
|
@@ -1170,53 +1093,47 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1170
1093
|
*/
|
|
1171
1094
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityFilters = function (response) {
|
|
1172
1095
|
return __awaiter(this, void 0, void 0, function () {
|
|
1173
|
-
var contentType,
|
|
1174
|
-
return __generator(this, function (
|
|
1175
|
-
switch (
|
|
1096
|
+
var contentType, body_29, _a, _b, _c, _d, bodyText, _e, _f, body_30, body_31, _g, _h, _j, _k, body;
|
|
1097
|
+
return __generator(this, function (_l) {
|
|
1098
|
+
switch (_l.label) {
|
|
1176
1099
|
case 0:
|
|
1177
1100
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1178
|
-
if (!(
|
|
1101
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1179
1102
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1180
1103
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1181
1104
|
return [4 /*yield*/, response.body.text()];
|
|
1182
1105
|
case 1:
|
|
1183
|
-
|
|
1184
|
-
"SecurityFiltersResponse"
|
|
1185
|
-
|
|
1186
|
-
return [2 /*return*/, body_47];
|
|
1106
|
+
body_29 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1107
|
+
"SecurityFiltersResponse"]);
|
|
1108
|
+
return [2 /*return*/, body_29];
|
|
1187
1109
|
case 2:
|
|
1188
|
-
if (!(
|
|
1189
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1190
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1110
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1111
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1191
1112
|
return [4 /*yield*/, response.body.text()];
|
|
1192
1113
|
case 3:
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
""
|
|
1196
|
-
|
|
1114
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1115
|
+
try {
|
|
1116
|
+
body_30 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1117
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_30);
|
|
1118
|
+
}
|
|
1119
|
+
catch (error) {
|
|
1120
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1121
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1122
|
+
}
|
|
1123
|
+
_l.label = 4;
|
|
1197
1124
|
case 4:
|
|
1198
|
-
if (!(
|
|
1199
|
-
|
|
1200
|
-
|
|
1125
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1126
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1127
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1201
1128
|
return [4 /*yield*/, response.body.text()];
|
|
1202
1129
|
case 5:
|
|
1203
|
-
|
|
1204
|
-
"APIErrorResponse",
|
|
1205
|
-
""]);
|
|
1206
|
-
throw new exception_1.ApiException(429, body_49);
|
|
1207
|
-
case 6:
|
|
1208
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1209
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1210
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1211
|
-
return [4 /*yield*/, response.body.text()];
|
|
1212
|
-
case 7:
|
|
1213
|
-
body_50 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1130
|
+
body_31 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1214
1131
|
"SecurityFiltersResponse",
|
|
1215
1132
|
""]);
|
|
1216
|
-
return [2 /*return*/,
|
|
1217
|
-
case
|
|
1218
|
-
case
|
|
1219
|
-
body = (
|
|
1133
|
+
return [2 /*return*/, body_31];
|
|
1134
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1135
|
+
case 7:
|
|
1136
|
+
body = (_l.sent()) || "";
|
|
1220
1137
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1221
1138
|
}
|
|
1222
1139
|
});
|
|
@@ -1231,53 +1148,47 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1231
1148
|
*/
|
|
1232
1149
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringRules = function (response) {
|
|
1233
1150
|
return __awaiter(this, void 0, void 0, function () {
|
|
1234
|
-
var contentType,
|
|
1235
|
-
return __generator(this, function (
|
|
1236
|
-
switch (
|
|
1151
|
+
var contentType, body_32, _a, _b, _c, _d, bodyText, _e, _f, body_33, body_34, _g, _h, _j, _k, body;
|
|
1152
|
+
return __generator(this, function (_l) {
|
|
1153
|
+
switch (_l.label) {
|
|
1237
1154
|
case 0:
|
|
1238
1155
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1239
|
-
if (!(
|
|
1156
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1240
1157
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1241
1158
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1242
1159
|
return [4 /*yield*/, response.body.text()];
|
|
1243
1160
|
case 1:
|
|
1244
|
-
|
|
1245
|
-
"SecurityMonitoringListRulesResponse"
|
|
1246
|
-
|
|
1247
|
-
return [2 /*return*/, body_51];
|
|
1161
|
+
body_32 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1162
|
+
"SecurityMonitoringListRulesResponse"]);
|
|
1163
|
+
return [2 /*return*/, body_32];
|
|
1248
1164
|
case 2:
|
|
1249
|
-
if (!(
|
|
1250
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1251
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1165
|
+
if (!(response.httpStatusCode == 400 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1166
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1252
1167
|
return [4 /*yield*/, response.body.text()];
|
|
1253
1168
|
case 3:
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
""
|
|
1257
|
-
|
|
1169
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1170
|
+
try {
|
|
1171
|
+
body_33 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1172
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_33);
|
|
1173
|
+
}
|
|
1174
|
+
catch (error) {
|
|
1175
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1176
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1177
|
+
}
|
|
1178
|
+
_l.label = 4;
|
|
1258
1179
|
case 4:
|
|
1259
|
-
if (!(
|
|
1260
|
-
|
|
1261
|
-
|
|
1180
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1181
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1182
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1262
1183
|
return [4 /*yield*/, response.body.text()];
|
|
1263
1184
|
case 5:
|
|
1264
|
-
|
|
1265
|
-
"APIErrorResponse",
|
|
1266
|
-
""]);
|
|
1267
|
-
throw new exception_1.ApiException(429, body_53);
|
|
1268
|
-
case 6:
|
|
1269
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1270
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1271
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1272
|
-
return [4 /*yield*/, response.body.text()];
|
|
1273
|
-
case 7:
|
|
1274
|
-
body_54 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1185
|
+
body_34 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1275
1186
|
"SecurityMonitoringListRulesResponse",
|
|
1276
1187
|
""]);
|
|
1277
|
-
return [2 /*return*/,
|
|
1278
|
-
case
|
|
1279
|
-
case
|
|
1280
|
-
body = (
|
|
1188
|
+
return [2 /*return*/, body_34];
|
|
1189
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1190
|
+
case 7:
|
|
1191
|
+
body = (_l.sent()) || "";
|
|
1281
1192
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1282
1193
|
}
|
|
1283
1194
|
});
|
|
@@ -1292,63 +1203,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1292
1203
|
*/
|
|
1293
1204
|
SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringSignals = function (response) {
|
|
1294
1205
|
return __awaiter(this, void 0, void 0, function () {
|
|
1295
|
-
var contentType,
|
|
1296
|
-
return __generator(this, function (
|
|
1297
|
-
switch (
|
|
1206
|
+
var contentType, body_35, _a, _b, _c, _d, bodyText, _e, _f, body_36, body_37, _g, _h, _j, _k, body;
|
|
1207
|
+
return __generator(this, function (_l) {
|
|
1208
|
+
switch (_l.label) {
|
|
1298
1209
|
case 0:
|
|
1299
1210
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1300
|
-
if (!(
|
|
1211
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1301
1212
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1302
1213
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1303
1214
|
return [4 /*yield*/, response.body.text()];
|
|
1304
1215
|
case 1:
|
|
1305
|
-
|
|
1306
|
-
"SecurityMonitoringSignalsListResponse"
|
|
1307
|
-
|
|
1308
|
-
return [2 /*return*/, body_55];
|
|
1216
|
+
body_35 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1217
|
+
"SecurityMonitoringSignalsListResponse"]);
|
|
1218
|
+
return [2 /*return*/, body_35];
|
|
1309
1219
|
case 2:
|
|
1310
|
-
if (!(
|
|
1311
|
-
|
|
1312
|
-
|
|
1220
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1221
|
+
response.httpStatusCode == 403 ||
|
|
1222
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1223
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1313
1224
|
return [4 /*yield*/, response.body.text()];
|
|
1314
1225
|
case 3:
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
""
|
|
1318
|
-
|
|
1226
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1227
|
+
try {
|
|
1228
|
+
body_36 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1229
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_36);
|
|
1230
|
+
}
|
|
1231
|
+
catch (error) {
|
|
1232
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1233
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1234
|
+
}
|
|
1235
|
+
_l.label = 4;
|
|
1319
1236
|
case 4:
|
|
1320
|
-
if (!(
|
|
1321
|
-
|
|
1322
|
-
|
|
1237
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1238
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1239
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1323
1240
|
return [4 /*yield*/, response.body.text()];
|
|
1324
1241
|
case 5:
|
|
1325
|
-
|
|
1326
|
-
"APIErrorResponse",
|
|
1327
|
-
""]);
|
|
1328
|
-
throw new exception_1.ApiException(403, body_57);
|
|
1329
|
-
case 6:
|
|
1330
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1331
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1332
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1333
|
-
return [4 /*yield*/, response.body.text()];
|
|
1334
|
-
case 7:
|
|
1335
|
-
body_58 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1336
|
-
"APIErrorResponse",
|
|
1337
|
-
""]);
|
|
1338
|
-
throw new exception_1.ApiException(429, body_58);
|
|
1339
|
-
case 8:
|
|
1340
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1341
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1342
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1343
|
-
return [4 /*yield*/, response.body.text()];
|
|
1344
|
-
case 9:
|
|
1345
|
-
body_59 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1242
|
+
body_37 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1346
1243
|
"SecurityMonitoringSignalsListResponse",
|
|
1347
1244
|
""]);
|
|
1348
|
-
return [2 /*return*/,
|
|
1349
|
-
case
|
|
1350
|
-
case
|
|
1351
|
-
body = (
|
|
1245
|
+
return [2 /*return*/, body_37];
|
|
1246
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1247
|
+
case 7:
|
|
1248
|
+
body = (_l.sent()) || "";
|
|
1352
1249
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1353
1250
|
}
|
|
1354
1251
|
});
|
|
@@ -1363,63 +1260,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1363
1260
|
*/
|
|
1364
1261
|
SecurityMonitoringApiResponseProcessor.prototype.searchSecurityMonitoringSignals = function (response) {
|
|
1365
1262
|
return __awaiter(this, void 0, void 0, function () {
|
|
1366
|
-
var contentType,
|
|
1367
|
-
return __generator(this, function (
|
|
1368
|
-
switch (
|
|
1263
|
+
var contentType, body_38, _a, _b, _c, _d, bodyText, _e, _f, body_39, body_40, _g, _h, _j, _k, body;
|
|
1264
|
+
return __generator(this, function (_l) {
|
|
1265
|
+
switch (_l.label) {
|
|
1369
1266
|
case 0:
|
|
1370
1267
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1371
|
-
if (!(
|
|
1268
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1372
1269
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1373
1270
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1374
1271
|
return [4 /*yield*/, response.body.text()];
|
|
1375
1272
|
case 1:
|
|
1376
|
-
|
|
1377
|
-
"SecurityMonitoringSignalsListResponse"
|
|
1378
|
-
|
|
1379
|
-
return [2 /*return*/, body_60];
|
|
1273
|
+
body_38 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1274
|
+
"SecurityMonitoringSignalsListResponse"]);
|
|
1275
|
+
return [2 /*return*/, body_38];
|
|
1380
1276
|
case 2:
|
|
1381
|
-
if (!(
|
|
1382
|
-
|
|
1383
|
-
|
|
1277
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1278
|
+
response.httpStatusCode == 403 ||
|
|
1279
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1280
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1384
1281
|
return [4 /*yield*/, response.body.text()];
|
|
1385
1282
|
case 3:
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
""
|
|
1389
|
-
|
|
1283
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1284
|
+
try {
|
|
1285
|
+
body_39 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1286
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_39);
|
|
1287
|
+
}
|
|
1288
|
+
catch (error) {
|
|
1289
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1290
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1291
|
+
}
|
|
1292
|
+
_l.label = 4;
|
|
1390
1293
|
case 4:
|
|
1391
|
-
if (!(
|
|
1392
|
-
|
|
1393
|
-
|
|
1294
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1295
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1296
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1394
1297
|
return [4 /*yield*/, response.body.text()];
|
|
1395
1298
|
case 5:
|
|
1396
|
-
|
|
1397
|
-
"APIErrorResponse",
|
|
1398
|
-
""]);
|
|
1399
|
-
throw new exception_1.ApiException(403, body_62);
|
|
1400
|
-
case 6:
|
|
1401
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1402
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1403
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1404
|
-
return [4 /*yield*/, response.body.text()];
|
|
1405
|
-
case 7:
|
|
1406
|
-
body_63 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1407
|
-
"APIErrorResponse",
|
|
1408
|
-
""]);
|
|
1409
|
-
throw new exception_1.ApiException(429, body_63);
|
|
1410
|
-
case 8:
|
|
1411
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1412
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1413
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1414
|
-
return [4 /*yield*/, response.body.text()];
|
|
1415
|
-
case 9:
|
|
1416
|
-
body_64 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1299
|
+
body_40 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1417
1300
|
"SecurityMonitoringSignalsListResponse",
|
|
1418
1301
|
""]);
|
|
1419
|
-
return [2 /*return*/,
|
|
1420
|
-
case
|
|
1421
|
-
case
|
|
1422
|
-
body = (
|
|
1302
|
+
return [2 /*return*/, body_40];
|
|
1303
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1304
|
+
case 7:
|
|
1305
|
+
body = (_l.sent()) || "";
|
|
1423
1306
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1424
1307
|
}
|
|
1425
1308
|
});
|
|
@@ -1434,83 +1317,51 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1434
1317
|
*/
|
|
1435
1318
|
SecurityMonitoringApiResponseProcessor.prototype.updateSecurityFilter = function (response) {
|
|
1436
1319
|
return __awaiter(this, void 0, void 0, function () {
|
|
1437
|
-
var contentType,
|
|
1438
|
-
return __generator(this, function (
|
|
1439
|
-
switch (
|
|
1320
|
+
var contentType, body_41, _a, _b, _c, _d, bodyText, _e, _f, body_42, body_43, _g, _h, _j, _k, body;
|
|
1321
|
+
return __generator(this, function (_l) {
|
|
1322
|
+
switch (_l.label) {
|
|
1440
1323
|
case 0:
|
|
1441
1324
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1442
|
-
if (!(
|
|
1325
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1443
1326
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1444
1327
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1445
1328
|
return [4 /*yield*/, response.body.text()];
|
|
1446
1329
|
case 1:
|
|
1447
|
-
|
|
1448
|
-
"SecurityFilterResponse"
|
|
1449
|
-
|
|
1450
|
-
return [2 /*return*/, body_65];
|
|
1330
|
+
body_41 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1331
|
+
"SecurityFilterResponse"]);
|
|
1332
|
+
return [2 /*return*/, body_41];
|
|
1451
1333
|
case 2:
|
|
1452
|
-
if (!(
|
|
1453
|
-
|
|
1454
|
-
|
|
1334
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1335
|
+
response.httpStatusCode == 403 ||
|
|
1336
|
+
response.httpStatusCode == 404 ||
|
|
1337
|
+
response.httpStatusCode == 409 ||
|
|
1338
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1339
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1455
1340
|
return [4 /*yield*/, response.body.text()];
|
|
1456
1341
|
case 3:
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
""
|
|
1460
|
-
|
|
1342
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1343
|
+
try {
|
|
1344
|
+
body_42 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1345
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_42);
|
|
1346
|
+
}
|
|
1347
|
+
catch (error) {
|
|
1348
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1349
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1350
|
+
}
|
|
1351
|
+
_l.label = 4;
|
|
1461
1352
|
case 4:
|
|
1462
|
-
if (!(
|
|
1463
|
-
|
|
1464
|
-
|
|
1353
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1354
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1355
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1465
1356
|
return [4 /*yield*/, response.body.text()];
|
|
1466
1357
|
case 5:
|
|
1467
|
-
|
|
1468
|
-
"APIErrorResponse",
|
|
1469
|
-
""]);
|
|
1470
|
-
throw new exception_1.ApiException(403, body_67);
|
|
1471
|
-
case 6:
|
|
1472
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1473
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1474
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1475
|
-
return [4 /*yield*/, response.body.text()];
|
|
1476
|
-
case 7:
|
|
1477
|
-
body_68 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1478
|
-
"APIErrorResponse",
|
|
1479
|
-
""]);
|
|
1480
|
-
throw new exception_1.ApiException(404, body_68);
|
|
1481
|
-
case 8:
|
|
1482
|
-
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1483
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1484
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1485
|
-
return [4 /*yield*/, response.body.text()];
|
|
1486
|
-
case 9:
|
|
1487
|
-
body_69 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1488
|
-
"APIErrorResponse",
|
|
1489
|
-
""]);
|
|
1490
|
-
throw new exception_1.ApiException(409, body_69);
|
|
1491
|
-
case 10:
|
|
1492
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1493
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1494
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1495
|
-
return [4 /*yield*/, response.body.text()];
|
|
1496
|
-
case 11:
|
|
1497
|
-
body_70 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1498
|
-
"APIErrorResponse",
|
|
1499
|
-
""]);
|
|
1500
|
-
throw new exception_1.ApiException(429, body_70);
|
|
1501
|
-
case 12:
|
|
1502
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1503
|
-
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1504
|
-
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1505
|
-
return [4 /*yield*/, response.body.text()];
|
|
1506
|
-
case 13:
|
|
1507
|
-
body_71 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1358
|
+
body_43 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1508
1359
|
"SecurityFilterResponse",
|
|
1509
1360
|
""]);
|
|
1510
|
-
return [2 /*return*/,
|
|
1511
|
-
case
|
|
1512
|
-
case
|
|
1513
|
-
body = (
|
|
1361
|
+
return [2 /*return*/, body_43];
|
|
1362
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1363
|
+
case 7:
|
|
1364
|
+
body = (_l.sent()) || "";
|
|
1514
1365
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1515
1366
|
}
|
|
1516
1367
|
});
|
|
@@ -1525,83 +1376,51 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
|
|
|
1525
1376
|
*/
|
|
1526
1377
|
SecurityMonitoringApiResponseProcessor.prototype.updateSecurityMonitoringRule = function (response) {
|
|
1527
1378
|
return __awaiter(this, void 0, void 0, function () {
|
|
1528
|
-
var contentType,
|
|
1529
|
-
return __generator(this, function (
|
|
1530
|
-
switch (
|
|
1379
|
+
var contentType, body_44, _a, _b, _c, _d, bodyText, _e, _f, body_45, body_46, _g, _h, _j, _k, body;
|
|
1380
|
+
return __generator(this, function (_l) {
|
|
1381
|
+
switch (_l.label) {
|
|
1531
1382
|
case 0:
|
|
1532
1383
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1533
|
-
if (!(
|
|
1384
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1534
1385
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1535
1386
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1536
1387
|
return [4 /*yield*/, response.body.text()];
|
|
1537
1388
|
case 1:
|
|
1538
|
-
|
|
1539
|
-
"SecurityMonitoringRuleResponse"
|
|
1540
|
-
|
|
1541
|
-
return [2 /*return*/, body_72];
|
|
1389
|
+
body_44 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1390
|
+
"SecurityMonitoringRuleResponse"]);
|
|
1391
|
+
return [2 /*return*/, body_44];
|
|
1542
1392
|
case 2:
|
|
1543
|
-
if (!(
|
|
1544
|
-
|
|
1545
|
-
|
|
1393
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1394
|
+
response.httpStatusCode == 401 ||
|
|
1395
|
+
response.httpStatusCode == 403 ||
|
|
1396
|
+
response.httpStatusCode == 404 ||
|
|
1397
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1398
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1546
1399
|
return [4 /*yield*/, response.body.text()];
|
|
1547
1400
|
case 3:
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
""
|
|
1551
|
-
|
|
1401
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1402
|
+
try {
|
|
1403
|
+
body_45 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1404
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_45);
|
|
1405
|
+
}
|
|
1406
|
+
catch (error) {
|
|
1407
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1408
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1409
|
+
}
|
|
1410
|
+
_l.label = 4;
|
|
1552
1411
|
case 4:
|
|
1553
|
-
if (!(
|
|
1554
|
-
|
|
1555
|
-
|
|
1412
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1413
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1414
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1556
1415
|
return [4 /*yield*/, response.body.text()];
|
|
1557
1416
|
case 5:
|
|
1558
|
-
|
|
1559
|
-
"APIErrorResponse",
|
|
1560
|
-
""]);
|
|
1561
|
-
throw new exception_1.ApiException(401, body_74);
|
|
1562
|
-
case 6:
|
|
1563
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1564
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1565
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1566
|
-
return [4 /*yield*/, response.body.text()];
|
|
1567
|
-
case 7:
|
|
1568
|
-
body_75 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1569
|
-
"APIErrorResponse",
|
|
1570
|
-
""]);
|
|
1571
|
-
throw new exception_1.ApiException(403, body_75);
|
|
1572
|
-
case 8:
|
|
1573
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1574
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1575
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1576
|
-
return [4 /*yield*/, response.body.text()];
|
|
1577
|
-
case 9:
|
|
1578
|
-
body_76 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1579
|
-
"APIErrorResponse",
|
|
1580
|
-
""]);
|
|
1581
|
-
throw new exception_1.ApiException(404, body_76);
|
|
1582
|
-
case 10:
|
|
1583
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1584
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1585
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1586
|
-
return [4 /*yield*/, response.body.text()];
|
|
1587
|
-
case 11:
|
|
1588
|
-
body_77 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1589
|
-
"APIErrorResponse",
|
|
1590
|
-
""]);
|
|
1591
|
-
throw new exception_1.ApiException(429, body_77);
|
|
1592
|
-
case 12:
|
|
1593
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1594
|
-
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1595
|
-
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1596
|
-
return [4 /*yield*/, response.body.text()];
|
|
1597
|
-
case 13:
|
|
1598
|
-
body_78 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1417
|
+
body_46 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1599
1418
|
"SecurityMonitoringRuleResponse",
|
|
1600
1419
|
""]);
|
|
1601
|
-
return [2 /*return*/,
|
|
1602
|
-
case
|
|
1603
|
-
case
|
|
1604
|
-
body = (
|
|
1420
|
+
return [2 /*return*/, body_46];
|
|
1421
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1422
|
+
case 7:
|
|
1423
|
+
body = (_l.sent()) || "";
|
|
1605
1424
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1606
1425
|
}
|
|
1607
1426
|
});
|
|
@@ -1759,6 +1578,21 @@ var SecurityMonitoringApi = /** @class */ (function () {
|
|
|
1759
1578
|
});
|
|
1760
1579
|
});
|
|
1761
1580
|
};
|
|
1581
|
+
/**
|
|
1582
|
+
* Get a signal's details.
|
|
1583
|
+
* @param param The request object
|
|
1584
|
+
*/
|
|
1585
|
+
SecurityMonitoringApi.prototype.getSecurityMonitoringSignal = function (param, options) {
|
|
1586
|
+
var _this = this;
|
|
1587
|
+
var requestContextPromise = this.requestFactory.getSecurityMonitoringSignal(param.signalId, options);
|
|
1588
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1589
|
+
return _this.configuration.httpApi
|
|
1590
|
+
.send(requestContext)
|
|
1591
|
+
.then(function (responseContext) {
|
|
1592
|
+
return _this.responseProcessor.getSecurityMonitoringSignal(responseContext);
|
|
1593
|
+
});
|
|
1594
|
+
});
|
|
1595
|
+
};
|
|
1762
1596
|
/**
|
|
1763
1597
|
* Get the list of configured security filters with their definitions.
|
|
1764
1598
|
* @param param The request object
|