@datadog/datadog-api-client 1.10.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 +21 -0
- package/LICENSE-3rdparty.csv +0 -8
- package/dist/packages/datadog-api-client-common/configuration.js +5 -0
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.d.ts +2 -2
- 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/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/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 +8 -0
- 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 +7 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- 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 +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 +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +10 -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-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/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/ObjectSerializer.js +75 -2
- 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/package.json +20 -28
|
@@ -62,6 +62,43 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
62
62
|
return requestContext;
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
+
createIncidentIntegration(incidentId, body, _options) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const _config = _options || this.configuration;
|
|
68
|
+
logger_1.logger.warn("Using unstable operation 'createIncidentIntegration'");
|
|
69
|
+
if (!_config.unstableOperations["v2.createIncidentIntegration"]) {
|
|
70
|
+
throw new Error("Unstable operation 'createIncidentIntegration' is disabled");
|
|
71
|
+
}
|
|
72
|
+
// verify required parameter 'incidentId' is not null or undefined
|
|
73
|
+
if (incidentId === null || incidentId === undefined) {
|
|
74
|
+
throw new baseapi_1.RequiredError("incidentId", "createIncidentIntegration");
|
|
75
|
+
}
|
|
76
|
+
// verify required parameter 'body' is not null or undefined
|
|
77
|
+
if (body === null || body === undefined) {
|
|
78
|
+
throw new baseapi_1.RequiredError("body", "createIncidentIntegration");
|
|
79
|
+
}
|
|
80
|
+
// Path Params
|
|
81
|
+
const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations".replace("{incident_id}", encodeURIComponent(String(incidentId)));
|
|
82
|
+
// Make Request Context
|
|
83
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.createIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
84
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
85
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
86
|
+
// Body Params
|
|
87
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
88
|
+
"application/json",
|
|
89
|
+
]);
|
|
90
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
91
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentIntegrationMetadataCreateRequest", ""), contentType);
|
|
92
|
+
requestContext.setBody(serializedBody);
|
|
93
|
+
// Apply auth methods
|
|
94
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
95
|
+
"AuthZ",
|
|
96
|
+
"apiKeyAuth",
|
|
97
|
+
"appKeyAuth",
|
|
98
|
+
]);
|
|
99
|
+
return requestContext;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
65
102
|
deleteIncident(incidentId, _options) {
|
|
66
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
104
|
const _config = _options || this.configuration;
|
|
@@ -88,6 +125,38 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
88
125
|
return requestContext;
|
|
89
126
|
});
|
|
90
127
|
}
|
|
128
|
+
deleteIncidentIntegration(incidentId, integrationMetadataId, _options) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const _config = _options || this.configuration;
|
|
131
|
+
logger_1.logger.warn("Using unstable operation 'deleteIncidentIntegration'");
|
|
132
|
+
if (!_config.unstableOperations["v2.deleteIncidentIntegration"]) {
|
|
133
|
+
throw new Error("Unstable operation 'deleteIncidentIntegration' is disabled");
|
|
134
|
+
}
|
|
135
|
+
// verify required parameter 'incidentId' is not null or undefined
|
|
136
|
+
if (incidentId === null || incidentId === undefined) {
|
|
137
|
+
throw new baseapi_1.RequiredError("incidentId", "deleteIncidentIntegration");
|
|
138
|
+
}
|
|
139
|
+
// verify required parameter 'integrationMetadataId' is not null or undefined
|
|
140
|
+
if (integrationMetadataId === null || integrationMetadataId === undefined) {
|
|
141
|
+
throw new baseapi_1.RequiredError("integrationMetadataId", "deleteIncidentIntegration");
|
|
142
|
+
}
|
|
143
|
+
// Path Params
|
|
144
|
+
const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}"
|
|
145
|
+
.replace("{incident_id}", encodeURIComponent(String(incidentId)))
|
|
146
|
+
.replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId)));
|
|
147
|
+
// Make Request Context
|
|
148
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.deleteIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
149
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
150
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
151
|
+
// Apply auth methods
|
|
152
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
153
|
+
"AuthZ",
|
|
154
|
+
"apiKeyAuth",
|
|
155
|
+
"appKeyAuth",
|
|
156
|
+
]);
|
|
157
|
+
return requestContext;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
91
160
|
getIncident(incidentId, include, _options) {
|
|
92
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
162
|
const _config = _options || this.configuration;
|
|
@@ -118,6 +187,38 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
118
187
|
return requestContext;
|
|
119
188
|
});
|
|
120
189
|
}
|
|
190
|
+
getIncidentIntegration(incidentId, integrationMetadataId, _options) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
const _config = _options || this.configuration;
|
|
193
|
+
logger_1.logger.warn("Using unstable operation 'getIncidentIntegration'");
|
|
194
|
+
if (!_config.unstableOperations["v2.getIncidentIntegration"]) {
|
|
195
|
+
throw new Error("Unstable operation 'getIncidentIntegration' is disabled");
|
|
196
|
+
}
|
|
197
|
+
// verify required parameter 'incidentId' is not null or undefined
|
|
198
|
+
if (incidentId === null || incidentId === undefined) {
|
|
199
|
+
throw new baseapi_1.RequiredError("incidentId", "getIncidentIntegration");
|
|
200
|
+
}
|
|
201
|
+
// verify required parameter 'integrationMetadataId' is not null or undefined
|
|
202
|
+
if (integrationMetadataId === null || integrationMetadataId === undefined) {
|
|
203
|
+
throw new baseapi_1.RequiredError("integrationMetadataId", "getIncidentIntegration");
|
|
204
|
+
}
|
|
205
|
+
// Path Params
|
|
206
|
+
const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}"
|
|
207
|
+
.replace("{incident_id}", encodeURIComponent(String(incidentId)))
|
|
208
|
+
.replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId)));
|
|
209
|
+
// Make Request Context
|
|
210
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.getIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
211
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
212
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
213
|
+
// Apply auth methods
|
|
214
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
215
|
+
"AuthZ",
|
|
216
|
+
"apiKeyAuth",
|
|
217
|
+
"appKeyAuth",
|
|
218
|
+
]);
|
|
219
|
+
return requestContext;
|
|
220
|
+
});
|
|
221
|
+
}
|
|
121
222
|
listIncidentAttachments(incidentId, include, filterAttachmentType, _options) {
|
|
122
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
224
|
const _config = _options || this.configuration;
|
|
@@ -151,6 +252,32 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
151
252
|
return requestContext;
|
|
152
253
|
});
|
|
153
254
|
}
|
|
255
|
+
listIncidentIntegrations(incidentId, _options) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const _config = _options || this.configuration;
|
|
258
|
+
logger_1.logger.warn("Using unstable operation 'listIncidentIntegrations'");
|
|
259
|
+
if (!_config.unstableOperations["v2.listIncidentIntegrations"]) {
|
|
260
|
+
throw new Error("Unstable operation 'listIncidentIntegrations' is disabled");
|
|
261
|
+
}
|
|
262
|
+
// verify required parameter 'incidentId' is not null or undefined
|
|
263
|
+
if (incidentId === null || incidentId === undefined) {
|
|
264
|
+
throw new baseapi_1.RequiredError("incidentId", "listIncidentIntegrations");
|
|
265
|
+
}
|
|
266
|
+
// Path Params
|
|
267
|
+
const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations".replace("{incident_id}", encodeURIComponent(String(incidentId)));
|
|
268
|
+
// Make Request Context
|
|
269
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.listIncidentIntegrations").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
270
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
271
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
272
|
+
// Apply auth methods
|
|
273
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
274
|
+
"AuthZ",
|
|
275
|
+
"apiKeyAuth",
|
|
276
|
+
"appKeyAuth",
|
|
277
|
+
]);
|
|
278
|
+
return requestContext;
|
|
279
|
+
});
|
|
280
|
+
}
|
|
154
281
|
listIncidents(include, pageSize, pageOffset, _options) {
|
|
155
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
283
|
const _config = _options || this.configuration;
|
|
@@ -300,6 +427,49 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
300
427
|
return requestContext;
|
|
301
428
|
});
|
|
302
429
|
}
|
|
430
|
+
updateIncidentIntegration(incidentId, integrationMetadataId, body, _options) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
const _config = _options || this.configuration;
|
|
433
|
+
logger_1.logger.warn("Using unstable operation 'updateIncidentIntegration'");
|
|
434
|
+
if (!_config.unstableOperations["v2.updateIncidentIntegration"]) {
|
|
435
|
+
throw new Error("Unstable operation 'updateIncidentIntegration' is disabled");
|
|
436
|
+
}
|
|
437
|
+
// verify required parameter 'incidentId' is not null or undefined
|
|
438
|
+
if (incidentId === null || incidentId === undefined) {
|
|
439
|
+
throw new baseapi_1.RequiredError("incidentId", "updateIncidentIntegration");
|
|
440
|
+
}
|
|
441
|
+
// verify required parameter 'integrationMetadataId' is not null or undefined
|
|
442
|
+
if (integrationMetadataId === null || integrationMetadataId === undefined) {
|
|
443
|
+
throw new baseapi_1.RequiredError("integrationMetadataId", "updateIncidentIntegration");
|
|
444
|
+
}
|
|
445
|
+
// verify required parameter 'body' is not null or undefined
|
|
446
|
+
if (body === null || body === undefined) {
|
|
447
|
+
throw new baseapi_1.RequiredError("body", "updateIncidentIntegration");
|
|
448
|
+
}
|
|
449
|
+
// Path Params
|
|
450
|
+
const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}"
|
|
451
|
+
.replace("{incident_id}", encodeURIComponent(String(incidentId)))
|
|
452
|
+
.replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId)));
|
|
453
|
+
// Make Request Context
|
|
454
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.updateIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
455
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
456
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
457
|
+
// Body Params
|
|
458
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
459
|
+
"application/json",
|
|
460
|
+
]);
|
|
461
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
462
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentIntegrationMetadataPatchRequest", ""), contentType);
|
|
463
|
+
requestContext.setBody(serializedBody);
|
|
464
|
+
// Apply auth methods
|
|
465
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
466
|
+
"AuthZ",
|
|
467
|
+
"apiKeyAuth",
|
|
468
|
+
"appKeyAuth",
|
|
469
|
+
]);
|
|
470
|
+
return requestContext;
|
|
471
|
+
});
|
|
472
|
+
}
|
|
303
473
|
}
|
|
304
474
|
exports.IncidentsApiRequestFactory = IncidentsApiRequestFactory;
|
|
305
475
|
class IncidentsApiResponseProcessor {
|
|
@@ -342,6 +512,45 @@ class IncidentsApiResponseProcessor {
|
|
|
342
512
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
343
513
|
});
|
|
344
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
517
|
+
* to the expected objects
|
|
518
|
+
*
|
|
519
|
+
* @params response Response returned by the server for a request to createIncidentIntegration
|
|
520
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
521
|
+
*/
|
|
522
|
+
createIncidentIntegration(response) {
|
|
523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
524
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
525
|
+
if (response.httpStatusCode == 201) {
|
|
526
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse");
|
|
527
|
+
return body;
|
|
528
|
+
}
|
|
529
|
+
if (response.httpStatusCode == 400 ||
|
|
530
|
+
response.httpStatusCode == 401 ||
|
|
531
|
+
response.httpStatusCode == 403 ||
|
|
532
|
+
response.httpStatusCode == 404 ||
|
|
533
|
+
response.httpStatusCode == 429) {
|
|
534
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
535
|
+
let body;
|
|
536
|
+
try {
|
|
537
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
538
|
+
}
|
|
539
|
+
catch (error) {
|
|
540
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
541
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
542
|
+
}
|
|
543
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
544
|
+
}
|
|
545
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
546
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
547
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", "");
|
|
548
|
+
return body;
|
|
549
|
+
}
|
|
550
|
+
const body = (yield response.body.text()) || "";
|
|
551
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
552
|
+
});
|
|
553
|
+
}
|
|
345
554
|
/**
|
|
346
555
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
347
556
|
* to the expected objects
|
|
@@ -380,6 +589,44 @@ class IncidentsApiResponseProcessor {
|
|
|
380
589
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
381
590
|
});
|
|
382
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
594
|
+
* to the expected objects
|
|
595
|
+
*
|
|
596
|
+
* @params response Response returned by the server for a request to deleteIncidentIntegration
|
|
597
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
598
|
+
*/
|
|
599
|
+
deleteIncidentIntegration(response) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
601
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
602
|
+
if (response.httpStatusCode == 204) {
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
if (response.httpStatusCode == 400 ||
|
|
606
|
+
response.httpStatusCode == 401 ||
|
|
607
|
+
response.httpStatusCode == 403 ||
|
|
608
|
+
response.httpStatusCode == 404 ||
|
|
609
|
+
response.httpStatusCode == 429) {
|
|
610
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
611
|
+
let body;
|
|
612
|
+
try {
|
|
613
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
614
|
+
}
|
|
615
|
+
catch (error) {
|
|
616
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
617
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
618
|
+
}
|
|
619
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
620
|
+
}
|
|
621
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
622
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
623
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
624
|
+
return body;
|
|
625
|
+
}
|
|
626
|
+
const body = (yield response.body.text()) || "";
|
|
627
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
628
|
+
});
|
|
629
|
+
}
|
|
383
630
|
/**
|
|
384
631
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
385
632
|
* to the expected objects
|
|
@@ -419,6 +666,45 @@ class IncidentsApiResponseProcessor {
|
|
|
419
666
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
420
667
|
});
|
|
421
668
|
}
|
|
669
|
+
/**
|
|
670
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
671
|
+
* to the expected objects
|
|
672
|
+
*
|
|
673
|
+
* @params response Response returned by the server for a request to getIncidentIntegration
|
|
674
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
675
|
+
*/
|
|
676
|
+
getIncidentIntegration(response) {
|
|
677
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
678
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
679
|
+
if (response.httpStatusCode == 200) {
|
|
680
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse");
|
|
681
|
+
return body;
|
|
682
|
+
}
|
|
683
|
+
if (response.httpStatusCode == 400 ||
|
|
684
|
+
response.httpStatusCode == 401 ||
|
|
685
|
+
response.httpStatusCode == 403 ||
|
|
686
|
+
response.httpStatusCode == 404 ||
|
|
687
|
+
response.httpStatusCode == 429) {
|
|
688
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
689
|
+
let body;
|
|
690
|
+
try {
|
|
691
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
692
|
+
}
|
|
693
|
+
catch (error) {
|
|
694
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
695
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
696
|
+
}
|
|
697
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
698
|
+
}
|
|
699
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
700
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
701
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", "");
|
|
702
|
+
return body;
|
|
703
|
+
}
|
|
704
|
+
const body = (yield response.body.text()) || "";
|
|
705
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
706
|
+
});
|
|
707
|
+
}
|
|
422
708
|
/**
|
|
423
709
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
424
710
|
* to the expected objects
|
|
@@ -458,6 +744,45 @@ class IncidentsApiResponseProcessor {
|
|
|
458
744
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
459
745
|
});
|
|
460
746
|
}
|
|
747
|
+
/**
|
|
748
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
749
|
+
* to the expected objects
|
|
750
|
+
*
|
|
751
|
+
* @params response Response returned by the server for a request to listIncidentIntegrations
|
|
752
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
753
|
+
*/
|
|
754
|
+
listIncidentIntegrations(response) {
|
|
755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
756
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
757
|
+
if (response.httpStatusCode == 200) {
|
|
758
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataListResponse");
|
|
759
|
+
return body;
|
|
760
|
+
}
|
|
761
|
+
if (response.httpStatusCode == 400 ||
|
|
762
|
+
response.httpStatusCode == 401 ||
|
|
763
|
+
response.httpStatusCode == 403 ||
|
|
764
|
+
response.httpStatusCode == 404 ||
|
|
765
|
+
response.httpStatusCode == 429) {
|
|
766
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
767
|
+
let body;
|
|
768
|
+
try {
|
|
769
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
770
|
+
}
|
|
771
|
+
catch (error) {
|
|
772
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
773
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
774
|
+
}
|
|
775
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
776
|
+
}
|
|
777
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
778
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
779
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataListResponse", "");
|
|
780
|
+
return body;
|
|
781
|
+
}
|
|
782
|
+
const body = (yield response.body.text()) || "";
|
|
783
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
784
|
+
});
|
|
785
|
+
}
|
|
461
786
|
/**
|
|
462
787
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
463
788
|
* to the expected objects
|
|
@@ -614,6 +939,45 @@ class IncidentsApiResponseProcessor {
|
|
|
614
939
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
615
940
|
});
|
|
616
941
|
}
|
|
942
|
+
/**
|
|
943
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
944
|
+
* to the expected objects
|
|
945
|
+
*
|
|
946
|
+
* @params response Response returned by the server for a request to updateIncidentIntegration
|
|
947
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
948
|
+
*/
|
|
949
|
+
updateIncidentIntegration(response) {
|
|
950
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
951
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
952
|
+
if (response.httpStatusCode == 200) {
|
|
953
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse");
|
|
954
|
+
return body;
|
|
955
|
+
}
|
|
956
|
+
if (response.httpStatusCode == 400 ||
|
|
957
|
+
response.httpStatusCode == 401 ||
|
|
958
|
+
response.httpStatusCode == 403 ||
|
|
959
|
+
response.httpStatusCode == 404 ||
|
|
960
|
+
response.httpStatusCode == 429) {
|
|
961
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
962
|
+
let body;
|
|
963
|
+
try {
|
|
964
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
965
|
+
}
|
|
966
|
+
catch (error) {
|
|
967
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
968
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
969
|
+
}
|
|
970
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
971
|
+
}
|
|
972
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
973
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
974
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", "");
|
|
975
|
+
return body;
|
|
976
|
+
}
|
|
977
|
+
const body = (yield response.body.text()) || "";
|
|
978
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
979
|
+
});
|
|
980
|
+
}
|
|
617
981
|
}
|
|
618
982
|
exports.IncidentsApiResponseProcessor = IncidentsApiResponseProcessor;
|
|
619
983
|
class IncidentsApi {
|
|
@@ -638,6 +1002,20 @@ class IncidentsApi {
|
|
|
638
1002
|
});
|
|
639
1003
|
});
|
|
640
1004
|
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Create an incident integration metadata.
|
|
1007
|
+
* @param param The request object
|
|
1008
|
+
*/
|
|
1009
|
+
createIncidentIntegration(param, options) {
|
|
1010
|
+
const requestContextPromise = this.requestFactory.createIncidentIntegration(param.incidentId, param.body, options);
|
|
1011
|
+
return requestContextPromise.then((requestContext) => {
|
|
1012
|
+
return this.configuration.httpApi
|
|
1013
|
+
.send(requestContext)
|
|
1014
|
+
.then((responseContext) => {
|
|
1015
|
+
return this.responseProcessor.createIncidentIntegration(responseContext);
|
|
1016
|
+
});
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
641
1019
|
/**
|
|
642
1020
|
* Deletes an existing incident from the users organization.
|
|
643
1021
|
* @param param The request object
|
|
@@ -652,6 +1030,20 @@ class IncidentsApi {
|
|
|
652
1030
|
});
|
|
653
1031
|
});
|
|
654
1032
|
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Delete an incident integration metadata.
|
|
1035
|
+
* @param param The request object
|
|
1036
|
+
*/
|
|
1037
|
+
deleteIncidentIntegration(param, options) {
|
|
1038
|
+
const requestContextPromise = this.requestFactory.deleteIncidentIntegration(param.incidentId, param.integrationMetadataId, options);
|
|
1039
|
+
return requestContextPromise.then((requestContext) => {
|
|
1040
|
+
return this.configuration.httpApi
|
|
1041
|
+
.send(requestContext)
|
|
1042
|
+
.then((responseContext) => {
|
|
1043
|
+
return this.responseProcessor.deleteIncidentIntegration(responseContext);
|
|
1044
|
+
});
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
655
1047
|
/**
|
|
656
1048
|
* Get the details of an incident by `incident_id`.
|
|
657
1049
|
* @param param The request object
|
|
@@ -666,6 +1058,20 @@ class IncidentsApi {
|
|
|
666
1058
|
});
|
|
667
1059
|
});
|
|
668
1060
|
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Get incident integration metadata details.
|
|
1063
|
+
* @param param The request object
|
|
1064
|
+
*/
|
|
1065
|
+
getIncidentIntegration(param, options) {
|
|
1066
|
+
const requestContextPromise = this.requestFactory.getIncidentIntegration(param.incidentId, param.integrationMetadataId, options);
|
|
1067
|
+
return requestContextPromise.then((requestContext) => {
|
|
1068
|
+
return this.configuration.httpApi
|
|
1069
|
+
.send(requestContext)
|
|
1070
|
+
.then((responseContext) => {
|
|
1071
|
+
return this.responseProcessor.getIncidentIntegration(responseContext);
|
|
1072
|
+
});
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
669
1075
|
/**
|
|
670
1076
|
* Get all attachments for a given incident.
|
|
671
1077
|
* @param param The request object
|
|
@@ -680,6 +1086,20 @@ class IncidentsApi {
|
|
|
680
1086
|
});
|
|
681
1087
|
});
|
|
682
1088
|
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Get all integration metadata for an incident.
|
|
1091
|
+
* @param param The request object
|
|
1092
|
+
*/
|
|
1093
|
+
listIncidentIntegrations(param, options) {
|
|
1094
|
+
const requestContextPromise = this.requestFactory.listIncidentIntegrations(param.incidentId, options);
|
|
1095
|
+
return requestContextPromise.then((requestContext) => {
|
|
1096
|
+
return this.configuration.httpApi
|
|
1097
|
+
.send(requestContext)
|
|
1098
|
+
.then((responseContext) => {
|
|
1099
|
+
return this.responseProcessor.listIncidentIntegrations(responseContext);
|
|
1100
|
+
});
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
683
1103
|
/**
|
|
684
1104
|
* Get all incidents for the user's organization.
|
|
685
1105
|
* @param param The request object
|
|
@@ -770,6 +1190,20 @@ class IncidentsApi {
|
|
|
770
1190
|
});
|
|
771
1191
|
});
|
|
772
1192
|
}
|
|
1193
|
+
/**
|
|
1194
|
+
* Update an existing incident integration metadata.
|
|
1195
|
+
* @param param The request object
|
|
1196
|
+
*/
|
|
1197
|
+
updateIncidentIntegration(param, options) {
|
|
1198
|
+
const requestContextPromise = this.requestFactory.updateIncidentIntegration(param.incidentId, param.integrationMetadataId, param.body, options);
|
|
1199
|
+
return requestContextPromise.then((requestContext) => {
|
|
1200
|
+
return this.configuration.httpApi
|
|
1201
|
+
.send(requestContext)
|
|
1202
|
+
.then((responseContext) => {
|
|
1203
|
+
return this.responseProcessor.updateIncidentIntegration(responseContext);
|
|
1204
|
+
});
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
773
1207
|
}
|
|
774
1208
|
exports.IncidentsApi = IncidentsApi;
|
|
775
1209
|
//# sourceMappingURL=IncidentsApi.js.map
|