scc-firewall-manager-sdk 1.15.238__py3-none-any.whl → 1.15.239__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.
- scc_firewall_manager_sdk/__init__.py +2 -1
- scc_firewall_manager_sdk/api/connectors_api.py +284 -0
- scc_firewall_manager_sdk/api_client.py +1 -1
- scc_firewall_manager_sdk/configuration.py +1 -1
- scc_firewall_manager_sdk/models/__init__.py +1 -0
- scc_firewall_manager_sdk/models/page.py +94 -0
- {scc_firewall_manager_sdk-1.15.238.dist-info → scc_firewall_manager_sdk-1.15.239.dist-info}/METADATA +1 -1
- {scc_firewall_manager_sdk-1.15.238.dist-info → scc_firewall_manager_sdk-1.15.239.dist-info}/RECORD +10 -9
- {scc_firewall_manager_sdk-1.15.238.dist-info → scc_firewall_manager_sdk-1.15.239.dist-info}/WHEEL +0 -0
- {scc_firewall_manager_sdk-1.15.238.dist-info → scc_firewall_manager_sdk-1.15.239.dist-info}/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "1.15.
|
|
18
|
+
__version__ = "1.15.239"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
|
|
@@ -240,6 +240,7 @@ from scc_firewall_manager_sdk.models.object_content import ObjectContent
|
|
|
240
240
|
from scc_firewall_manager_sdk.models.object_response import ObjectResponse
|
|
241
241
|
from scc_firewall_manager_sdk.models.on_prem_fmc_info import OnPremFmcInfo
|
|
242
242
|
from scc_firewall_manager_sdk.models.override import Override
|
|
243
|
+
from scc_firewall_manager_sdk.models.page import Page
|
|
243
244
|
from scc_firewall_manager_sdk.models.physical_interface_patch_input import PhysicalInterfacePatchInput
|
|
244
245
|
from scc_firewall_manager_sdk.models.policy import Policy
|
|
245
246
|
from scc_firewall_manager_sdk.models.ports_value import PortsValue
|
|
@@ -21,6 +21,7 @@ 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
|
|
24
25
|
from scc_firewall_manager_sdk.models.sdc import Sdc
|
|
25
26
|
from scc_firewall_manager_sdk.models.sdc_create_input import SdcCreateInput
|
|
26
27
|
from scc_firewall_manager_sdk.models.sdc_page import SdcPage
|
|
@@ -1194,6 +1195,289 @@ class ConnectorsApi:
|
|
|
1194
1195
|
|
|
1195
1196
|
|
|
1196
1197
|
|
|
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
|
+
_request_timeout: Union[
|
|
1204
|
+
None,
|
|
1205
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1206
|
+
Tuple[
|
|
1207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1208
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1209
|
+
]
|
|
1210
|
+
] = None,
|
|
1211
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1212
|
+
_content_type: Optional[StrictStr] = None,
|
|
1213
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1214
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1215
|
+
) -> Page:
|
|
1216
|
+
"""Get event search reports
|
|
1217
|
+
|
|
1218
|
+
Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
|
|
1219
|
+
|
|
1220
|
+
:param limit: The number of results to retrieve.
|
|
1221
|
+
:type limit: str
|
|
1222
|
+
: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.
|
|
1223
|
+
:type offset: str
|
|
1224
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1225
|
+
number provided, it will be total request
|
|
1226
|
+
timeout. It can also be a pair (tuple) of
|
|
1227
|
+
(connection, read) timeouts.
|
|
1228
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1229
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1230
|
+
request; this effectively ignores the
|
|
1231
|
+
authentication in the spec for a single request.
|
|
1232
|
+
:type _request_auth: dict, optional
|
|
1233
|
+
:param _content_type: force content-type for the request.
|
|
1234
|
+
:type _content_type: str, Optional
|
|
1235
|
+
:param _headers: set to override the headers for a single
|
|
1236
|
+
request; this effectively ignores the headers
|
|
1237
|
+
in the spec for a single request.
|
|
1238
|
+
:type _headers: dict, optional
|
|
1239
|
+
:param _host_index: set to override the host_index for a single
|
|
1240
|
+
request; this effectively ignores the host_index
|
|
1241
|
+
in the spec for a single request.
|
|
1242
|
+
:type _host_index: int, optional
|
|
1243
|
+
:return: Returns the result object.
|
|
1244
|
+
""" # noqa: E501
|
|
1245
|
+
|
|
1246
|
+
_param = self._get_search_reports_serialize(
|
|
1247
|
+
limit=limit,
|
|
1248
|
+
offset=offset,
|
|
1249
|
+
_request_auth=_request_auth,
|
|
1250
|
+
_content_type=_content_type,
|
|
1251
|
+
_headers=_headers,
|
|
1252
|
+
_host_index=_host_index
|
|
1253
|
+
)
|
|
1254
|
+
|
|
1255
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1256
|
+
'200': "Page",
|
|
1257
|
+
'401': "AuthenticationError",
|
|
1258
|
+
'500': "CommonApiError",
|
|
1259
|
+
}
|
|
1260
|
+
response_data = self.api_client.call_api(
|
|
1261
|
+
*_param,
|
|
1262
|
+
_request_timeout=_request_timeout
|
|
1263
|
+
)
|
|
1264
|
+
response_data.read()
|
|
1265
|
+
return self.api_client.response_deserialize(
|
|
1266
|
+
response_data=response_data,
|
|
1267
|
+
response_types_map=_response_types_map,
|
|
1268
|
+
).data
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
@validate_call
|
|
1272
|
+
def get_search_reports_with_http_info(
|
|
1273
|
+
self,
|
|
1274
|
+
limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
|
|
1275
|
+
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,
|
|
1276
|
+
_request_timeout: Union[
|
|
1277
|
+
None,
|
|
1278
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1279
|
+
Tuple[
|
|
1280
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1281
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1282
|
+
]
|
|
1283
|
+
] = None,
|
|
1284
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1285
|
+
_content_type: Optional[StrictStr] = None,
|
|
1286
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1287
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1288
|
+
) -> ApiResponse[Page]:
|
|
1289
|
+
"""Get event search reports
|
|
1290
|
+
|
|
1291
|
+
Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
|
|
1292
|
+
|
|
1293
|
+
:param limit: The number of results to retrieve.
|
|
1294
|
+
:type limit: str
|
|
1295
|
+
: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.
|
|
1296
|
+
:type offset: str
|
|
1297
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1298
|
+
number provided, it will be total request
|
|
1299
|
+
timeout. It can also be a pair (tuple) of
|
|
1300
|
+
(connection, read) timeouts.
|
|
1301
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1302
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1303
|
+
request; this effectively ignores the
|
|
1304
|
+
authentication in the spec for a single request.
|
|
1305
|
+
:type _request_auth: dict, optional
|
|
1306
|
+
:param _content_type: force content-type for the request.
|
|
1307
|
+
:type _content_type: str, Optional
|
|
1308
|
+
:param _headers: set to override the headers for a single
|
|
1309
|
+
request; this effectively ignores the headers
|
|
1310
|
+
in the spec for a single request.
|
|
1311
|
+
:type _headers: dict, optional
|
|
1312
|
+
:param _host_index: set to override the host_index for a single
|
|
1313
|
+
request; this effectively ignores the host_index
|
|
1314
|
+
in the spec for a single request.
|
|
1315
|
+
:type _host_index: int, optional
|
|
1316
|
+
:return: Returns the result object.
|
|
1317
|
+
""" # noqa: E501
|
|
1318
|
+
|
|
1319
|
+
_param = self._get_search_reports_serialize(
|
|
1320
|
+
limit=limit,
|
|
1321
|
+
offset=offset,
|
|
1322
|
+
_request_auth=_request_auth,
|
|
1323
|
+
_content_type=_content_type,
|
|
1324
|
+
_headers=_headers,
|
|
1325
|
+
_host_index=_host_index
|
|
1326
|
+
)
|
|
1327
|
+
|
|
1328
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1329
|
+
'200': "Page",
|
|
1330
|
+
'401': "AuthenticationError",
|
|
1331
|
+
'500': "CommonApiError",
|
|
1332
|
+
}
|
|
1333
|
+
response_data = self.api_client.call_api(
|
|
1334
|
+
*_param,
|
|
1335
|
+
_request_timeout=_request_timeout
|
|
1336
|
+
)
|
|
1337
|
+
response_data.read()
|
|
1338
|
+
return self.api_client.response_deserialize(
|
|
1339
|
+
response_data=response_data,
|
|
1340
|
+
response_types_map=_response_types_map,
|
|
1341
|
+
)
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
@validate_call
|
|
1345
|
+
def get_search_reports_without_preload_content(
|
|
1346
|
+
self,
|
|
1347
|
+
limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
|
|
1348
|
+
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,
|
|
1349
|
+
_request_timeout: Union[
|
|
1350
|
+
None,
|
|
1351
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1352
|
+
Tuple[
|
|
1353
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1354
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1355
|
+
]
|
|
1356
|
+
] = None,
|
|
1357
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1358
|
+
_content_type: Optional[StrictStr] = None,
|
|
1359
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1360
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1361
|
+
) -> RESTResponseType:
|
|
1362
|
+
"""Get event search reports
|
|
1363
|
+
|
|
1364
|
+
Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
|
|
1365
|
+
|
|
1366
|
+
:param limit: The number of results to retrieve.
|
|
1367
|
+
:type limit: str
|
|
1368
|
+
: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.
|
|
1369
|
+
:type offset: str
|
|
1370
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1371
|
+
number provided, it will be total request
|
|
1372
|
+
timeout. It can also be a pair (tuple) of
|
|
1373
|
+
(connection, read) timeouts.
|
|
1374
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1375
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1376
|
+
request; this effectively ignores the
|
|
1377
|
+
authentication in the spec for a single request.
|
|
1378
|
+
:type _request_auth: dict, optional
|
|
1379
|
+
:param _content_type: force content-type for the request.
|
|
1380
|
+
:type _content_type: str, Optional
|
|
1381
|
+
:param _headers: set to override the headers for a single
|
|
1382
|
+
request; this effectively ignores the headers
|
|
1383
|
+
in the spec for a single request.
|
|
1384
|
+
:type _headers: dict, optional
|
|
1385
|
+
:param _host_index: set to override the host_index for a single
|
|
1386
|
+
request; this effectively ignores the host_index
|
|
1387
|
+
in the spec for a single request.
|
|
1388
|
+
:type _host_index: int, optional
|
|
1389
|
+
:return: Returns the result object.
|
|
1390
|
+
""" # noqa: E501
|
|
1391
|
+
|
|
1392
|
+
_param = self._get_search_reports_serialize(
|
|
1393
|
+
limit=limit,
|
|
1394
|
+
offset=offset,
|
|
1395
|
+
_request_auth=_request_auth,
|
|
1396
|
+
_content_type=_content_type,
|
|
1397
|
+
_headers=_headers,
|
|
1398
|
+
_host_index=_host_index
|
|
1399
|
+
)
|
|
1400
|
+
|
|
1401
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1402
|
+
'200': "Page",
|
|
1403
|
+
'401': "AuthenticationError",
|
|
1404
|
+
'500': "CommonApiError",
|
|
1405
|
+
}
|
|
1406
|
+
response_data = self.api_client.call_api(
|
|
1407
|
+
*_param,
|
|
1408
|
+
_request_timeout=_request_timeout
|
|
1409
|
+
)
|
|
1410
|
+
return response_data.response
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
def _get_search_reports_serialize(
|
|
1414
|
+
self,
|
|
1415
|
+
limit,
|
|
1416
|
+
offset,
|
|
1417
|
+
_request_auth,
|
|
1418
|
+
_content_type,
|
|
1419
|
+
_headers,
|
|
1420
|
+
_host_index,
|
|
1421
|
+
) -> RequestSerialized:
|
|
1422
|
+
|
|
1423
|
+
_host = None
|
|
1424
|
+
|
|
1425
|
+
_collection_formats: Dict[str, str] = {
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
_path_params: Dict[str, str] = {}
|
|
1429
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1430
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1431
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1432
|
+
_files: Dict[str, str] = {}
|
|
1433
|
+
_body_params: Optional[bytes] = None
|
|
1434
|
+
|
|
1435
|
+
# process the path parameters
|
|
1436
|
+
# process the query parameters
|
|
1437
|
+
if limit is not None:
|
|
1438
|
+
|
|
1439
|
+
_query_params.append(('limit', limit))
|
|
1440
|
+
|
|
1441
|
+
if offset is not None:
|
|
1442
|
+
|
|
1443
|
+
_query_params.append(('offset', offset))
|
|
1444
|
+
|
|
1445
|
+
# process the header parameters
|
|
1446
|
+
# process the form parameters
|
|
1447
|
+
# process the body parameter
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
# set the HTTP header `Accept`
|
|
1451
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1452
|
+
[
|
|
1453
|
+
'application/json'
|
|
1454
|
+
]
|
|
1455
|
+
)
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
# authentication setting
|
|
1459
|
+
_auth_settings: List[str] = [
|
|
1460
|
+
'bearerAuth'
|
|
1461
|
+
]
|
|
1462
|
+
|
|
1463
|
+
return self.api_client.param_serialize(
|
|
1464
|
+
method='GET',
|
|
1465
|
+
resource_path='/v1/events/reports',
|
|
1466
|
+
path_params=_path_params,
|
|
1467
|
+
query_params=_query_params,
|
|
1468
|
+
header_params=_header_params,
|
|
1469
|
+
body=_body_params,
|
|
1470
|
+
post_params=_form_params,
|
|
1471
|
+
files=_files,
|
|
1472
|
+
auth_settings=_auth_settings,
|
|
1473
|
+
collection_formats=_collection_formats,
|
|
1474
|
+
_host=_host,
|
|
1475
|
+
_request_auth=_request_auth
|
|
1476
|
+
)
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1197
1481
|
@validate_call
|
|
1198
1482
|
def modify_sdc(
|
|
1199
1483
|
self,
|
|
@@ -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.
|
|
91
|
+
self.user_agent = 'OpenAPI-Generator/1.15.239/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.
|
|
383
|
+
"SDK Package Version: 1.15.239".\
|
|
384
384
|
format(env=sys.platform, pyversion=sys.version)
|
|
385
385
|
|
|
386
386
|
def get_host_settings(self):
|
|
@@ -198,6 +198,7 @@ from scc_firewall_manager_sdk.models.object_content import ObjectContent
|
|
|
198
198
|
from scc_firewall_manager_sdk.models.object_response import ObjectResponse
|
|
199
199
|
from scc_firewall_manager_sdk.models.on_prem_fmc_info import OnPremFmcInfo
|
|
200
200
|
from scc_firewall_manager_sdk.models.override import Override
|
|
201
|
+
from scc_firewall_manager_sdk.models.page import Page
|
|
201
202
|
from scc_firewall_manager_sdk.models.physical_interface_patch_input import PhysicalInterfacePatchInput
|
|
202
203
|
from scc_firewall_manager_sdk.models.policy import Policy
|
|
203
204
|
from scc_firewall_manager_sdk.models.ports_value import PortsValue
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class Page(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Page
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
count: Optional[StrictInt] = Field(default=None, description="The total number of results available.")
|
|
31
|
+
items: Optional[List[Any]] = Field(default=None, description="The list of items retrieved.")
|
|
32
|
+
limit: Optional[StrictInt] = Field(default=None, description="The number of results retrieved.")
|
|
33
|
+
offset: Optional[StrictInt] = Field(default=None, 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.")
|
|
34
|
+
__properties: ClassVar[List[str]] = ["count", "items", "limit", "offset"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of Page from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of Page from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"count": obj.get("count"),
|
|
88
|
+
"items": obj.get("items"),
|
|
89
|
+
"limit": obj.get("limit"),
|
|
90
|
+
"offset": obj.get("offset")
|
|
91
|
+
})
|
|
92
|
+
return _obj
|
|
93
|
+
|
|
94
|
+
|
{scc_firewall_manager_sdk-1.15.238.dist-info → scc_firewall_manager_sdk-1.15.239.dist-info}/RECORD
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
scc_firewall_manager_sdk/__init__.py,sha256=
|
|
2
|
-
scc_firewall_manager_sdk/api_client.py,sha256=
|
|
1
|
+
scc_firewall_manager_sdk/__init__.py,sha256=awZHMzHwJKFALcm_hNsjI-yGsoa2Fv2Eh-f9UugVBio,23421
|
|
2
|
+
scc_firewall_manager_sdk/api_client.py,sha256=EZNFh1PnpKQ2kqX5omPdGfoBDe5ASh4ugqlmFMEvpq4,25921
|
|
3
3
|
scc_firewall_manager_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
scc_firewall_manager_sdk/configuration.py,sha256=
|
|
4
|
+
scc_firewall_manager_sdk/configuration.py,sha256=V3ohVXp8jfTHmRKQTuSQNOwhAcCQjGJU2vm0hxwovWs,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
|
|
@@ -15,7 +15,7 @@ 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=
|
|
18
|
+
scc_firewall_manager_sdk/api/connectors_api.py,sha256=RVjzcQ-WOuLkU15es3258LWV8Fro8IkgJtgI2zTUkLs,72328
|
|
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
|
|
@@ -32,7 +32,7 @@ scc_firewall_manager_sdk/api/search_api.py,sha256=PonVl7RieSVsbCCVQOdqIA7vx2NCH5
|
|
|
32
32
|
scc_firewall_manager_sdk/api/tenant_management_api.py,sha256=3PWPuirkaUck1VZex3w4Cg3qO05GF0f7xeiptaAc5zE,55069
|
|
33
33
|
scc_firewall_manager_sdk/api/transactions_api.py,sha256=fz0Ko2bAXFpz0SM8psceOlcxq0gXnrnuTEhaX1E0QzA,23402
|
|
34
34
|
scc_firewall_manager_sdk/api/users_api.py,sha256=MKuyXmxWLSqPBkfA7rUGZ1EO1Ox-Oge7QhhgzSFAVu8,191609
|
|
35
|
-
scc_firewall_manager_sdk/models/__init__.py,sha256=
|
|
35
|
+
scc_firewall_manager_sdk/models/__init__.py,sha256=pwrPJC5O2qn3qaoaTU0kXh9nINbq64DF0m0AIZEOyPo,20745
|
|
36
36
|
scc_firewall_manager_sdk/models/access_group.py,sha256=9FlXrDT5xhtk-uWuwgMmM-qAGiKZrpfnkphZuogGsHo,4583
|
|
37
37
|
scc_firewall_manager_sdk/models/access_group_create_input.py,sha256=7tgCifqvqbwS2bZvS_PQdIV_ra_jiEbupJhyaHcG8ys,3930
|
|
38
38
|
scc_firewall_manager_sdk/models/access_group_page.py,sha256=imWa0te5qmTpXfuE8W8YM3SG01MIn4ewbA-_N8kPKHk,3725
|
|
@@ -216,6 +216,7 @@ scc_firewall_manager_sdk/models/object_response.py,sha256=6fvKBjOKf6MxOPHYTxmz9g
|
|
|
216
216
|
scc_firewall_manager_sdk/models/on_prem_fmc_info.py,sha256=E-GOhw957uXfia5Wh-WKm88vmN7tBTauvncbDCSzM-8,3056
|
|
217
217
|
scc_firewall_manager_sdk/models/os.py,sha256=I0Z6NGyYFsZcR3LPeU8AKa2-AemmfSEtYICky-I79eI,2804
|
|
218
218
|
scc_firewall_manager_sdk/models/override.py,sha256=3QhTwe1tYUHp_D7U2zti40EQE4YIsQ_X9sL1qNg7Cz8,3099
|
|
219
|
+
scc_firewall_manager_sdk/models/page.py,sha256=3TLnUQyY50bE2azqAqNI81Ij51KnFotBbh-BBv4Rjos,3225
|
|
219
220
|
scc_firewall_manager_sdk/models/physical_interface_patch_input.py,sha256=W0OTStw7h7BZbzf6KhV30FE1NVScnQx0BgwT-HVIBMk,6354
|
|
220
221
|
scc_firewall_manager_sdk/models/policy.py,sha256=OWnxcp9i1PDS_7uaDPaHEPQg-ol7EbMMFOUiPxLKXfU,2816
|
|
221
222
|
scc_firewall_manager_sdk/models/ports_value.py,sha256=iBAviisPQIy8FqfQWv1CtcI1HDoTwezPnxfIwm6fRrU,2640
|
|
@@ -280,7 +281,7 @@ scc_firewall_manager_sdk/models/vlan_interface_create_input.py,sha256=AKUqPJw5ku
|
|
|
280
281
|
scc_firewall_manager_sdk/models/vlan_interface_patch_input.py,sha256=srEFTyQykscNrWsbp8KGEzbmHC07_AU3DXjJ-7Be4zc,6054
|
|
281
282
|
scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=HAgBTdocZeHGDZP_-9NyRtzP9E7BReGtiOmn4S3J-_g,5326
|
|
282
283
|
scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=f9Z62yGFvz4QAQ07Z4bjfHLw2bRg46ccwoLuQ8q30TE,4808
|
|
283
|
-
scc_firewall_manager_sdk-1.15.
|
|
284
|
-
scc_firewall_manager_sdk-1.15.
|
|
285
|
-
scc_firewall_manager_sdk-1.15.
|
|
286
|
-
scc_firewall_manager_sdk-1.15.
|
|
284
|
+
scc_firewall_manager_sdk-1.15.239.dist-info/METADATA,sha256=l8ifetbE6KMIAvZIcHm0vjIHBg7JLjEFYD6a3hT4hV0,596
|
|
285
|
+
scc_firewall_manager_sdk-1.15.239.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
286
|
+
scc_firewall_manager_sdk-1.15.239.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
|
|
287
|
+
scc_firewall_manager_sdk-1.15.239.dist-info/RECORD,,
|
{scc_firewall_manager_sdk-1.15.238.dist-info → scc_firewall_manager_sdk-1.15.239.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|