@datadog/datadog-api-client 1.21.0 → 1.22.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.
Files changed (128) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/packages/datadog-api-client-common/configuration.js +4 -0
  3. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  4. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +1 -1
  5. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1 -1
  6. package/dist/packages/datadog-api-client-v1/index.d.ts +1 -0
  7. package/dist/packages/datadog-api-client-v1/index.js +12 -10
  8. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  9. package/dist/packages/datadog-api-client-v1/models/Dashboard.d.ts +5 -1
  10. package/dist/packages/datadog-api-client-v1/models/Dashboard.js.map +1 -1
  11. package/dist/packages/datadog-api-client-v1/models/DashboardSummaryDefinition.d.ts +2 -0
  12. package/dist/packages/datadog-api-client-v1/models/DashboardSummaryDefinition.js.map +1 -1
  13. package/dist/packages/datadog-api-client-v1/models/Log.d.ts +1 -1
  14. package/dist/packages/datadog-api-client-v1/models/LogsDailyLimitReset.d.ts +32 -0
  15. package/dist/packages/datadog-api-client-v1/models/LogsDailyLimitReset.js +35 -0
  16. package/dist/packages/datadog-api-client-v1/models/LogsDailyLimitReset.js.map +1 -0
  17. package/dist/packages/datadog-api-client-v1/models/LogsIndex.d.ts +9 -0
  18. package/dist/packages/datadog-api-client-v1/models/LogsIndex.js +9 -0
  19. package/dist/packages/datadog-api-client-v1/models/LogsIndex.js.map +1 -1
  20. package/dist/packages/datadog-api-client-v1/models/LogsIndexUpdateRequest.d.ts +9 -0
  21. package/dist/packages/datadog-api-client-v1/models/LogsIndexUpdateRequest.js +9 -0
  22. package/dist/packages/datadog-api-client-v1/models/LogsIndexUpdateRequest.js.map +1 -1
  23. package/dist/packages/datadog-api-client-v1/models/MetricsPayload.d.ts +1 -1
  24. package/dist/packages/datadog-api-client-v1/models/MetricsQueryMetadata.d.ts +1 -1
  25. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +2 -0
  26. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/models/SLOCorrectionCreateRequestAttributes.d.ts +1 -1
  28. package/dist/packages/datadog-api-client-v1/models/SLOCorrectionResponseAttributes.d.ts +1 -1
  29. package/dist/packages/datadog-api-client-v1/models/SLOCorrectionUpdateRequestAttributes.d.ts +1 -1
  30. package/dist/packages/datadog-api-client-v1/models/SLOHistoryMetrics.d.ts +2 -2
  31. package/dist/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeries.d.ts +1 -1
  32. package/dist/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeries.js +1 -1
  33. package/dist/packages/datadog-api-client-v1/models/SLOHistoryMonitor.d.ts +1 -1
  34. package/dist/packages/datadog-api-client-v1/models/SLOHistorySLIData.d.ts +1 -1
  35. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
  36. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
  37. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  38. package/dist/packages/datadog-api-client-v1/models/UsageLambdaHour.d.ts +1 -1
  39. package/dist/packages/datadog-api-client-v1/models/UsageLambdaHour.js +1 -1
  40. package/dist/packages/datadog-api-client-v1/models/UsageLambdaResponse.d.ts +1 -1
  41. package/dist/packages/datadog-api-client-v1/models/UsageLambdaResponse.js +1 -1
  42. package/dist/packages/datadog-api-client-v2/apis/APIManagementApi.d.ts +108 -0
  43. package/dist/packages/datadog-api-client-v2/apis/APIManagementApi.js +410 -0
  44. package/dist/packages/datadog-api-client-v2/apis/APIManagementApi.js.map +1 -0
  45. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +107 -0
  46. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +389 -0
  47. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  48. package/dist/packages/datadog-api-client-v2/apis/TeamsApi.d.ts +5 -0
  49. package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js +30 -0
  50. package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js.map +1 -1
  51. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +1 -1
  52. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +1 -1
  53. package/dist/packages/datadog-api-client-v2/index.d.ts +22 -1
  54. package/dist/packages/datadog-api-client-v2/index.js +62 -22
  55. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  56. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponse.d.ts +29 -0
  57. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponse.js +26 -0
  58. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponse.js.map +1 -0
  59. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponseAttributes.d.ts +29 -0
  60. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponseAttributes.js +26 -0
  61. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponseAttributes.js.map +1 -0
  62. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponseData.d.ts +33 -0
  63. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponseData.js +31 -0
  64. package/dist/packages/datadog-api-client-v2/models/CreateOpenAPIResponseData.js.map +1 -0
  65. package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.d.ts +4 -0
  66. package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.js +4 -0
  67. package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.js.map +1 -1
  68. package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.d.ts +4 -0
  69. package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.js +4 -0
  70. package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.js.map +1 -1
  71. package/dist/packages/datadog-api-client-v2/models/MetricPayload.d.ts +1 -1
  72. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +39 -0
  73. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  74. package/dist/packages/datadog-api-client-v2/models/OpenAPIEndpoint.d.ts +32 -0
  75. package/dist/packages/datadog-api-client-v2/models/OpenAPIEndpoint.js +35 -0
  76. package/dist/packages/datadog-api-client-v2/models/OpenAPIEndpoint.js.map +1 -0
  77. package/dist/packages/datadog-api-client-v2/models/OpenAPIFile.d.ts +29 -0
  78. package/dist/packages/datadog-api-client-v2/models/OpenAPIFile.js +32 -0
  79. package/dist/packages/datadog-api-client-v2/models/OpenAPIFile.js.map +1 -0
  80. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppression.d.ts +38 -0
  81. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppression.js +34 -0
  82. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppression.js.map +1 -0
  83. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.d.ts +69 -0
  84. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.js +70 -0
  85. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionAttributes.js.map +1 -0
  86. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.d.ts +48 -0
  87. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.js +56 -0
  88. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateAttributes.js.map +1 -0
  89. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateData.d.ts +34 -0
  90. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateData.js +32 -0
  91. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateData.js.map +1 -0
  92. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateRequest.d.ts +29 -0
  93. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateRequest.js +27 -0
  94. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionCreateRequest.js.map +1 -0
  95. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionResponse.d.ts +29 -0
  96. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionResponse.js +26 -0
  97. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionResponse.js.map +1 -0
  98. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionType.d.ts +11 -0
  99. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionType.js +10 -0
  100. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionType.js.map +1 -0
  101. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.d.ts +52 -0
  102. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.js +57 -0
  103. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateAttributes.js.map +1 -0
  104. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateData.d.ts +34 -0
  105. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateData.js +32 -0
  106. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateData.js.map +1 -0
  107. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateRequest.d.ts +29 -0
  108. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateRequest.js +27 -0
  109. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionUpdateRequest.js.map +1 -0
  110. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionsResponse.d.ts +29 -0
  111. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionsResponse.js +26 -0
  112. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSuppressionsResponse.js.map +1 -0
  113. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringUser.d.ts +32 -0
  114. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringUser.js +35 -0
  115. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringUser.js.map +1 -0
  116. package/dist/packages/datadog-api-client-v2/models/SensitiveDataScannerIncludedKeywordConfiguration.d.ts +1 -1
  117. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponse.d.ts +29 -0
  118. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponse.js +26 -0
  119. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponse.js.map +1 -0
  120. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseAttributes.d.ts +29 -0
  121. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseAttributes.js +26 -0
  122. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseAttributes.js.map +1 -0
  123. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseData.d.ts +33 -0
  124. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseData.js +31 -0
  125. package/dist/packages/datadog-api-client-v2/models/UpdateOpenAPIResponseData.js.map +1 -0
  126. package/dist/version.d.ts +1 -1
  127. package/dist/version.js +1 -1
  128. package/package.json +1 -1
@@ -0,0 +1,410 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.APIManagementApi = exports.APIManagementApiResponseProcessor = exports.APIManagementApiRequestFactory = void 0;
16
+ const baseapi_1 = require("../../datadog-api-client-common/baseapi");
17
+ const configuration_1 = require("../../datadog-api-client-common/configuration");
18
+ const http_1 = require("../../datadog-api-client-common/http/http");
19
+ const form_data_1 = __importDefault(require("form-data"));
20
+ const logger_1 = require("../../../logger");
21
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
22
+ const exception_1 = require("../../datadog-api-client-common/exception");
23
+ class APIManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
24
+ createOpenAPI(openapiSpecFile, _options) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const _config = _options || this.configuration;
27
+ logger_1.logger.warn("Using unstable operation 'createOpenAPI'");
28
+ if (!_config.unstableOperations["v2.createOpenAPI"]) {
29
+ throw new Error("Unstable operation 'createOpenAPI' is disabled");
30
+ }
31
+ // Path Params
32
+ const localVarPath = "/api/v2/apicatalog/openapi";
33
+ // Make Request Context
34
+ const requestContext = _config
35
+ .getServer("v2.APIManagementApi.createOpenAPI")
36
+ .makeRequestContext(localVarPath, http_1.HttpMethod.POST);
37
+ requestContext.setHeaderParam("Accept", "application/json");
38
+ requestContext.setHttpConfig(_config.httpConfig);
39
+ // Form Params
40
+ const localVarFormParams = new form_data_1.default();
41
+ if (openapiSpecFile !== undefined) {
42
+ // TODO: replace .append with .set
43
+ localVarFormParams.append("openapi_spec_file", openapiSpecFile.data, openapiSpecFile.name);
44
+ }
45
+ requestContext.setBody(localVarFormParams);
46
+ // Apply auth methods
47
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
48
+ "apiKeyAuth",
49
+ "appKeyAuth",
50
+ ]);
51
+ return requestContext;
52
+ });
53
+ }
54
+ deleteOpenAPI(id, _options) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const _config = _options || this.configuration;
57
+ logger_1.logger.warn("Using unstable operation 'deleteOpenAPI'");
58
+ if (!_config.unstableOperations["v2.deleteOpenAPI"]) {
59
+ throw new Error("Unstable operation 'deleteOpenAPI' is disabled");
60
+ }
61
+ // verify required parameter 'id' is not null or undefined
62
+ if (id === null || id === undefined) {
63
+ throw new baseapi_1.RequiredError("id", "deleteOpenAPI");
64
+ }
65
+ // Path Params
66
+ const localVarPath = "/api/v2/apicatalog/api/{id}".replace("{id}", encodeURIComponent(String(id)));
67
+ // Make Request Context
68
+ const requestContext = _config
69
+ .getServer("v2.APIManagementApi.deleteOpenAPI")
70
+ .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
71
+ requestContext.setHeaderParam("Accept", "*/*");
72
+ requestContext.setHttpConfig(_config.httpConfig);
73
+ // Apply auth methods
74
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
75
+ "apiKeyAuth",
76
+ "appKeyAuth",
77
+ ]);
78
+ return requestContext;
79
+ });
80
+ }
81
+ getOpenAPI(id, _options) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const _config = _options || this.configuration;
84
+ logger_1.logger.warn("Using unstable operation 'getOpenAPI'");
85
+ if (!_config.unstableOperations["v2.getOpenAPI"]) {
86
+ throw new Error("Unstable operation 'getOpenAPI' is disabled");
87
+ }
88
+ // verify required parameter 'id' is not null or undefined
89
+ if (id === null || id === undefined) {
90
+ throw new baseapi_1.RequiredError("id", "getOpenAPI");
91
+ }
92
+ // Path Params
93
+ const localVarPath = "/api/v2/apicatalog/api/{id}/openapi".replace("{id}", encodeURIComponent(String(id)));
94
+ // Make Request Context
95
+ const requestContext = _config
96
+ .getServer("v2.APIManagementApi.getOpenAPI")
97
+ .makeRequestContext(localVarPath, http_1.HttpMethod.GET);
98
+ requestContext.setHeaderParam("Accept", "multipart/form-data, application/json");
99
+ requestContext.setHttpConfig(_config.httpConfig);
100
+ // Apply auth methods
101
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
102
+ "apiKeyAuth",
103
+ "appKeyAuth",
104
+ ]);
105
+ return requestContext;
106
+ });
107
+ }
108
+ updateOpenAPI(id, openapiSpecFile, _options) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const _config = _options || this.configuration;
111
+ logger_1.logger.warn("Using unstable operation 'updateOpenAPI'");
112
+ if (!_config.unstableOperations["v2.updateOpenAPI"]) {
113
+ throw new Error("Unstable operation 'updateOpenAPI' is disabled");
114
+ }
115
+ // verify required parameter 'id' is not null or undefined
116
+ if (id === null || id === undefined) {
117
+ throw new baseapi_1.RequiredError("id", "updateOpenAPI");
118
+ }
119
+ // Path Params
120
+ const localVarPath = "/api/v2/apicatalog/api/{id}/openapi".replace("{id}", encodeURIComponent(String(id)));
121
+ // Make Request Context
122
+ const requestContext = _config
123
+ .getServer("v2.APIManagementApi.updateOpenAPI")
124
+ .makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
125
+ requestContext.setHeaderParam("Accept", "application/json");
126
+ requestContext.setHttpConfig(_config.httpConfig);
127
+ // Form Params
128
+ const localVarFormParams = new form_data_1.default();
129
+ if (openapiSpecFile !== undefined) {
130
+ // TODO: replace .append with .set
131
+ localVarFormParams.append("openapi_spec_file", openapiSpecFile.data, openapiSpecFile.name);
132
+ }
133
+ requestContext.setBody(localVarFormParams);
134
+ // Apply auth methods
135
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
136
+ "apiKeyAuth",
137
+ "appKeyAuth",
138
+ ]);
139
+ return requestContext;
140
+ });
141
+ }
142
+ }
143
+ exports.APIManagementApiRequestFactory = APIManagementApiRequestFactory;
144
+ class APIManagementApiResponseProcessor {
145
+ /**
146
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
147
+ * to the expected objects
148
+ *
149
+ * @params response Response returned by the server for a request to createOpenAPI
150
+ * @throws ApiException if the response code was not in [200, 299]
151
+ */
152
+ createOpenAPI(response) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
155
+ if (response.httpStatusCode == 201) {
156
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateOpenAPIResponse");
157
+ return body;
158
+ }
159
+ if (response.httpStatusCode == 400 || response.httpStatusCode == 403) {
160
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
161
+ let body;
162
+ try {
163
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
164
+ }
165
+ catch (error) {
166
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
167
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
168
+ }
169
+ throw new exception_1.ApiException(response.httpStatusCode, body);
170
+ }
171
+ if (response.httpStatusCode == 429) {
172
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
173
+ let body;
174
+ try {
175
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
176
+ }
177
+ catch (error) {
178
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
179
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
180
+ }
181
+ throw new exception_1.ApiException(response.httpStatusCode, body);
182
+ }
183
+ // Work around for missing responses in specification, e.g. for petstore.yaml
184
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
185
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateOpenAPIResponse", "");
186
+ return body;
187
+ }
188
+ const body = (yield response.body.text()) || "";
189
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
190
+ });
191
+ }
192
+ /**
193
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
194
+ * to the expected objects
195
+ *
196
+ * @params response Response returned by the server for a request to deleteOpenAPI
197
+ * @throws ApiException if the response code was not in [200, 299]
198
+ */
199
+ deleteOpenAPI(response) {
200
+ return __awaiter(this, void 0, void 0, function* () {
201
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
202
+ if (response.httpStatusCode == 204) {
203
+ return;
204
+ }
205
+ if (response.httpStatusCode == 400 ||
206
+ response.httpStatusCode == 403 ||
207
+ response.httpStatusCode == 404) {
208
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
209
+ let body;
210
+ try {
211
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
212
+ }
213
+ catch (error) {
214
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
215
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
216
+ }
217
+ throw new exception_1.ApiException(response.httpStatusCode, body);
218
+ }
219
+ if (response.httpStatusCode == 429) {
220
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
221
+ let body;
222
+ try {
223
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
224
+ }
225
+ catch (error) {
226
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
227
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
228
+ }
229
+ throw new exception_1.ApiException(response.httpStatusCode, body);
230
+ }
231
+ // Work around for missing responses in specification, e.g. for petstore.yaml
232
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
233
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
234
+ return body;
235
+ }
236
+ const body = (yield response.body.text()) || "";
237
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
238
+ });
239
+ }
240
+ /**
241
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
242
+ * to the expected objects
243
+ *
244
+ * @params response Response returned by the server for a request to getOpenAPI
245
+ * @throws ApiException if the response code was not in [200, 299]
246
+ */
247
+ getOpenAPI(response) {
248
+ return __awaiter(this, void 0, void 0, function* () {
249
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
250
+ if (response.httpStatusCode == 200) {
251
+ const body = (yield response.getBodyAsFile());
252
+ return body;
253
+ }
254
+ if (response.httpStatusCode == 400 ||
255
+ response.httpStatusCode == 403 ||
256
+ response.httpStatusCode == 404) {
257
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
258
+ let body;
259
+ try {
260
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
261
+ }
262
+ catch (error) {
263
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
264
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
265
+ }
266
+ throw new exception_1.ApiException(response.httpStatusCode, body);
267
+ }
268
+ if (response.httpStatusCode == 429) {
269
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
270
+ let body;
271
+ try {
272
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
273
+ }
274
+ catch (error) {
275
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
276
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
277
+ }
278
+ throw new exception_1.ApiException(response.httpStatusCode, body);
279
+ }
280
+ // Work around for missing responses in specification, e.g. for petstore.yaml
281
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
282
+ const body = (yield response.getBodyAsFile());
283
+ return body;
284
+ }
285
+ const body = (yield response.body.text()) || "";
286
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
287
+ });
288
+ }
289
+ /**
290
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
291
+ * to the expected objects
292
+ *
293
+ * @params response Response returned by the server for a request to updateOpenAPI
294
+ * @throws ApiException if the response code was not in [200, 299]
295
+ */
296
+ updateOpenAPI(response) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
299
+ if (response.httpStatusCode == 200) {
300
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateOpenAPIResponse");
301
+ return body;
302
+ }
303
+ if (response.httpStatusCode == 400 ||
304
+ response.httpStatusCode == 403 ||
305
+ response.httpStatusCode == 404) {
306
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
307
+ let body;
308
+ try {
309
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse");
310
+ }
311
+ catch (error) {
312
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
313
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
314
+ }
315
+ throw new exception_1.ApiException(response.httpStatusCode, body);
316
+ }
317
+ if (response.httpStatusCode == 429) {
318
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
319
+ let body;
320
+ try {
321
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
322
+ }
323
+ catch (error) {
324
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
325
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
326
+ }
327
+ throw new exception_1.ApiException(response.httpStatusCode, body);
328
+ }
329
+ // Work around for missing responses in specification, e.g. for petstore.yaml
330
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
331
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateOpenAPIResponse", "");
332
+ return body;
333
+ }
334
+ const body = (yield response.body.text()) || "";
335
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
336
+ });
337
+ }
338
+ }
339
+ exports.APIManagementApiResponseProcessor = APIManagementApiResponseProcessor;
340
+ class APIManagementApi {
341
+ constructor(configuration, requestFactory, responseProcessor) {
342
+ this.configuration = configuration;
343
+ this.requestFactory =
344
+ requestFactory || new APIManagementApiRequestFactory(configuration);
345
+ this.responseProcessor =
346
+ responseProcessor || new APIManagementApiResponseProcessor();
347
+ }
348
+ /**
349
+ * Create a new API from the [OpenAPI](https://spec.openapis.org/oas/latest.html) specification given.
350
+ * It supports version `2.0`, `3.0` and `3.1` of the specification. A specific extension section, `x-datadog`,
351
+ * let you specify the `teamHandle` for your team responsible for the API in Datadog.
352
+ * It returns the created API ID.
353
+ * @param param The request object
354
+ */
355
+ createOpenAPI(param = {}, options) {
356
+ const requestContextPromise = this.requestFactory.createOpenAPI(param.openapiSpecFile, options);
357
+ return requestContextPromise.then((requestContext) => {
358
+ return this.configuration.httpApi
359
+ .send(requestContext)
360
+ .then((responseContext) => {
361
+ return this.responseProcessor.createOpenAPI(responseContext);
362
+ });
363
+ });
364
+ }
365
+ /**
366
+ * Delete a specific API by ID.
367
+ * @param param The request object
368
+ */
369
+ deleteOpenAPI(param, options) {
370
+ const requestContextPromise = this.requestFactory.deleteOpenAPI(param.id, options);
371
+ return requestContextPromise.then((requestContext) => {
372
+ return this.configuration.httpApi
373
+ .send(requestContext)
374
+ .then((responseContext) => {
375
+ return this.responseProcessor.deleteOpenAPI(responseContext);
376
+ });
377
+ });
378
+ }
379
+ /**
380
+ * Retrieve information about a specific API in [OpenAPI](https://spec.openapis.org/oas/latest.html) format file.
381
+ * @param param The request object
382
+ */
383
+ getOpenAPI(param, options) {
384
+ const requestContextPromise = this.requestFactory.getOpenAPI(param.id, options);
385
+ return requestContextPromise.then((requestContext) => {
386
+ return this.configuration.httpApi
387
+ .send(requestContext)
388
+ .then((responseContext) => {
389
+ return this.responseProcessor.getOpenAPI(responseContext);
390
+ });
391
+ });
392
+ }
393
+ /**
394
+ * Update information about a specific API. The given content will replace all API content of the given ID.
395
+ * The ID is returned by the create API, or can be found in the URL in the API catalog UI.
396
+ * @param param The request object
397
+ */
398
+ updateOpenAPI(param, options) {
399
+ const requestContextPromise = this.requestFactory.updateOpenAPI(param.id, param.openapiSpecFile, options);
400
+ return requestContextPromise.then((requestContext) => {
401
+ return this.configuration.httpApi
402
+ .send(requestContext)
403
+ .then((responseContext) => {
404
+ return this.responseProcessor.updateOpenAPI(responseContext);
405
+ });
406
+ });
407
+ }
408
+ }
409
+ exports.APIManagementApi = APIManagementApi;
410
+ //# sourceMappingURL=APIManagementApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"APIManagementApi.js","sourceRoot":"","sources":["../../../../packages/datadog-api-client-v2/apis/APIManagementApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qEAGiD;AACjD,iFAGuD;AACvD,oEAKmD;AAEnD,0DAAiC;AAEjC,4CAAyC;AACzC,iEAA8D;AAC9D,yEAAyE;AAOzE,MAAa,8BAA+B,SAAQ,+BAAqB;IAC1D,aAAa,CACxB,eAA0B,EAC1B,QAAwB;;YAExB,MAAM,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;YAE/C,eAAM,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACnE;YAED,cAAc;YACd,MAAM,YAAY,GAAG,4BAA4B,CAAC;YAElD,uBAAuB;YACvB,MAAM,cAAc,GAAG,OAAO;iBAC3B,SAAS,CAAC,mCAAmC,CAAC;iBAC9C,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,IAAI,CAAC,CAAC;YACrD,cAAc,C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AC;QACF,OAAO,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,aAAa,CAAC,eAAe,CAAC,CAAC;YAC/D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzGD,4CAyGC"}
@@ -25,11 +25,17 @@ import { SecurityMonitoringSignalsListResponse } from "../models/SecurityMonitor
25
25
  import { SecurityMonitoringSignalsSort } from "../models/SecurityMonitoringSignalsSort";
26
26
  import { SecurityMonitoringSignalStateUpdateRequest } from "../models/SecurityMonitoringSignalStateUpdateRequest";
27
27
  import { SecurityMonitoringSignalTriageUpdateResponse } from "../models/SecurityMonitoringSignalTriageUpdateResponse";
28
+ import { SecurityMonitoringSuppressionCreateRequest } from "../models/SecurityMonitoringSuppressionCreateRequest";
29
+ import { SecurityMonitoringSuppressionResponse } from "../models/SecurityMonitoringSuppressionResponse";
30
+ import { SecurityMonitoringSuppressionsResponse } from "../models/SecurityMonitoringSuppressionsResponse";
31
+ import { SecurityMonitoringSuppressionUpdateRequest } from "../models/SecurityMonitoringSuppressionUpdateRequest";
28
32
  export declare class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
29
33
  createSecurityFilter(body: SecurityFilterCreateRequest, _options?: Configuration): Promise<RequestContext>;
30
34
  createSecurityMonitoringRule(body: SecurityMonitoringRuleCreatePayload, _options?: Configuration): Promise<RequestContext>;
35
+ createSecurityMonitoringSuppression(body: SecurityMonitoringSuppressionCreateRequest, _options?: Configuration): Promise<RequestContext>;
31
36
  deleteSecurityFilter(securityFilterId: string, _options?: Configuration): Promise<RequestContext>;
32
37
  deleteSecurityMonitoringRule(ruleId: string, _options?: Configuration): Promise<RequestContext>;
38
+ deleteSecurityMonitoringSuppression(suppressionId: string, _options?: Configuration): Promise<RequestContext>;
33
39
  editSecurityMonitoringSignalAssignee(signalId: string, body: SecurityMonitoringSignalAssigneeUpdateRequest, _options?: Configuration): Promise<RequestContext>;
34
40
  editSecurityMonitoringSignalIncidents(signalId: string, body: SecurityMonitoringSignalIncidentsUpdateRequest, _options?: Configuration): Promise<RequestContext>;
35
41
  editSecurityMonitoringSignalState(signalId: string, body: SecurityMonitoringSignalStateUpdateRequest, _options?: Configuration): Promise<RequestContext>;
@@ -37,14 +43,17 @@ export declare class SecurityMonitoringApiRequestFactory extends BaseAPIRequestF
37
43
  getSecurityFilter(securityFilterId: string, _options?: Configuration): Promise<RequestContext>;
38
44
  getSecurityMonitoringRule(ruleId: string, _options?: Configuration): Promise<RequestContext>;
39
45
  getSecurityMonitoringSignal(signalId: string, _options?: Configuration): Promise<RequestContext>;
46
+ getSecurityMonitoringSuppression(suppressionId: string, _options?: Configuration): Promise<RequestContext>;
40
47
  listFindings(pageLimit?: number, snapshotTimestamp?: number, pageCursor?: string, filterTags?: string, filterEvaluationChangedAt?: string, filterMuted?: boolean, filterRuleId?: string, filterRuleName?: string, filterResourceType?: string, filterDiscoveryTimestamp?: string, filterEvaluation?: FindingEvaluation, filterStatus?: FindingStatus, _options?: Configuration): Promise<RequestContext>;
41
48
  listSecurityFilters(_options?: Configuration): Promise<RequestContext>;
42
49
  listSecurityMonitoringRules(pageSize?: number, pageNumber?: number, _options?: Configuration): Promise<RequestContext>;
43
50
  listSecurityMonitoringSignals(filterQuery?: string, filterFrom?: Date, filterTo?: Date, sort?: SecurityMonitoringSignalsSort, pageCursor?: string, pageLimit?: number, _options?: Configuration): Promise<RequestContext>;
51
+ listSecurityMonitoringSuppressions(_options?: Configuration): Promise<RequestContext>;
44
52
  muteFindings(body: BulkMuteFindingsRequest, _options?: Configuration): Promise<RequestContext>;
45
53
  searchSecurityMonitoringSignals(body?: SecurityMonitoringSignalListRequest, _options?: Configuration): Promise<RequestContext>;
46
54
  updateSecurityFilter(securityFilterId: string, body: SecurityFilterUpdateRequest, _options?: Configuration): Promise<RequestContext>;
47
55
  updateSecurityMonitoringRule(ruleId: string, body: SecurityMonitoringRuleUpdatePayload, _options?: Configuration): Promise<RequestContext>;
56
+ updateSecurityMonitoringSuppression(suppressionId: string, body: SecurityMonitoringSuppressionUpdateRequest, _options?: Configuration): Promise<RequestContext>;
48
57
  }
49
58
  export declare class SecurityMonitoringApiResponseProcessor {
50
59
  /**
@@ -63,6 +72,14 @@ export declare class SecurityMonitoringApiResponseProcessor {
63
72
  * @throws ApiException if the response code was not in [200, 299]
64
73
  */
65
74
  createSecurityMonitoringRule(response: ResponseContext): Promise<SecurityMonitoringRuleResponse>;
75
+ /**
76
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
77
+ * to the expected objects
78
+ *
79
+ * @params response Response returned by the server for a request to createSecurityMonitoringSuppression
80
+ * @throws ApiException if the response code was not in [200, 299]
81
+ */
82
+ createSecurityMonitoringSuppression(response: ResponseContext): Promise<SecurityMonitoringSuppressionResponse>;
66
83
  /**
67
84
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
68
85
  * to the expected objects
@@ -79,6 +96,14 @@ export declare class SecurityMonitoringApiResponseProcessor {
79
96
  * @throws ApiException if the response code was not in [200, 299]
80
97
  */
81
98
  deleteSecurityMonitoringRule(response: ResponseContext): Promise<void>;
99
+ /**
100
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
101
+ * to the expected objects
102
+ *
103
+ * @params response Response returned by the server for a request to deleteSecurityMonitoringSuppression
104
+ * @throws ApiException if the response code was not in [200, 299]
105
+ */
106
+ deleteSecurityMonitoringSuppression(response: ResponseContext): Promise<void>;
82
107
  /**
83
108
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
84
109
  * to the expected objects
@@ -135,6 +160,14 @@ export declare class SecurityMonitoringApiResponseProcessor {
135
160
  * @throws ApiException if the response code was not in [200, 299]
136
161
  */
137
162
  getSecurityMonitoringSignal(response: ResponseContext): Promise<SecurityMonitoringSignalResponse>;
163
+ /**
164
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
165
+ * to the expected objects
166
+ *
167
+ * @params response Response returned by the server for a request to getSecurityMonitoringSuppression
168
+ * @throws ApiException if the response code was not in [200, 299]
169
+ */
170
+ getSecurityMonitoringSuppression(response: ResponseContext): Promise<SecurityMonitoringSuppressionResponse>;
138
171
  /**
139
172
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
140
173
  * to the expected objects
@@ -167,6 +200,14 @@ export declare class SecurityMonitoringApiResponseProcessor {
167
200
  * @throws ApiException if the response code was not in [200, 299]
168
201
  */
169
202
  listSecurityMonitoringSignals(response: ResponseContext): Promise<SecurityMonitoringSignalsListResponse>;
203
+ /**
204
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
205
+ * to the expected objects
206
+ *
207
+ * @params response Response returned by the server for a request to listSecurityMonitoringSuppressions
208
+ * @throws ApiException if the response code was not in [200, 299]
209
+ */
210
+ listSecurityMonitoringSuppressions(response: ResponseContext): Promise<SecurityMonitoringSuppressionsResponse>;
170
211
  /**
171
212
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
172
213
  * to the expected objects
@@ -199,6 +240,14 @@ export declare class SecurityMonitoringApiResponseProcessor {
199
240
  * @throws ApiException if the response code was not in [200, 299]
200
241
  */
201
242
  updateSecurityMonitoringRule(response: ResponseContext): Promise<SecurityMonitoringRuleResponse>;
243
+ /**
244
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
245
+ * to the expected objects
246
+ *
247
+ * @params response Response returned by the server for a request to updateSecurityMonitoringSuppression
248
+ * @throws ApiException if the response code was not in [200, 299]
249
+ */
250
+ updateSecurityMonitoringSuppression(response: ResponseContext): Promise<SecurityMonitoringSuppressionResponse>;
202
251
  }
203
252
  export interface SecurityMonitoringApiCreateSecurityFilterRequest {
204
253
  /**
@@ -213,6 +262,13 @@ export interface SecurityMonitoringApiCreateSecurityMonitoringRuleRequest {
213
262
  */
214
263
  body: SecurityMonitoringRuleCreatePayload;
215
264
  }
265
+ export interface SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest {
266
+ /**
267
+ * The definition of the new suppression rule.
268
+ * @type SecurityMonitoringSuppressionCreateRequest
269
+ */
270
+ body: SecurityMonitoringSuppressionCreateRequest;
271
+ }
216
272
  export interface SecurityMonitoringApiDeleteSecurityFilterRequest {
217
273
  /**
218
274
  * The ID of the security filter.
@@ -227,6 +283,13 @@ export interface SecurityMonitoringApiDeleteSecurityMonitoringRuleRequest {
227
283
  */
228
284
  ruleId: string;
229
285
  }
286
+ export interface SecurityMonitoringApiDeleteSecurityMonitoringSuppressionRequest {
287
+ /**
288
+ * The ID of the suppression rule
289
+ * @type string
290
+ */
291
+ suppressionId: string;
292
+ }
230
293
  export interface SecurityMonitoringApiEditSecurityMonitoringSignalAssigneeRequest {
231
294
  /**
232
295
  * The ID of the signal.
@@ -296,6 +359,13 @@ export interface SecurityMonitoringApiGetSecurityMonitoringSignalRequest {
296
359
  */
297
360
  signalId: string;
298
361
  }
362
+ export interface SecurityMonitoringApiGetSecurityMonitoringSuppressionRequest {
363
+ /**
364
+ * The ID of the suppression rule
365
+ * @type string
366
+ */
367
+ suppressionId: string;
368
+ }
299
369
  export interface SecurityMonitoringApiListFindingsRequest {
300
370
  /**
301
371
  * Limit the number of findings returned. Must be <= 1000.
@@ -447,6 +517,18 @@ export interface SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest {
447
517
  */
448
518
  body: SecurityMonitoringRuleUpdatePayload;
449
519
  }
520
+ export interface SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest {
521
+ /**
522
+ * The ID of the suppression rule
523
+ * @type string
524
+ */
525
+ suppressionId: string;
526
+ /**
527
+ * New definition of the suppression rule. Supports partial updates.
528
+ * @type SecurityMonitoringSuppressionUpdateRequest
529
+ */
530
+ body: SecurityMonitoringSuppressionUpdateRequest;
531
+ }
450
532
  export declare class SecurityMonitoringApi {
451
533
  private requestFactory;
452
534
  private responseProcessor;
@@ -465,6 +547,11 @@ export declare class SecurityMonitoringApi {
465
547
  * @param param The request object
466
548
  */
467
549
  createSecurityMonitoringRule(param: SecurityMonitoringApiCreateSecurityMonitoringRuleRequest, options?: Configuration): Promise<SecurityMonitoringRuleResponse>;
550
+ /**
551
+ * Create a new suppression rule.
552
+ * @param param The request object
553
+ */
554
+ createSecurityMonitoringSuppression(param: SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest, options?: Configuration): Promise<SecurityMonitoringSuppressionResponse>;
468
555
  /**
469
556
  * Delete a specific security filter.
470
557
  * @param param The request object
@@ -475,6 +562,11 @@ export declare class SecurityMonitoringApi {
475
562
  * @param param The request object
476
563
  */
477
564
  deleteSecurityMonitoringRule(param: SecurityMonitoringApiDeleteSecurityMonitoringRuleRequest, options?: Configuration): Promise<void>;
565
+ /**
566
+ * Delete a specific suppression rule.
567
+ * @param param The request object
568
+ */
569
+ deleteSecurityMonitoringSuppression(param: SecurityMonitoringApiDeleteSecurityMonitoringSuppressionRequest, options?: Configuration): Promise<void>;
478
570
  /**
479
571
  * Modify the triage assignee of a security signal.
480
572
  * @param param The request object
@@ -513,6 +605,11 @@ export declare class SecurityMonitoringApi {
513
605
  * @param param The request object
514
606
  */
515
607
  getSecurityMonitoringSignal(param: SecurityMonitoringApiGetSecurityMonitoringSignalRequest, options?: Configuration): Promise<SecurityMonitoringSignalResponse>;
608
+ /**
609
+ * Get the details of a specific suppression rule.
610
+ * @param param The request object
611
+ */
612
+ getSecurityMonitoringSuppression(param: SecurityMonitoringApiGetSecurityMonitoringSuppressionRequest, options?: Configuration): Promise<SecurityMonitoringSuppressionResponse>;
516
613
  /**
517
614
  * Get a list of CSPM findings.
518
615
  *
@@ -572,6 +669,11 @@ export declare class SecurityMonitoringApi {
572
669
  * Provide a paginated version of listSecurityMonitoringSignals returning a generator with all the items.
573
670
  */
574
671
  listSecurityMonitoringSignalsWithPagination(param?: SecurityMonitoringApiListSecurityMonitoringSignalsRequest, options?: Configuration): AsyncGenerator<SecurityMonitoringSignal>;
672
+ /**
673
+ * Get the list of all suppression rules.
674
+ * @param param The request object
675
+ */
676
+ listSecurityMonitoringSuppressions(options?: Configuration): Promise<SecurityMonitoringSuppressionsResponse>;
575
677
  /**
576
678
  * Mute or unmute findings.
577
679
  * @param param The request object
@@ -601,4 +703,9 @@ export declare class SecurityMonitoringApi {
601
703
  * @param param The request object
602
704
  */
603
705
  updateSecurityMonitoringRule(param: SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest, options?: Configuration): Promise<SecurityMonitoringRuleResponse>;
706
+ /**
707
+ * Update a specific suppression rule.
708
+ * @param param The request object
709
+ */
710
+ updateSecurityMonitoringSuppression(param: SecurityMonitoringApiUpdateSecurityMonitoringSuppressionRequest, options?: Configuration): Promise<SecurityMonitoringSuppressionResponse>;
604
711
  }