scc-firewall-manager-sdk 1.15.28__py3-none-any.whl → 1.15.30__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 +3 -1
- scc_firewall_manager_sdk/api/device_upgrades_api.py +595 -0
- scc_firewall_manager_sdk/api/msp_device_health_aggregations_api.py +1 -1
- scc_firewall_manager_sdk/api_client.py +1 -1
- scc_firewall_manager_sdk/configuration.py +1 -1
- scc_firewall_manager_sdk/models/__init__.py +2 -0
- scc_firewall_manager_sdk/models/ftd_upgrade_run_dto_page.py +102 -0
- scc_firewall_manager_sdk/models/upgrade_run_dto.py +122 -0
- {scc_firewall_manager_sdk-1.15.28.dist-info → scc_firewall_manager_sdk-1.15.30.dist-info}/METADATA +1 -1
- {scc_firewall_manager_sdk-1.15.28.dist-info → scc_firewall_manager_sdk-1.15.30.dist-info}/RECORD +12 -10
- {scc_firewall_manager_sdk-1.15.28.dist-info → scc_firewall_manager_sdk-1.15.30.dist-info}/WHEEL +0 -0
- {scc_firewall_manager_sdk-1.15.28.dist-info → scc_firewall_manager_sdk-1.15.30.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.30"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
|
|
@@ -163,6 +163,7 @@ from scc_firewall_manager_sdk.models.ftd_deployment_input import FtdDeploymentIn
|
|
|
163
163
|
from scc_firewall_manager_sdk.models.ftd_ha_info import FtdHaInfo
|
|
164
164
|
from scc_firewall_manager_sdk.models.ftd_multi_device_deployment_input import FtdMultiDeviceDeploymentInput
|
|
165
165
|
from scc_firewall_manager_sdk.models.ftd_registration_input import FtdRegistrationInput
|
|
166
|
+
from scc_firewall_manager_sdk.models.ftd_upgrade_run_dto_page import FtdUpgradeRunDtoPage
|
|
166
167
|
from scc_firewall_manager_sdk.models.ftd_version import FtdVersion
|
|
167
168
|
from scc_firewall_manager_sdk.models.ftd_versions_response import FtdVersionsResponse
|
|
168
169
|
from scc_firewall_manager_sdk.models.global_search_result import GlobalSearchResult
|
|
@@ -275,6 +276,7 @@ from scc_firewall_manager_sdk.models.update_request import UpdateRequest
|
|
|
275
276
|
from scc_firewall_manager_sdk.models.upgrade_asa_device_input import UpgradeAsaDeviceInput
|
|
276
277
|
from scc_firewall_manager_sdk.models.upgrade_ftd_device_input import UpgradeFtdDeviceInput
|
|
277
278
|
from scc_firewall_manager_sdk.models.upgrade_ftd_devices_input import UpgradeFtdDevicesInput
|
|
279
|
+
from scc_firewall_manager_sdk.models.upgrade_run_dto import UpgradeRunDto
|
|
278
280
|
from scc_firewall_manager_sdk.models.url_object_content import UrlObjectContent
|
|
279
281
|
from scc_firewall_manager_sdk.models.user import User
|
|
280
282
|
from scc_firewall_manager_sdk.models.user_create_or_update_input import UserCreateOrUpdateInput
|
|
@@ -23,6 +23,7 @@ from typing_extensions import Annotated
|
|
|
23
23
|
from scc_firewall_manager_sdk.models.asa_compatible_versions_response import AsaCompatibleVersionsResponse
|
|
24
24
|
from scc_firewall_manager_sdk.models.cdo_transaction import CdoTransaction
|
|
25
25
|
from scc_firewall_manager_sdk.models.ftd_compatibility_version import FtdCompatibilityVersion
|
|
26
|
+
from scc_firewall_manager_sdk.models.ftd_upgrade_run_dto_page import FtdUpgradeRunDtoPage
|
|
26
27
|
from scc_firewall_manager_sdk.models.ftd_versions_response import FtdVersionsResponse
|
|
27
28
|
from scc_firewall_manager_sdk.models.upgrade_asa_device_input import UpgradeAsaDeviceInput
|
|
28
29
|
from scc_firewall_manager_sdk.models.upgrade_ftd_device_input import UpgradeFtdDeviceInput
|
|
@@ -895,6 +896,600 @@ class DeviceUpgradesApi:
|
|
|
895
896
|
|
|
896
897
|
|
|
897
898
|
|
|
899
|
+
@validate_call
|
|
900
|
+
def get_ftd_device_upgrade_run(
|
|
901
|
+
self,
|
|
902
|
+
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
903
|
+
_request_timeout: Union[
|
|
904
|
+
None,
|
|
905
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
906
|
+
Tuple[
|
|
907
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
908
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
909
|
+
]
|
|
910
|
+
] = None,
|
|
911
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
912
|
+
_content_type: Optional[StrictStr] = None,
|
|
913
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
914
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
915
|
+
) -> FtdUpgradeRunDtoPage:
|
|
916
|
+
"""Get FTD Device Upgrade Run
|
|
917
|
+
|
|
918
|
+
Get an FTD Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Each upgrade run represents a group of devices being upgraded, or staged for upgrades, together.
|
|
919
|
+
|
|
920
|
+
:param upgrade_run_uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
921
|
+
:type upgrade_run_uid: str
|
|
922
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
923
|
+
number provided, it will be total request
|
|
924
|
+
timeout. It can also be a pair (tuple) of
|
|
925
|
+
(connection, read) timeouts.
|
|
926
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
927
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
928
|
+
request; this effectively ignores the
|
|
929
|
+
authentication in the spec for a single request.
|
|
930
|
+
:type _request_auth: dict, optional
|
|
931
|
+
:param _content_type: force content-type for the request.
|
|
932
|
+
:type _content_type: str, Optional
|
|
933
|
+
:param _headers: set to override the headers for a single
|
|
934
|
+
request; this effectively ignores the headers
|
|
935
|
+
in the spec for a single request.
|
|
936
|
+
:type _headers: dict, optional
|
|
937
|
+
:param _host_index: set to override the host_index for a single
|
|
938
|
+
request; this effectively ignores the host_index
|
|
939
|
+
in the spec for a single request.
|
|
940
|
+
:type _host_index: int, optional
|
|
941
|
+
:return: Returns the result object.
|
|
942
|
+
""" # noqa: E501
|
|
943
|
+
|
|
944
|
+
_param = self._get_ftd_device_upgrade_run_serialize(
|
|
945
|
+
upgrade_run_uid=upgrade_run_uid,
|
|
946
|
+
_request_auth=_request_auth,
|
|
947
|
+
_content_type=_content_type,
|
|
948
|
+
_headers=_headers,
|
|
949
|
+
_host_index=_host_index
|
|
950
|
+
)
|
|
951
|
+
|
|
952
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
953
|
+
'200': "FtdUpgradeRunDtoPage",
|
|
954
|
+
'400': "CommonApiError",
|
|
955
|
+
'401': "AuthenticationError",
|
|
956
|
+
'403': "CommonApiError",
|
|
957
|
+
'500': "CommonApiError",
|
|
958
|
+
}
|
|
959
|
+
response_data = self.api_client.call_api(
|
|
960
|
+
*_param,
|
|
961
|
+
_request_timeout=_request_timeout
|
|
962
|
+
)
|
|
963
|
+
response_data.read()
|
|
964
|
+
return self.api_client.response_deserialize(
|
|
965
|
+
response_data=response_data,
|
|
966
|
+
response_types_map=_response_types_map,
|
|
967
|
+
).data
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
@validate_call
|
|
971
|
+
def get_ftd_device_upgrade_run_with_http_info(
|
|
972
|
+
self,
|
|
973
|
+
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
974
|
+
_request_timeout: Union[
|
|
975
|
+
None,
|
|
976
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
977
|
+
Tuple[
|
|
978
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
979
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
980
|
+
]
|
|
981
|
+
] = None,
|
|
982
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
983
|
+
_content_type: Optional[StrictStr] = None,
|
|
984
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
985
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
986
|
+
) -> ApiResponse[FtdUpgradeRunDtoPage]:
|
|
987
|
+
"""Get FTD Device Upgrade Run
|
|
988
|
+
|
|
989
|
+
Get an FTD Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Each upgrade run represents a group of devices being upgraded, or staged for upgrades, together.
|
|
990
|
+
|
|
991
|
+
:param upgrade_run_uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
992
|
+
:type upgrade_run_uid: str
|
|
993
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
994
|
+
number provided, it will be total request
|
|
995
|
+
timeout. It can also be a pair (tuple) of
|
|
996
|
+
(connection, read) timeouts.
|
|
997
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
998
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
999
|
+
request; this effectively ignores the
|
|
1000
|
+
authentication in the spec for a single request.
|
|
1001
|
+
:type _request_auth: dict, optional
|
|
1002
|
+
:param _content_type: force content-type for the request.
|
|
1003
|
+
:type _content_type: str, Optional
|
|
1004
|
+
:param _headers: set to override the headers for a single
|
|
1005
|
+
request; this effectively ignores the headers
|
|
1006
|
+
in the spec for a single request.
|
|
1007
|
+
:type _headers: dict, optional
|
|
1008
|
+
:param _host_index: set to override the host_index for a single
|
|
1009
|
+
request; this effectively ignores the host_index
|
|
1010
|
+
in the spec for a single request.
|
|
1011
|
+
:type _host_index: int, optional
|
|
1012
|
+
:return: Returns the result object.
|
|
1013
|
+
""" # noqa: E501
|
|
1014
|
+
|
|
1015
|
+
_param = self._get_ftd_device_upgrade_run_serialize(
|
|
1016
|
+
upgrade_run_uid=upgrade_run_uid,
|
|
1017
|
+
_request_auth=_request_auth,
|
|
1018
|
+
_content_type=_content_type,
|
|
1019
|
+
_headers=_headers,
|
|
1020
|
+
_host_index=_host_index
|
|
1021
|
+
)
|
|
1022
|
+
|
|
1023
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1024
|
+
'200': "FtdUpgradeRunDtoPage",
|
|
1025
|
+
'400': "CommonApiError",
|
|
1026
|
+
'401': "AuthenticationError",
|
|
1027
|
+
'403': "CommonApiError",
|
|
1028
|
+
'500': "CommonApiError",
|
|
1029
|
+
}
|
|
1030
|
+
response_data = self.api_client.call_api(
|
|
1031
|
+
*_param,
|
|
1032
|
+
_request_timeout=_request_timeout
|
|
1033
|
+
)
|
|
1034
|
+
response_data.read()
|
|
1035
|
+
return self.api_client.response_deserialize(
|
|
1036
|
+
response_data=response_data,
|
|
1037
|
+
response_types_map=_response_types_map,
|
|
1038
|
+
)
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
@validate_call
|
|
1042
|
+
def get_ftd_device_upgrade_run_without_preload_content(
|
|
1043
|
+
self,
|
|
1044
|
+
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
1045
|
+
_request_timeout: Union[
|
|
1046
|
+
None,
|
|
1047
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1048
|
+
Tuple[
|
|
1049
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1050
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1051
|
+
]
|
|
1052
|
+
] = None,
|
|
1053
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1054
|
+
_content_type: Optional[StrictStr] = None,
|
|
1055
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1056
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1057
|
+
) -> RESTResponseType:
|
|
1058
|
+
"""Get FTD Device Upgrade Run
|
|
1059
|
+
|
|
1060
|
+
Get an FTD Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Each upgrade run represents a group of devices being upgraded, or staged for upgrades, together.
|
|
1061
|
+
|
|
1062
|
+
:param upgrade_run_uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
1063
|
+
:type upgrade_run_uid: str
|
|
1064
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1065
|
+
number provided, it will be total request
|
|
1066
|
+
timeout. It can also be a pair (tuple) of
|
|
1067
|
+
(connection, read) timeouts.
|
|
1068
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1069
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1070
|
+
request; this effectively ignores the
|
|
1071
|
+
authentication in the spec for a single request.
|
|
1072
|
+
:type _request_auth: dict, optional
|
|
1073
|
+
:param _content_type: force content-type for the request.
|
|
1074
|
+
:type _content_type: str, Optional
|
|
1075
|
+
:param _headers: set to override the headers for a single
|
|
1076
|
+
request; this effectively ignores the headers
|
|
1077
|
+
in the spec for a single request.
|
|
1078
|
+
:type _headers: dict, optional
|
|
1079
|
+
:param _host_index: set to override the host_index for a single
|
|
1080
|
+
request; this effectively ignores the host_index
|
|
1081
|
+
in the spec for a single request.
|
|
1082
|
+
:type _host_index: int, optional
|
|
1083
|
+
:return: Returns the result object.
|
|
1084
|
+
""" # noqa: E501
|
|
1085
|
+
|
|
1086
|
+
_param = self._get_ftd_device_upgrade_run_serialize(
|
|
1087
|
+
upgrade_run_uid=upgrade_run_uid,
|
|
1088
|
+
_request_auth=_request_auth,
|
|
1089
|
+
_content_type=_content_type,
|
|
1090
|
+
_headers=_headers,
|
|
1091
|
+
_host_index=_host_index
|
|
1092
|
+
)
|
|
1093
|
+
|
|
1094
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1095
|
+
'200': "FtdUpgradeRunDtoPage",
|
|
1096
|
+
'400': "CommonApiError",
|
|
1097
|
+
'401': "AuthenticationError",
|
|
1098
|
+
'403': "CommonApiError",
|
|
1099
|
+
'500': "CommonApiError",
|
|
1100
|
+
}
|
|
1101
|
+
response_data = self.api_client.call_api(
|
|
1102
|
+
*_param,
|
|
1103
|
+
_request_timeout=_request_timeout
|
|
1104
|
+
)
|
|
1105
|
+
return response_data.response
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
def _get_ftd_device_upgrade_run_serialize(
|
|
1109
|
+
self,
|
|
1110
|
+
upgrade_run_uid,
|
|
1111
|
+
_request_auth,
|
|
1112
|
+
_content_type,
|
|
1113
|
+
_headers,
|
|
1114
|
+
_host_index,
|
|
1115
|
+
) -> RequestSerialized:
|
|
1116
|
+
|
|
1117
|
+
_host = None
|
|
1118
|
+
|
|
1119
|
+
_collection_formats: Dict[str, str] = {
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
_path_params: Dict[str, str] = {}
|
|
1123
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1124
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1125
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1126
|
+
_files: Dict[str, str] = {}
|
|
1127
|
+
_body_params: Optional[bytes] = None
|
|
1128
|
+
|
|
1129
|
+
# process the path parameters
|
|
1130
|
+
if upgrade_run_uid is not None:
|
|
1131
|
+
_path_params['upgradeRunUid'] = upgrade_run_uid
|
|
1132
|
+
# process the query parameters
|
|
1133
|
+
# process the header parameters
|
|
1134
|
+
# process the form parameters
|
|
1135
|
+
# process the body parameter
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
# set the HTTP header `Accept`
|
|
1139
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1140
|
+
[
|
|
1141
|
+
'application/json'
|
|
1142
|
+
]
|
|
1143
|
+
)
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
# authentication setting
|
|
1147
|
+
_auth_settings: List[str] = [
|
|
1148
|
+
'bearerAuth'
|
|
1149
|
+
]
|
|
1150
|
+
|
|
1151
|
+
return self.api_client.param_serialize(
|
|
1152
|
+
method='GET',
|
|
1153
|
+
resource_path='/v1/inventory/devices/upgrades/runs/{upgradeRunUid}',
|
|
1154
|
+
path_params=_path_params,
|
|
1155
|
+
query_params=_query_params,
|
|
1156
|
+
header_params=_header_params,
|
|
1157
|
+
body=_body_params,
|
|
1158
|
+
post_params=_form_params,
|
|
1159
|
+
files=_files,
|
|
1160
|
+
auth_settings=_auth_settings,
|
|
1161
|
+
collection_formats=_collection_formats,
|
|
1162
|
+
_host=_host,
|
|
1163
|
+
_request_auth=_request_auth
|
|
1164
|
+
)
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
@validate_call
|
|
1170
|
+
def get_ftd_device_upgrade_runs(
|
|
1171
|
+
self,
|
|
1172
|
+
limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
|
|
1173
|
+
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,
|
|
1174
|
+
q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
|
|
1175
|
+
sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
|
|
1176
|
+
_request_timeout: Union[
|
|
1177
|
+
None,
|
|
1178
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1179
|
+
Tuple[
|
|
1180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1181
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1182
|
+
]
|
|
1183
|
+
] = None,
|
|
1184
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1185
|
+
_content_type: Optional[StrictStr] = None,
|
|
1186
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1187
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1188
|
+
) -> FtdUpgradeRunDtoPage:
|
|
1189
|
+
"""Get FTD Device Upgrade Runs
|
|
1190
|
+
|
|
1191
|
+
Get a list of FTD device upgrade runs in the SCC Firewall Manager Tenant. Each upgrade run represents a group of devices being upgraded, or staged for upgrades, together.
|
|
1192
|
+
|
|
1193
|
+
:param limit: The number of results to retrieve.
|
|
1194
|
+
:type limit: str
|
|
1195
|
+
: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.
|
|
1196
|
+
:type offset: str
|
|
1197
|
+
:param q: The query to execute. Use the Lucene Query Syntax to construct your query.
|
|
1198
|
+
:type q: str
|
|
1199
|
+
:param sort: The fields to sort results by.
|
|
1200
|
+
:type sort: List[str]
|
|
1201
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1202
|
+
number provided, it will be total request
|
|
1203
|
+
timeout. It can also be a pair (tuple) of
|
|
1204
|
+
(connection, read) timeouts.
|
|
1205
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1206
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1207
|
+
request; this effectively ignores the
|
|
1208
|
+
authentication in the spec for a single request.
|
|
1209
|
+
:type _request_auth: dict, optional
|
|
1210
|
+
:param _content_type: force content-type for the request.
|
|
1211
|
+
:type _content_type: str, Optional
|
|
1212
|
+
:param _headers: set to override the headers for a single
|
|
1213
|
+
request; this effectively ignores the headers
|
|
1214
|
+
in the spec for a single request.
|
|
1215
|
+
:type _headers: dict, optional
|
|
1216
|
+
:param _host_index: set to override the host_index for a single
|
|
1217
|
+
request; this effectively ignores the host_index
|
|
1218
|
+
in the spec for a single request.
|
|
1219
|
+
:type _host_index: int, optional
|
|
1220
|
+
:return: Returns the result object.
|
|
1221
|
+
""" # noqa: E501
|
|
1222
|
+
|
|
1223
|
+
_param = self._get_ftd_device_upgrade_runs_serialize(
|
|
1224
|
+
limit=limit,
|
|
1225
|
+
offset=offset,
|
|
1226
|
+
q=q,
|
|
1227
|
+
sort=sort,
|
|
1228
|
+
_request_auth=_request_auth,
|
|
1229
|
+
_content_type=_content_type,
|
|
1230
|
+
_headers=_headers,
|
|
1231
|
+
_host_index=_host_index
|
|
1232
|
+
)
|
|
1233
|
+
|
|
1234
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1235
|
+
'200': "FtdUpgradeRunDtoPage",
|
|
1236
|
+
'400': "CommonApiError",
|
|
1237
|
+
'401': "AuthenticationError",
|
|
1238
|
+
'403': "CommonApiError",
|
|
1239
|
+
'500': "CommonApiError",
|
|
1240
|
+
}
|
|
1241
|
+
response_data = self.api_client.call_api(
|
|
1242
|
+
*_param,
|
|
1243
|
+
_request_timeout=_request_timeout
|
|
1244
|
+
)
|
|
1245
|
+
response_data.read()
|
|
1246
|
+
return self.api_client.response_deserialize(
|
|
1247
|
+
response_data=response_data,
|
|
1248
|
+
response_types_map=_response_types_map,
|
|
1249
|
+
).data
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
@validate_call
|
|
1253
|
+
def get_ftd_device_upgrade_runs_with_http_info(
|
|
1254
|
+
self,
|
|
1255
|
+
limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
|
|
1256
|
+
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,
|
|
1257
|
+
q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
|
|
1258
|
+
sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
|
|
1259
|
+
_request_timeout: Union[
|
|
1260
|
+
None,
|
|
1261
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1262
|
+
Tuple[
|
|
1263
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1264
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1265
|
+
]
|
|
1266
|
+
] = None,
|
|
1267
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1268
|
+
_content_type: Optional[StrictStr] = None,
|
|
1269
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1270
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1271
|
+
) -> ApiResponse[FtdUpgradeRunDtoPage]:
|
|
1272
|
+
"""Get FTD Device Upgrade Runs
|
|
1273
|
+
|
|
1274
|
+
Get a list of FTD device upgrade runs in the SCC Firewall Manager Tenant. Each upgrade run represents a group of devices being upgraded, or staged for upgrades, together.
|
|
1275
|
+
|
|
1276
|
+
:param limit: The number of results to retrieve.
|
|
1277
|
+
:type limit: str
|
|
1278
|
+
: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.
|
|
1279
|
+
:type offset: str
|
|
1280
|
+
:param q: The query to execute. Use the Lucene Query Syntax to construct your query.
|
|
1281
|
+
:type q: str
|
|
1282
|
+
:param sort: The fields to sort results by.
|
|
1283
|
+
:type sort: List[str]
|
|
1284
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1285
|
+
number provided, it will be total request
|
|
1286
|
+
timeout. It can also be a pair (tuple) of
|
|
1287
|
+
(connection, read) timeouts.
|
|
1288
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1289
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1290
|
+
request; this effectively ignores the
|
|
1291
|
+
authentication in the spec for a single request.
|
|
1292
|
+
:type _request_auth: dict, optional
|
|
1293
|
+
:param _content_type: force content-type for the request.
|
|
1294
|
+
:type _content_type: str, Optional
|
|
1295
|
+
:param _headers: set to override the headers for a single
|
|
1296
|
+
request; this effectively ignores the headers
|
|
1297
|
+
in the spec for a single request.
|
|
1298
|
+
:type _headers: dict, optional
|
|
1299
|
+
:param _host_index: set to override the host_index for a single
|
|
1300
|
+
request; this effectively ignores the host_index
|
|
1301
|
+
in the spec for a single request.
|
|
1302
|
+
:type _host_index: int, optional
|
|
1303
|
+
:return: Returns the result object.
|
|
1304
|
+
""" # noqa: E501
|
|
1305
|
+
|
|
1306
|
+
_param = self._get_ftd_device_upgrade_runs_serialize(
|
|
1307
|
+
limit=limit,
|
|
1308
|
+
offset=offset,
|
|
1309
|
+
q=q,
|
|
1310
|
+
sort=sort,
|
|
1311
|
+
_request_auth=_request_auth,
|
|
1312
|
+
_content_type=_content_type,
|
|
1313
|
+
_headers=_headers,
|
|
1314
|
+
_host_index=_host_index
|
|
1315
|
+
)
|
|
1316
|
+
|
|
1317
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1318
|
+
'200': "FtdUpgradeRunDtoPage",
|
|
1319
|
+
'400': "CommonApiError",
|
|
1320
|
+
'401': "AuthenticationError",
|
|
1321
|
+
'403': "CommonApiError",
|
|
1322
|
+
'500': "CommonApiError",
|
|
1323
|
+
}
|
|
1324
|
+
response_data = self.api_client.call_api(
|
|
1325
|
+
*_param,
|
|
1326
|
+
_request_timeout=_request_timeout
|
|
1327
|
+
)
|
|
1328
|
+
response_data.read()
|
|
1329
|
+
return self.api_client.response_deserialize(
|
|
1330
|
+
response_data=response_data,
|
|
1331
|
+
response_types_map=_response_types_map,
|
|
1332
|
+
)
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
@validate_call
|
|
1336
|
+
def get_ftd_device_upgrade_runs_without_preload_content(
|
|
1337
|
+
self,
|
|
1338
|
+
limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
|
|
1339
|
+
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,
|
|
1340
|
+
q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
|
|
1341
|
+
sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
|
|
1342
|
+
_request_timeout: Union[
|
|
1343
|
+
None,
|
|
1344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1345
|
+
Tuple[
|
|
1346
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1347
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1348
|
+
]
|
|
1349
|
+
] = None,
|
|
1350
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1351
|
+
_content_type: Optional[StrictStr] = None,
|
|
1352
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1353
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1354
|
+
) -> RESTResponseType:
|
|
1355
|
+
"""Get FTD Device Upgrade Runs
|
|
1356
|
+
|
|
1357
|
+
Get a list of FTD device upgrade runs in the SCC Firewall Manager Tenant. Each upgrade run represents a group of devices being upgraded, or staged for upgrades, together.
|
|
1358
|
+
|
|
1359
|
+
:param limit: The number of results to retrieve.
|
|
1360
|
+
:type limit: str
|
|
1361
|
+
: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.
|
|
1362
|
+
:type offset: str
|
|
1363
|
+
:param q: The query to execute. Use the Lucene Query Syntax to construct your query.
|
|
1364
|
+
:type q: str
|
|
1365
|
+
:param sort: The fields to sort results by.
|
|
1366
|
+
:type sort: List[str]
|
|
1367
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1368
|
+
number provided, it will be total request
|
|
1369
|
+
timeout. It can also be a pair (tuple) of
|
|
1370
|
+
(connection, read) timeouts.
|
|
1371
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1372
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1373
|
+
request; this effectively ignores the
|
|
1374
|
+
authentication in the spec for a single request.
|
|
1375
|
+
:type _request_auth: dict, optional
|
|
1376
|
+
:param _content_type: force content-type for the request.
|
|
1377
|
+
:type _content_type: str, Optional
|
|
1378
|
+
:param _headers: set to override the headers for a single
|
|
1379
|
+
request; this effectively ignores the headers
|
|
1380
|
+
in the spec for a single request.
|
|
1381
|
+
:type _headers: dict, optional
|
|
1382
|
+
:param _host_index: set to override the host_index for a single
|
|
1383
|
+
request; this effectively ignores the host_index
|
|
1384
|
+
in the spec for a single request.
|
|
1385
|
+
:type _host_index: int, optional
|
|
1386
|
+
:return: Returns the result object.
|
|
1387
|
+
""" # noqa: E501
|
|
1388
|
+
|
|
1389
|
+
_param = self._get_ftd_device_upgrade_runs_serialize(
|
|
1390
|
+
limit=limit,
|
|
1391
|
+
offset=offset,
|
|
1392
|
+
q=q,
|
|
1393
|
+
sort=sort,
|
|
1394
|
+
_request_auth=_request_auth,
|
|
1395
|
+
_content_type=_content_type,
|
|
1396
|
+
_headers=_headers,
|
|
1397
|
+
_host_index=_host_index
|
|
1398
|
+
)
|
|
1399
|
+
|
|
1400
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1401
|
+
'200': "FtdUpgradeRunDtoPage",
|
|
1402
|
+
'400': "CommonApiError",
|
|
1403
|
+
'401': "AuthenticationError",
|
|
1404
|
+
'403': "CommonApiError",
|
|
1405
|
+
'500': "CommonApiError",
|
|
1406
|
+
}
|
|
1407
|
+
response_data = self.api_client.call_api(
|
|
1408
|
+
*_param,
|
|
1409
|
+
_request_timeout=_request_timeout
|
|
1410
|
+
)
|
|
1411
|
+
return response_data.response
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
def _get_ftd_device_upgrade_runs_serialize(
|
|
1415
|
+
self,
|
|
1416
|
+
limit,
|
|
1417
|
+
offset,
|
|
1418
|
+
q,
|
|
1419
|
+
sort,
|
|
1420
|
+
_request_auth,
|
|
1421
|
+
_content_type,
|
|
1422
|
+
_headers,
|
|
1423
|
+
_host_index,
|
|
1424
|
+
) -> RequestSerialized:
|
|
1425
|
+
|
|
1426
|
+
_host = None
|
|
1427
|
+
|
|
1428
|
+
_collection_formats: Dict[str, str] = {
|
|
1429
|
+
'sort': 'multi',
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
_path_params: Dict[str, str] = {}
|
|
1433
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1434
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1435
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1436
|
+
_files: Dict[str, str] = {}
|
|
1437
|
+
_body_params: Optional[bytes] = None
|
|
1438
|
+
|
|
1439
|
+
# process the path parameters
|
|
1440
|
+
# process the query parameters
|
|
1441
|
+
if limit is not None:
|
|
1442
|
+
|
|
1443
|
+
_query_params.append(('limit', limit))
|
|
1444
|
+
|
|
1445
|
+
if offset is not None:
|
|
1446
|
+
|
|
1447
|
+
_query_params.append(('offset', offset))
|
|
1448
|
+
|
|
1449
|
+
if q is not None:
|
|
1450
|
+
|
|
1451
|
+
_query_params.append(('q', q))
|
|
1452
|
+
|
|
1453
|
+
if sort is not None:
|
|
1454
|
+
|
|
1455
|
+
_query_params.append(('sort', sort))
|
|
1456
|
+
|
|
1457
|
+
# process the header parameters
|
|
1458
|
+
# process the form parameters
|
|
1459
|
+
# process the body parameter
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
# set the HTTP header `Accept`
|
|
1463
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1464
|
+
[
|
|
1465
|
+
'application/json'
|
|
1466
|
+
]
|
|
1467
|
+
)
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
# authentication setting
|
|
1471
|
+
_auth_settings: List[str] = [
|
|
1472
|
+
'bearerAuth'
|
|
1473
|
+
]
|
|
1474
|
+
|
|
1475
|
+
return self.api_client.param_serialize(
|
|
1476
|
+
method='GET',
|
|
1477
|
+
resource_path='/v1/inventory/devices/upgrades/runs',
|
|
1478
|
+
path_params=_path_params,
|
|
1479
|
+
query_params=_query_params,
|
|
1480
|
+
header_params=_header_params,
|
|
1481
|
+
body=_body_params,
|
|
1482
|
+
post_params=_form_params,
|
|
1483
|
+
files=_files,
|
|
1484
|
+
auth_settings=_auth_settings,
|
|
1485
|
+
collection_formats=_collection_formats,
|
|
1486
|
+
_host=_host,
|
|
1487
|
+
_request_auth=_request_auth
|
|
1488
|
+
)
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
898
1493
|
@validate_call
|
|
899
1494
|
def update_ftd_upgrade_packages_cache(
|
|
900
1495
|
self,
|
|
@@ -316,7 +316,7 @@ class MSPDeviceHealthAggregationsApi:
|
|
|
316
316
|
|
|
317
317
|
return self.api_client.param_serialize(
|
|
318
318
|
method='GET',
|
|
319
|
-
resource_path='/v1/msp/inventory/devices/
|
|
319
|
+
resource_path='/v1/msp/inventory/devices/health/metrics/aggregations',
|
|
320
320
|
path_params=_path_params,
|
|
321
321
|
query_params=_query_params,
|
|
322
322
|
header_params=_header_params,
|
|
@@ -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.30/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.30".\
|
|
384
384
|
format(env=sys.platform, pyversion=sys.version)
|
|
385
385
|
|
|
386
386
|
def get_host_settings(self):
|
|
@@ -123,6 +123,7 @@ from scc_firewall_manager_sdk.models.ftd_deployment_input import FtdDeploymentIn
|
|
|
123
123
|
from scc_firewall_manager_sdk.models.ftd_ha_info import FtdHaInfo
|
|
124
124
|
from scc_firewall_manager_sdk.models.ftd_multi_device_deployment_input import FtdMultiDeviceDeploymentInput
|
|
125
125
|
from scc_firewall_manager_sdk.models.ftd_registration_input import FtdRegistrationInput
|
|
126
|
+
from scc_firewall_manager_sdk.models.ftd_upgrade_run_dto_page import FtdUpgradeRunDtoPage
|
|
126
127
|
from scc_firewall_manager_sdk.models.ftd_version import FtdVersion
|
|
127
128
|
from scc_firewall_manager_sdk.models.ftd_versions_response import FtdVersionsResponse
|
|
128
129
|
from scc_firewall_manager_sdk.models.global_search_result import GlobalSearchResult
|
|
@@ -235,6 +236,7 @@ from scc_firewall_manager_sdk.models.update_request import UpdateRequest
|
|
|
235
236
|
from scc_firewall_manager_sdk.models.upgrade_asa_device_input import UpgradeAsaDeviceInput
|
|
236
237
|
from scc_firewall_manager_sdk.models.upgrade_ftd_device_input import UpgradeFtdDeviceInput
|
|
237
238
|
from scc_firewall_manager_sdk.models.upgrade_ftd_devices_input import UpgradeFtdDevicesInput
|
|
239
|
+
from scc_firewall_manager_sdk.models.upgrade_run_dto import UpgradeRunDto
|
|
238
240
|
from scc_firewall_manager_sdk.models.url_object_content import UrlObjectContent
|
|
239
241
|
from scc_firewall_manager_sdk.models.user import User
|
|
240
242
|
from scc_firewall_manager_sdk.models.user_create_or_update_input import UserCreateOrUpdateInput
|
|
@@ -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, StrictInt
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from scc_firewall_manager_sdk.models.upgrade_run_dto import UpgradeRunDto
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class FtdUpgradeRunDtoPage(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
FtdUpgradeRunDtoPage
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
count: Optional[StrictInt] = Field(default=None, description="The total number of results available.")
|
|
32
|
+
items: Optional[List[UpgradeRunDto]] = Field(default=None, description="The list of items retrieved.")
|
|
33
|
+
limit: Optional[StrictInt] = Field(default=None, description="The number of results retrieved.")
|
|
34
|
+
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.")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["count", "items", "limit", "offset"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of FtdUpgradeRunDtoPage from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of each item in items (list)
|
|
77
|
+
_items = []
|
|
78
|
+
if self.items:
|
|
79
|
+
for _item in self.items:
|
|
80
|
+
if _item:
|
|
81
|
+
_items.append(_item.to_dict())
|
|
82
|
+
_dict['items'] = _items
|
|
83
|
+
return _dict
|
|
84
|
+
|
|
85
|
+
@classmethod
|
|
86
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
+
"""Create an instance of FtdUpgradeRunDtoPage from a dict"""
|
|
88
|
+
if obj is None:
|
|
89
|
+
return None
|
|
90
|
+
|
|
91
|
+
if not isinstance(obj, dict):
|
|
92
|
+
return cls.model_validate(obj)
|
|
93
|
+
|
|
94
|
+
_obj = cls.model_validate({
|
|
95
|
+
"count": obj.get("count"),
|
|
96
|
+
"items": [UpgradeRunDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
|
|
97
|
+
"limit": obj.get("limit"),
|
|
98
|
+
"offset": obj.get("offset")
|
|
99
|
+
})
|
|
100
|
+
return _obj
|
|
101
|
+
|
|
102
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
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, StrictBool, StrictStr, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UpgradeRunDto(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpgradeRunDto
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
device_uids: Optional[List[StrictStr]] = Field(default=None, description="The set of device UIDs that are part of this upgrade run.", alias="deviceUids")
|
|
31
|
+
name: Optional[StrictStr] = Field(default=None, description="The name of the upgrade run. Upgrade runs names are unique in a tenant in SCC Firewall Manager.")
|
|
32
|
+
stage_upgrade_only: Optional[StrictBool] = Field(default=None, description="Indicates if this upgrade run is to stage the upgrade on the device. If set to true, the upgrade is not applied on the device.", alias="stageUpgradeOnly")
|
|
33
|
+
transaction_uid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the CDO transaction that tracks this upgrade run.", alias="transactionUid")
|
|
34
|
+
uid: Optional[StrictStr] = Field(default=None, description="The unique identifier, represented as a UUID, of the FTD device upgrade run in SCC Firewall Manager.")
|
|
35
|
+
upgrade_package_uid: Optional[StrictStr] = Field(default=None, description="(cdFMC-managed FTD device upgrades only) The unique identifier of the upgrade package being used.", alias="upgradePackageUid")
|
|
36
|
+
upgrade_run_status: Optional[StrictStr] = Field(default=None, description="The current status of the upgrade run.", alias="upgradeRunStatus")
|
|
37
|
+
upgrade_run_type: Optional[StrictStr] = Field(default=None, description="The type of the upgrade run", alias="upgradeRunType")
|
|
38
|
+
__properties: ClassVar[List[str]] = ["deviceUids", "name", "stageUpgradeOnly", "transactionUid", "uid", "upgradePackageUid", "upgradeRunStatus", "upgradeRunType"]
|
|
39
|
+
|
|
40
|
+
@field_validator('upgrade_run_status')
|
|
41
|
+
def upgrade_run_status_validate_enum(cls, value):
|
|
42
|
+
"""Validates the enum"""
|
|
43
|
+
if value is None:
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
if value not in set(['UPLOADING_IMAGE', 'PERFORMING_READINESS_CHECK', 'UPGRADE_STAGED', 'UGPRADE_STAGING_FAILED', 'PERFORMING_UPGRADE', 'UPGRADE_COMPLETED', 'UPGRADE_FAILED']):
|
|
47
|
+
raise ValueError("must be one of enum values ('UPLOADING_IMAGE', 'PERFORMING_READINESS_CHECK', 'UPGRADE_STAGED', 'UGPRADE_STAGING_FAILED', 'PERFORMING_UPGRADE', 'UPGRADE_COMPLETED', 'UPGRADE_FAILED')")
|
|
48
|
+
return value
|
|
49
|
+
|
|
50
|
+
@field_validator('upgrade_run_type')
|
|
51
|
+
def upgrade_run_type_validate_enum(cls, value):
|
|
52
|
+
"""Validates the enum"""
|
|
53
|
+
if value is None:
|
|
54
|
+
return value
|
|
55
|
+
|
|
56
|
+
if value not in set(['ASA_DEVICE_UPGRADE', 'FTD_DEVICE_UPGRADE', 'FTD_SECURE_CLIENT_UPGRADE', 'ASA_SECURE_CLIENT_UPGRADE']):
|
|
57
|
+
raise ValueError("must be one of enum values ('ASA_DEVICE_UPGRADE', 'FTD_DEVICE_UPGRADE', 'FTD_SECURE_CLIENT_UPGRADE', 'ASA_SECURE_CLIENT_UPGRADE')")
|
|
58
|
+
return value
|
|
59
|
+
|
|
60
|
+
model_config = ConfigDict(
|
|
61
|
+
populate_by_name=True,
|
|
62
|
+
validate_assignment=True,
|
|
63
|
+
protected_namespaces=(),
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def to_str(self) -> str:
|
|
68
|
+
"""Returns the string representation of the model using alias"""
|
|
69
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
70
|
+
|
|
71
|
+
def to_json(self) -> str:
|
|
72
|
+
"""Returns the JSON representation of the model using alias"""
|
|
73
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
74
|
+
return json.dumps(self.to_dict())
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of UpgradeRunDto from a JSON string"""
|
|
79
|
+
return cls.from_dict(json.loads(json_str))
|
|
80
|
+
|
|
81
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
82
|
+
"""Return the dictionary representation of the model using alias.
|
|
83
|
+
|
|
84
|
+
This has the following differences from calling pydantic's
|
|
85
|
+
`self.model_dump(by_alias=True)`:
|
|
86
|
+
|
|
87
|
+
* `None` is only added to the output dict for nullable fields that
|
|
88
|
+
were set at model initialization. Other fields with value `None`
|
|
89
|
+
are ignored.
|
|
90
|
+
"""
|
|
91
|
+
excluded_fields: Set[str] = set([
|
|
92
|
+
])
|
|
93
|
+
|
|
94
|
+
_dict = self.model_dump(
|
|
95
|
+
by_alias=True,
|
|
96
|
+
exclude=excluded_fields,
|
|
97
|
+
exclude_none=True,
|
|
98
|
+
)
|
|
99
|
+
return _dict
|
|
100
|
+
|
|
101
|
+
@classmethod
|
|
102
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
103
|
+
"""Create an instance of UpgradeRunDto from a dict"""
|
|
104
|
+
if obj is None:
|
|
105
|
+
return None
|
|
106
|
+
|
|
107
|
+
if not isinstance(obj, dict):
|
|
108
|
+
return cls.model_validate(obj)
|
|
109
|
+
|
|
110
|
+
_obj = cls.model_validate({
|
|
111
|
+
"deviceUids": obj.get("deviceUids"),
|
|
112
|
+
"name": obj.get("name"),
|
|
113
|
+
"stageUpgradeOnly": obj.get("stageUpgradeOnly"),
|
|
114
|
+
"transactionUid": obj.get("transactionUid"),
|
|
115
|
+
"uid": obj.get("uid"),
|
|
116
|
+
"upgradePackageUid": obj.get("upgradePackageUid"),
|
|
117
|
+
"upgradeRunStatus": obj.get("upgradeRunStatus"),
|
|
118
|
+
"upgradeRunType": obj.get("upgradeRunType")
|
|
119
|
+
})
|
|
120
|
+
return _obj
|
|
121
|
+
|
|
122
|
+
|
{scc_firewall_manager_sdk-1.15.28.dist-info → scc_firewall_manager_sdk-1.15.30.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=cOANleFcO3c-oXvf7j92QFGQk9OzwBdN8juxgbEPPyY,21822
|
|
2
|
+
scc_firewall_manager_sdk/api_client.py,sha256=Wy1lBCbcM4b1rjL7REQdA13YeHIaSH5FAEyGBim73zs,25920
|
|
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=u-fnm8CifJ1MR5U8mLb-5Dnb-56_m3JTQQc6zJb3ITk,15992
|
|
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
|
|
@@ -17,10 +17,10 @@ scc_firewall_manager_sdk/api/command_line_interface_api.py,sha256=_sUPKdTkBkXNbk
|
|
|
17
17
|
scc_firewall_manager_sdk/api/commands_api.py,sha256=U1cDPCmUAgOPnCOC8KcbcQpLGSwgOBBgHUcKH6JmWK4,33891
|
|
18
18
|
scc_firewall_manager_sdk/api/connectors_api.py,sha256=lw4asxJMtyHTm3sxM6Z7S1O2tbr4ZtbjVrZIalmYagI,59889
|
|
19
19
|
scc_firewall_manager_sdk/api/device_health_api.py,sha256=UoxgUo10Am1kga8U0Kxhb6DDw6d7wpXxzGopsvUJ1JI,62283
|
|
20
|
-
scc_firewall_manager_sdk/api/device_upgrades_api.py,sha256=
|
|
20
|
+
scc_firewall_manager_sdk/api/device_upgrades_api.py,sha256=hkSAQI1JcHuKdotTCBIq4VzA-UeB2Yu1LL1h_CK37uI,114126
|
|
21
21
|
scc_firewall_manager_sdk/api/inventory_api.py,sha256=EJqDZzqBE4w_klxuo84rSYmrmbinGSJEbSbU6Wqs4Gg,444995
|
|
22
22
|
scc_firewall_manager_sdk/api/meta_api.py,sha256=0T4mIpkOc0FyDIvEN5qhRQbKN4CzOM00_sRVY2oG59U,29963
|
|
23
|
-
scc_firewall_manager_sdk/api/msp_device_health_aggregations_api.py,sha256=
|
|
23
|
+
scc_firewall_manager_sdk/api/msp_device_health_aggregations_api.py,sha256=ijjdWeZTpQg5wre_v-qQHIWWJi9Hg3f_dz6i8K0if-U,13808
|
|
24
24
|
scc_firewall_manager_sdk/api/msp_inventory_api.py,sha256=eLYqsv_7YNxQGLQLqEnWfSFPIJ8nWnuJQkZfxtGapxM,185473
|
|
25
25
|
scc_firewall_manager_sdk/api/msp_tenant_management_api.py,sha256=u1Ljk5-A3JnMGyfGNVVyc1L2ll6I1m43hrLflbqvT5M,108920
|
|
26
26
|
scc_firewall_manager_sdk/api/msp_user_management_api.py,sha256=MPy-WAv52ziuUcrK_Tq_q38PN1pbpgfL5fdqzYP81S8,54797
|
|
@@ -30,7 +30,7 @@ scc_firewall_manager_sdk/api/search_api.py,sha256=PonVl7RieSVsbCCVQOdqIA7vx2NCH5
|
|
|
30
30
|
scc_firewall_manager_sdk/api/tenant_management_api.py,sha256=3PWPuirkaUck1VZex3w4Cg3qO05GF0f7xeiptaAc5zE,55069
|
|
31
31
|
scc_firewall_manager_sdk/api/transactions_api.py,sha256=MHHQpikDJuyPAaDcXvLdIWZcpDVFYL8gmk4YkZQbTJE,12470
|
|
32
32
|
scc_firewall_manager_sdk/api/users_api.py,sha256=MKuyXmxWLSqPBkfA7rUGZ1EO1Ox-Oge7QhhgzSFAVu8,191609
|
|
33
|
-
scc_firewall_manager_sdk/models/__init__.py,sha256=
|
|
33
|
+
scc_firewall_manager_sdk/models/__init__.py,sha256=rxs-B6iCptwAYhJNmGA4ezJo1w9rsdba2sDhGdVYBoY,19332
|
|
34
34
|
scc_firewall_manager_sdk/models/access_group.py,sha256=9FlXrDT5xhtk-uWuwgMmM-qAGiKZrpfnkphZuogGsHo,4583
|
|
35
35
|
scc_firewall_manager_sdk/models/access_group_create_input.py,sha256=7tgCifqvqbwS2bZvS_PQdIV_ra_jiEbupJhyaHcG8ys,3930
|
|
36
36
|
scc_firewall_manager_sdk/models/access_group_page.py,sha256=imWa0te5qmTpXfuE8W8YM3SG01MIn4ewbA-_N8kPKHk,3725
|
|
@@ -139,6 +139,7 @@ scc_firewall_manager_sdk/models/ftd_deployment_input.py,sha256=3k4T_2km7ZA-OWHMc
|
|
|
139
139
|
scc_firewall_manager_sdk/models/ftd_ha_info.py,sha256=BASYR0-Yc9tHa31dCnsUYeJ3kvCscUb405iO4AlgdHM,5154
|
|
140
140
|
scc_firewall_manager_sdk/models/ftd_multi_device_deployment_input.py,sha256=GQsJxWF5HQe-CGE_nOSsZP1WqnLHS8Y3ZgOBwACQCic,3839
|
|
141
141
|
scc_firewall_manager_sdk/models/ftd_registration_input.py,sha256=9Gk-1BmP-CSfesXZsAluhsNncoVvZqNh32oh04YZxFc,3191
|
|
142
|
+
scc_firewall_manager_sdk/models/ftd_upgrade_run_dto_page.py,sha256=GxoWx4VQmcKbYfe0ydJ1QuJbVat1wMXMq9A7nO9YM70,3754
|
|
142
143
|
scc_firewall_manager_sdk/models/ftd_version.py,sha256=_vxx9mDA9Yw17QZwKngvSApzxJLw6cP0JDSyCjXgl88,3986
|
|
143
144
|
scc_firewall_manager_sdk/models/ftd_versions_response.py,sha256=Dh45CZJpqPa2YJGkzkrT548JeTU1l4zdohSBnFtFQXQ,3240
|
|
144
145
|
scc_firewall_manager_sdk/models/global_search_result.py,sha256=qZ_9gCPvKfbhy3xtwc32Uk5dKGWzrEQ8o_26IV3LFH0,4227
|
|
@@ -251,6 +252,7 @@ scc_firewall_manager_sdk/models/update_request.py,sha256=okwPfBTYcCUw5ZD1-XYOwa-
|
|
|
251
252
|
scc_firewall_manager_sdk/models/upgrade_asa_device_input.py,sha256=nGZpqNNTLxrRxqVWReVy05J8QtyhM05Fz9ZM1AMusDs,2980
|
|
252
253
|
scc_firewall_manager_sdk/models/upgrade_ftd_device_input.py,sha256=EkZVgn1onpw5ruKOa4ygYjty2VHVWdknM8G0c4r4VZA,3444
|
|
253
254
|
scc_firewall_manager_sdk/models/upgrade_ftd_devices_input.py,sha256=SOs24cfe6PwO9_8yefiwdGioYrIXPKQtU1GRa4IgCqc,3859
|
|
255
|
+
scc_firewall_manager_sdk/models/upgrade_run_dto.py,sha256=Aw4R31JM_NfUrPerNZEPpCq9zntmw5UvCt-xh104piU,5544
|
|
254
256
|
scc_firewall_manager_sdk/models/url_object_content.py,sha256=OqcDbRE_HoEGf4Z_yCsTH8B08R9GdY8RMOs1wM0-ecY,2657
|
|
255
257
|
scc_firewall_manager_sdk/models/user.py,sha256=2bH858kufK8KnTsIXIul0VOH0JpJ-g4zyXE9lyMQHGE,4297
|
|
256
258
|
scc_firewall_manager_sdk/models/user_create_or_update_input.py,sha256=_H5fXo4_Pa5_mIK7T2LzPu_ekMnZlXdxVvsU8Rs612g,3850
|
|
@@ -262,7 +264,7 @@ scc_firewall_manager_sdk/models/vlan_interface_create_input.py,sha256=AKUqPJw5ku
|
|
|
262
264
|
scc_firewall_manager_sdk/models/vlan_interface_patch_input.py,sha256=srEFTyQykscNrWsbp8KGEzbmHC07_AU3DXjJ-7Be4zc,6054
|
|
263
265
|
scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=HAgBTdocZeHGDZP_-9NyRtzP9E7BReGtiOmn4S3J-_g,5326
|
|
264
266
|
scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=f9Z62yGFvz4QAQ07Z4bjfHLw2bRg46ccwoLuQ8q30TE,4808
|
|
265
|
-
scc_firewall_manager_sdk-1.15.
|
|
266
|
-
scc_firewall_manager_sdk-1.15.
|
|
267
|
-
scc_firewall_manager_sdk-1.15.
|
|
268
|
-
scc_firewall_manager_sdk-1.15.
|
|
267
|
+
scc_firewall_manager_sdk-1.15.30.dist-info/METADATA,sha256=b_Bn3-OaS87GOf7hy9iBqNawUHnA7Flcta8egOLlWFU,595
|
|
268
|
+
scc_firewall_manager_sdk-1.15.30.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
269
|
+
scc_firewall_manager_sdk-1.15.30.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
|
|
270
|
+
scc_firewall_manager_sdk-1.15.30.dist-info/RECORD,,
|
{scc_firewall_manager_sdk-1.15.28.dist-info → scc_firewall_manager_sdk-1.15.30.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|