@datadog/datadog-api-client 1.9.0 → 1.11.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 +37 -0
- package/LICENSE-3rdparty.csv +0 -8
- package/dist/packages/datadog-api-client-common/configuration.js +5 -1
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +0 -4
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/index.d.ts +3 -0
- package/dist/packages/datadog-api-client-v1/index.js +13 -9
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/CancelDowntimesByScopeRequest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/Downtime.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/DowntimeChild.d.ts +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/HostMeta.d.ts +3 -3
- package/dist/packages/datadog-api-client-v1/models/HostMeta.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/HostMeta.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.js +35 -0
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +4 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +3 -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 +18 -10
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +18 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +4 -5
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +9 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOState.d.ts +14 -0
- package/dist/packages/datadog-api-client-v1/models/SLOState.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/SLOState.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOStatus.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOStatus.js +54 -0
- package/dist/packages/datadog-api-client-v1/models/SLOStatus.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +10 -10
- package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +20 -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 +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +20 -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 +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js +0 -3
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.js +0 -3
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.js +185 -0
- package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +134 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +434 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.d.ts +1 -0
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +1 -0
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +2 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js +0 -3
- package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.d.ts +91 -0
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +269 -0
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.d.ts +50 -0
- package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.js +178 -0
- package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +36 -1
- package/dist/packages/datadog-api-client-v2/index.js +74 -14
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/EventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/EventsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.d.ts +5 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.js +5 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsDataSource.d.ts +3 -2
- package/dist/packages/datadog-api-client-v2/models/MetricsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsScalarQuery.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricsTimeseriesQuery.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +82 -4
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadatas.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +20 -28
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IPAllowlistApi = exports.IPAllowlistApiResponseProcessor = exports.IPAllowlistApiRequestFactory = void 0;
|
|
13
|
+
const baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
14
|
+
const configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
15
|
+
const http_1 = require("../../datadog-api-client-common/http/http");
|
|
16
|
+
const logger_1 = require("../../../logger");
|
|
17
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
18
|
+
const exception_1 = require("../../datadog-api-client-common/exception");
|
|
19
|
+
class IPAllowlistApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
20
|
+
getIPAllowlist(_options) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const _config = _options || this.configuration;
|
|
23
|
+
// Path Params
|
|
24
|
+
const localVarPath = "/api/v2/ip_allowlist";
|
|
25
|
+
// Make Request Context
|
|
26
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.IPAllowlistApi.getIPAllowlist").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
27
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
28
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
29
|
+
// Apply auth methods
|
|
30
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
31
|
+
"AuthZ",
|
|
32
|
+
"apiKeyAuth",
|
|
33
|
+
"appKeyAuth",
|
|
34
|
+
]);
|
|
35
|
+
return requestContext;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
updateIPAllowlist(body, _options) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const _config = _options || this.configuration;
|
|
41
|
+
// verify required parameter 'body' is not null or undefined
|
|
42
|
+
if (body === null || body === undefined) {
|
|
43
|
+
throw new baseapi_1.RequiredError("body", "updateIPAllowlist");
|
|
44
|
+
}
|
|
45
|
+
// Path Params
|
|
46
|
+
const localVarPath = "/api/v2/ip_allowlist";
|
|
47
|
+
// Make Request Context
|
|
48
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.IPAllowlistApi.updateIPAllowlist").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
49
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
50
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
51
|
+
// Body Params
|
|
52
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
53
|
+
"application/json",
|
|
54
|
+
]);
|
|
55
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
56
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IPAllowlistUpdateRequest", ""), contentType);
|
|
57
|
+
requestContext.setBody(serializedBody);
|
|
58
|
+
// Apply auth methods
|
|
59
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
60
|
+
"AuthZ",
|
|
61
|
+
"apiKeyAuth",
|
|
62
|
+
"appKeyAuth",
|
|
63
|
+
]);
|
|
64
|
+
return requestContext;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.IPAllowlistApiRequestFactory = IPAllowlistApiRequestFactory;
|
|
69
|
+
class IPAllowlistApiResponseProcessor {
|
|
70
|
+
/**
|
|
71
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
72
|
+
* to the expected objects
|
|
73
|
+
*
|
|
74
|
+
* @params response Response returned by the server for a request to getIPAllowlist
|
|
75
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
76
|
+
*/
|
|
77
|
+
getIPAllowlist(response) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
80
|
+
if (response.httpStatusCode == 200) {
|
|
81
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse");
|
|
82
|
+
return body;
|
|
83
|
+
}
|
|
84
|
+
if (response.httpStatusCode == 403 ||
|
|
85
|
+
response.httpStatusCode == 404 ||
|
|
86
|
+
response.httpStatusCode == 429) {
|
|
87
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
88
|
+
let body;
|
|
89
|
+
try {
|
|
90
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
94
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
95
|
+
}
|
|
96
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
97
|
+
}
|
|
98
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
99
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
100
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse", "");
|
|
101
|
+
return body;
|
|
102
|
+
}
|
|
103
|
+
const body = (yield response.body.text()) || "";
|
|
104
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
109
|
+
* to the expected objects
|
|
110
|
+
*
|
|
111
|
+
* @params response Response returned by the server for a request to updateIPAllowlist
|
|
112
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
113
|
+
*/
|
|
114
|
+
updateIPAllowlist(response) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
117
|
+
if (response.httpStatusCode == 200) {
|
|
118
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse");
|
|
119
|
+
return body;
|
|
120
|
+
}
|
|
121
|
+
if (response.httpStatusCode == 400 ||
|
|
122
|
+
response.httpStatusCode == 403 ||
|
|
123
|
+
response.httpStatusCode == 404 ||
|
|
124
|
+
response.httpStatusCode == 429) {
|
|
125
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
126
|
+
let body;
|
|
127
|
+
try {
|
|
128
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
132
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
133
|
+
}
|
|
134
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
135
|
+
}
|
|
136
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
137
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
138
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse", "");
|
|
139
|
+
return body;
|
|
140
|
+
}
|
|
141
|
+
const body = (yield response.body.text()) || "";
|
|
142
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.IPAllowlistApiResponseProcessor = IPAllowlistApiResponseProcessor;
|
|
147
|
+
class IPAllowlistApi {
|
|
148
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
149
|
+
this.configuration = configuration;
|
|
150
|
+
this.requestFactory =
|
|
151
|
+
requestFactory || new IPAllowlistApiRequestFactory(configuration);
|
|
152
|
+
this.responseProcessor =
|
|
153
|
+
responseProcessor || new IPAllowlistApiResponseProcessor();
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Returns the IP allowlist and its enabled or disabled state.
|
|
157
|
+
* @param param The request object
|
|
158
|
+
*/
|
|
159
|
+
getIPAllowlist(options) {
|
|
160
|
+
const requestContextPromise = this.requestFactory.getIPAllowlist(options);
|
|
161
|
+
return requestContextPromise.then((requestContext) => {
|
|
162
|
+
return this.configuration.httpApi
|
|
163
|
+
.send(requestContext)
|
|
164
|
+
.then((responseContext) => {
|
|
165
|
+
return this.responseProcessor.getIPAllowlist(responseContext);
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Edit the entries in the IP allowlist, and enable or disable it.
|
|
171
|
+
* @param param The request object
|
|
172
|
+
*/
|
|
173
|
+
updateIPAllowlist(param, options) {
|
|
174
|
+
const requestContextPromise = this.requestFactory.updateIPAllowlist(param.body, options);
|
|
175
|
+
return requestContextPromise.then((requestContext) => {
|
|
176
|
+
return this.configuration.httpApi
|
|
177
|
+
.send(requestContext)
|
|
178
|
+
.then((responseContext) => {
|
|
179
|
+
return this.responseProcessor.updateIPAllowlist(responseContext);
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
exports.IPAllowlistApi = IPAllowlistApi;
|
|
185
|
+
//# sourceMappingURL=IPAllowlistApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPAllowlistApi.js","sourceRoot":"","sources":["../../../../packages/datadog-api-client-v2/apis/IPAllowlistApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAGiD;AACjD,iFAIuD;AACvD,oEAImD;AAEnD,4CAAyC;AACzC,iEAA8D;AAC9D,yEAAyE;AAMzE,MAAa,4BAA6B,SAAQ,+BAAqB;IACxD,cAAc,CACzB,QAAwB;;YAExB,MAAM,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;YAE/C,cAAc;YACd,MAAM,YAAY,GAAG,sBAAsB,CAAC;YAE5C,uBAAuB;YACvB,MAAM,cAAc,GAAG,IAAA,yBAAS,EAC9B,OAAO,EACP,kCAAkC,CACnC,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,GAAG,CAAC,CAAC;YACnD,cAAc,CAAC,cAAc,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAEjD,qBAAqB;YACrB,IAAA,2CAA2B,EAAC,OAAO,EAAE,cAAc,EAAE;gBACnD,OAAO;gBACP,YAAY;gBACZ,YAAY;aACb,CAAC,CAAC;YAEH,OAAO,cAAc,CAAC;QACxB,CAAC;KAAA;IAEY,iBAAiB,CAC5B,IAA8B,EAC9B,QAAwB;;YAExB,MAAM,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;YAE/C,4DAA4D;YAC5D,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;gBACvC,MAAM,IAAI,uBAAa,CAAC,MAA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AO,qBAAqB,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE;YACnD,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO;iBAC9B,IAAI,CAAC,cAAc,CAAC;iBACpB,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE;gBACxB,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;YACnE,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AApDD,wCAoDC"}
|
|
@@ -7,6 +7,10 @@ import { IncidentAttachmentsResponse } from "../models/IncidentAttachmentsRespon
|
|
|
7
7
|
import { IncidentAttachmentUpdateRequest } from "../models/IncidentAttachmentUpdateRequest";
|
|
8
8
|
import { IncidentAttachmentUpdateResponse } from "../models/IncidentAttachmentUpdateResponse";
|
|
9
9
|
import { IncidentCreateRequest } from "../models/IncidentCreateRequest";
|
|
10
|
+
import { IncidentIntegrationMetadataCreateRequest } from "../models/IncidentIntegrationMetadataCreateRequest";
|
|
11
|
+
import { IncidentIntegrationMetadataListResponse } from "../models/IncidentIntegrationMetadataListResponse";
|
|
12
|
+
import { IncidentIntegrationMetadataPatchRequest } from "../models/IncidentIntegrationMetadataPatchRequest";
|
|
13
|
+
import { IncidentIntegrationMetadataResponse } from "../models/IncidentIntegrationMetadataResponse";
|
|
10
14
|
import { IncidentRelatedObject } from "../models/IncidentRelatedObject";
|
|
11
15
|
import { IncidentResponse } from "../models/IncidentResponse";
|
|
12
16
|
import { IncidentResponseData } from "../models/IncidentResponseData";
|
|
@@ -16,13 +20,18 @@ import { IncidentsResponse } from "../models/IncidentsResponse";
|
|
|
16
20
|
import { IncidentUpdateRequest } from "../models/IncidentUpdateRequest";
|
|
17
21
|
export declare class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
|
|
18
22
|
createIncident(body: IncidentCreateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
23
|
+
createIncidentIntegration(incidentId: string, body: IncidentIntegrationMetadataCreateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
19
24
|
deleteIncident(incidentId: string, _options?: Configuration): Promise<RequestContext>;
|
|
25
|
+
deleteIncidentIntegration(incidentId: string, integrationMetadataId: string, _options?: Configuration): Promise<RequestContext>;
|
|
20
26
|
getIncident(incidentId: string, include?: Array<IncidentRelatedObject>, _options?: Configuration): Promise<RequestContext>;
|
|
27
|
+
getIncidentIntegration(incidentId: string, integrationMetadataId: string, _options?: Configuration): Promise<RequestContext>;
|
|
21
28
|
listIncidentAttachments(incidentId: string, include?: Array<IncidentAttachmentRelatedObject>, filterAttachmentType?: Array<IncidentAttachmentAttachmentType>, _options?: Configuration): Promise<RequestContext>;
|
|
29
|
+
listIncidentIntegrations(incidentId: string, _options?: Configuration): Promise<RequestContext>;
|
|
22
30
|
listIncidents(include?: Array<IncidentRelatedObject>, pageSize?: number, pageOffset?: number, _options?: Configuration): Promise<RequestContext>;
|
|
23
31
|
searchIncidents(query: string, include?: IncidentRelatedObject, sort?: IncidentSearchSortOrder, _options?: Configuration): Promise<RequestContext>;
|
|
24
32
|
updateIncident(incidentId: string, body: IncidentUpdateRequest, include?: Array<IncidentRelatedObject>, _options?: Configuration): Promise<RequestContext>;
|
|
25
33
|
updateIncidentAttachments(incidentId: string, body: IncidentAttachmentUpdateRequest, include?: Array<IncidentAttachmentRelatedObject>, _options?: Configuration): Promise<RequestContext>;
|
|
34
|
+
updateIncidentIntegration(incidentId: string, integrationMetadataId: string, body: IncidentIntegrationMetadataPatchRequest, _options?: Configuration): Promise<RequestContext>;
|
|
26
35
|
}
|
|
27
36
|
export declare class IncidentsApiResponseProcessor {
|
|
28
37
|
/**
|
|
@@ -33,6 +42,14 @@ export declare class IncidentsApiResponseProcessor {
|
|
|
33
42
|
* @throws ApiException if the response code was not in [200, 299]
|
|
34
43
|
*/
|
|
35
44
|
createIncident(response: ResponseContext): Promise<IncidentResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
47
|
+
* to the expected objects
|
|
48
|
+
*
|
|
49
|
+
* @params response Response returned by the server for a request to createIncidentIntegration
|
|
50
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
51
|
+
*/
|
|
52
|
+
createIncidentIntegration(response: ResponseContext): Promise<IncidentIntegrationMetadataResponse>;
|
|
36
53
|
/**
|
|
37
54
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
38
55
|
* to the expected objects
|
|
@@ -41,6 +58,14 @@ export declare class IncidentsApiResponseProcessor {
|
|
|
41
58
|
* @throws ApiException if the response code was not in [200, 299]
|
|
42
59
|
*/
|
|
43
60
|
deleteIncident(response: ResponseContext): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
63
|
+
* to the expected objects
|
|
64
|
+
*
|
|
65
|
+
* @params response Response returned by the server for a request to deleteIncidentIntegration
|
|
66
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
67
|
+
*/
|
|
68
|
+
deleteIncidentIntegration(response: ResponseContext): Promise<void>;
|
|
44
69
|
/**
|
|
45
70
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
46
71
|
* to the expected objects
|
|
@@ -49,6 +74,14 @@ export declare class IncidentsApiResponseProcessor {
|
|
|
49
74
|
* @throws ApiException if the response code was not in [200, 299]
|
|
50
75
|
*/
|
|
51
76
|
getIncident(response: ResponseContext): Promise<IncidentResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
79
|
+
* to the expected objects
|
|
80
|
+
*
|
|
81
|
+
* @params response Response returned by the server for a request to getIncidentIntegration
|
|
82
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
83
|
+
*/
|
|
84
|
+
getIncidentIntegration(response: ResponseContext): Promise<IncidentIntegrationMetadataResponse>;
|
|
52
85
|
/**
|
|
53
86
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
54
87
|
* to the expected objects
|
|
@@ -57,6 +90,14 @@ export declare class IncidentsApiResponseProcessor {
|
|
|
57
90
|
* @throws ApiException if the response code was not in [200, 299]
|
|
58
91
|
*/
|
|
59
92
|
listIncidentAttachments(response: ResponseContext): Promise<IncidentAttachmentsResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
95
|
+
* to the expected objects
|
|
96
|
+
*
|
|
97
|
+
* @params response Response returned by the server for a request to listIncidentIntegrations
|
|
98
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
99
|
+
*/
|
|
100
|
+
listIncidentIntegrations(response: ResponseContext): Promise<IncidentIntegrationMetadataListResponse>;
|
|
60
101
|
/**
|
|
61
102
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
62
103
|
* to the expected objects
|
|
@@ -89,6 +130,14 @@ export declare class IncidentsApiResponseProcessor {
|
|
|
89
130
|
* @throws ApiException if the response code was not in [200, 299]
|
|
90
131
|
*/
|
|
91
132
|
updateIncidentAttachments(response: ResponseContext): Promise<IncidentAttachmentUpdateResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
135
|
+
* to the expected objects
|
|
136
|
+
*
|
|
137
|
+
* @params response Response returned by the server for a request to updateIncidentIntegration
|
|
138
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
139
|
+
*/
|
|
140
|
+
updateIncidentIntegration(response: ResponseContext): Promise<IncidentIntegrationMetadataResponse>;
|
|
92
141
|
}
|
|
93
142
|
export interface IncidentsApiCreateIncidentRequest {
|
|
94
143
|
/**
|
|
@@ -97,6 +146,18 @@ export interface IncidentsApiCreateIncidentRequest {
|
|
|
97
146
|
*/
|
|
98
147
|
body: IncidentCreateRequest;
|
|
99
148
|
}
|
|
149
|
+
export interface IncidentsApiCreateIncidentIntegrationRequest {
|
|
150
|
+
/**
|
|
151
|
+
* The UUID of the incident.
|
|
152
|
+
* @type string
|
|
153
|
+
*/
|
|
154
|
+
incidentId: string;
|
|
155
|
+
/**
|
|
156
|
+
* Incident integration metadata payload.
|
|
157
|
+
* @type IncidentIntegrationMetadataCreateRequest
|
|
158
|
+
*/
|
|
159
|
+
body: IncidentIntegrationMetadataCreateRequest;
|
|
160
|
+
}
|
|
100
161
|
export interface IncidentsApiDeleteIncidentRequest {
|
|
101
162
|
/**
|
|
102
163
|
* The UUID of the incident.
|
|
@@ -104,6 +165,18 @@ export interface IncidentsApiDeleteIncidentRequest {
|
|
|
104
165
|
*/
|
|
105
166
|
incidentId: string;
|
|
106
167
|
}
|
|
168
|
+
export interface IncidentsApiDeleteIncidentIntegrationRequest {
|
|
169
|
+
/**
|
|
170
|
+
* The UUID of the incident.
|
|
171
|
+
* @type string
|
|
172
|
+
*/
|
|
173
|
+
incidentId: string;
|
|
174
|
+
/**
|
|
175
|
+
* The UUID of the incident integration metadata.
|
|
176
|
+
* @type string
|
|
177
|
+
*/
|
|
178
|
+
integrationMetadataId: string;
|
|
179
|
+
}
|
|
107
180
|
export interface IncidentsApiGetIncidentRequest {
|
|
108
181
|
/**
|
|
109
182
|
* The UUID of the incident.
|
|
@@ -116,6 +189,18 @@ export interface IncidentsApiGetIncidentRequest {
|
|
|
116
189
|
*/
|
|
117
190
|
include?: Array<IncidentRelatedObject>;
|
|
118
191
|
}
|
|
192
|
+
export interface IncidentsApiGetIncidentIntegrationRequest {
|
|
193
|
+
/**
|
|
194
|
+
* The UUID of the incident.
|
|
195
|
+
* @type string
|
|
196
|
+
*/
|
|
197
|
+
incidentId: string;
|
|
198
|
+
/**
|
|
199
|
+
* The UUID of the incident integration metadata.
|
|
200
|
+
* @type string
|
|
201
|
+
*/
|
|
202
|
+
integrationMetadataId: string;
|
|
203
|
+
}
|
|
119
204
|
export interface IncidentsApiListIncidentAttachmentsRequest {
|
|
120
205
|
/**
|
|
121
206
|
* The UUID of the incident.
|
|
@@ -133,6 +218,13 @@ export interface IncidentsApiListIncidentAttachmentsRequest {
|
|
|
133
218
|
*/
|
|
134
219
|
filterAttachmentType?: Array<IncidentAttachmentAttachmentType>;
|
|
135
220
|
}
|
|
221
|
+
export interface IncidentsApiListIncidentIntegrationsRequest {
|
|
222
|
+
/**
|
|
223
|
+
* The UUID of the incident.
|
|
224
|
+
* @type string
|
|
225
|
+
*/
|
|
226
|
+
incidentId: string;
|
|
227
|
+
}
|
|
136
228
|
export interface IncidentsApiListIncidentsRequest {
|
|
137
229
|
/**
|
|
138
230
|
* Specifies which types of related objects should be included in the response.
|
|
@@ -207,6 +299,23 @@ export interface IncidentsApiUpdateIncidentAttachmentsRequest {
|
|
|
207
299
|
*/
|
|
208
300
|
include?: Array<IncidentAttachmentRelatedObject>;
|
|
209
301
|
}
|
|
302
|
+
export interface IncidentsApiUpdateIncidentIntegrationRequest {
|
|
303
|
+
/**
|
|
304
|
+
* The UUID of the incident.
|
|
305
|
+
* @type string
|
|
306
|
+
*/
|
|
307
|
+
incidentId: string;
|
|
308
|
+
/**
|
|
309
|
+
* The UUID of the incident integration metadata.
|
|
310
|
+
* @type string
|
|
311
|
+
*/
|
|
312
|
+
integrationMetadataId: string;
|
|
313
|
+
/**
|
|
314
|
+
* Incident integration metadata payload.
|
|
315
|
+
* @type IncidentIntegrationMetadataPatchRequest
|
|
316
|
+
*/
|
|
317
|
+
body: IncidentIntegrationMetadataPatchRequest;
|
|
318
|
+
}
|
|
210
319
|
export declare class IncidentsApi {
|
|
211
320
|
private requestFactory;
|
|
212
321
|
private responseProcessor;
|
|
@@ -217,21 +326,41 @@ export declare class IncidentsApi {
|
|
|
217
326
|
* @param param The request object
|
|
218
327
|
*/
|
|
219
328
|
createIncident(param: IncidentsApiCreateIncidentRequest, options?: Configuration): Promise<IncidentResponse>;
|
|
329
|
+
/**
|
|
330
|
+
* Create an incident integration metadata.
|
|
331
|
+
* @param param The request object
|
|
332
|
+
*/
|
|
333
|
+
createIncidentIntegration(param: IncidentsApiCreateIncidentIntegrationRequest, options?: Configuration): Promise<IncidentIntegrationMetadataResponse>;
|
|
220
334
|
/**
|
|
221
335
|
* Deletes an existing incident from the users organization.
|
|
222
336
|
* @param param The request object
|
|
223
337
|
*/
|
|
224
338
|
deleteIncident(param: IncidentsApiDeleteIncidentRequest, options?: Configuration): Promise<void>;
|
|
339
|
+
/**
|
|
340
|
+
* Delete an incident integration metadata.
|
|
341
|
+
* @param param The request object
|
|
342
|
+
*/
|
|
343
|
+
deleteIncidentIntegration(param: IncidentsApiDeleteIncidentIntegrationRequest, options?: Configuration): Promise<void>;
|
|
225
344
|
/**
|
|
226
345
|
* Get the details of an incident by `incident_id`.
|
|
227
346
|
* @param param The request object
|
|
228
347
|
*/
|
|
229
348
|
getIncident(param: IncidentsApiGetIncidentRequest, options?: Configuration): Promise<IncidentResponse>;
|
|
349
|
+
/**
|
|
350
|
+
* Get incident integration metadata details.
|
|
351
|
+
* @param param The request object
|
|
352
|
+
*/
|
|
353
|
+
getIncidentIntegration(param: IncidentsApiGetIncidentIntegrationRequest, options?: Configuration): Promise<IncidentIntegrationMetadataResponse>;
|
|
230
354
|
/**
|
|
231
355
|
* Get all attachments for a given incident.
|
|
232
356
|
* @param param The request object
|
|
233
357
|
*/
|
|
234
358
|
listIncidentAttachments(param: IncidentsApiListIncidentAttachmentsRequest, options?: Configuration): Promise<IncidentAttachmentsResponse>;
|
|
359
|
+
/**
|
|
360
|
+
* Get all integration metadata for an incident.
|
|
361
|
+
* @param param The request object
|
|
362
|
+
*/
|
|
363
|
+
listIncidentIntegrations(param: IncidentsApiListIncidentIntegrationsRequest, options?: Configuration): Promise<IncidentIntegrationMetadataListResponse>;
|
|
235
364
|
/**
|
|
236
365
|
* Get all incidents for the user's organization.
|
|
237
366
|
* @param param The request object
|
|
@@ -256,4 +385,9 @@ export declare class IncidentsApi {
|
|
|
256
385
|
* @param param The request object
|
|
257
386
|
*/
|
|
258
387
|
updateIncidentAttachments(param: IncidentsApiUpdateIncidentAttachmentsRequest, options?: Configuration): Promise<IncidentAttachmentUpdateResponse>;
|
|
388
|
+
/**
|
|
389
|
+
* Update an existing incident integration metadata.
|
|
390
|
+
* @param param The request object
|
|
391
|
+
*/
|
|
392
|
+
updateIncidentIntegration(param: IncidentsApiUpdateIncidentIntegrationRequest, options?: Configuration): Promise<IncidentIntegrationMetadataResponse>;
|
|
259
393
|
}
|