files.com 1.2.124 → 1.2.126
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/BundleDownload.md +17 -1
- package/docs/models/SiemHttpDestination.md +396 -0
- package/lib/Files.js +1 -1
- package/lib/models/SiemHttpDestination.js +1062 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/SiemHttpDestination.js +805 -0
@@ -0,0 +1,1062 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
5
|
+
exports.__esModule = true;
|
6
|
+
exports.default = void 0;
|
7
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
9
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
10
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
11
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
13
|
+
var _Api = _interopRequireDefault(require("../Api"));
|
14
|
+
var errors = _interopRequireWildcard(require("../Errors"));
|
15
|
+
var _utils = require("../utils");
|
16
|
+
var _SiemHttpDestination;
|
17
|
+
/* eslint-disable no-unused-vars */
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
22
|
+
/* eslint-enable no-unused-vars */
|
23
|
+
/**
|
24
|
+
* Class SiemHttpDestination
|
25
|
+
*/
|
26
|
+
var SiemHttpDestination = /*#__PURE__*/(0, _createClass2.default)(function SiemHttpDestination() {
|
27
|
+
var _this = this;
|
28
|
+
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
29
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
30
|
+
(0, _classCallCheck2.default)(this, SiemHttpDestination);
|
31
|
+
(0, _defineProperty2.default)(this, "attributes", {});
|
32
|
+
(0, _defineProperty2.default)(this, "options", {});
|
33
|
+
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
34
|
+
return !!_this.attributes.id;
|
35
|
+
});
|
36
|
+
// int64 # SIEM HTTP Destination ID
|
37
|
+
(0, _defineProperty2.default)(this, "getId", function () {
|
38
|
+
return _this.attributes.id;
|
39
|
+
});
|
40
|
+
(0, _defineProperty2.default)(this, "setId", function (value) {
|
41
|
+
_this.attributes.id = value;
|
42
|
+
});
|
43
|
+
// string # Name for this Destination
|
44
|
+
(0, _defineProperty2.default)(this, "getName", function () {
|
45
|
+
return _this.attributes.name;
|
46
|
+
});
|
47
|
+
(0, _defineProperty2.default)(this, "setName", function (value) {
|
48
|
+
_this.attributes.name = value;
|
49
|
+
});
|
50
|
+
// string # Destination Type
|
51
|
+
(0, _defineProperty2.default)(this, "getDestinationType", function () {
|
52
|
+
return _this.attributes.destination_type;
|
53
|
+
});
|
54
|
+
(0, _defineProperty2.default)(this, "setDestinationType", function (value) {
|
55
|
+
_this.attributes.destination_type = value;
|
56
|
+
});
|
57
|
+
// string # Destination Url
|
58
|
+
(0, _defineProperty2.default)(this, "getDestinationUrl", function () {
|
59
|
+
return _this.attributes.destination_url;
|
60
|
+
});
|
61
|
+
(0, _defineProperty2.default)(this, "setDestinationUrl", function (value) {
|
62
|
+
_this.attributes.destination_url = value;
|
63
|
+
});
|
64
|
+
// object # Additional HTTP Headers included in calls to the destination URL
|
65
|
+
(0, _defineProperty2.default)(this, "getAdditionalHeaders", function () {
|
66
|
+
return _this.attributes.additional_headers;
|
67
|
+
});
|
68
|
+
(0, _defineProperty2.default)(this, "setAdditionalHeaders", function (value) {
|
69
|
+
_this.attributes.additional_headers = value;
|
70
|
+
});
|
71
|
+
// boolean # Whether this SIEM HTTP Destination is currently being sent to or not
|
72
|
+
(0, _defineProperty2.default)(this, "getSendingActive", function () {
|
73
|
+
return _this.attributes.sending_active;
|
74
|
+
});
|
75
|
+
(0, _defineProperty2.default)(this, "setSendingActive", function (value) {
|
76
|
+
_this.attributes.sending_active = value;
|
77
|
+
});
|
78
|
+
// string # Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
79
|
+
(0, _defineProperty2.default)(this, "getGenericPayloadType", function () {
|
80
|
+
return _this.attributes.generic_payload_type;
|
81
|
+
});
|
82
|
+
(0, _defineProperty2.default)(this, "setGenericPayloadType", function (value) {
|
83
|
+
_this.attributes.generic_payload_type = value;
|
84
|
+
});
|
85
|
+
// string # Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
86
|
+
(0, _defineProperty2.default)(this, "getSplunkTokenMasked", function () {
|
87
|
+
return _this.attributes.splunk_token_masked;
|
88
|
+
});
|
89
|
+
(0, _defineProperty2.default)(this, "setSplunkTokenMasked", function (value) {
|
90
|
+
_this.attributes.splunk_token_masked = value;
|
91
|
+
});
|
92
|
+
// string # Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
|
93
|
+
(0, _defineProperty2.default)(this, "getAzureDcrImmutableId", function () {
|
94
|
+
return _this.attributes.azure_dcr_immutable_id;
|
95
|
+
});
|
96
|
+
(0, _defineProperty2.default)(this, "setAzureDcrImmutableId", function (value) {
|
97
|
+
_this.attributes.azure_dcr_immutable_id = value;
|
98
|
+
});
|
99
|
+
// string # Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
100
|
+
(0, _defineProperty2.default)(this, "getAzureStreamName", function () {
|
101
|
+
return _this.attributes.azure_stream_name;
|
102
|
+
});
|
103
|
+
(0, _defineProperty2.default)(this, "setAzureStreamName", function (value) {
|
104
|
+
_this.attributes.azure_stream_name = value;
|
105
|
+
});
|
106
|
+
// string # Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
|
107
|
+
(0, _defineProperty2.default)(this, "getAzureOauthClientCredentialsTenantId", function () {
|
108
|
+
return _this.attributes.azure_oauth_client_credentials_tenant_id;
|
109
|
+
});
|
110
|
+
(0, _defineProperty2.default)(this, "setAzureOauthClientCredentialsTenantId", function (value) {
|
111
|
+
_this.attributes.azure_oauth_client_credentials_tenant_id = value;
|
112
|
+
});
|
113
|
+
// string # Applicable only for destination type: azure. Client Credentials OAuth Client ID.
|
114
|
+
(0, _defineProperty2.default)(this, "getAzureOauthClientCredentialsClientId", function () {
|
115
|
+
return _this.attributes.azure_oauth_client_credentials_client_id;
|
116
|
+
});
|
117
|
+
(0, _defineProperty2.default)(this, "setAzureOauthClientCredentialsClientId", function (value) {
|
118
|
+
_this.attributes.azure_oauth_client_credentials_client_id = value;
|
119
|
+
});
|
120
|
+
// string # Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
121
|
+
(0, _defineProperty2.default)(this, "getAzureOauthClientCredentialsClientSecretMasked", function () {
|
122
|
+
return _this.attributes.azure_oauth_client_credentials_client_secret_masked;
|
123
|
+
});
|
124
|
+
(0, _defineProperty2.default)(this, "setAzureOauthClientCredentialsClientSecretMasked", function (value) {
|
125
|
+
_this.attributes.azure_oauth_client_credentials_client_secret_masked = value;
|
126
|
+
});
|
127
|
+
// string # Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
128
|
+
(0, _defineProperty2.default)(this, "getQradarUsername", function () {
|
129
|
+
return _this.attributes.qradar_username;
|
130
|
+
});
|
131
|
+
(0, _defineProperty2.default)(this, "setQradarUsername", function (value) {
|
132
|
+
_this.attributes.qradar_username = value;
|
133
|
+
});
|
134
|
+
// string # Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
135
|
+
(0, _defineProperty2.default)(this, "getQradarPasswordMasked", function () {
|
136
|
+
return _this.attributes.qradar_password_masked;
|
137
|
+
});
|
138
|
+
(0, _defineProperty2.default)(this, "setQradarPasswordMasked", function (value) {
|
139
|
+
_this.attributes.qradar_password_masked = value;
|
140
|
+
});
|
141
|
+
// string # Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
|
142
|
+
(0, _defineProperty2.default)(this, "getSolarWindsTokenMasked", function () {
|
143
|
+
return _this.attributes.solar_winds_token_masked;
|
144
|
+
});
|
145
|
+
(0, _defineProperty2.default)(this, "setSolarWindsTokenMasked", function (value) {
|
146
|
+
_this.attributes.solar_winds_token_masked = value;
|
147
|
+
});
|
148
|
+
// string # Applicable only for destination type: new_relic. API key provided by New Relic.
|
149
|
+
(0, _defineProperty2.default)(this, "getNewRelicApiKeyMasked", function () {
|
150
|
+
return _this.attributes.new_relic_api_key_masked;
|
151
|
+
});
|
152
|
+
(0, _defineProperty2.default)(this, "setNewRelicApiKeyMasked", function (value) {
|
153
|
+
_this.attributes.new_relic_api_key_masked = value;
|
154
|
+
});
|
155
|
+
// string # Applicable only for destination type: datadog. API key provided by Datadog.
|
156
|
+
(0, _defineProperty2.default)(this, "getDatadogApiKeyMasked", function () {
|
157
|
+
return _this.attributes.datadog_api_key_masked;
|
158
|
+
});
|
159
|
+
(0, _defineProperty2.default)(this, "setDatadogApiKeyMasked", function (value) {
|
160
|
+
_this.attributes.datadog_api_key_masked = value;
|
161
|
+
});
|
162
|
+
// boolean # Whether or not sending is enabled for sftp_action logs.
|
163
|
+
(0, _defineProperty2.default)(this, "getSftpActionSendEnabled", function () {
|
164
|
+
return _this.attributes.sftp_action_send_enabled;
|
165
|
+
});
|
166
|
+
(0, _defineProperty2.default)(this, "setSftpActionSendEnabled", function (value) {
|
167
|
+
_this.attributes.sftp_action_send_enabled = value;
|
168
|
+
});
|
169
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
170
|
+
(0, _defineProperty2.default)(this, "getSftpActionRecordsSentEntriesSent", function () {
|
171
|
+
return _this.attributes.sftp_action_records_sent_entries_sent;
|
172
|
+
});
|
173
|
+
(0, _defineProperty2.default)(this, "setSftpActionRecordsSentEntriesSent", function (value) {
|
174
|
+
_this.attributes.sftp_action_records_sent_entries_sent = value;
|
175
|
+
});
|
176
|
+
// boolean # Whether or not sending is enabled for ftp_action logs.
|
177
|
+
(0, _defineProperty2.default)(this, "getFtpActionSendEnabled", function () {
|
178
|
+
return _this.attributes.ftp_action_send_enabled;
|
179
|
+
});
|
180
|
+
(0, _defineProperty2.default)(this, "setFtpActionSendEnabled", function (value) {
|
181
|
+
_this.attributes.ftp_action_send_enabled = value;
|
182
|
+
});
|
183
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
184
|
+
(0, _defineProperty2.default)(this, "getFtpActionRecordsSentEntriesSent", function () {
|
185
|
+
return _this.attributes.ftp_action_records_sent_entries_sent;
|
186
|
+
});
|
187
|
+
(0, _defineProperty2.default)(this, "setFtpActionRecordsSentEntriesSent", function (value) {
|
188
|
+
_this.attributes.ftp_action_records_sent_entries_sent = value;
|
189
|
+
});
|
190
|
+
// boolean # Whether or not sending is enabled for web_dav_action logs.
|
191
|
+
(0, _defineProperty2.default)(this, "getWebDavActionSendEnabled", function () {
|
192
|
+
return _this.attributes.web_dav_action_send_enabled;
|
193
|
+
});
|
194
|
+
(0, _defineProperty2.default)(this, "setWebDavActionSendEnabled", function (value) {
|
195
|
+
_this.attributes.web_dav_action_send_enabled = value;
|
196
|
+
});
|
197
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
198
|
+
(0, _defineProperty2.default)(this, "getWebDavActionRecordsSentEntriesSent", function () {
|
199
|
+
return _this.attributes.web_dav_action_records_sent_entries_sent;
|
200
|
+
});
|
201
|
+
(0, _defineProperty2.default)(this, "setWebDavActionRecordsSentEntriesSent", function (value) {
|
202
|
+
_this.attributes.web_dav_action_records_sent_entries_sent = value;
|
203
|
+
});
|
204
|
+
// boolean # Whether or not sending is enabled for sync logs.
|
205
|
+
(0, _defineProperty2.default)(this, "getSyncSendEnabled", function () {
|
206
|
+
return _this.attributes.sync_send_enabled;
|
207
|
+
});
|
208
|
+
(0, _defineProperty2.default)(this, "setSyncSendEnabled", function (value) {
|
209
|
+
_this.attributes.sync_send_enabled = value;
|
210
|
+
});
|
211
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
212
|
+
(0, _defineProperty2.default)(this, "getSyncRecordsSentEntriesSent", function () {
|
213
|
+
return _this.attributes.sync_records_sent_entries_sent;
|
214
|
+
});
|
215
|
+
(0, _defineProperty2.default)(this, "setSyncRecordsSentEntriesSent", function (value) {
|
216
|
+
_this.attributes.sync_records_sent_entries_sent = value;
|
217
|
+
});
|
218
|
+
// boolean # Whether or not sending is enabled for outbound_connection logs.
|
219
|
+
(0, _defineProperty2.default)(this, "getOutboundConnectionSendEnabled", function () {
|
220
|
+
return _this.attributes.outbound_connection_send_enabled;
|
221
|
+
});
|
222
|
+
(0, _defineProperty2.default)(this, "setOutboundConnectionSendEnabled", function (value) {
|
223
|
+
_this.attributes.outbound_connection_send_enabled = value;
|
224
|
+
});
|
225
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
226
|
+
(0, _defineProperty2.default)(this, "getOutboundConnectionRecordsSentEntriesSent", function () {
|
227
|
+
return _this.attributes.outbound_connection_records_sent_entries_sent;
|
228
|
+
});
|
229
|
+
(0, _defineProperty2.default)(this, "setOutboundConnectionRecordsSentEntriesSent", function (value) {
|
230
|
+
_this.attributes.outbound_connection_records_sent_entries_sent = value;
|
231
|
+
});
|
232
|
+
// boolean # Whether or not sending is enabled for automation logs.
|
233
|
+
(0, _defineProperty2.default)(this, "getAutomationSendEnabled", function () {
|
234
|
+
return _this.attributes.automation_send_enabled;
|
235
|
+
});
|
236
|
+
(0, _defineProperty2.default)(this, "setAutomationSendEnabled", function (value) {
|
237
|
+
_this.attributes.automation_send_enabled = value;
|
238
|
+
});
|
239
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
240
|
+
(0, _defineProperty2.default)(this, "getAutomationRecordsSentEntriesSent", function () {
|
241
|
+
return _this.attributes.automation_records_sent_entries_sent;
|
242
|
+
});
|
243
|
+
(0, _defineProperty2.default)(this, "setAutomationRecordsSentEntriesSent", function (value) {
|
244
|
+
_this.attributes.automation_records_sent_entries_sent = value;
|
245
|
+
});
|
246
|
+
// boolean # Whether or not sending is enabled for api_request logs.
|
247
|
+
(0, _defineProperty2.default)(this, "getApiRequestSendEnabled", function () {
|
248
|
+
return _this.attributes.api_request_send_enabled;
|
249
|
+
});
|
250
|
+
(0, _defineProperty2.default)(this, "setApiRequestSendEnabled", function (value) {
|
251
|
+
_this.attributes.api_request_send_enabled = value;
|
252
|
+
});
|
253
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
254
|
+
(0, _defineProperty2.default)(this, "getApiRequestRecordsSentEntriesSent", function () {
|
255
|
+
return _this.attributes.api_request_records_sent_entries_sent;
|
256
|
+
});
|
257
|
+
(0, _defineProperty2.default)(this, "setApiRequestRecordsSentEntriesSent", function (value) {
|
258
|
+
_this.attributes.api_request_records_sent_entries_sent = value;
|
259
|
+
});
|
260
|
+
// boolean # Whether or not sending is enabled for public_hosting_request logs.
|
261
|
+
(0, _defineProperty2.default)(this, "getPublicHostingRequestSendEnabled", function () {
|
262
|
+
return _this.attributes.public_hosting_request_send_enabled;
|
263
|
+
});
|
264
|
+
(0, _defineProperty2.default)(this, "setPublicHostingRequestSendEnabled", function (value) {
|
265
|
+
_this.attributes.public_hosting_request_send_enabled = value;
|
266
|
+
});
|
267
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
268
|
+
(0, _defineProperty2.default)(this, "getPublicHostingRequestRecordsSentEntriesSent", function () {
|
269
|
+
return _this.attributes.public_hosting_request_records_sent_entries_sent;
|
270
|
+
});
|
271
|
+
(0, _defineProperty2.default)(this, "setPublicHostingRequestRecordsSentEntriesSent", function (value) {
|
272
|
+
_this.attributes.public_hosting_request_records_sent_entries_sent = value;
|
273
|
+
});
|
274
|
+
// boolean # Whether or not sending is enabled for email logs.
|
275
|
+
(0, _defineProperty2.default)(this, "getEmailSendEnabled", function () {
|
276
|
+
return _this.attributes.email_send_enabled;
|
277
|
+
});
|
278
|
+
(0, _defineProperty2.default)(this, "setEmailSendEnabled", function (value) {
|
279
|
+
_this.attributes.email_send_enabled = value;
|
280
|
+
});
|
281
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
282
|
+
(0, _defineProperty2.default)(this, "getEmailRecordsSentEntriesSent", function () {
|
283
|
+
return _this.attributes.email_records_sent_entries_sent;
|
284
|
+
});
|
285
|
+
(0, _defineProperty2.default)(this, "setEmailRecordsSentEntriesSent", function (value) {
|
286
|
+
_this.attributes.email_records_sent_entries_sent = value;
|
287
|
+
});
|
288
|
+
// boolean # Whether or not sending is enabled for exavault_api_request logs.
|
289
|
+
(0, _defineProperty2.default)(this, "getExavaultApiRequestSendEnabled", function () {
|
290
|
+
return _this.attributes.exavault_api_request_send_enabled;
|
291
|
+
});
|
292
|
+
(0, _defineProperty2.default)(this, "setExavaultApiRequestSendEnabled", function (value) {
|
293
|
+
_this.attributes.exavault_api_request_send_enabled = value;
|
294
|
+
});
|
295
|
+
// int64 # Number of log entries sent for the lifetime of this destination.
|
296
|
+
(0, _defineProperty2.default)(this, "getExavaultApiRequestRecordsSentEntriesSent", function () {
|
297
|
+
return _this.attributes.exavault_api_request_records_sent_entries_sent;
|
298
|
+
});
|
299
|
+
(0, _defineProperty2.default)(this, "setExavaultApiRequestRecordsSentEntriesSent", function (value) {
|
300
|
+
_this.attributes.exavault_api_request_records_sent_entries_sent = value;
|
301
|
+
});
|
302
|
+
// string # Type of URL that was last called. Can be `destination_url` or `azure_oauth_client_credentials_url`
|
303
|
+
(0, _defineProperty2.default)(this, "getLastHttpCallTargetType", function () {
|
304
|
+
return _this.attributes.last_http_call_target_type;
|
305
|
+
});
|
306
|
+
(0, _defineProperty2.default)(this, "setLastHttpCallTargetType", function (value) {
|
307
|
+
_this.attributes.last_http_call_target_type = value;
|
308
|
+
});
|
309
|
+
// boolean # Was the last HTTP call made successful?
|
310
|
+
(0, _defineProperty2.default)(this, "getLastHttpCallSuccess", function () {
|
311
|
+
return _this.attributes.last_http_call_success;
|
312
|
+
});
|
313
|
+
(0, _defineProperty2.default)(this, "setLastHttpCallSuccess", function (value) {
|
314
|
+
_this.attributes.last_http_call_success = value;
|
315
|
+
});
|
316
|
+
// int64 # Last HTTP Call Response Code
|
317
|
+
(0, _defineProperty2.default)(this, "getLastHttpCallResponseCode", function () {
|
318
|
+
return _this.attributes.last_http_call_response_code;
|
319
|
+
});
|
320
|
+
(0, _defineProperty2.default)(this, "setLastHttpCallResponseCode", function (value) {
|
321
|
+
_this.attributes.last_http_call_response_code = value;
|
322
|
+
});
|
323
|
+
// string # Last HTTP Call Response Body. Large responses are truncated.
|
324
|
+
(0, _defineProperty2.default)(this, "getLastHttpCallResponseBody", function () {
|
325
|
+
return _this.attributes.last_http_call_response_body;
|
326
|
+
});
|
327
|
+
(0, _defineProperty2.default)(this, "setLastHttpCallResponseBody", function (value) {
|
328
|
+
_this.attributes.last_http_call_response_body = value;
|
329
|
+
});
|
330
|
+
// string # Last HTTP Call Error Message if applicable
|
331
|
+
(0, _defineProperty2.default)(this, "getLastHttpCallErrorMessage", function () {
|
332
|
+
return _this.attributes.last_http_call_error_message;
|
333
|
+
});
|
334
|
+
(0, _defineProperty2.default)(this, "setLastHttpCallErrorMessage", function (value) {
|
335
|
+
_this.attributes.last_http_call_error_message = value;
|
336
|
+
});
|
337
|
+
// string # Time of Last HTTP Call
|
338
|
+
(0, _defineProperty2.default)(this, "getLastHttpCallTime", function () {
|
339
|
+
return _this.attributes.last_http_call_time;
|
340
|
+
});
|
341
|
+
(0, _defineProperty2.default)(this, "setLastHttpCallTime", function (value) {
|
342
|
+
_this.attributes.last_http_call_time = value;
|
343
|
+
});
|
344
|
+
// int64 # Duration of the last HTTP Call in milliseconds
|
345
|
+
(0, _defineProperty2.default)(this, "getLastHttpCallDurationMs", function () {
|
346
|
+
return _this.attributes.last_http_call_duration_ms;
|
347
|
+
});
|
348
|
+
(0, _defineProperty2.default)(this, "setLastHttpCallDurationMs", function (value) {
|
349
|
+
_this.attributes.last_http_call_duration_ms = value;
|
350
|
+
});
|
351
|
+
// string # Time of Most Recent Successful HTTP Call
|
352
|
+
(0, _defineProperty2.default)(this, "getMostRecentHttpCallSuccessTime", function () {
|
353
|
+
return _this.attributes.most_recent_http_call_success_time;
|
354
|
+
});
|
355
|
+
(0, _defineProperty2.default)(this, "setMostRecentHttpCallSuccessTime", function (value) {
|
356
|
+
_this.attributes.most_recent_http_call_success_time = value;
|
357
|
+
});
|
358
|
+
// string # Connection Test Entry
|
359
|
+
(0, _defineProperty2.default)(this, "getConnectionTestEntry", function () {
|
360
|
+
return _this.attributes.connection_test_entry;
|
361
|
+
});
|
362
|
+
(0, _defineProperty2.default)(this, "setConnectionTestEntry", function (value) {
|
363
|
+
_this.attributes.connection_test_entry = value;
|
364
|
+
});
|
365
|
+
// string # Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
366
|
+
(0, _defineProperty2.default)(this, "getSplunkToken", function () {
|
367
|
+
return _this.attributes.splunk_token;
|
368
|
+
});
|
369
|
+
(0, _defineProperty2.default)(this, "setSplunkToken", function (value) {
|
370
|
+
_this.attributes.splunk_token = value;
|
371
|
+
});
|
372
|
+
// string # Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
373
|
+
(0, _defineProperty2.default)(this, "getAzureOauthClientCredentialsClientSecret", function () {
|
374
|
+
return _this.attributes.azure_oauth_client_credentials_client_secret;
|
375
|
+
});
|
376
|
+
(0, _defineProperty2.default)(this, "setAzureOauthClientCredentialsClientSecret", function (value) {
|
377
|
+
_this.attributes.azure_oauth_client_credentials_client_secret = value;
|
378
|
+
});
|
379
|
+
// string # Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
380
|
+
(0, _defineProperty2.default)(this, "getQradarPassword", function () {
|
381
|
+
return _this.attributes.qradar_password;
|
382
|
+
});
|
383
|
+
(0, _defineProperty2.default)(this, "setQradarPassword", function (value) {
|
384
|
+
_this.attributes.qradar_password = value;
|
385
|
+
});
|
386
|
+
// string # Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
|
387
|
+
(0, _defineProperty2.default)(this, "getSolarWindsToken", function () {
|
388
|
+
return _this.attributes.solar_winds_token;
|
389
|
+
});
|
390
|
+
(0, _defineProperty2.default)(this, "setSolarWindsToken", function (value) {
|
391
|
+
_this.attributes.solar_winds_token = value;
|
392
|
+
});
|
393
|
+
// string # Applicable only for destination type: new_relic. API key provided by New Relic.
|
394
|
+
(0, _defineProperty2.default)(this, "getNewRelicApiKey", function () {
|
395
|
+
return _this.attributes.new_relic_api_key;
|
396
|
+
});
|
397
|
+
(0, _defineProperty2.default)(this, "setNewRelicApiKey", function (value) {
|
398
|
+
_this.attributes.new_relic_api_key = value;
|
399
|
+
});
|
400
|
+
// string # Applicable only for destination type: datadog. API key provided by Datadog.
|
401
|
+
(0, _defineProperty2.default)(this, "getDatadogApiKey", function () {
|
402
|
+
return _this.attributes.datadog_api_key;
|
403
|
+
});
|
404
|
+
(0, _defineProperty2.default)(this, "setDatadogApiKey", function (value) {
|
405
|
+
_this.attributes.datadog_api_key = value;
|
406
|
+
});
|
407
|
+
// Parameters:
|
408
|
+
// name - string - Name for this Destination
|
409
|
+
// additional_headers - object - Additional HTTP Headers included in calls to the destination URL
|
410
|
+
// sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
|
411
|
+
// generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
412
|
+
// splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
413
|
+
// azure_dcr_immutable_id - string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
|
414
|
+
// azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
415
|
+
// azure_oauth_client_credentials_tenant_id - string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
|
416
|
+
// azure_oauth_client_credentials_client_id - string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
|
417
|
+
// azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
418
|
+
// qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
419
|
+
// qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
420
|
+
// solar_winds_token - string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
|
421
|
+
// new_relic_api_key - string - Applicable only for destination type: new_relic. API key provided by New Relic.
|
422
|
+
// datadog_api_key - string - Applicable only for destination type: datadog. API key provided by Datadog.
|
423
|
+
// sftp_action_send_enabled - boolean - Whether or not sending is enabled for sftp_action logs.
|
424
|
+
// ftp_action_send_enabled - boolean - Whether or not sending is enabled for ftp_action logs.
|
425
|
+
// web_dav_action_send_enabled - boolean - Whether or not sending is enabled for web_dav_action logs.
|
426
|
+
// sync_send_enabled - boolean - Whether or not sending is enabled for sync logs.
|
427
|
+
// outbound_connection_send_enabled - boolean - Whether or not sending is enabled for outbound_connection logs.
|
428
|
+
// automation_send_enabled - boolean - Whether or not sending is enabled for automation logs.
|
429
|
+
// api_request_send_enabled - boolean - Whether or not sending is enabled for api_request logs.
|
430
|
+
// public_hosting_request_send_enabled - boolean - Whether or not sending is enabled for public_hosting_request logs.
|
431
|
+
// email_send_enabled - boolean - Whether or not sending is enabled for email logs.
|
432
|
+
// exavault_api_request_send_enabled - boolean - Whether or not sending is enabled for exavault_api_request logs.
|
433
|
+
// destination_type - string - Destination Type
|
434
|
+
// destination_url - string - Destination Url
|
435
|
+
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
436
|
+
var params,
|
437
|
+
response,
|
438
|
+
_args = arguments;
|
439
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
440
|
+
while (1) switch (_context.prev = _context.next) {
|
441
|
+
case 0:
|
442
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
443
|
+
if (_this.attributes.id) {
|
444
|
+
_context.next = 3;
|
445
|
+
break;
|
446
|
+
}
|
447
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
448
|
+
case 3:
|
449
|
+
if ((0, _utils.isObject)(params)) {
|
450
|
+
_context.next = 5;
|
451
|
+
break;
|
452
|
+
}
|
453
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
454
|
+
case 5:
|
455
|
+
params.id = _this.attributes.id;
|
456
|
+
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
457
|
+
_context.next = 8;
|
458
|
+
break;
|
459
|
+
}
|
460
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
461
|
+
case 8:
|
462
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
463
|
+
_context.next = 10;
|
464
|
+
break;
|
465
|
+
}
|
466
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
467
|
+
case 10:
|
468
|
+
if (!(params.generic_payload_type && !(0, _utils.isString)(params.generic_payload_type))) {
|
469
|
+
_context.next = 12;
|
470
|
+
break;
|
471
|
+
}
|
472
|
+
throw new errors.InvalidParameterError("Bad parameter: generic_payload_type must be of type String, received ".concat((0, _utils.getType)(params.generic_payload_type)));
|
473
|
+
case 12:
|
474
|
+
if (!(params.splunk_token && !(0, _utils.isString)(params.splunk_token))) {
|
475
|
+
_context.next = 14;
|
476
|
+
break;
|
477
|
+
}
|
478
|
+
throw new errors.InvalidParameterError("Bad parameter: splunk_token must be of type String, received ".concat((0, _utils.getType)(params.splunk_token)));
|
479
|
+
case 14:
|
480
|
+
if (!(params.azure_dcr_immutable_id && !(0, _utils.isString)(params.azure_dcr_immutable_id))) {
|
481
|
+
_context.next = 16;
|
482
|
+
break;
|
483
|
+
}
|
484
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_dcr_immutable_id must be of type String, received ".concat((0, _utils.getType)(params.azure_dcr_immutable_id)));
|
485
|
+
case 16:
|
486
|
+
if (!(params.azure_stream_name && !(0, _utils.isString)(params.azure_stream_name))) {
|
487
|
+
_context.next = 18;
|
488
|
+
break;
|
489
|
+
}
|
490
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_stream_name must be of type String, received ".concat((0, _utils.getType)(params.azure_stream_name)));
|
491
|
+
case 18:
|
492
|
+
if (!(params.azure_oauth_client_credentials_tenant_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_tenant_id))) {
|
493
|
+
_context.next = 20;
|
494
|
+
break;
|
495
|
+
}
|
496
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_tenant_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_tenant_id)));
|
497
|
+
case 20:
|
498
|
+
if (!(params.azure_oauth_client_credentials_client_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_id))) {
|
499
|
+
_context.next = 22;
|
500
|
+
break;
|
501
|
+
}
|
502
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_id)));
|
503
|
+
case 22:
|
504
|
+
if (!(params.azure_oauth_client_credentials_client_secret && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_secret))) {
|
505
|
+
_context.next = 24;
|
506
|
+
break;
|
507
|
+
}
|
508
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_secret must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_secret)));
|
509
|
+
case 24:
|
510
|
+
if (!(params.qradar_username && !(0, _utils.isString)(params.qradar_username))) {
|
511
|
+
_context.next = 26;
|
512
|
+
break;
|
513
|
+
}
|
514
|
+
throw new errors.InvalidParameterError("Bad parameter: qradar_username must be of type String, received ".concat((0, _utils.getType)(params.qradar_username)));
|
515
|
+
case 26:
|
516
|
+
if (!(params.qradar_password && !(0, _utils.isString)(params.qradar_password))) {
|
517
|
+
_context.next = 28;
|
518
|
+
break;
|
519
|
+
}
|
520
|
+
throw new errors.InvalidParameterError("Bad parameter: qradar_password must be of type String, received ".concat((0, _utils.getType)(params.qradar_password)));
|
521
|
+
case 28:
|
522
|
+
if (!(params.solar_winds_token && !(0, _utils.isString)(params.solar_winds_token))) {
|
523
|
+
_context.next = 30;
|
524
|
+
break;
|
525
|
+
}
|
526
|
+
throw new errors.InvalidParameterError("Bad parameter: solar_winds_token must be of type String, received ".concat((0, _utils.getType)(params.solar_winds_token)));
|
527
|
+
case 30:
|
528
|
+
if (!(params.new_relic_api_key && !(0, _utils.isString)(params.new_relic_api_key))) {
|
529
|
+
_context.next = 32;
|
530
|
+
break;
|
531
|
+
}
|
532
|
+
throw new errors.InvalidParameterError("Bad parameter: new_relic_api_key must be of type String, received ".concat((0, _utils.getType)(params.new_relic_api_key)));
|
533
|
+
case 32:
|
534
|
+
if (!(params.datadog_api_key && !(0, _utils.isString)(params.datadog_api_key))) {
|
535
|
+
_context.next = 34;
|
536
|
+
break;
|
537
|
+
}
|
538
|
+
throw new errors.InvalidParameterError("Bad parameter: datadog_api_key must be of type String, received ".concat((0, _utils.getType)(params.datadog_api_key)));
|
539
|
+
case 34:
|
540
|
+
if (!(params.destination_type && !(0, _utils.isString)(params.destination_type))) {
|
541
|
+
_context.next = 36;
|
542
|
+
break;
|
543
|
+
}
|
544
|
+
throw new errors.InvalidParameterError("Bad parameter: destination_type must be of type String, received ".concat((0, _utils.getType)(params.destination_type)));
|
545
|
+
case 36:
|
546
|
+
if (!(params.destination_url && !(0, _utils.isString)(params.destination_url))) {
|
547
|
+
_context.next = 38;
|
548
|
+
break;
|
549
|
+
}
|
550
|
+
throw new errors.InvalidParameterError("Bad parameter: destination_url must be of type String, received ".concat((0, _utils.getType)(params.destination_url)));
|
551
|
+
case 38:
|
552
|
+
if (params.id) {
|
553
|
+
_context.next = 44;
|
554
|
+
break;
|
555
|
+
}
|
556
|
+
if (!_this.attributes.id) {
|
557
|
+
_context.next = 43;
|
558
|
+
break;
|
559
|
+
}
|
560
|
+
params.id = _this.id;
|
561
|
+
_context.next = 44;
|
562
|
+
break;
|
563
|
+
case 43:
|
564
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
565
|
+
case 44:
|
566
|
+
_context.next = 46;
|
567
|
+
return _Api.default.sendRequest("/siem_http_destinations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
568
|
+
case 46:
|
569
|
+
response = _context.sent;
|
570
|
+
return _context.abrupt("return", new SiemHttpDestination(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
571
|
+
case 48:
|
572
|
+
case "end":
|
573
|
+
return _context.stop();
|
574
|
+
}
|
575
|
+
}, _callee);
|
576
|
+
})));
|
577
|
+
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
578
|
+
var params,
|
579
|
+
_args2 = arguments;
|
580
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
581
|
+
while (1) switch (_context2.prev = _context2.next) {
|
582
|
+
case 0:
|
583
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
584
|
+
if (_this.attributes.id) {
|
585
|
+
_context2.next = 3;
|
586
|
+
break;
|
587
|
+
}
|
588
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
589
|
+
case 3:
|
590
|
+
if ((0, _utils.isObject)(params)) {
|
591
|
+
_context2.next = 5;
|
592
|
+
break;
|
593
|
+
}
|
594
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
595
|
+
case 5:
|
596
|
+
params.id = _this.attributes.id;
|
597
|
+
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
598
|
+
_context2.next = 8;
|
599
|
+
break;
|
600
|
+
}
|
601
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
602
|
+
case 8:
|
603
|
+
if (params.id) {
|
604
|
+
_context2.next = 14;
|
605
|
+
break;
|
606
|
+
}
|
607
|
+
if (!_this.attributes.id) {
|
608
|
+
_context2.next = 13;
|
609
|
+
break;
|
610
|
+
}
|
611
|
+
params.id = _this.id;
|
612
|
+
_context2.next = 14;
|
613
|
+
break;
|
614
|
+
case 13:
|
615
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
616
|
+
case 14:
|
617
|
+
_context2.next = 16;
|
618
|
+
return _Api.default.sendRequest("/siem_http_destinations/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
619
|
+
case 16:
|
620
|
+
case "end":
|
621
|
+
return _context2.stop();
|
622
|
+
}
|
623
|
+
}, _callee2);
|
624
|
+
})));
|
625
|
+
(0, _defineProperty2.default)(this, "destroy", function () {
|
626
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
627
|
+
return _this.delete(params);
|
628
|
+
});
|
629
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
630
|
+
var _newObject, newObject;
|
631
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
632
|
+
while (1) switch (_context3.prev = _context3.next) {
|
633
|
+
case 0:
|
634
|
+
if (!_this.attributes.id) {
|
635
|
+
_context3.next = 6;
|
636
|
+
break;
|
637
|
+
}
|
638
|
+
_context3.next = 3;
|
639
|
+
return _this.update(_this.attributes);
|
640
|
+
case 3:
|
641
|
+
_newObject = _context3.sent;
|
642
|
+
_this.attributes = _objectSpread({}, _newObject.attributes);
|
643
|
+
return _context3.abrupt("return", true);
|
644
|
+
case 6:
|
645
|
+
_context3.next = 8;
|
646
|
+
return SiemHttpDestination.create(_this.attributes, _this.options);
|
647
|
+
case 8:
|
648
|
+
newObject = _context3.sent;
|
649
|
+
_this.attributes = _objectSpread({}, newObject.attributes);
|
650
|
+
return _context3.abrupt("return", true);
|
651
|
+
case 11:
|
652
|
+
case "end":
|
653
|
+
return _context3.stop();
|
654
|
+
}
|
655
|
+
}, _callee3);
|
656
|
+
})));
|
657
|
+
Object.entries(attributes).forEach(function (_ref4) {
|
658
|
+
var _ref5 = (0, _slicedToArray2.default)(_ref4, 2),
|
659
|
+
key = _ref5[0],
|
660
|
+
value = _ref5[1];
|
661
|
+
var normalizedKey = key.replace('?', '');
|
662
|
+
_this.attributes[normalizedKey] = value;
|
663
|
+
Object.defineProperty(_this, normalizedKey, {
|
664
|
+
value: value,
|
665
|
+
writable: false
|
666
|
+
});
|
667
|
+
});
|
668
|
+
this.options = _objectSpread({}, options);
|
669
|
+
});
|
670
|
+
_SiemHttpDestination = SiemHttpDestination;
|
671
|
+
// Parameters:
|
672
|
+
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
673
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
674
|
+
(0, _defineProperty2.default)(SiemHttpDestination, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
675
|
+
var _response$data;
|
676
|
+
var params,
|
677
|
+
options,
|
678
|
+
response,
|
679
|
+
_args4 = arguments;
|
680
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
681
|
+
while (1) switch (_context4.prev = _context4.next) {
|
682
|
+
case 0:
|
683
|
+
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
684
|
+
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
685
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
686
|
+
_context4.next = 4;
|
687
|
+
break;
|
688
|
+
}
|
689
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
690
|
+
case 4:
|
691
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
692
|
+
_context4.next = 6;
|
693
|
+
break;
|
694
|
+
}
|
695
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
696
|
+
case 6:
|
697
|
+
_context4.next = 8;
|
698
|
+
return _Api.default.sendRequest('/siem_http_destinations', 'GET', params, options);
|
699
|
+
case 8:
|
700
|
+
response = _context4.sent;
|
701
|
+
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
702
|
+
return new _SiemHttpDestination(obj, options);
|
703
|
+
})) || []);
|
704
|
+
case 10:
|
705
|
+
case "end":
|
706
|
+
return _context4.stop();
|
707
|
+
}
|
708
|
+
}, _callee4);
|
709
|
+
})));
|
710
|
+
(0, _defineProperty2.default)(SiemHttpDestination, "all", function () {
|
711
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
712
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
713
|
+
return _SiemHttpDestination.list(params, options);
|
714
|
+
});
|
715
|
+
// Parameters:
|
716
|
+
// id (required) - int64 - Siem Http Destination ID.
|
717
|
+
(0, _defineProperty2.default)(SiemHttpDestination, "find", /*#__PURE__*/function () {
|
718
|
+
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(id) {
|
719
|
+
var params,
|
720
|
+
options,
|
721
|
+
response,
|
722
|
+
_args5 = arguments;
|
723
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
724
|
+
while (1) switch (_context5.prev = _context5.next) {
|
725
|
+
case 0:
|
726
|
+
params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
727
|
+
options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
|
728
|
+
if ((0, _utils.isObject)(params)) {
|
729
|
+
_context5.next = 4;
|
730
|
+
break;
|
731
|
+
}
|
732
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
733
|
+
case 4:
|
734
|
+
params.id = id;
|
735
|
+
if (params.id) {
|
736
|
+
_context5.next = 7;
|
737
|
+
break;
|
738
|
+
}
|
739
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
740
|
+
case 7:
|
741
|
+
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
742
|
+
_context5.next = 9;
|
743
|
+
break;
|
744
|
+
}
|
745
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
746
|
+
case 9:
|
747
|
+
_context5.next = 11;
|
748
|
+
return _Api.default.sendRequest("/siem_http_destinations/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
749
|
+
case 11:
|
750
|
+
response = _context5.sent;
|
751
|
+
return _context5.abrupt("return", new _SiemHttpDestination(response === null || response === void 0 ? void 0 : response.data, options));
|
752
|
+
case 13:
|
753
|
+
case "end":
|
754
|
+
return _context5.stop();
|
755
|
+
}
|
756
|
+
}, _callee5);
|
757
|
+
}));
|
758
|
+
return function (_x) {
|
759
|
+
return _ref7.apply(this, arguments);
|
760
|
+
};
|
761
|
+
}());
|
762
|
+
(0, _defineProperty2.default)(SiemHttpDestination, "get", function (id) {
|
763
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
764
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
765
|
+
return _SiemHttpDestination.find(id, params, options);
|
766
|
+
});
|
767
|
+
// Parameters:
|
768
|
+
// name - string - Name for this Destination
|
769
|
+
// additional_headers - object - Additional HTTP Headers included in calls to the destination URL
|
770
|
+
// sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
|
771
|
+
// generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
772
|
+
// splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
773
|
+
// azure_dcr_immutable_id - string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
|
774
|
+
// azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
775
|
+
// azure_oauth_client_credentials_tenant_id - string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
|
776
|
+
// azure_oauth_client_credentials_client_id - string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
|
777
|
+
// azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
778
|
+
// qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
779
|
+
// qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
780
|
+
// solar_winds_token - string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
|
781
|
+
// new_relic_api_key - string - Applicable only for destination type: new_relic. API key provided by New Relic.
|
782
|
+
// datadog_api_key - string - Applicable only for destination type: datadog. API key provided by Datadog.
|
783
|
+
// sftp_action_send_enabled - boolean - Whether or not sending is enabled for sftp_action logs.
|
784
|
+
// ftp_action_send_enabled - boolean - Whether or not sending is enabled for ftp_action logs.
|
785
|
+
// web_dav_action_send_enabled - boolean - Whether or not sending is enabled for web_dav_action logs.
|
786
|
+
// sync_send_enabled - boolean - Whether or not sending is enabled for sync logs.
|
787
|
+
// outbound_connection_send_enabled - boolean - Whether or not sending is enabled for outbound_connection logs.
|
788
|
+
// automation_send_enabled - boolean - Whether or not sending is enabled for automation logs.
|
789
|
+
// api_request_send_enabled - boolean - Whether or not sending is enabled for api_request logs.
|
790
|
+
// public_hosting_request_send_enabled - boolean - Whether or not sending is enabled for public_hosting_request logs.
|
791
|
+
// email_send_enabled - boolean - Whether or not sending is enabled for email logs.
|
792
|
+
// exavault_api_request_send_enabled - boolean - Whether or not sending is enabled for exavault_api_request logs.
|
793
|
+
// destination_type (required) - string - Destination Type
|
794
|
+
// destination_url (required) - string - Destination Url
|
795
|
+
(0, _defineProperty2.default)(SiemHttpDestination, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
796
|
+
var params,
|
797
|
+
options,
|
798
|
+
response,
|
799
|
+
_args6 = arguments;
|
800
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
801
|
+
while (1) switch (_context6.prev = _context6.next) {
|
802
|
+
case 0:
|
803
|
+
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
804
|
+
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
805
|
+
if (params.destination_type) {
|
806
|
+
_context6.next = 4;
|
807
|
+
break;
|
808
|
+
}
|
809
|
+
throw new errors.MissingParameterError('Parameter missing: destination_type');
|
810
|
+
case 4:
|
811
|
+
if (params.destination_url) {
|
812
|
+
_context6.next = 6;
|
813
|
+
break;
|
814
|
+
}
|
815
|
+
throw new errors.MissingParameterError('Parameter missing: destination_url');
|
816
|
+
case 6:
|
817
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
818
|
+
_context6.next = 8;
|
819
|
+
break;
|
820
|
+
}
|
821
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
822
|
+
case 8:
|
823
|
+
if (!(params.generic_payload_type && !(0, _utils.isString)(params.generic_payload_type))) {
|
824
|
+
_context6.next = 10;
|
825
|
+
break;
|
826
|
+
}
|
827
|
+
throw new errors.InvalidParameterError("Bad parameter: generic_payload_type must be of type String, received ".concat((0, _utils.getType)(params.generic_payload_type)));
|
828
|
+
case 10:
|
829
|
+
if (!(params.splunk_token && !(0, _utils.isString)(params.splunk_token))) {
|
830
|
+
_context6.next = 12;
|
831
|
+
break;
|
832
|
+
}
|
833
|
+
throw new errors.InvalidParameterError("Bad parameter: splunk_token must be of type String, received ".concat((0, _utils.getType)(params.splunk_token)));
|
834
|
+
case 12:
|
835
|
+
if (!(params.azure_dcr_immutable_id && !(0, _utils.isString)(params.azure_dcr_immutable_id))) {
|
836
|
+
_context6.next = 14;
|
837
|
+
break;
|
838
|
+
}
|
839
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_dcr_immutable_id must be of type String, received ".concat((0, _utils.getType)(params.azure_dcr_immutable_id)));
|
840
|
+
case 14:
|
841
|
+
if (!(params.azure_stream_name && !(0, _utils.isString)(params.azure_stream_name))) {
|
842
|
+
_context6.next = 16;
|
843
|
+
break;
|
844
|
+
}
|
845
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_stream_name must be of type String, received ".concat((0, _utils.getType)(params.azure_stream_name)));
|
846
|
+
case 16:
|
847
|
+
if (!(params.azure_oauth_client_credentials_tenant_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_tenant_id))) {
|
848
|
+
_context6.next = 18;
|
849
|
+
break;
|
850
|
+
}
|
851
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_tenant_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_tenant_id)));
|
852
|
+
case 18:
|
853
|
+
if (!(params.azure_oauth_client_credentials_client_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_id))) {
|
854
|
+
_context6.next = 20;
|
855
|
+
break;
|
856
|
+
}
|
857
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_id)));
|
858
|
+
case 20:
|
859
|
+
if (!(params.azure_oauth_client_credentials_client_secret && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_secret))) {
|
860
|
+
_context6.next = 22;
|
861
|
+
break;
|
862
|
+
}
|
863
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_secret must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_secret)));
|
864
|
+
case 22:
|
865
|
+
if (!(params.qradar_username && !(0, _utils.isString)(params.qradar_username))) {
|
866
|
+
_context6.next = 24;
|
867
|
+
break;
|
868
|
+
}
|
869
|
+
throw new errors.InvalidParameterError("Bad parameter: qradar_username must be of type String, received ".concat((0, _utils.getType)(params.qradar_username)));
|
870
|
+
case 24:
|
871
|
+
if (!(params.qradar_password && !(0, _utils.isString)(params.qradar_password))) {
|
872
|
+
_context6.next = 26;
|
873
|
+
break;
|
874
|
+
}
|
875
|
+
throw new errors.InvalidParameterError("Bad parameter: qradar_password must be of type String, received ".concat((0, _utils.getType)(params.qradar_password)));
|
876
|
+
case 26:
|
877
|
+
if (!(params.solar_winds_token && !(0, _utils.isString)(params.solar_winds_token))) {
|
878
|
+
_context6.next = 28;
|
879
|
+
break;
|
880
|
+
}
|
881
|
+
throw new errors.InvalidParameterError("Bad parameter: solar_winds_token must be of type String, received ".concat((0, _utils.getType)(params.solar_winds_token)));
|
882
|
+
case 28:
|
883
|
+
if (!(params.new_relic_api_key && !(0, _utils.isString)(params.new_relic_api_key))) {
|
884
|
+
_context6.next = 30;
|
885
|
+
break;
|
886
|
+
}
|
887
|
+
throw new errors.InvalidParameterError("Bad parameter: new_relic_api_key must be of type String, received ".concat((0, _utils.getType)(params.new_relic_api_key)));
|
888
|
+
case 30:
|
889
|
+
if (!(params.datadog_api_key && !(0, _utils.isString)(params.datadog_api_key))) {
|
890
|
+
_context6.next = 32;
|
891
|
+
break;
|
892
|
+
}
|
893
|
+
throw new errors.InvalidParameterError("Bad parameter: datadog_api_key must be of type String, received ".concat((0, _utils.getType)(params.datadog_api_key)));
|
894
|
+
case 32:
|
895
|
+
if (!(params.destination_type && !(0, _utils.isString)(params.destination_type))) {
|
896
|
+
_context6.next = 34;
|
897
|
+
break;
|
898
|
+
}
|
899
|
+
throw new errors.InvalidParameterError("Bad parameter: destination_type must be of type String, received ".concat((0, _utils.getType)(params.destination_type)));
|
900
|
+
case 34:
|
901
|
+
if (!(params.destination_url && !(0, _utils.isString)(params.destination_url))) {
|
902
|
+
_context6.next = 36;
|
903
|
+
break;
|
904
|
+
}
|
905
|
+
throw new errors.InvalidParameterError("Bad parameter: destination_url must be of type String, received ".concat((0, _utils.getType)(params.destination_url)));
|
906
|
+
case 36:
|
907
|
+
_context6.next = 38;
|
908
|
+
return _Api.default.sendRequest('/siem_http_destinations', 'POST', params, options);
|
909
|
+
case 38:
|
910
|
+
response = _context6.sent;
|
911
|
+
return _context6.abrupt("return", new _SiemHttpDestination(response === null || response === void 0 ? void 0 : response.data, options));
|
912
|
+
case 40:
|
913
|
+
case "end":
|
914
|
+
return _context6.stop();
|
915
|
+
}
|
916
|
+
}, _callee6);
|
917
|
+
})));
|
918
|
+
// Parameters:
|
919
|
+
// siem_http_destination_id - int64 - SIEM HTTP Destination ID
|
920
|
+
// destination_type - string - Destination Type
|
921
|
+
// destination_url - string - Destination Url
|
922
|
+
// name - string - Name for this Destination
|
923
|
+
// additional_headers - object - Additional HTTP Headers included in calls to the destination URL
|
924
|
+
// sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
|
925
|
+
// generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
926
|
+
// splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
927
|
+
// azure_dcr_immutable_id - string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
|
928
|
+
// azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
929
|
+
// azure_oauth_client_credentials_tenant_id - string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
|
930
|
+
// azure_oauth_client_credentials_client_id - string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
|
931
|
+
// azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
932
|
+
// qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
933
|
+
// qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
934
|
+
// solar_winds_token - string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
|
935
|
+
// new_relic_api_key - string - Applicable only for destination type: new_relic. API key provided by New Relic.
|
936
|
+
// datadog_api_key - string - Applicable only for destination type: datadog. API key provided by Datadog.
|
937
|
+
// sftp_action_send_enabled - boolean - Whether or not sending is enabled for sftp_action logs.
|
938
|
+
// ftp_action_send_enabled - boolean - Whether or not sending is enabled for ftp_action logs.
|
939
|
+
// web_dav_action_send_enabled - boolean - Whether or not sending is enabled for web_dav_action logs.
|
940
|
+
// sync_send_enabled - boolean - Whether or not sending is enabled for sync logs.
|
941
|
+
// outbound_connection_send_enabled - boolean - Whether or not sending is enabled for outbound_connection logs.
|
942
|
+
// automation_send_enabled - boolean - Whether or not sending is enabled for automation logs.
|
943
|
+
// api_request_send_enabled - boolean - Whether or not sending is enabled for api_request logs.
|
944
|
+
// public_hosting_request_send_enabled - boolean - Whether or not sending is enabled for public_hosting_request logs.
|
945
|
+
// email_send_enabled - boolean - Whether or not sending is enabled for email logs.
|
946
|
+
// exavault_api_request_send_enabled - boolean - Whether or not sending is enabled for exavault_api_request logs.
|
947
|
+
(0, _defineProperty2.default)(SiemHttpDestination, "sendTestEntry", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
948
|
+
var params,
|
949
|
+
options,
|
950
|
+
_args7 = arguments;
|
951
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
952
|
+
while (1) switch (_context7.prev = _context7.next) {
|
953
|
+
case 0:
|
954
|
+
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
955
|
+
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
956
|
+
if (!(params.siem_http_destination_id && !(0, _utils.isInt)(params.siem_http_destination_id))) {
|
957
|
+
_context7.next = 4;
|
958
|
+
break;
|
959
|
+
}
|
960
|
+
throw new errors.InvalidParameterError("Bad parameter: siem_http_destination_id must be of type Int, received ".concat((0, _utils.getType)(params.siem_http_destination_id)));
|
961
|
+
case 4:
|
962
|
+
if (!(params.destination_type && !(0, _utils.isString)(params.destination_type))) {
|
963
|
+
_context7.next = 6;
|
964
|
+
break;
|
965
|
+
}
|
966
|
+
throw new errors.InvalidParameterError("Bad parameter: destination_type must be of type String, received ".concat((0, _utils.getType)(params.destination_type)));
|
967
|
+
case 6:
|
968
|
+
if (!(params.destination_url && !(0, _utils.isString)(params.destination_url))) {
|
969
|
+
_context7.next = 8;
|
970
|
+
break;
|
971
|
+
}
|
972
|
+
throw new errors.InvalidParameterError("Bad parameter: destination_url must be of type String, received ".concat((0, _utils.getType)(params.destination_url)));
|
973
|
+
case 8:
|
974
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
975
|
+
_context7.next = 10;
|
976
|
+
break;
|
977
|
+
}
|
978
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
979
|
+
case 10:
|
980
|
+
if (!(params.generic_payload_type && !(0, _utils.isString)(params.generic_payload_type))) {
|
981
|
+
_context7.next = 12;
|
982
|
+
break;
|
983
|
+
}
|
984
|
+
throw new errors.InvalidParameterError("Bad parameter: generic_payload_type must be of type String, received ".concat((0, _utils.getType)(params.generic_payload_type)));
|
985
|
+
case 12:
|
986
|
+
if (!(params.splunk_token && !(0, _utils.isString)(params.splunk_token))) {
|
987
|
+
_context7.next = 14;
|
988
|
+
break;
|
989
|
+
}
|
990
|
+
throw new errors.InvalidParameterError("Bad parameter: splunk_token must be of type String, received ".concat((0, _utils.getType)(params.splunk_token)));
|
991
|
+
case 14:
|
992
|
+
if (!(params.azure_dcr_immutable_id && !(0, _utils.isString)(params.azure_dcr_immutable_id))) {
|
993
|
+
_context7.next = 16;
|
994
|
+
break;
|
995
|
+
}
|
996
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_dcr_immutable_id must be of type String, received ".concat((0, _utils.getType)(params.azure_dcr_immutable_id)));
|
997
|
+
case 16:
|
998
|
+
if (!(params.azure_stream_name && !(0, _utils.isString)(params.azure_stream_name))) {
|
999
|
+
_context7.next = 18;
|
1000
|
+
break;
|
1001
|
+
}
|
1002
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_stream_name must be of type String, received ".concat((0, _utils.getType)(params.azure_stream_name)));
|
1003
|
+
case 18:
|
1004
|
+
if (!(params.azure_oauth_client_credentials_tenant_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_tenant_id))) {
|
1005
|
+
_context7.next = 20;
|
1006
|
+
break;
|
1007
|
+
}
|
1008
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_tenant_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_tenant_id)));
|
1009
|
+
case 20:
|
1010
|
+
if (!(params.azure_oauth_client_credentials_client_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_id))) {
|
1011
|
+
_context7.next = 22;
|
1012
|
+
break;
|
1013
|
+
}
|
1014
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_id)));
|
1015
|
+
case 22:
|
1016
|
+
if (!(params.azure_oauth_client_credentials_client_secret && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_secret))) {
|
1017
|
+
_context7.next = 24;
|
1018
|
+
break;
|
1019
|
+
}
|
1020
|
+
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_secret must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_secret)));
|
1021
|
+
case 24:
|
1022
|
+
if (!(params.qradar_username && !(0, _utils.isString)(params.qradar_username))) {
|
1023
|
+
_context7.next = 26;
|
1024
|
+
break;
|
1025
|
+
}
|
1026
|
+
throw new errors.InvalidParameterError("Bad parameter: qradar_username must be of type String, received ".concat((0, _utils.getType)(params.qradar_username)));
|
1027
|
+
case 26:
|
1028
|
+
if (!(params.qradar_password && !(0, _utils.isString)(params.qradar_password))) {
|
1029
|
+
_context7.next = 28;
|
1030
|
+
break;
|
1031
|
+
}
|
1032
|
+
throw new errors.InvalidParameterError("Bad parameter: qradar_password must be of type String, received ".concat((0, _utils.getType)(params.qradar_password)));
|
1033
|
+
case 28:
|
1034
|
+
if (!(params.solar_winds_token && !(0, _utils.isString)(params.solar_winds_token))) {
|
1035
|
+
_context7.next = 30;
|
1036
|
+
break;
|
1037
|
+
}
|
1038
|
+
throw new errors.InvalidParameterError("Bad parameter: solar_winds_token must be of type String, received ".concat((0, _utils.getType)(params.solar_winds_token)));
|
1039
|
+
case 30:
|
1040
|
+
if (!(params.new_relic_api_key && !(0, _utils.isString)(params.new_relic_api_key))) {
|
1041
|
+
_context7.next = 32;
|
1042
|
+
break;
|
1043
|
+
}
|
1044
|
+
throw new errors.InvalidParameterError("Bad parameter: new_relic_api_key must be of type String, received ".concat((0, _utils.getType)(params.new_relic_api_key)));
|
1045
|
+
case 32:
|
1046
|
+
if (!(params.datadog_api_key && !(0, _utils.isString)(params.datadog_api_key))) {
|
1047
|
+
_context7.next = 34;
|
1048
|
+
break;
|
1049
|
+
}
|
1050
|
+
throw new errors.InvalidParameterError("Bad parameter: datadog_api_key must be of type String, received ".concat((0, _utils.getType)(params.datadog_api_key)));
|
1051
|
+
case 34:
|
1052
|
+
_context7.next = 36;
|
1053
|
+
return _Api.default.sendRequest('/siem_http_destinations/send_test_entry', 'POST', params, options);
|
1054
|
+
case 36:
|
1055
|
+
case "end":
|
1056
|
+
return _context7.stop();
|
1057
|
+
}
|
1058
|
+
}, _callee7);
|
1059
|
+
})));
|
1060
|
+
var _default = exports.default = SiemHttpDestination;
|
1061
|
+
module.exports = SiemHttpDestination;
|
1062
|
+
module.exports.default = SiemHttpDestination;
|