scc-firewall-manager-sdk 1.15.294__py3-none-any.whl → 1.15.296__py3-none-any.whl

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.

Potentially problematic release.


This version of scc-firewall-manager-sdk might be problematic. Click here for more details.

@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.15.294"
18
+ __version__ = "1.15.296"
19
19
 
20
20
  # import apis into sdk package
21
21
  from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
@@ -31,6 +31,7 @@ from scc_firewall_manager_sdk.api.connectors_api import ConnectorsApi
31
31
  from scc_firewall_manager_sdk.api.device_health_api import DeviceHealthApi
32
32
  from scc_firewall_manager_sdk.api.device_health_aggregations_api import DeviceHealthAggregationsApi
33
33
  from scc_firewall_manager_sdk.api.device_upgrades_api import DeviceUpgradesApi
34
+ from scc_firewall_manager_sdk.api.events_api import EventsApi
34
35
  from scc_firewall_manager_sdk.api.interface_health_aggregations_api import InterfaceHealthAggregationsApi
35
36
  from scc_firewall_manager_sdk.api.inventory_api import InventoryApi
36
37
  from scc_firewall_manager_sdk.api.msp_device_upgrades_api import MSPDeviceUpgradesApi
@@ -14,6 +14,7 @@ from scc_firewall_manager_sdk.api.connectors_api import ConnectorsApi
14
14
  from scc_firewall_manager_sdk.api.device_health_api import DeviceHealthApi
15
15
  from scc_firewall_manager_sdk.api.device_health_aggregations_api import DeviceHealthAggregationsApi
16
16
  from scc_firewall_manager_sdk.api.device_upgrades_api import DeviceUpgradesApi
17
+ from scc_firewall_manager_sdk.api.events_api import EventsApi
17
18
  from scc_firewall_manager_sdk.api.interface_health_aggregations_api import InterfaceHealthAggregationsApi
18
19
  from scc_firewall_manager_sdk.api.inventory_api import InventoryApi
19
20
  from scc_firewall_manager_sdk.api.msp_device_upgrades_api import MSPDeviceUpgradesApi
@@ -21,7 +21,6 @@ from pydantic import Field, StrictStr
21
21
  from typing import List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from scc_firewall_manager_sdk.models.cdo_transaction import CdoTransaction
24
- from scc_firewall_manager_sdk.models.page import Page
25
24
  from scc_firewall_manager_sdk.models.sdc import Sdc
26
25
  from scc_firewall_manager_sdk.models.sdc_create_input import SdcCreateInput
27
26
  from scc_firewall_manager_sdk.models.sdc_page import SdcPage
@@ -1195,324 +1194,6 @@ class ConnectorsApi:
1195
1194
 
1196
1195
 
1197
1196
 
1198
- @validate_call
1199
- def get_search_reports(
1200
- self,
1201
- limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
1202
- offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
1203
- q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
1204
- sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
1205
- _request_timeout: Union[
1206
- None,
1207
- Annotated[StrictFloat, Field(gt=0)],
1208
- Tuple[
1209
- Annotated[StrictFloat, Field(gt=0)],
1210
- Annotated[StrictFloat, Field(gt=0)]
1211
- ]
1212
- ] = None,
1213
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1214
- _content_type: Optional[StrictStr] = None,
1215
- _headers: Optional[Dict[StrictStr, Any]] = None,
1216
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1217
- ) -> Page:
1218
- """Get event search reports
1219
-
1220
- Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
1221
-
1222
- :param limit: The number of results to retrieve.
1223
- :type limit: str
1224
- :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
1225
- :type offset: str
1226
- :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
1227
- :type q: str
1228
- :param sort: The fields to sort results by.
1229
- :type sort: List[str]
1230
- :param _request_timeout: timeout setting for this request. If one
1231
- number provided, it will be total request
1232
- timeout. It can also be a pair (tuple) of
1233
- (connection, read) timeouts.
1234
- :type _request_timeout: int, tuple(int, int), optional
1235
- :param _request_auth: set to override the auth_settings for an a single
1236
- request; this effectively ignores the
1237
- authentication in the spec for a single request.
1238
- :type _request_auth: dict, optional
1239
- :param _content_type: force content-type for the request.
1240
- :type _content_type: str, Optional
1241
- :param _headers: set to override the headers for a single
1242
- request; this effectively ignores the headers
1243
- in the spec for a single request.
1244
- :type _headers: dict, optional
1245
- :param _host_index: set to override the host_index for a single
1246
- request; this effectively ignores the host_index
1247
- in the spec for a single request.
1248
- :type _host_index: int, optional
1249
- :return: Returns the result object.
1250
- """ # noqa: E501
1251
-
1252
- _param = self._get_search_reports_serialize(
1253
- limit=limit,
1254
- offset=offset,
1255
- q=q,
1256
- sort=sort,
1257
- _request_auth=_request_auth,
1258
- _content_type=_content_type,
1259
- _headers=_headers,
1260
- _host_index=_host_index
1261
- )
1262
-
1263
- _response_types_map: Dict[str, Optional[str]] = {
1264
- '200': "Page",
1265
- '401': "AuthenticationError",
1266
- '500': "CommonApiError",
1267
- }
1268
- response_data = self.api_client.call_api(
1269
- *_param,
1270
- _request_timeout=_request_timeout
1271
- )
1272
- response_data.read()
1273
- return self.api_client.response_deserialize(
1274
- response_data=response_data,
1275
- response_types_map=_response_types_map,
1276
- ).data
1277
-
1278
-
1279
- @validate_call
1280
- def get_search_reports_with_http_info(
1281
- self,
1282
- limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
1283
- offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
1284
- q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
1285
- sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
1286
- _request_timeout: Union[
1287
- None,
1288
- Annotated[StrictFloat, Field(gt=0)],
1289
- Tuple[
1290
- Annotated[StrictFloat, Field(gt=0)],
1291
- Annotated[StrictFloat, Field(gt=0)]
1292
- ]
1293
- ] = None,
1294
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1295
- _content_type: Optional[StrictStr] = None,
1296
- _headers: Optional[Dict[StrictStr, Any]] = None,
1297
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1298
- ) -> ApiResponse[Page]:
1299
- """Get event search reports
1300
-
1301
- Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
1302
-
1303
- :param limit: The number of results to retrieve.
1304
- :type limit: str
1305
- :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
1306
- :type offset: str
1307
- :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
1308
- :type q: str
1309
- :param sort: The fields to sort results by.
1310
- :type sort: List[str]
1311
- :param _request_timeout: timeout setting for this request. If one
1312
- number provided, it will be total request
1313
- timeout. It can also be a pair (tuple) of
1314
- (connection, read) timeouts.
1315
- :type _request_timeout: int, tuple(int, int), optional
1316
- :param _request_auth: set to override the auth_settings for an a single
1317
- request; this effectively ignores the
1318
- authentication in the spec for a single request.
1319
- :type _request_auth: dict, optional
1320
- :param _content_type: force content-type for the request.
1321
- :type _content_type: str, Optional
1322
- :param _headers: set to override the headers for a single
1323
- request; this effectively ignores the headers
1324
- in the spec for a single request.
1325
- :type _headers: dict, optional
1326
- :param _host_index: set to override the host_index for a single
1327
- request; this effectively ignores the host_index
1328
- in the spec for a single request.
1329
- :type _host_index: int, optional
1330
- :return: Returns the result object.
1331
- """ # noqa: E501
1332
-
1333
- _param = self._get_search_reports_serialize(
1334
- limit=limit,
1335
- offset=offset,
1336
- q=q,
1337
- sort=sort,
1338
- _request_auth=_request_auth,
1339
- _content_type=_content_type,
1340
- _headers=_headers,
1341
- _host_index=_host_index
1342
- )
1343
-
1344
- _response_types_map: Dict[str, Optional[str]] = {
1345
- '200': "Page",
1346
- '401': "AuthenticationError",
1347
- '500': "CommonApiError",
1348
- }
1349
- response_data = self.api_client.call_api(
1350
- *_param,
1351
- _request_timeout=_request_timeout
1352
- )
1353
- response_data.read()
1354
- return self.api_client.response_deserialize(
1355
- response_data=response_data,
1356
- response_types_map=_response_types_map,
1357
- )
1358
-
1359
-
1360
- @validate_call
1361
- def get_search_reports_without_preload_content(
1362
- self,
1363
- limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
1364
- offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
1365
- q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
1366
- sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
1367
- _request_timeout: Union[
1368
- None,
1369
- Annotated[StrictFloat, Field(gt=0)],
1370
- Tuple[
1371
- Annotated[StrictFloat, Field(gt=0)],
1372
- Annotated[StrictFloat, Field(gt=0)]
1373
- ]
1374
- ] = None,
1375
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1376
- _content_type: Optional[StrictStr] = None,
1377
- _headers: Optional[Dict[StrictStr, Any]] = None,
1378
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1379
- ) -> RESTResponseType:
1380
- """Get event search reports
1381
-
1382
- Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
1383
-
1384
- :param limit: The number of results to retrieve.
1385
- :type limit: str
1386
- :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
1387
- :type offset: str
1388
- :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
1389
- :type q: str
1390
- :param sort: The fields to sort results by.
1391
- :type sort: List[str]
1392
- :param _request_timeout: timeout setting for this request. If one
1393
- number provided, it will be total request
1394
- timeout. It can also be a pair (tuple) of
1395
- (connection, read) timeouts.
1396
- :type _request_timeout: int, tuple(int, int), optional
1397
- :param _request_auth: set to override the auth_settings for an a single
1398
- request; this effectively ignores the
1399
- authentication in the spec for a single request.
1400
- :type _request_auth: dict, optional
1401
- :param _content_type: force content-type for the request.
1402
- :type _content_type: str, Optional
1403
- :param _headers: set to override the headers for a single
1404
- request; this effectively ignores the headers
1405
- in the spec for a single request.
1406
- :type _headers: dict, optional
1407
- :param _host_index: set to override the host_index for a single
1408
- request; this effectively ignores the host_index
1409
- in the spec for a single request.
1410
- :type _host_index: int, optional
1411
- :return: Returns the result object.
1412
- """ # noqa: E501
1413
-
1414
- _param = self._get_search_reports_serialize(
1415
- limit=limit,
1416
- offset=offset,
1417
- q=q,
1418
- sort=sort,
1419
- _request_auth=_request_auth,
1420
- _content_type=_content_type,
1421
- _headers=_headers,
1422
- _host_index=_host_index
1423
- )
1424
-
1425
- _response_types_map: Dict[str, Optional[str]] = {
1426
- '200': "Page",
1427
- '401': "AuthenticationError",
1428
- '500': "CommonApiError",
1429
- }
1430
- response_data = self.api_client.call_api(
1431
- *_param,
1432
- _request_timeout=_request_timeout
1433
- )
1434
- return response_data.response
1435
-
1436
-
1437
- def _get_search_reports_serialize(
1438
- self,
1439
- limit,
1440
- offset,
1441
- q,
1442
- sort,
1443
- _request_auth,
1444
- _content_type,
1445
- _headers,
1446
- _host_index,
1447
- ) -> RequestSerialized:
1448
-
1449
- _host = None
1450
-
1451
- _collection_formats: Dict[str, str] = {
1452
- 'sort': 'multi',
1453
- }
1454
-
1455
- _path_params: Dict[str, str] = {}
1456
- _query_params: List[Tuple[str, str]] = []
1457
- _header_params: Dict[str, Optional[str]] = _headers or {}
1458
- _form_params: List[Tuple[str, str]] = []
1459
- _files: Dict[str, str] = {}
1460
- _body_params: Optional[bytes] = None
1461
-
1462
- # process the path parameters
1463
- # process the query parameters
1464
- if limit is not None:
1465
-
1466
- _query_params.append(('limit', limit))
1467
-
1468
- if offset is not None:
1469
-
1470
- _query_params.append(('offset', offset))
1471
-
1472
- if q is not None:
1473
-
1474
- _query_params.append(('q', q))
1475
-
1476
- if sort is not None:
1477
-
1478
- _query_params.append(('sort', sort))
1479
-
1480
- # process the header parameters
1481
- # process the form parameters
1482
- # process the body parameter
1483
-
1484
-
1485
- # set the HTTP header `Accept`
1486
- _header_params['Accept'] = self.api_client.select_header_accept(
1487
- [
1488
- 'application/json'
1489
- ]
1490
- )
1491
-
1492
-
1493
- # authentication setting
1494
- _auth_settings: List[str] = [
1495
- 'bearerAuth'
1496
- ]
1497
-
1498
- return self.api_client.param_serialize(
1499
- method='GET',
1500
- resource_path='/v1/events/reports',
1501
- path_params=_path_params,
1502
- query_params=_query_params,
1503
- header_params=_header_params,
1504
- body=_body_params,
1505
- post_params=_form_params,
1506
- files=_files,
1507
- auth_settings=_auth_settings,
1508
- collection_formats=_collection_formats,
1509
- _host=_host,
1510
- _request_auth=_request_auth
1511
- )
1512
-
1513
-
1514
-
1515
-
1516
1197
  @validate_call
1517
1198
  def modify_sdc(
1518
1199
  self,
@@ -0,0 +1,358 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Cisco Security Cloud Control Firewall Manager API
5
+
6
+ Use the documentation to explore the endpoints Security Cloud Control Firewall Manager has to offer
7
+
8
+ The version of the OpenAPI document: 1.15.0
9
+ Contact: cdo.tac@cisco.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from scc_firewall_manager_sdk.models.page import Page
24
+
25
+ from scc_firewall_manager_sdk.api_client import ApiClient, RequestSerialized
26
+ from scc_firewall_manager_sdk.api_response import ApiResponse
27
+ from scc_firewall_manager_sdk.rest import RESTResponseType
28
+
29
+
30
+ class EventsApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ def get_search_reports(
45
+ self,
46
+ limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
47
+ offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
48
+ q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
49
+ sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> Page:
63
+ """Get event search reports
64
+
65
+ Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
66
+
67
+ :param limit: The number of results to retrieve.
68
+ :type limit: str
69
+ :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
70
+ :type offset: str
71
+ :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
72
+ :type q: str
73
+ :param sort: The fields to sort results by.
74
+ :type sort: List[str]
75
+ :param _request_timeout: timeout setting for this request. If one
76
+ number provided, it will be total request
77
+ timeout. It can also be a pair (tuple) of
78
+ (connection, read) timeouts.
79
+ :type _request_timeout: int, tuple(int, int), optional
80
+ :param _request_auth: set to override the auth_settings for an a single
81
+ request; this effectively ignores the
82
+ authentication in the spec for a single request.
83
+ :type _request_auth: dict, optional
84
+ :param _content_type: force content-type for the request.
85
+ :type _content_type: str, Optional
86
+ :param _headers: set to override the headers for a single
87
+ request; this effectively ignores the headers
88
+ in the spec for a single request.
89
+ :type _headers: dict, optional
90
+ :param _host_index: set to override the host_index for a single
91
+ request; this effectively ignores the host_index
92
+ in the spec for a single request.
93
+ :type _host_index: int, optional
94
+ :return: Returns the result object.
95
+ """ # noqa: E501
96
+
97
+ _param = self._get_search_reports_serialize(
98
+ limit=limit,
99
+ offset=offset,
100
+ q=q,
101
+ sort=sort,
102
+ _request_auth=_request_auth,
103
+ _content_type=_content_type,
104
+ _headers=_headers,
105
+ _host_index=_host_index
106
+ )
107
+
108
+ _response_types_map: Dict[str, Optional[str]] = {
109
+ '200': "Page",
110
+ '401': "AuthenticationError",
111
+ '500': "CommonApiError",
112
+ }
113
+ response_data = self.api_client.call_api(
114
+ *_param,
115
+ _request_timeout=_request_timeout
116
+ )
117
+ response_data.read()
118
+ return self.api_client.response_deserialize(
119
+ response_data=response_data,
120
+ response_types_map=_response_types_map,
121
+ ).data
122
+
123
+
124
+ @validate_call
125
+ def get_search_reports_with_http_info(
126
+ self,
127
+ limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
128
+ offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
129
+ q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
130
+ sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
131
+ _request_timeout: Union[
132
+ None,
133
+ Annotated[StrictFloat, Field(gt=0)],
134
+ Tuple[
135
+ Annotated[StrictFloat, Field(gt=0)],
136
+ Annotated[StrictFloat, Field(gt=0)]
137
+ ]
138
+ ] = None,
139
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
140
+ _content_type: Optional[StrictStr] = None,
141
+ _headers: Optional[Dict[StrictStr, Any]] = None,
142
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
143
+ ) -> ApiResponse[Page]:
144
+ """Get event search reports
145
+
146
+ Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
147
+
148
+ :param limit: The number of results to retrieve.
149
+ :type limit: str
150
+ :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
151
+ :type offset: str
152
+ :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
153
+ :type q: str
154
+ :param sort: The fields to sort results by.
155
+ :type sort: List[str]
156
+ :param _request_timeout: timeout setting for this request. If one
157
+ number provided, it will be total request
158
+ timeout. It can also be a pair (tuple) of
159
+ (connection, read) timeouts.
160
+ :type _request_timeout: int, tuple(int, int), optional
161
+ :param _request_auth: set to override the auth_settings for an a single
162
+ request; this effectively ignores the
163
+ authentication in the spec for a single request.
164
+ :type _request_auth: dict, optional
165
+ :param _content_type: force content-type for the request.
166
+ :type _content_type: str, Optional
167
+ :param _headers: set to override the headers for a single
168
+ request; this effectively ignores the headers
169
+ in the spec for a single request.
170
+ :type _headers: dict, optional
171
+ :param _host_index: set to override the host_index for a single
172
+ request; this effectively ignores the host_index
173
+ in the spec for a single request.
174
+ :type _host_index: int, optional
175
+ :return: Returns the result object.
176
+ """ # noqa: E501
177
+
178
+ _param = self._get_search_reports_serialize(
179
+ limit=limit,
180
+ offset=offset,
181
+ q=q,
182
+ sort=sort,
183
+ _request_auth=_request_auth,
184
+ _content_type=_content_type,
185
+ _headers=_headers,
186
+ _host_index=_host_index
187
+ )
188
+
189
+ _response_types_map: Dict[str, Optional[str]] = {
190
+ '200': "Page",
191
+ '401': "AuthenticationError",
192
+ '500': "CommonApiError",
193
+ }
194
+ response_data = self.api_client.call_api(
195
+ *_param,
196
+ _request_timeout=_request_timeout
197
+ )
198
+ response_data.read()
199
+ return self.api_client.response_deserialize(
200
+ response_data=response_data,
201
+ response_types_map=_response_types_map,
202
+ )
203
+
204
+
205
+ @validate_call
206
+ def get_search_reports_without_preload_content(
207
+ self,
208
+ limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
209
+ offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
210
+ q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
211
+ sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
212
+ _request_timeout: Union[
213
+ None,
214
+ Annotated[StrictFloat, Field(gt=0)],
215
+ Tuple[
216
+ Annotated[StrictFloat, Field(gt=0)],
217
+ Annotated[StrictFloat, Field(gt=0)]
218
+ ]
219
+ ] = None,
220
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
221
+ _content_type: Optional[StrictStr] = None,
222
+ _headers: Optional[Dict[StrictStr, Any]] = None,
223
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
224
+ ) -> RESTResponseType:
225
+ """Get event search reports
226
+
227
+ Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
228
+
229
+ :param limit: The number of results to retrieve.
230
+ :type limit: str
231
+ :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
232
+ :type offset: str
233
+ :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
234
+ :type q: str
235
+ :param sort: The fields to sort results by.
236
+ :type sort: List[str]
237
+ :param _request_timeout: timeout setting for this request. If one
238
+ number provided, it will be total request
239
+ timeout. It can also be a pair (tuple) of
240
+ (connection, read) timeouts.
241
+ :type _request_timeout: int, tuple(int, int), optional
242
+ :param _request_auth: set to override the auth_settings for an a single
243
+ request; this effectively ignores the
244
+ authentication in the spec for a single request.
245
+ :type _request_auth: dict, optional
246
+ :param _content_type: force content-type for the request.
247
+ :type _content_type: str, Optional
248
+ :param _headers: set to override the headers for a single
249
+ request; this effectively ignores the headers
250
+ in the spec for a single request.
251
+ :type _headers: dict, optional
252
+ :param _host_index: set to override the host_index for a single
253
+ request; this effectively ignores the host_index
254
+ in the spec for a single request.
255
+ :type _host_index: int, optional
256
+ :return: Returns the result object.
257
+ """ # noqa: E501
258
+
259
+ _param = self._get_search_reports_serialize(
260
+ limit=limit,
261
+ offset=offset,
262
+ q=q,
263
+ sort=sort,
264
+ _request_auth=_request_auth,
265
+ _content_type=_content_type,
266
+ _headers=_headers,
267
+ _host_index=_host_index
268
+ )
269
+
270
+ _response_types_map: Dict[str, Optional[str]] = {
271
+ '200': "Page",
272
+ '401': "AuthenticationError",
273
+ '500': "CommonApiError",
274
+ }
275
+ response_data = self.api_client.call_api(
276
+ *_param,
277
+ _request_timeout=_request_timeout
278
+ )
279
+ return response_data.response
280
+
281
+
282
+ def _get_search_reports_serialize(
283
+ self,
284
+ limit,
285
+ offset,
286
+ q,
287
+ sort,
288
+ _request_auth,
289
+ _content_type,
290
+ _headers,
291
+ _host_index,
292
+ ) -> RequestSerialized:
293
+
294
+ _host = None
295
+
296
+ _collection_formats: Dict[str, str] = {
297
+ 'sort': 'multi',
298
+ }
299
+
300
+ _path_params: Dict[str, str] = {}
301
+ _query_params: List[Tuple[str, str]] = []
302
+ _header_params: Dict[str, Optional[str]] = _headers or {}
303
+ _form_params: List[Tuple[str, str]] = []
304
+ _files: Dict[str, str] = {}
305
+ _body_params: Optional[bytes] = None
306
+
307
+ # process the path parameters
308
+ # process the query parameters
309
+ if limit is not None:
310
+
311
+ _query_params.append(('limit', limit))
312
+
313
+ if offset is not None:
314
+
315
+ _query_params.append(('offset', offset))
316
+
317
+ if q is not None:
318
+
319
+ _query_params.append(('q', q))
320
+
321
+ if sort is not None:
322
+
323
+ _query_params.append(('sort', sort))
324
+
325
+ # process the header parameters
326
+ # process the form parameters
327
+ # process the body parameter
328
+
329
+
330
+ # set the HTTP header `Accept`
331
+ _header_params['Accept'] = self.api_client.select_header_accept(
332
+ [
333
+ 'application/json'
334
+ ]
335
+ )
336
+
337
+
338
+ # authentication setting
339
+ _auth_settings: List[str] = [
340
+ 'bearerAuth'
341
+ ]
342
+
343
+ return self.api_client.param_serialize(
344
+ method='GET',
345
+ resource_path='/v1/events/reports',
346
+ path_params=_path_params,
347
+ query_params=_query_params,
348
+ header_params=_header_params,
349
+ body=_body_params,
350
+ post_params=_form_params,
351
+ files=_files,
352
+ auth_settings=_auth_settings,
353
+ collection_formats=_collection_formats,
354
+ _host=_host,
355
+ _request_auth=_request_auth
356
+ )
357
+
358
+
@@ -88,7 +88,7 @@ class ApiClient:
88
88
  self.default_headers[header_name] = header_value
89
89
  self.cookie = cookie
90
90
  # Set default User-Agent.
91
- self.user_agent = 'OpenAPI-Generator/1.15.294/python'
91
+ self.user_agent = 'OpenAPI-Generator/1.15.296/python'
92
92
  self.client_side_validation = configuration.client_side_validation
93
93
 
94
94
  def __enter__(self):
@@ -380,7 +380,7 @@ class Configuration:
380
380
  "OS: {env}\n"\
381
381
  "Python Version: {pyversion}\n"\
382
382
  "Version of the API: 1.15.0\n"\
383
- "SDK Package Version: 1.15.294".\
383
+ "SDK Package Version: 1.15.296".\
384
384
  format(env=sys.platform, pyversion=sys.version)
385
385
 
386
386
  def get_host_settings(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scc-firewall-manager-sdk
3
- Version: 1.15.294
3
+ Version: 1.15.296
4
4
  Summary: Cisco Security Cloud Control Firewall Manager API
5
5
  Home-page:
6
6
  Author: Cisco Security Cloud Control TAC
@@ -1,11 +1,11 @@
1
- scc_firewall_manager_sdk/__init__.py,sha256=LRU0dx9T-jBOoMzGEKbTfx6OpeDKk2_WpzcHZ-fuq3Q,23529
2
- scc_firewall_manager_sdk/api_client.py,sha256=Y_Vj-Vqc5nEhdheuMuefGUULOTkS-COsdEEBMiIqh6c,25921
1
+ scc_firewall_manager_sdk/__init__.py,sha256=FVK-wEFidGUGnrWa0mitY_KIvqvwAIXNmKp0EnK7jfU,23591
2
+ scc_firewall_manager_sdk/api_client.py,sha256=NaXDeGQwwt_Nr5F5XjraZ7e3HX-Hb6PbUOJpL8Igfes,25921
3
3
  scc_firewall_manager_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- scc_firewall_manager_sdk/configuration.py,sha256=ZcwfnBoRjqFO2HyWj0AaSmLlutaVy3qBFX0mrJrSwsw,15993
4
+ scc_firewall_manager_sdk/configuration.py,sha256=vkw1oQaPBP2j9KZ3OeaSWJOFZVVQTMWLduVC2rRvFpk,15993
5
5
  scc_firewall_manager_sdk/exceptions.py,sha256=u5-7l5MRjP-aS2pNudBzqSw9OI4xVsIvUjw4WCA8LEk,6039
6
6
  scc_firewall_manager_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  scc_firewall_manager_sdk/rest.py,sha256=cSeilvAB5y-V_10IdXcZ0kOyv5dYW8jeWVhrD6kUDa0,9309
8
- scc_firewall_manager_sdk/api/__init__.py,sha256=FXWtBN6lVNacqLSZFbx7giGlzWcAxyvpJAfEQQp7y_Y,2087
8
+ scc_firewall_manager_sdk/api/__init__.py,sha256=4QyrZUVjEAjIDVynI9stPsUyDC8aFw3czPVjv0lRKdM,2149
9
9
  scc_firewall_manager_sdk/api/ai_assistant_api.py,sha256=k4PXtChJD_MzAc5cn_EYtC1Q4YCCknDPTYhLlh4tFhA,60316
10
10
  scc_firewall_manager_sdk/api/asa_access_groups_api.py,sha256=n29L7dlwRpP8MsBlgMn9pSwV-uCXf5QHf18qiEXU4xY,60430
11
11
  scc_firewall_manager_sdk/api/asa_access_rules_api.py,sha256=zStpYuIiNHyTaIINPqu5qSSWp3-wGo9SmXodwEJEJhI,60377
@@ -15,10 +15,11 @@ scc_firewall_manager_sdk/api/change_requests_api.py,sha256=zCdwKO8E5Jv_4cHGp8PT3
15
15
  scc_firewall_manager_sdk/api/changelogs_api.py,sha256=6C4ugk1SwLgJfCM-q-_H2gnNoWB7jYqhUhpIDSUbY-4,30875
16
16
  scc_firewall_manager_sdk/api/command_line_interface_api.py,sha256=_sUPKdTkBkXNbk5m9iGH1t-eYJbFdzDLjLAuNMWJqYc,110872
17
17
  scc_firewall_manager_sdk/api/commands_api.py,sha256=U1cDPCmUAgOPnCOC8KcbcQpLGSwgOBBgHUcKH6JmWK4,33891
18
- scc_firewall_manager_sdk/api/connectors_api.py,sha256=iw3uk0iMybwoR4DggTmqD-XukiXVeWfYSEmcTdwsfzU,74066
18
+ scc_firewall_manager_sdk/api/connectors_api.py,sha256=lw4asxJMtyHTm3sxM6Z7S1O2tbr4ZtbjVrZIalmYagI,59889
19
19
  scc_firewall_manager_sdk/api/device_health_aggregations_api.py,sha256=r4YyX6_HDWriUOh9dRFmjNzY08rozUatGOjpFzhkyJ4,29025
20
20
  scc_firewall_manager_sdk/api/device_health_api.py,sha256=UoxgUo10Am1kga8U0Kxhb6DDw6d7wpXxzGopsvUJ1JI,62283
21
21
  scc_firewall_manager_sdk/api/device_upgrades_api.py,sha256=nEtjWfCJ9eDVONZ0TLUApEcanm82CwcXTuax7kUVZxs,138514
22
+ scc_firewall_manager_sdk/api/events_api.py,sha256=jYkPjWxnNwNYOk1P7kMBaSp2gpe_lI8WodaxIfUKdQM,15399
22
23
  scc_firewall_manager_sdk/api/interface_health_aggregations_api.py,sha256=2fxsrkfFpI2zSx3WnviJnP0uuS2XBT8YE_sZ0FcXjk0,40990
23
24
  scc_firewall_manager_sdk/api/inventory_api.py,sha256=EJqDZzqBE4w_klxuo84rSYmrmbinGSJEbSbU6Wqs4Gg,444995
24
25
  scc_firewall_manager_sdk/api/meta_api.py,sha256=0T4mIpkOc0FyDIvEN5qhRQbKN4CzOM00_sRVY2oG59U,29963
@@ -282,7 +283,7 @@ scc_firewall_manager_sdk/models/vlan_interface_create_input.py,sha256=AKUqPJw5ku
282
283
  scc_firewall_manager_sdk/models/vlan_interface_patch_input.py,sha256=srEFTyQykscNrWsbp8KGEzbmHC07_AU3DXjJ-7Be4zc,6054
283
284
  scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=HAgBTdocZeHGDZP_-9NyRtzP9E7BReGtiOmn4S3J-_g,5326
284
285
  scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=f9Z62yGFvz4QAQ07Z4bjfHLw2bRg46ccwoLuQ8q30TE,4808
285
- scc_firewall_manager_sdk-1.15.294.dist-info/METADATA,sha256=4fTO1kBiyXoHAjcUBPk_j9nCHHVjauuSCDmPyh-wq9c,596
286
- scc_firewall_manager_sdk-1.15.294.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
287
- scc_firewall_manager_sdk-1.15.294.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
288
- scc_firewall_manager_sdk-1.15.294.dist-info/RECORD,,
286
+ scc_firewall_manager_sdk-1.15.296.dist-info/METADATA,sha256=WWKeuu7pt3FLwGKxqqDSGLv5nCuJBDbfQnZ95v2j61s,596
287
+ scc_firewall_manager_sdk-1.15.296.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
288
+ scc_firewall_manager_sdk-1.15.296.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
289
+ scc_firewall_manager_sdk-1.15.296.dist-info/RECORD,,