scc-firewall-manager-sdk 1.15.222__py3-none-any.whl → 1.15.224__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 +5 -1
- scc_firewall_manager_sdk/api/device_upgrades_api.py +283 -282
- scc_firewall_manager_sdk/api/msp_device_upgrades_api.py +1089 -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 +4 -0
- scc_firewall_manager_sdk/models/device_upgrade_status_dto.py +112 -0
- scc_firewall_manager_sdk/models/msp_managed_device.py +7 -1
- scc_firewall_manager_sdk/models/msp_upgrade_run_dto.py +133 -0
- scc_firewall_manager_sdk/models/msp_upgrade_run_dto_page.py +102 -0
- scc_firewall_manager_sdk/models/upgrade_run_dto.py +2 -2
- scc_firewall_manager_sdk/models/upgrade_run_metadata_dto.py +96 -0
- {scc_firewall_manager_sdk-1.15.222.dist-info → scc_firewall_manager_sdk-1.15.224.dist-info}/METADATA +1 -1
- {scc_firewall_manager_sdk-1.15.222.dist-info → scc_firewall_manager_sdk-1.15.224.dist-info}/RECORD +16 -12
- {scc_firewall_manager_sdk-1.15.222.dist-info → scc_firewall_manager_sdk-1.15.224.dist-info}/WHEEL +0 -0
- {scc_firewall_manager_sdk-1.15.222.dist-info → scc_firewall_manager_sdk-1.15.224.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.224"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
|
|
@@ -142,6 +142,7 @@ from scc_firewall_manager_sdk.models.device_metadata import DeviceMetadata
|
|
|
142
142
|
from scc_firewall_manager_sdk.models.device_page import DevicePage
|
|
143
143
|
from scc_firewall_manager_sdk.models.device_patch_input import DevicePatchInput
|
|
144
144
|
from scc_firewall_manager_sdk.models.device_role import DeviceRole
|
|
145
|
+
from scc_firewall_manager_sdk.models.device_upgrade_status_dto import DeviceUpgradeStatusDto
|
|
145
146
|
from scc_firewall_manager_sdk.models.devices_patch_input import DevicesPatchInput
|
|
146
147
|
from scc_firewall_manager_sdk.models.disk_health_metrics import DiskHealthMetrics
|
|
147
148
|
from scc_firewall_manager_sdk.models.domain_settings import DomainSettings
|
|
@@ -230,6 +231,8 @@ from scc_firewall_manager_sdk.models.msp_managed_template_distinct_attribute_val
|
|
|
230
231
|
from scc_firewall_manager_sdk.models.msp_managed_templates_page import MspManagedTemplatesPage
|
|
231
232
|
from scc_firewall_manager_sdk.models.msp_managed_tenant import MspManagedTenant
|
|
232
233
|
from scc_firewall_manager_sdk.models.msp_managed_tenant_page import MspManagedTenantPage
|
|
234
|
+
from scc_firewall_manager_sdk.models.msp_upgrade_run_dto import MspUpgradeRunDto
|
|
235
|
+
from scc_firewall_manager_sdk.models.msp_upgrade_run_dto_page import MspUpgradeRunDtoPage
|
|
233
236
|
from scc_firewall_manager_sdk.models.network import Network
|
|
234
237
|
from scc_firewall_manager_sdk.models.network_object_content import NetworkObjectContent
|
|
235
238
|
from scc_firewall_manager_sdk.models.os import OS
|
|
@@ -288,6 +291,7 @@ from scc_firewall_manager_sdk.models.upgrade_compatibility_info_dto import Upgra
|
|
|
288
291
|
from scc_firewall_manager_sdk.models.upgrade_ftd_device_input import UpgradeFtdDeviceInput
|
|
289
292
|
from scc_firewall_manager_sdk.models.upgrade_ftd_devices_input import UpgradeFtdDevicesInput
|
|
290
293
|
from scc_firewall_manager_sdk.models.upgrade_run_dto import UpgradeRunDto
|
|
294
|
+
from scc_firewall_manager_sdk.models.upgrade_run_metadata_dto import UpgradeRunMetadataDto
|
|
291
295
|
from scc_firewall_manager_sdk.models.upgrade_run_modify_input import UpgradeRunModifyInput
|
|
292
296
|
from scc_firewall_manager_sdk.models.url_object_content import UrlObjectContent
|
|
293
297
|
from scc_firewall_manager_sdk.models.user import User
|
|
@@ -28,6 +28,7 @@ from scc_firewall_manager_sdk.models.ftd_versions_response import FtdVersionsRes
|
|
|
28
28
|
from scc_firewall_manager_sdk.models.upgrade_asa_device_input import UpgradeAsaDeviceInput
|
|
29
29
|
from scc_firewall_manager_sdk.models.upgrade_ftd_device_input import UpgradeFtdDeviceInput
|
|
30
30
|
from scc_firewall_manager_sdk.models.upgrade_ftd_devices_input import UpgradeFtdDevicesInput
|
|
31
|
+
from scc_firewall_manager_sdk.models.upgrade_run_dto import UpgradeRunDto
|
|
31
32
|
from scc_firewall_manager_sdk.models.upgrade_run_modify_input import UpgradeRunModifyInput
|
|
32
33
|
|
|
33
34
|
from scc_firewall_manager_sdk.api_client import ApiClient, RequestSerialized
|
|
@@ -48,6 +49,276 @@ class DeviceUpgradesApi:
|
|
|
48
49
|
self.api_client = api_client
|
|
49
50
|
|
|
50
51
|
|
|
52
|
+
@validate_call
|
|
53
|
+
def delete_device_upgrade_run(
|
|
54
|
+
self,
|
|
55
|
+
uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
56
|
+
_request_timeout: Union[
|
|
57
|
+
None,
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Tuple[
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
62
|
+
]
|
|
63
|
+
] = None,
|
|
64
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_content_type: Optional[StrictStr] = None,
|
|
66
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
+
) -> None:
|
|
69
|
+
"""Delete Device Upgrade Run
|
|
70
|
+
|
|
71
|
+
Delete a Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Warning: if you delete an upgrade run currently in progress, you may end up allowing multiple upgrades to be triggered on devices.
|
|
72
|
+
|
|
73
|
+
:param uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
74
|
+
:type uid: str
|
|
75
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
76
|
+
number provided, it will be total request
|
|
77
|
+
timeout. It can also be a pair (tuple) of
|
|
78
|
+
(connection, read) timeouts.
|
|
79
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
80
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
81
|
+
request; this effectively ignores the
|
|
82
|
+
authentication in the spec for a single request.
|
|
83
|
+
:type _request_auth: dict, optional
|
|
84
|
+
:param _content_type: force content-type for the request.
|
|
85
|
+
:type _content_type: str, Optional
|
|
86
|
+
:param _headers: set to override the headers for a single
|
|
87
|
+
request; this effectively ignores the headers
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _headers: dict, optional
|
|
90
|
+
:param _host_index: set to override the host_index for a single
|
|
91
|
+
request; this effectively ignores the host_index
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _host_index: int, optional
|
|
94
|
+
:return: Returns the result object.
|
|
95
|
+
""" # noqa: E501
|
|
96
|
+
|
|
97
|
+
_param = self._delete_device_upgrade_run_serialize(
|
|
98
|
+
uid=uid,
|
|
99
|
+
_request_auth=_request_auth,
|
|
100
|
+
_content_type=_content_type,
|
|
101
|
+
_headers=_headers,
|
|
102
|
+
_host_index=_host_index
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
106
|
+
'204': None,
|
|
107
|
+
'400': "CommonApiError",
|
|
108
|
+
'401': "AuthenticationError",
|
|
109
|
+
'403': "CommonApiError",
|
|
110
|
+
'500': "CommonApiError",
|
|
111
|
+
}
|
|
112
|
+
response_data = self.api_client.call_api(
|
|
113
|
+
*_param,
|
|
114
|
+
_request_timeout=_request_timeout
|
|
115
|
+
)
|
|
116
|
+
response_data.read()
|
|
117
|
+
return self.api_client.response_deserialize(
|
|
118
|
+
response_data=response_data,
|
|
119
|
+
response_types_map=_response_types_map,
|
|
120
|
+
).data
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
@validate_call
|
|
124
|
+
def delete_device_upgrade_run_with_http_info(
|
|
125
|
+
self,
|
|
126
|
+
uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
127
|
+
_request_timeout: Union[
|
|
128
|
+
None,
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
130
|
+
Tuple[
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
133
|
+
]
|
|
134
|
+
] = None,
|
|
135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
136
|
+
_content_type: Optional[StrictStr] = None,
|
|
137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
139
|
+
) -> ApiResponse[None]:
|
|
140
|
+
"""Delete Device Upgrade Run
|
|
141
|
+
|
|
142
|
+
Delete a Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Warning: if you delete an upgrade run currently in progress, you may end up allowing multiple upgrades to be triggered on devices.
|
|
143
|
+
|
|
144
|
+
:param uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
145
|
+
:type uid: str
|
|
146
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
147
|
+
number provided, it will be total request
|
|
148
|
+
timeout. It can also be a pair (tuple) of
|
|
149
|
+
(connection, read) timeouts.
|
|
150
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
151
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
152
|
+
request; this effectively ignores the
|
|
153
|
+
authentication in the spec for a single request.
|
|
154
|
+
:type _request_auth: dict, optional
|
|
155
|
+
:param _content_type: force content-type for the request.
|
|
156
|
+
:type _content_type: str, Optional
|
|
157
|
+
:param _headers: set to override the headers for a single
|
|
158
|
+
request; this effectively ignores the headers
|
|
159
|
+
in the spec for a single request.
|
|
160
|
+
:type _headers: dict, optional
|
|
161
|
+
:param _host_index: set to override the host_index for a single
|
|
162
|
+
request; this effectively ignores the host_index
|
|
163
|
+
in the spec for a single request.
|
|
164
|
+
:type _host_index: int, optional
|
|
165
|
+
:return: Returns the result object.
|
|
166
|
+
""" # noqa: E501
|
|
167
|
+
|
|
168
|
+
_param = self._delete_device_upgrade_run_serialize(
|
|
169
|
+
uid=uid,
|
|
170
|
+
_request_auth=_request_auth,
|
|
171
|
+
_content_type=_content_type,
|
|
172
|
+
_headers=_headers,
|
|
173
|
+
_host_index=_host_index
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
|
+
'204': None,
|
|
178
|
+
'400': "CommonApiError",
|
|
179
|
+
'401': "AuthenticationError",
|
|
180
|
+
'403': "CommonApiError",
|
|
181
|
+
'500': "CommonApiError",
|
|
182
|
+
}
|
|
183
|
+
response_data = self.api_client.call_api(
|
|
184
|
+
*_param,
|
|
185
|
+
_request_timeout=_request_timeout
|
|
186
|
+
)
|
|
187
|
+
response_data.read()
|
|
188
|
+
return self.api_client.response_deserialize(
|
|
189
|
+
response_data=response_data,
|
|
190
|
+
response_types_map=_response_types_map,
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@validate_call
|
|
195
|
+
def delete_device_upgrade_run_without_preload_content(
|
|
196
|
+
self,
|
|
197
|
+
uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
198
|
+
_request_timeout: Union[
|
|
199
|
+
None,
|
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
201
|
+
Tuple[
|
|
202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
203
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
204
|
+
]
|
|
205
|
+
] = None,
|
|
206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
207
|
+
_content_type: Optional[StrictStr] = None,
|
|
208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
210
|
+
) -> RESTResponseType:
|
|
211
|
+
"""Delete Device Upgrade Run
|
|
212
|
+
|
|
213
|
+
Delete a Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Warning: if you delete an upgrade run currently in progress, you may end up allowing multiple upgrades to be triggered on devices.
|
|
214
|
+
|
|
215
|
+
:param uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
216
|
+
:type uid: str
|
|
217
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
218
|
+
number provided, it will be total request
|
|
219
|
+
timeout. It can also be a pair (tuple) of
|
|
220
|
+
(connection, read) timeouts.
|
|
221
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
222
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
223
|
+
request; this effectively ignores the
|
|
224
|
+
authentication in the spec for a single request.
|
|
225
|
+
:type _request_auth: dict, optional
|
|
226
|
+
:param _content_type: force content-type for the request.
|
|
227
|
+
:type _content_type: str, Optional
|
|
228
|
+
:param _headers: set to override the headers for a single
|
|
229
|
+
request; this effectively ignores the headers
|
|
230
|
+
in the spec for a single request.
|
|
231
|
+
:type _headers: dict, optional
|
|
232
|
+
:param _host_index: set to override the host_index for a single
|
|
233
|
+
request; this effectively ignores the host_index
|
|
234
|
+
in the spec for a single request.
|
|
235
|
+
:type _host_index: int, optional
|
|
236
|
+
:return: Returns the result object.
|
|
237
|
+
""" # noqa: E501
|
|
238
|
+
|
|
239
|
+
_param = self._delete_device_upgrade_run_serialize(
|
|
240
|
+
uid=uid,
|
|
241
|
+
_request_auth=_request_auth,
|
|
242
|
+
_content_type=_content_type,
|
|
243
|
+
_headers=_headers,
|
|
244
|
+
_host_index=_host_index
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
248
|
+
'204': None,
|
|
249
|
+
'400': "CommonApiError",
|
|
250
|
+
'401': "AuthenticationError",
|
|
251
|
+
'403': "CommonApiError",
|
|
252
|
+
'500': "CommonApiError",
|
|
253
|
+
}
|
|
254
|
+
response_data = self.api_client.call_api(
|
|
255
|
+
*_param,
|
|
256
|
+
_request_timeout=_request_timeout
|
|
257
|
+
)
|
|
258
|
+
return response_data.response
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def _delete_device_upgrade_run_serialize(
|
|
262
|
+
self,
|
|
263
|
+
uid,
|
|
264
|
+
_request_auth,
|
|
265
|
+
_content_type,
|
|
266
|
+
_headers,
|
|
267
|
+
_host_index,
|
|
268
|
+
) -> RequestSerialized:
|
|
269
|
+
|
|
270
|
+
_host = None
|
|
271
|
+
|
|
272
|
+
_collection_formats: Dict[str, str] = {
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
_path_params: Dict[str, str] = {}
|
|
276
|
+
_query_params: List[Tuple[str, str]] = []
|
|
277
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
278
|
+
_form_params: List[Tuple[str, str]] = []
|
|
279
|
+
_files: Dict[str, str] = {}
|
|
280
|
+
_body_params: Optional[bytes] = None
|
|
281
|
+
|
|
282
|
+
# process the path parameters
|
|
283
|
+
if uid is not None:
|
|
284
|
+
_path_params['uid'] = uid
|
|
285
|
+
# process the query parameters
|
|
286
|
+
# process the header parameters
|
|
287
|
+
# process the form parameters
|
|
288
|
+
# process the body parameter
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
# set the HTTP header `Accept`
|
|
292
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
293
|
+
[
|
|
294
|
+
'application/json'
|
|
295
|
+
]
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
# authentication setting
|
|
300
|
+
_auth_settings: List[str] = [
|
|
301
|
+
'bearerAuth'
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
return self.api_client.param_serialize(
|
|
305
|
+
method='DELETE',
|
|
306
|
+
resource_path='/v1/inventory/devices/upgrades/runs/{uid}',
|
|
307
|
+
path_params=_path_params,
|
|
308
|
+
query_params=_query_params,
|
|
309
|
+
header_params=_header_params,
|
|
310
|
+
body=_body_params,
|
|
311
|
+
post_params=_form_params,
|
|
312
|
+
files=_files,
|
|
313
|
+
auth_settings=_auth_settings,
|
|
314
|
+
collection_formats=_collection_formats,
|
|
315
|
+
_host=_host,
|
|
316
|
+
_request_auth=_request_auth
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
51
322
|
@validate_call
|
|
52
323
|
def get_asa_upgrade_versions(
|
|
53
324
|
self,
|
|
@@ -913,7 +1184,7 @@ class DeviceUpgradesApi:
|
|
|
913
1184
|
_content_type: Optional[StrictStr] = None,
|
|
914
1185
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
915
1186
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
916
|
-
) ->
|
|
1187
|
+
) -> UpgradeRunDto:
|
|
917
1188
|
"""Get Device Upgrade Run
|
|
918
1189
|
|
|
919
1190
|
Get a 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.
|
|
@@ -951,7 +1222,7 @@ class DeviceUpgradesApi:
|
|
|
951
1222
|
)
|
|
952
1223
|
|
|
953
1224
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
954
|
-
'200': "
|
|
1225
|
+
'200': "UpgradeRunDto",
|
|
955
1226
|
'400': "CommonApiError",
|
|
956
1227
|
'401': "AuthenticationError",
|
|
957
1228
|
'403': "CommonApiError",
|
|
@@ -985,7 +1256,7 @@ class DeviceUpgradesApi:
|
|
|
985
1256
|
_content_type: Optional[StrictStr] = None,
|
|
986
1257
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
987
1258
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
988
|
-
) -> ApiResponse[
|
|
1259
|
+
) -> ApiResponse[UpgradeRunDto]:
|
|
989
1260
|
"""Get Device Upgrade Run
|
|
990
1261
|
|
|
991
1262
|
Get a 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.
|
|
@@ -1023,7 +1294,7 @@ class DeviceUpgradesApi:
|
|
|
1023
1294
|
)
|
|
1024
1295
|
|
|
1025
1296
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1026
|
-
'200': "
|
|
1297
|
+
'200': "UpgradeRunDto",
|
|
1027
1298
|
'400': "CommonApiError",
|
|
1028
1299
|
'401': "AuthenticationError",
|
|
1029
1300
|
'403': "CommonApiError",
|
|
@@ -1095,7 +1366,7 @@ class DeviceUpgradesApi:
|
|
|
1095
1366
|
)
|
|
1096
1367
|
|
|
1097
1368
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1098
|
-
'200': "
|
|
1369
|
+
'200': "UpgradeRunDto",
|
|
1099
1370
|
'400': "CommonApiError",
|
|
1100
1371
|
'401': "AuthenticationError",
|
|
1101
1372
|
'403': "CommonApiError",
|
|
@@ -1498,277 +1769,7 @@ class DeviceUpgradesApi:
|
|
|
1498
1769
|
def modify_device_upgrade_run(
|
|
1499
1770
|
self,
|
|
1500
1771
|
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
1501
|
-
|
|
1502
|
-
None,
|
|
1503
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1504
|
-
Tuple[
|
|
1505
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1506
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1507
|
-
]
|
|
1508
|
-
] = None,
|
|
1509
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1510
|
-
_content_type: Optional[StrictStr] = None,
|
|
1511
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1512
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1513
|
-
) -> None:
|
|
1514
|
-
"""Delete Device Upgrade Run
|
|
1515
|
-
|
|
1516
|
-
Delete a Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Warning: if you delete an upgrade run currently in progress, you may end up allowing multiple upgrades to be triggered on devices.
|
|
1517
|
-
|
|
1518
|
-
:param upgrade_run_uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
1519
|
-
:type upgrade_run_uid: str
|
|
1520
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1521
|
-
number provided, it will be total request
|
|
1522
|
-
timeout. It can also be a pair (tuple) of
|
|
1523
|
-
(connection, read) timeouts.
|
|
1524
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1525
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1526
|
-
request; this effectively ignores the
|
|
1527
|
-
authentication in the spec for a single request.
|
|
1528
|
-
:type _request_auth: dict, optional
|
|
1529
|
-
:param _content_type: force content-type for the request.
|
|
1530
|
-
:type _content_type: str, Optional
|
|
1531
|
-
:param _headers: set to override the headers for a single
|
|
1532
|
-
request; this effectively ignores the headers
|
|
1533
|
-
in the spec for a single request.
|
|
1534
|
-
:type _headers: dict, optional
|
|
1535
|
-
:param _host_index: set to override the host_index for a single
|
|
1536
|
-
request; this effectively ignores the host_index
|
|
1537
|
-
in the spec for a single request.
|
|
1538
|
-
:type _host_index: int, optional
|
|
1539
|
-
:return: Returns the result object.
|
|
1540
|
-
""" # noqa: E501
|
|
1541
|
-
|
|
1542
|
-
_param = self._modify_device_upgrade_run_serialize(
|
|
1543
|
-
upgrade_run_uid=upgrade_run_uid,
|
|
1544
|
-
_request_auth=_request_auth,
|
|
1545
|
-
_content_type=_content_type,
|
|
1546
|
-
_headers=_headers,
|
|
1547
|
-
_host_index=_host_index
|
|
1548
|
-
)
|
|
1549
|
-
|
|
1550
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1551
|
-
'204': None,
|
|
1552
|
-
'400': "CommonApiError",
|
|
1553
|
-
'401': "AuthenticationError",
|
|
1554
|
-
'403': "CommonApiError",
|
|
1555
|
-
'500': "CommonApiError",
|
|
1556
|
-
}
|
|
1557
|
-
response_data = self.api_client.call_api(
|
|
1558
|
-
*_param,
|
|
1559
|
-
_request_timeout=_request_timeout
|
|
1560
|
-
)
|
|
1561
|
-
response_data.read()
|
|
1562
|
-
return self.api_client.response_deserialize(
|
|
1563
|
-
response_data=response_data,
|
|
1564
|
-
response_types_map=_response_types_map,
|
|
1565
|
-
).data
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
@validate_call
|
|
1569
|
-
def modify_device_upgrade_run_with_http_info(
|
|
1570
|
-
self,
|
|
1571
|
-
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
1572
|
-
_request_timeout: Union[
|
|
1573
|
-
None,
|
|
1574
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1575
|
-
Tuple[
|
|
1576
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1577
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1578
|
-
]
|
|
1579
|
-
] = None,
|
|
1580
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1581
|
-
_content_type: Optional[StrictStr] = None,
|
|
1582
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1583
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1584
|
-
) -> ApiResponse[None]:
|
|
1585
|
-
"""Delete Device Upgrade Run
|
|
1586
|
-
|
|
1587
|
-
Delete a Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Warning: if you delete an upgrade run currently in progress, you may end up allowing multiple upgrades to be triggered on devices.
|
|
1588
|
-
|
|
1589
|
-
:param upgrade_run_uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
1590
|
-
:type upgrade_run_uid: str
|
|
1591
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1592
|
-
number provided, it will be total request
|
|
1593
|
-
timeout. It can also be a pair (tuple) of
|
|
1594
|
-
(connection, read) timeouts.
|
|
1595
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1596
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1597
|
-
request; this effectively ignores the
|
|
1598
|
-
authentication in the spec for a single request.
|
|
1599
|
-
:type _request_auth: dict, optional
|
|
1600
|
-
:param _content_type: force content-type for the request.
|
|
1601
|
-
:type _content_type: str, Optional
|
|
1602
|
-
:param _headers: set to override the headers for a single
|
|
1603
|
-
request; this effectively ignores the headers
|
|
1604
|
-
in the spec for a single request.
|
|
1605
|
-
:type _headers: dict, optional
|
|
1606
|
-
:param _host_index: set to override the host_index for a single
|
|
1607
|
-
request; this effectively ignores the host_index
|
|
1608
|
-
in the spec for a single request.
|
|
1609
|
-
:type _host_index: int, optional
|
|
1610
|
-
:return: Returns the result object.
|
|
1611
|
-
""" # noqa: E501
|
|
1612
|
-
|
|
1613
|
-
_param = self._modify_device_upgrade_run_serialize(
|
|
1614
|
-
upgrade_run_uid=upgrade_run_uid,
|
|
1615
|
-
_request_auth=_request_auth,
|
|
1616
|
-
_content_type=_content_type,
|
|
1617
|
-
_headers=_headers,
|
|
1618
|
-
_host_index=_host_index
|
|
1619
|
-
)
|
|
1620
|
-
|
|
1621
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1622
|
-
'204': None,
|
|
1623
|
-
'400': "CommonApiError",
|
|
1624
|
-
'401': "AuthenticationError",
|
|
1625
|
-
'403': "CommonApiError",
|
|
1626
|
-
'500': "CommonApiError",
|
|
1627
|
-
}
|
|
1628
|
-
response_data = self.api_client.call_api(
|
|
1629
|
-
*_param,
|
|
1630
|
-
_request_timeout=_request_timeout
|
|
1631
|
-
)
|
|
1632
|
-
response_data.read()
|
|
1633
|
-
return self.api_client.response_deserialize(
|
|
1634
|
-
response_data=response_data,
|
|
1635
|
-
response_types_map=_response_types_map,
|
|
1636
|
-
)
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
@validate_call
|
|
1640
|
-
def modify_device_upgrade_run_without_preload_content(
|
|
1641
|
-
self,
|
|
1642
|
-
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
1643
|
-
_request_timeout: Union[
|
|
1644
|
-
None,
|
|
1645
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1646
|
-
Tuple[
|
|
1647
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1648
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1649
|
-
]
|
|
1650
|
-
] = None,
|
|
1651
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1652
|
-
_content_type: Optional[StrictStr] = None,
|
|
1653
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1654
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1655
|
-
) -> RESTResponseType:
|
|
1656
|
-
"""Delete Device Upgrade Run
|
|
1657
|
-
|
|
1658
|
-
Delete a Device Upgrade Run by UID in the SCC Firewall Manager Tenant. Warning: if you delete an upgrade run currently in progress, you may end up allowing multiple upgrades to be triggered on devices.
|
|
1659
|
-
|
|
1660
|
-
:param upgrade_run_uid: The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager. (required)
|
|
1661
|
-
:type upgrade_run_uid: str
|
|
1662
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1663
|
-
number provided, it will be total request
|
|
1664
|
-
timeout. It can also be a pair (tuple) of
|
|
1665
|
-
(connection, read) timeouts.
|
|
1666
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1667
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1668
|
-
request; this effectively ignores the
|
|
1669
|
-
authentication in the spec for a single request.
|
|
1670
|
-
:type _request_auth: dict, optional
|
|
1671
|
-
:param _content_type: force content-type for the request.
|
|
1672
|
-
:type _content_type: str, Optional
|
|
1673
|
-
:param _headers: set to override the headers for a single
|
|
1674
|
-
request; this effectively ignores the headers
|
|
1675
|
-
in the spec for a single request.
|
|
1676
|
-
:type _headers: dict, optional
|
|
1677
|
-
:param _host_index: set to override the host_index for a single
|
|
1678
|
-
request; this effectively ignores the host_index
|
|
1679
|
-
in the spec for a single request.
|
|
1680
|
-
:type _host_index: int, optional
|
|
1681
|
-
:return: Returns the result object.
|
|
1682
|
-
""" # noqa: E501
|
|
1683
|
-
|
|
1684
|
-
_param = self._modify_device_upgrade_run_serialize(
|
|
1685
|
-
upgrade_run_uid=upgrade_run_uid,
|
|
1686
|
-
_request_auth=_request_auth,
|
|
1687
|
-
_content_type=_content_type,
|
|
1688
|
-
_headers=_headers,
|
|
1689
|
-
_host_index=_host_index
|
|
1690
|
-
)
|
|
1691
|
-
|
|
1692
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1693
|
-
'204': None,
|
|
1694
|
-
'400': "CommonApiError",
|
|
1695
|
-
'401': "AuthenticationError",
|
|
1696
|
-
'403': "CommonApiError",
|
|
1697
|
-
'500': "CommonApiError",
|
|
1698
|
-
}
|
|
1699
|
-
response_data = self.api_client.call_api(
|
|
1700
|
-
*_param,
|
|
1701
|
-
_request_timeout=_request_timeout
|
|
1702
|
-
)
|
|
1703
|
-
return response_data.response
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
def _modify_device_upgrade_run_serialize(
|
|
1707
|
-
self,
|
|
1708
|
-
upgrade_run_uid,
|
|
1709
|
-
_request_auth,
|
|
1710
|
-
_content_type,
|
|
1711
|
-
_headers,
|
|
1712
|
-
_host_index,
|
|
1713
|
-
) -> RequestSerialized:
|
|
1714
|
-
|
|
1715
|
-
_host = None
|
|
1716
|
-
|
|
1717
|
-
_collection_formats: Dict[str, str] = {
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
_path_params: Dict[str, str] = {}
|
|
1721
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1722
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1723
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1724
|
-
_files: Dict[str, str] = {}
|
|
1725
|
-
_body_params: Optional[bytes] = None
|
|
1726
|
-
|
|
1727
|
-
# process the path parameters
|
|
1728
|
-
if upgrade_run_uid is not None:
|
|
1729
|
-
_path_params['upgradeRunUid'] = upgrade_run_uid
|
|
1730
|
-
# process the query parameters
|
|
1731
|
-
# process the header parameters
|
|
1732
|
-
# process the form parameters
|
|
1733
|
-
# process the body parameter
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
# set the HTTP header `Accept`
|
|
1737
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1738
|
-
[
|
|
1739
|
-
'application/json'
|
|
1740
|
-
]
|
|
1741
|
-
)
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
# authentication setting
|
|
1745
|
-
_auth_settings: List[str] = [
|
|
1746
|
-
'bearerAuth'
|
|
1747
|
-
]
|
|
1748
|
-
|
|
1749
|
-
return self.api_client.param_serialize(
|
|
1750
|
-
method='DELETE',
|
|
1751
|
-
resource_path='/v1/inventory/devices/upgrades/runs/{upgradeRunUid}',
|
|
1752
|
-
path_params=_path_params,
|
|
1753
|
-
query_params=_query_params,
|
|
1754
|
-
header_params=_header_params,
|
|
1755
|
-
body=_body_params,
|
|
1756
|
-
post_params=_form_params,
|
|
1757
|
-
files=_files,
|
|
1758
|
-
auth_settings=_auth_settings,
|
|
1759
|
-
collection_formats=_collection_formats,
|
|
1760
|
-
_host=_host,
|
|
1761
|
-
_request_auth=_request_auth
|
|
1762
|
-
)
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
@validate_call
|
|
1768
|
-
def modify_device_upgrade_run1(
|
|
1769
|
-
self,
|
|
1770
|
-
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
1771
|
-
upgrade_run_modify_input: UpgradeRunModifyInput,
|
|
1772
|
+
upgrade_run_modify_input: UpgradeRunModifyInput,
|
|
1772
1773
|
_request_timeout: Union[
|
|
1773
1774
|
None,
|
|
1774
1775
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1812,7 +1813,7 @@ class DeviceUpgradesApi:
|
|
|
1812
1813
|
:return: Returns the result object.
|
|
1813
1814
|
""" # noqa: E501
|
|
1814
1815
|
|
|
1815
|
-
_param = self.
|
|
1816
|
+
_param = self._modify_device_upgrade_run_serialize(
|
|
1816
1817
|
upgrade_run_uid=upgrade_run_uid,
|
|
1817
1818
|
upgrade_run_modify_input=upgrade_run_modify_input,
|
|
1818
1819
|
_request_auth=_request_auth,
|
|
@@ -1841,7 +1842,7 @@ class DeviceUpgradesApi:
|
|
|
1841
1842
|
|
|
1842
1843
|
|
|
1843
1844
|
@validate_call
|
|
1844
|
-
def
|
|
1845
|
+
def modify_device_upgrade_run_with_http_info(
|
|
1845
1846
|
self,
|
|
1846
1847
|
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
1847
1848
|
upgrade_run_modify_input: UpgradeRunModifyInput,
|
|
@@ -1888,7 +1889,7 @@ class DeviceUpgradesApi:
|
|
|
1888
1889
|
:return: Returns the result object.
|
|
1889
1890
|
""" # noqa: E501
|
|
1890
1891
|
|
|
1891
|
-
_param = self.
|
|
1892
|
+
_param = self._modify_device_upgrade_run_serialize(
|
|
1892
1893
|
upgrade_run_uid=upgrade_run_uid,
|
|
1893
1894
|
upgrade_run_modify_input=upgrade_run_modify_input,
|
|
1894
1895
|
_request_auth=_request_auth,
|
|
@@ -1917,7 +1918,7 @@ class DeviceUpgradesApi:
|
|
|
1917
1918
|
|
|
1918
1919
|
|
|
1919
1920
|
@validate_call
|
|
1920
|
-
def
|
|
1921
|
+
def modify_device_upgrade_run_without_preload_content(
|
|
1921
1922
|
self,
|
|
1922
1923
|
upgrade_run_uid: Annotated[StrictStr, Field(description="The unique identifier, represented as a UUID, of the FTD Device Upgrade Run in SCC Firewall Manager.")],
|
|
1923
1924
|
upgrade_run_modify_input: UpgradeRunModifyInput,
|
|
@@ -1964,7 +1965,7 @@ class DeviceUpgradesApi:
|
|
|
1964
1965
|
:return: Returns the result object.
|
|
1965
1966
|
""" # noqa: E501
|
|
1966
1967
|
|
|
1967
|
-
_param = self.
|
|
1968
|
+
_param = self._modify_device_upgrade_run_serialize(
|
|
1968
1969
|
upgrade_run_uid=upgrade_run_uid,
|
|
1969
1970
|
upgrade_run_modify_input=upgrade_run_modify_input,
|
|
1970
1971
|
_request_auth=_request_auth,
|
|
@@ -1988,7 +1989,7 @@ class DeviceUpgradesApi:
|
|
|
1988
1989
|
return response_data.response
|
|
1989
1990
|
|
|
1990
1991
|
|
|
1991
|
-
def
|
|
1992
|
+
def _modify_device_upgrade_run_serialize(
|
|
1992
1993
|
self,
|
|
1993
1994
|
upgrade_run_uid,
|
|
1994
1995
|
upgrade_run_modify_input,
|