scc-firewall-manager-sdk 1.15.120__py3-none-any.whl → 1.15.122__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 +4 -1
- scc_firewall_manager_sdk/api/interface_health_aggregations_api.py +276 -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 +3 -0
- scc_firewall_manager_sdk/models/interface_error_summary.py +90 -0
- scc_firewall_manager_sdk/models/interface_metric_error.py +90 -0
- scc_firewall_manager_sdk/models/interface_metric_error_aggregation_response.py +102 -0
- {scc_firewall_manager_sdk-1.15.120.dist-info → scc_firewall_manager_sdk-1.15.122.dist-info}/METADATA +1 -1
- {scc_firewall_manager_sdk-1.15.120.dist-info → scc_firewall_manager_sdk-1.15.122.dist-info}/RECORD +12 -9
- {scc_firewall_manager_sdk-1.15.120.dist-info → scc_firewall_manager_sdk-1.15.122.dist-info}/WHEEL +0 -0
- {scc_firewall_manager_sdk-1.15.120.dist-info → scc_firewall_manager_sdk-1.15.122.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.122"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
|
|
@@ -174,10 +174,13 @@ from scc_firewall_manager_sdk.models.ha_health_metrics import HaHealthMetrics
|
|
|
174
174
|
from scc_firewall_manager_sdk.models.ha_node import HaNode
|
|
175
175
|
from scc_firewall_manager_sdk.models.icmp4_value import Icmp4Value
|
|
176
176
|
from scc_firewall_manager_sdk.models.icmp6_value import Icmp6Value
|
|
177
|
+
from scc_firewall_manager_sdk.models.interface_error_summary import InterfaceErrorSummary
|
|
177
178
|
from scc_firewall_manager_sdk.models.interface_health_metrics import InterfaceHealthMetrics
|
|
178
179
|
from scc_firewall_manager_sdk.models.interface_ip_address import InterfaceIpAddress
|
|
179
180
|
from scc_firewall_manager_sdk.models.interface_ipv4_address import InterfaceIpv4Address
|
|
180
181
|
from scc_firewall_manager_sdk.models.interface_ipv6_address import InterfaceIpv6Address
|
|
182
|
+
from scc_firewall_manager_sdk.models.interface_metric_error import InterfaceMetricError
|
|
183
|
+
from scc_firewall_manager_sdk.models.interface_metric_error_aggregation_response import InterfaceMetricErrorAggregationResponse
|
|
181
184
|
from scc_firewall_manager_sdk.models.interface_mode import InterfaceMode
|
|
182
185
|
from scc_firewall_manager_sdk.models.interface_runtime_data import InterfaceRuntimeData
|
|
183
186
|
from scc_firewall_manager_sdk.models.interface_type import InterfaceType
|
|
@@ -20,6 +20,7 @@ from typing_extensions import Annotated
|
|
|
20
20
|
from pydantic import Field, StrictStr, field_validator
|
|
21
21
|
from typing import Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
|
+
from scc_firewall_manager_sdk.models.interface_metric_error_aggregation_response import InterfaceMetricErrorAggregationResponse
|
|
23
24
|
from scc_firewall_manager_sdk.models.metric_aggregation_response import MetricAggregationResponse
|
|
24
25
|
|
|
25
26
|
from scc_firewall_manager_sdk.api_client import ApiClient, RequestSerialized
|
|
@@ -330,3 +331,278 @@ class InterfaceHealthAggregationsApi:
|
|
|
330
331
|
)
|
|
331
332
|
|
|
332
333
|
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
@validate_call
|
|
337
|
+
def get_interface_health_metric_error_aggregations(
|
|
338
|
+
self,
|
|
339
|
+
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned")] = None,
|
|
340
|
+
_request_timeout: Union[
|
|
341
|
+
None,
|
|
342
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
343
|
+
Tuple[
|
|
344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
345
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
346
|
+
]
|
|
347
|
+
] = None,
|
|
348
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
349
|
+
_content_type: Optional[StrictStr] = None,
|
|
350
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
351
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
352
|
+
) -> InterfaceMetricErrorAggregationResponse:
|
|
353
|
+
"""Get interface health metric error aggregations
|
|
354
|
+
|
|
355
|
+
Retrieve aggregation of interface health metrics errors for all managed devices.
|
|
356
|
+
|
|
357
|
+
:param aggregation_period: The aggregation period of the metrics returned
|
|
358
|
+
:type aggregation_period: str
|
|
359
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
360
|
+
number provided, it will be total request
|
|
361
|
+
timeout. It can also be a pair (tuple) of
|
|
362
|
+
(connection, read) timeouts.
|
|
363
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
364
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
365
|
+
request; this effectively ignores the
|
|
366
|
+
authentication in the spec for a single request.
|
|
367
|
+
:type _request_auth: dict, optional
|
|
368
|
+
:param _content_type: force content-type for the request.
|
|
369
|
+
:type _content_type: str, Optional
|
|
370
|
+
:param _headers: set to override the headers for a single
|
|
371
|
+
request; this effectively ignores the headers
|
|
372
|
+
in the spec for a single request.
|
|
373
|
+
:type _headers: dict, optional
|
|
374
|
+
:param _host_index: set to override the host_index for a single
|
|
375
|
+
request; this effectively ignores the host_index
|
|
376
|
+
in the spec for a single request.
|
|
377
|
+
:type _host_index: int, optional
|
|
378
|
+
:return: Returns the result object.
|
|
379
|
+
""" # noqa: E501
|
|
380
|
+
|
|
381
|
+
_param = self._get_interface_health_metric_error_aggregations_serialize(
|
|
382
|
+
aggregation_period=aggregation_period,
|
|
383
|
+
_request_auth=_request_auth,
|
|
384
|
+
_content_type=_content_type,
|
|
385
|
+
_headers=_headers,
|
|
386
|
+
_host_index=_host_index
|
|
387
|
+
)
|
|
388
|
+
|
|
389
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
390
|
+
'200': "InterfaceMetricErrorAggregationResponse",
|
|
391
|
+
'400': "CommonApiError",
|
|
392
|
+
'401': "AuthenticationError",
|
|
393
|
+
'403': "CommonApiError",
|
|
394
|
+
'404': "CommonApiError",
|
|
395
|
+
'500': "CommonApiError",
|
|
396
|
+
}
|
|
397
|
+
response_data = self.api_client.call_api(
|
|
398
|
+
*_param,
|
|
399
|
+
_request_timeout=_request_timeout
|
|
400
|
+
)
|
|
401
|
+
response_data.read()
|
|
402
|
+
return self.api_client.response_deserialize(
|
|
403
|
+
response_data=response_data,
|
|
404
|
+
response_types_map=_response_types_map,
|
|
405
|
+
).data
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
@validate_call
|
|
409
|
+
def get_interface_health_metric_error_aggregations_with_http_info(
|
|
410
|
+
self,
|
|
411
|
+
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned")] = None,
|
|
412
|
+
_request_timeout: Union[
|
|
413
|
+
None,
|
|
414
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
415
|
+
Tuple[
|
|
416
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
417
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
418
|
+
]
|
|
419
|
+
] = None,
|
|
420
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
421
|
+
_content_type: Optional[StrictStr] = None,
|
|
422
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
423
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
424
|
+
) -> ApiResponse[InterfaceMetricErrorAggregationResponse]:
|
|
425
|
+
"""Get interface health metric error aggregations
|
|
426
|
+
|
|
427
|
+
Retrieve aggregation of interface health metrics errors for all managed devices.
|
|
428
|
+
|
|
429
|
+
:param aggregation_period: The aggregation period of the metrics returned
|
|
430
|
+
:type aggregation_period: str
|
|
431
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
432
|
+
number provided, it will be total request
|
|
433
|
+
timeout. It can also be a pair (tuple) of
|
|
434
|
+
(connection, read) timeouts.
|
|
435
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
436
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
437
|
+
request; this effectively ignores the
|
|
438
|
+
authentication in the spec for a single request.
|
|
439
|
+
:type _request_auth: dict, optional
|
|
440
|
+
:param _content_type: force content-type for the request.
|
|
441
|
+
:type _content_type: str, Optional
|
|
442
|
+
:param _headers: set to override the headers for a single
|
|
443
|
+
request; this effectively ignores the headers
|
|
444
|
+
in the spec for a single request.
|
|
445
|
+
:type _headers: dict, optional
|
|
446
|
+
:param _host_index: set to override the host_index for a single
|
|
447
|
+
request; this effectively ignores the host_index
|
|
448
|
+
in the spec for a single request.
|
|
449
|
+
:type _host_index: int, optional
|
|
450
|
+
:return: Returns the result object.
|
|
451
|
+
""" # noqa: E501
|
|
452
|
+
|
|
453
|
+
_param = self._get_interface_health_metric_error_aggregations_serialize(
|
|
454
|
+
aggregation_period=aggregation_period,
|
|
455
|
+
_request_auth=_request_auth,
|
|
456
|
+
_content_type=_content_type,
|
|
457
|
+
_headers=_headers,
|
|
458
|
+
_host_index=_host_index
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
462
|
+
'200': "InterfaceMetricErrorAggregationResponse",
|
|
463
|
+
'400': "CommonApiError",
|
|
464
|
+
'401': "AuthenticationError",
|
|
465
|
+
'403': "CommonApiError",
|
|
466
|
+
'404': "CommonApiError",
|
|
467
|
+
'500': "CommonApiError",
|
|
468
|
+
}
|
|
469
|
+
response_data = self.api_client.call_api(
|
|
470
|
+
*_param,
|
|
471
|
+
_request_timeout=_request_timeout
|
|
472
|
+
)
|
|
473
|
+
response_data.read()
|
|
474
|
+
return self.api_client.response_deserialize(
|
|
475
|
+
response_data=response_data,
|
|
476
|
+
response_types_map=_response_types_map,
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
@validate_call
|
|
481
|
+
def get_interface_health_metric_error_aggregations_without_preload_content(
|
|
482
|
+
self,
|
|
483
|
+
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned")] = None,
|
|
484
|
+
_request_timeout: Union[
|
|
485
|
+
None,
|
|
486
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
487
|
+
Tuple[
|
|
488
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
489
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
490
|
+
]
|
|
491
|
+
] = None,
|
|
492
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
493
|
+
_content_type: Optional[StrictStr] = None,
|
|
494
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
495
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
496
|
+
) -> RESTResponseType:
|
|
497
|
+
"""Get interface health metric error aggregations
|
|
498
|
+
|
|
499
|
+
Retrieve aggregation of interface health metrics errors for all managed devices.
|
|
500
|
+
|
|
501
|
+
:param aggregation_period: The aggregation period of the metrics returned
|
|
502
|
+
:type aggregation_period: str
|
|
503
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
504
|
+
number provided, it will be total request
|
|
505
|
+
timeout. It can also be a pair (tuple) of
|
|
506
|
+
(connection, read) timeouts.
|
|
507
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
508
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
509
|
+
request; this effectively ignores the
|
|
510
|
+
authentication in the spec for a single request.
|
|
511
|
+
:type _request_auth: dict, optional
|
|
512
|
+
:param _content_type: force content-type for the request.
|
|
513
|
+
:type _content_type: str, Optional
|
|
514
|
+
:param _headers: set to override the headers for a single
|
|
515
|
+
request; this effectively ignores the headers
|
|
516
|
+
in the spec for a single request.
|
|
517
|
+
:type _headers: dict, optional
|
|
518
|
+
:param _host_index: set to override the host_index for a single
|
|
519
|
+
request; this effectively ignores the host_index
|
|
520
|
+
in the spec for a single request.
|
|
521
|
+
:type _host_index: int, optional
|
|
522
|
+
:return: Returns the result object.
|
|
523
|
+
""" # noqa: E501
|
|
524
|
+
|
|
525
|
+
_param = self._get_interface_health_metric_error_aggregations_serialize(
|
|
526
|
+
aggregation_period=aggregation_period,
|
|
527
|
+
_request_auth=_request_auth,
|
|
528
|
+
_content_type=_content_type,
|
|
529
|
+
_headers=_headers,
|
|
530
|
+
_host_index=_host_index
|
|
531
|
+
)
|
|
532
|
+
|
|
533
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
534
|
+
'200': "InterfaceMetricErrorAggregationResponse",
|
|
535
|
+
'400': "CommonApiError",
|
|
536
|
+
'401': "AuthenticationError",
|
|
537
|
+
'403': "CommonApiError",
|
|
538
|
+
'404': "CommonApiError",
|
|
539
|
+
'500': "CommonApiError",
|
|
540
|
+
}
|
|
541
|
+
response_data = self.api_client.call_api(
|
|
542
|
+
*_param,
|
|
543
|
+
_request_timeout=_request_timeout
|
|
544
|
+
)
|
|
545
|
+
return response_data.response
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
def _get_interface_health_metric_error_aggregations_serialize(
|
|
549
|
+
self,
|
|
550
|
+
aggregation_period,
|
|
551
|
+
_request_auth,
|
|
552
|
+
_content_type,
|
|
553
|
+
_headers,
|
|
554
|
+
_host_index,
|
|
555
|
+
) -> RequestSerialized:
|
|
556
|
+
|
|
557
|
+
_host = None
|
|
558
|
+
|
|
559
|
+
_collection_formats: Dict[str, str] = {
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
_path_params: Dict[str, str] = {}
|
|
563
|
+
_query_params: List[Tuple[str, str]] = []
|
|
564
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
565
|
+
_form_params: List[Tuple[str, str]] = []
|
|
566
|
+
_files: Dict[str, str] = {}
|
|
567
|
+
_body_params: Optional[bytes] = None
|
|
568
|
+
|
|
569
|
+
# process the path parameters
|
|
570
|
+
# process the query parameters
|
|
571
|
+
if aggregation_period is not None:
|
|
572
|
+
|
|
573
|
+
_query_params.append(('aggregationPeriod', aggregation_period))
|
|
574
|
+
|
|
575
|
+
# process the header parameters
|
|
576
|
+
# process the form parameters
|
|
577
|
+
# process the body parameter
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
# set the HTTP header `Accept`
|
|
581
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
582
|
+
[
|
|
583
|
+
'application/json'
|
|
584
|
+
]
|
|
585
|
+
)
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
# authentication setting
|
|
589
|
+
_auth_settings: List[str] = [
|
|
590
|
+
'bearerAuth'
|
|
591
|
+
]
|
|
592
|
+
|
|
593
|
+
return self.api_client.param_serialize(
|
|
594
|
+
method='GET',
|
|
595
|
+
resource_path='/v1/inventory/devices/health/interfaces/errors/aggregations',
|
|
596
|
+
path_params=_path_params,
|
|
597
|
+
query_params=_query_params,
|
|
598
|
+
header_params=_header_params,
|
|
599
|
+
body=_body_params,
|
|
600
|
+
post_params=_form_params,
|
|
601
|
+
files=_files,
|
|
602
|
+
auth_settings=_auth_settings,
|
|
603
|
+
collection_formats=_collection_formats,
|
|
604
|
+
_host=_host,
|
|
605
|
+
_request_auth=_request_auth
|
|
606
|
+
)
|
|
607
|
+
|
|
608
|
+
|
|
@@ -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.122/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.122".\
|
|
384
384
|
format(env=sys.platform, pyversion=sys.version)
|
|
385
385
|
|
|
386
386
|
def get_host_settings(self):
|
|
@@ -132,10 +132,13 @@ from scc_firewall_manager_sdk.models.ha_health_metrics import HaHealthMetrics
|
|
|
132
132
|
from scc_firewall_manager_sdk.models.ha_node import HaNode
|
|
133
133
|
from scc_firewall_manager_sdk.models.icmp4_value import Icmp4Value
|
|
134
134
|
from scc_firewall_manager_sdk.models.icmp6_value import Icmp6Value
|
|
135
|
+
from scc_firewall_manager_sdk.models.interface_error_summary import InterfaceErrorSummary
|
|
135
136
|
from scc_firewall_manager_sdk.models.interface_health_metrics import InterfaceHealthMetrics
|
|
136
137
|
from scc_firewall_manager_sdk.models.interface_ip_address import InterfaceIpAddress
|
|
137
138
|
from scc_firewall_manager_sdk.models.interface_ipv4_address import InterfaceIpv4Address
|
|
138
139
|
from scc_firewall_manager_sdk.models.interface_ipv6_address import InterfaceIpv6Address
|
|
140
|
+
from scc_firewall_manager_sdk.models.interface_metric_error import InterfaceMetricError
|
|
141
|
+
from scc_firewall_manager_sdk.models.interface_metric_error_aggregation_response import InterfaceMetricErrorAggregationResponse
|
|
139
142
|
from scc_firewall_manager_sdk.models.interface_mode import InterfaceMode
|
|
140
143
|
from scc_firewall_manager_sdk.models.interface_runtime_data import InterfaceRuntimeData
|
|
141
144
|
from scc_firewall_manager_sdk.models.interface_type import InterfaceType
|
|
@@ -0,0 +1,90 @@
|
|
|
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, 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 InterfaceErrorSummary(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
InterfaceErrorSummary
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
error: Optional[StrictInt] = None
|
|
31
|
+
stable: Optional[StrictInt] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["error", "stable"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of InterfaceErrorSummary from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of InterfaceErrorSummary from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"error": obj.get("error"),
|
|
86
|
+
"stable": obj.get("stable")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class InterfaceMetricError(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
InterfaceMetricError
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
count: Optional[StrictInt] = None
|
|
31
|
+
name: Optional[StrictStr] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["count", "name"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of InterfaceMetricError from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of InterfaceMetricError from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"count": obj.get("count"),
|
|
86
|
+
"name": obj.get("name")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from scc_firewall_manager_sdk.models.interface_error_summary import InterfaceErrorSummary
|
|
24
|
+
from scc_firewall_manager_sdk.models.interface_metric_error import InterfaceMetricError
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
|
|
28
|
+
class InterfaceMetricErrorAggregationResponse(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
InterfaceMetricErrorAggregationResponse
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
interface_errors: Optional[List[InterfaceMetricError]] = Field(default=None, alias="interfaceErrors")
|
|
33
|
+
summary: Optional[InterfaceErrorSummary] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["interfaceErrors", "summary"]
|
|
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 InterfaceMetricErrorAggregationResponse 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in interface_errors (list)
|
|
76
|
+
_items = []
|
|
77
|
+
if self.interface_errors:
|
|
78
|
+
for _item in self.interface_errors:
|
|
79
|
+
if _item:
|
|
80
|
+
_items.append(_item.to_dict())
|
|
81
|
+
_dict['interfaceErrors'] = _items
|
|
82
|
+
# override the default output from pydantic by calling `to_dict()` of summary
|
|
83
|
+
if self.summary:
|
|
84
|
+
_dict['summary'] = self.summary.to_dict()
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of InterfaceMetricErrorAggregationResponse from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"interfaceErrors": [InterfaceMetricError.from_dict(_item) for _item in obj["interfaceErrors"]] if obj.get("interfaceErrors") is not None else None,
|
|
98
|
+
"summary": InterfaceErrorSummary.from_dict(obj["summary"]) if obj.get("summary") is not None else None
|
|
99
|
+
})
|
|
100
|
+
return _obj
|
|
101
|
+
|
|
102
|
+
|
{scc_firewall_manager_sdk-1.15.120.dist-info → scc_firewall_manager_sdk-1.15.122.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=klQY2V0zcBWgi47VNQu6O8DieUfXTdoGzNHTtcpSRjw,22492
|
|
2
|
+
scc_firewall_manager_sdk/api_client.py,sha256=tegxZBMwLt6DCQVhQ-85gWppGe_Iepv5sz5gN9ibIk4,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=V5-iyu1uxJN1kR9XqQa2IIb0L6W6_wieVtuynFpBAOE,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
|
|
@@ -19,7 +19,7 @@ scc_firewall_manager_sdk/api/connectors_api.py,sha256=lw4asxJMtyHTm3sxM6Z7S1O2tb
|
|
|
19
19
|
scc_firewall_manager_sdk/api/device_health_aggregations_api.py,sha256=h6wyzUSbI7IMXjsFnBhuufUcDYhQ7n1dJkVp-wt8XPE,13644
|
|
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=iWb4v4tteX7uoEOncmF34V0n1So7oTPa_tV9AscL9Ck,138718
|
|
22
|
-
scc_firewall_manager_sdk/api/interface_health_aggregations_api.py,sha256=
|
|
22
|
+
scc_firewall_manager_sdk/api/interface_health_aggregations_api.py,sha256=Oi_onJo1uRI6NBm-ay7HtjKgxdqF22iSRlfws0LBhjo,25297
|
|
23
23
|
scc_firewall_manager_sdk/api/inventory_api.py,sha256=EJqDZzqBE4w_klxuo84rSYmrmbinGSJEbSbU6Wqs4Gg,444995
|
|
24
24
|
scc_firewall_manager_sdk/api/meta_api.py,sha256=0T4mIpkOc0FyDIvEN5qhRQbKN4CzOM00_sRVY2oG59U,29963
|
|
25
25
|
scc_firewall_manager_sdk/api/msp_device_upgrades_api.py,sha256=VSwHKKpPTYqlAdEOb3wq1ADX8d69siiCIbwPBzgDNNE,16623
|
|
@@ -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=eQv_YR9skYDM63M6Qdv3OTdEAHzTmsPLD3QqfUnB4Ug,19816
|
|
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
|
|
@@ -150,10 +150,13 @@ scc_firewall_manager_sdk/models/ha_health_metrics.py,sha256=pgIXWUMJUswwfxvyXZmJ
|
|
|
150
150
|
scc_firewall_manager_sdk/models/ha_node.py,sha256=yMPKh7PeSuiWM2dCjJvZDlon8mfeePKwQ7-CRnmsACc,4075
|
|
151
151
|
scc_firewall_manager_sdk/models/icmp4_value.py,sha256=yRhGCe4oECCs2dB5QTG6GhXSL59WG_Wk6xmi6nYLfAE,6134
|
|
152
152
|
scc_firewall_manager_sdk/models/icmp6_value.py,sha256=wEsy_FPc27WXcB0s5HbfKxoxzABz-teMFX-4y2OOtlM,6452
|
|
153
|
+
scc_firewall_manager_sdk/models/interface_error_summary.py,sha256=uN5L8el-TUTXdTgS_sJtC7YocCpNOcaoXpa8OQC6iEU,2688
|
|
153
154
|
scc_firewall_manager_sdk/models/interface_health_metrics.py,sha256=3KuvIxG6gCLd29tVLMzu3oMG6ynB5IKhxP5XF492ws0,7435
|
|
154
155
|
scc_firewall_manager_sdk/models/interface_ip_address.py,sha256=KCmpmXa_bkbM92LAvjv-Ojenpa4KSBxCeJEvXUP8lg8,4100
|
|
155
156
|
scc_firewall_manager_sdk/models/interface_ipv4_address.py,sha256=dQzW31COK9ZoYMBPM5HLiyPC2zmk62_NtLhauCZ9Mwo,3160
|
|
156
157
|
scc_firewall_manager_sdk/models/interface_ipv6_address.py,sha256=ts2zsBi863RjyqE3B2Bbi2-5sdmTeG1iPAck1u-9evY,4675
|
|
158
|
+
scc_firewall_manager_sdk/models/interface_metric_error.py,sha256=1U0xNl7XQt1iggcJQb5eoXekall3k1UjxNMpGrkPUPk,2687
|
|
159
|
+
scc_firewall_manager_sdk/models/interface_metric_error_aggregation_response.py,sha256=kmSEcyUAkfg5zRU2lMjyFHTd_5tp_uIpLBuvdHefCLA,3727
|
|
157
160
|
scc_firewall_manager_sdk/models/interface_mode.py,sha256=oGGdBdkQRfQMoztQ9u1qhbccjL9HhScNq57ctFRl33E,851
|
|
158
161
|
scc_firewall_manager_sdk/models/interface_runtime_data.py,sha256=9ErztZL2BMTzyYpRHQi_MmmyhJPKTqGK_flkkBL8JrU,3862
|
|
159
162
|
scc_firewall_manager_sdk/models/interface_type.py,sha256=JRtnBPtirhxdPxnnyN0uRXimzN4P8nxbQB86PZB7zuE,1009
|
|
@@ -268,7 +271,7 @@ scc_firewall_manager_sdk/models/vlan_interface_create_input.py,sha256=AKUqPJw5ku
|
|
|
268
271
|
scc_firewall_manager_sdk/models/vlan_interface_patch_input.py,sha256=srEFTyQykscNrWsbp8KGEzbmHC07_AU3DXjJ-7Be4zc,6054
|
|
269
272
|
scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=HAgBTdocZeHGDZP_-9NyRtzP9E7BReGtiOmn4S3J-_g,5326
|
|
270
273
|
scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=f9Z62yGFvz4QAQ07Z4bjfHLw2bRg46ccwoLuQ8q30TE,4808
|
|
271
|
-
scc_firewall_manager_sdk-1.15.
|
|
272
|
-
scc_firewall_manager_sdk-1.15.
|
|
273
|
-
scc_firewall_manager_sdk-1.15.
|
|
274
|
-
scc_firewall_manager_sdk-1.15.
|
|
274
|
+
scc_firewall_manager_sdk-1.15.122.dist-info/METADATA,sha256=NC1_0VCqQ7mtFqlNnPgXziLISw4HDzvtZXiqqfLwCKc,596
|
|
275
|
+
scc_firewall_manager_sdk-1.15.122.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
276
|
+
scc_firewall_manager_sdk-1.15.122.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
|
|
277
|
+
scc_firewall_manager_sdk-1.15.122.dist-info/RECORD,,
|
{scc_firewall_manager_sdk-1.15.120.dist-info → scc_firewall_manager_sdk-1.15.122.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|