scc-firewall-manager-sdk 1.13.606__py3-none-any.whl → 1.13.608__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of scc-firewall-manager-sdk might be problematic. Click here for more details.
- scc_firewall_manager_sdk/__init__.py +2 -1
- scc_firewall_manager_sdk/api/inventory_api.py +287 -0
- scc_firewall_manager_sdk/api_client.py +1 -1
- scc_firewall_manager_sdk/configuration.py +1 -1
- scc_firewall_manager_sdk/models/__init__.py +1 -0
- scc_firewall_manager_sdk/models/device_patch_input.py +3 -5
- scc_firewall_manager_sdk/models/devices_patch_input.py +91 -0
- {scc_firewall_manager_sdk-1.13.606.dist-info → scc_firewall_manager_sdk-1.13.608.dist-info}/METADATA +1 -1
- {scc_firewall_manager_sdk-1.13.606.dist-info → scc_firewall_manager_sdk-1.13.608.dist-info}/RECORD +11 -10
- {scc_firewall_manager_sdk-1.13.606.dist-info → scc_firewall_manager_sdk-1.13.608.dist-info}/WHEEL +0 -0
- {scc_firewall_manager_sdk-1.13.606.dist-info → scc_firewall_manager_sdk-1.13.608.dist-info}/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "1.13.
|
|
18
|
+
__version__ = "1.13.608"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
|
|
@@ -125,6 +125,7 @@ from scc_firewall_manager_sdk.models.device_metadata import DeviceMetadata
|
|
|
125
125
|
from scc_firewall_manager_sdk.models.device_page import DevicePage
|
|
126
126
|
from scc_firewall_manager_sdk.models.device_patch_input import DevicePatchInput
|
|
127
127
|
from scc_firewall_manager_sdk.models.device_role import DeviceRole
|
|
128
|
+
from scc_firewall_manager_sdk.models.devices_patch_input import DevicesPatchInput
|
|
128
129
|
from scc_firewall_manager_sdk.models.disk_health_metrics import DiskHealthMetrics
|
|
129
130
|
from scc_firewall_manager_sdk.models.domain_settings import DomainSettings
|
|
130
131
|
from scc_firewall_manager_sdk.models.duo_admin_panel_create_or_update_input import DuoAdminPanelCreateOrUpdateInput
|
|
@@ -28,6 +28,7 @@ from scc_firewall_manager_sdk.models.device import Device
|
|
|
28
28
|
from scc_firewall_manager_sdk.models.device_manager_patch_input import DeviceManagerPatchInput
|
|
29
29
|
from scc_firewall_manager_sdk.models.device_page import DevicePage
|
|
30
30
|
from scc_firewall_manager_sdk.models.device_patch_input import DevicePatchInput
|
|
31
|
+
from scc_firewall_manager_sdk.models.devices_patch_input import DevicesPatchInput
|
|
31
32
|
from scc_firewall_manager_sdk.models.duo_admin_panel_create_or_update_input import DuoAdminPanelCreateOrUpdateInput
|
|
32
33
|
from scc_firewall_manager_sdk.models.fmc_health_metrics import FmcHealthMetrics
|
|
33
34
|
from scc_firewall_manager_sdk.models.ftd_create_or_update_input import FtdCreateOrUpdateInput
|
|
@@ -7802,6 +7803,292 @@ class InventoryApi:
|
|
|
7802
7803
|
|
|
7803
7804
|
|
|
7804
7805
|
|
|
7806
|
+
@validate_call
|
|
7807
|
+
def modify_devices(
|
|
7808
|
+
self,
|
|
7809
|
+
devices_patch_input: DevicesPatchInput,
|
|
7810
|
+
_request_timeout: Union[
|
|
7811
|
+
None,
|
|
7812
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7813
|
+
Tuple[
|
|
7814
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7815
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7816
|
+
]
|
|
7817
|
+
] = None,
|
|
7818
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7819
|
+
_content_type: Optional[StrictStr] = None,
|
|
7820
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7821
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7822
|
+
) -> CdoTransaction:
|
|
7823
|
+
"""Modify Devices
|
|
7824
|
+
|
|
7825
|
+
Modify a list of devices in the Security Cloud Control tenant
|
|
7826
|
+
|
|
7827
|
+
:param devices_patch_input: (required)
|
|
7828
|
+
:type devices_patch_input: DevicesPatchInput
|
|
7829
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7830
|
+
number provided, it will be total request
|
|
7831
|
+
timeout. It can also be a pair (tuple) of
|
|
7832
|
+
(connection, read) timeouts.
|
|
7833
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7834
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7835
|
+
request; this effectively ignores the
|
|
7836
|
+
authentication in the spec for a single request.
|
|
7837
|
+
:type _request_auth: dict, optional
|
|
7838
|
+
:param _content_type: force content-type for the request.
|
|
7839
|
+
:type _content_type: str, Optional
|
|
7840
|
+
:param _headers: set to override the headers for a single
|
|
7841
|
+
request; this effectively ignores the headers
|
|
7842
|
+
in the spec for a single request.
|
|
7843
|
+
:type _headers: dict, optional
|
|
7844
|
+
:param _host_index: set to override the host_index for a single
|
|
7845
|
+
request; this effectively ignores the host_index
|
|
7846
|
+
in the spec for a single request.
|
|
7847
|
+
:type _host_index: int, optional
|
|
7848
|
+
:return: Returns the result object.
|
|
7849
|
+
""" # noqa: E501
|
|
7850
|
+
|
|
7851
|
+
_param = self._modify_devices_serialize(
|
|
7852
|
+
devices_patch_input=devices_patch_input,
|
|
7853
|
+
_request_auth=_request_auth,
|
|
7854
|
+
_content_type=_content_type,
|
|
7855
|
+
_headers=_headers,
|
|
7856
|
+
_host_index=_host_index
|
|
7857
|
+
)
|
|
7858
|
+
|
|
7859
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7860
|
+
'202': "CdoTransaction",
|
|
7861
|
+
'400': "CommonApiError",
|
|
7862
|
+
'401': "AuthenticationError",
|
|
7863
|
+
'403': "CommonApiError",
|
|
7864
|
+
'405': "CommonApiError",
|
|
7865
|
+
'500': "CommonApiError",
|
|
7866
|
+
}
|
|
7867
|
+
response_data = self.api_client.call_api(
|
|
7868
|
+
*_param,
|
|
7869
|
+
_request_timeout=_request_timeout
|
|
7870
|
+
)
|
|
7871
|
+
response_data.read()
|
|
7872
|
+
return self.api_client.response_deserialize(
|
|
7873
|
+
response_data=response_data,
|
|
7874
|
+
response_types_map=_response_types_map,
|
|
7875
|
+
).data
|
|
7876
|
+
|
|
7877
|
+
|
|
7878
|
+
@validate_call
|
|
7879
|
+
def modify_devices_with_http_info(
|
|
7880
|
+
self,
|
|
7881
|
+
devices_patch_input: DevicesPatchInput,
|
|
7882
|
+
_request_timeout: Union[
|
|
7883
|
+
None,
|
|
7884
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7885
|
+
Tuple[
|
|
7886
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7887
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7888
|
+
]
|
|
7889
|
+
] = None,
|
|
7890
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7891
|
+
_content_type: Optional[StrictStr] = None,
|
|
7892
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7893
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7894
|
+
) -> ApiResponse[CdoTransaction]:
|
|
7895
|
+
"""Modify Devices
|
|
7896
|
+
|
|
7897
|
+
Modify a list of devices in the Security Cloud Control tenant
|
|
7898
|
+
|
|
7899
|
+
:param devices_patch_input: (required)
|
|
7900
|
+
:type devices_patch_input: DevicesPatchInput
|
|
7901
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7902
|
+
number provided, it will be total request
|
|
7903
|
+
timeout. It can also be a pair (tuple) of
|
|
7904
|
+
(connection, read) timeouts.
|
|
7905
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7906
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7907
|
+
request; this effectively ignores the
|
|
7908
|
+
authentication in the spec for a single request.
|
|
7909
|
+
:type _request_auth: dict, optional
|
|
7910
|
+
:param _content_type: force content-type for the request.
|
|
7911
|
+
:type _content_type: str, Optional
|
|
7912
|
+
:param _headers: set to override the headers for a single
|
|
7913
|
+
request; this effectively ignores the headers
|
|
7914
|
+
in the spec for a single request.
|
|
7915
|
+
:type _headers: dict, optional
|
|
7916
|
+
:param _host_index: set to override the host_index for a single
|
|
7917
|
+
request; this effectively ignores the host_index
|
|
7918
|
+
in the spec for a single request.
|
|
7919
|
+
:type _host_index: int, optional
|
|
7920
|
+
:return: Returns the result object.
|
|
7921
|
+
""" # noqa: E501
|
|
7922
|
+
|
|
7923
|
+
_param = self._modify_devices_serialize(
|
|
7924
|
+
devices_patch_input=devices_patch_input,
|
|
7925
|
+
_request_auth=_request_auth,
|
|
7926
|
+
_content_type=_content_type,
|
|
7927
|
+
_headers=_headers,
|
|
7928
|
+
_host_index=_host_index
|
|
7929
|
+
)
|
|
7930
|
+
|
|
7931
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7932
|
+
'202': "CdoTransaction",
|
|
7933
|
+
'400': "CommonApiError",
|
|
7934
|
+
'401': "AuthenticationError",
|
|
7935
|
+
'403': "CommonApiError",
|
|
7936
|
+
'405': "CommonApiError",
|
|
7937
|
+
'500': "CommonApiError",
|
|
7938
|
+
}
|
|
7939
|
+
response_data = self.api_client.call_api(
|
|
7940
|
+
*_param,
|
|
7941
|
+
_request_timeout=_request_timeout
|
|
7942
|
+
)
|
|
7943
|
+
response_data.read()
|
|
7944
|
+
return self.api_client.response_deserialize(
|
|
7945
|
+
response_data=response_data,
|
|
7946
|
+
response_types_map=_response_types_map,
|
|
7947
|
+
)
|
|
7948
|
+
|
|
7949
|
+
|
|
7950
|
+
@validate_call
|
|
7951
|
+
def modify_devices_without_preload_content(
|
|
7952
|
+
self,
|
|
7953
|
+
devices_patch_input: DevicesPatchInput,
|
|
7954
|
+
_request_timeout: Union[
|
|
7955
|
+
None,
|
|
7956
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7957
|
+
Tuple[
|
|
7958
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7959
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7960
|
+
]
|
|
7961
|
+
] = None,
|
|
7962
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7963
|
+
_content_type: Optional[StrictStr] = None,
|
|
7964
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7965
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7966
|
+
) -> RESTResponseType:
|
|
7967
|
+
"""Modify Devices
|
|
7968
|
+
|
|
7969
|
+
Modify a list of devices in the Security Cloud Control tenant
|
|
7970
|
+
|
|
7971
|
+
:param devices_patch_input: (required)
|
|
7972
|
+
:type devices_patch_input: DevicesPatchInput
|
|
7973
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7974
|
+
number provided, it will be total request
|
|
7975
|
+
timeout. It can also be a pair (tuple) of
|
|
7976
|
+
(connection, read) timeouts.
|
|
7977
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7978
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7979
|
+
request; this effectively ignores the
|
|
7980
|
+
authentication in the spec for a single request.
|
|
7981
|
+
:type _request_auth: dict, optional
|
|
7982
|
+
:param _content_type: force content-type for the request.
|
|
7983
|
+
:type _content_type: str, Optional
|
|
7984
|
+
:param _headers: set to override the headers for a single
|
|
7985
|
+
request; this effectively ignores the headers
|
|
7986
|
+
in the spec for a single request.
|
|
7987
|
+
:type _headers: dict, optional
|
|
7988
|
+
:param _host_index: set to override the host_index for a single
|
|
7989
|
+
request; this effectively ignores the host_index
|
|
7990
|
+
in the spec for a single request.
|
|
7991
|
+
:type _host_index: int, optional
|
|
7992
|
+
:return: Returns the result object.
|
|
7993
|
+
""" # noqa: E501
|
|
7994
|
+
|
|
7995
|
+
_param = self._modify_devices_serialize(
|
|
7996
|
+
devices_patch_input=devices_patch_input,
|
|
7997
|
+
_request_auth=_request_auth,
|
|
7998
|
+
_content_type=_content_type,
|
|
7999
|
+
_headers=_headers,
|
|
8000
|
+
_host_index=_host_index
|
|
8001
|
+
)
|
|
8002
|
+
|
|
8003
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
8004
|
+
'202': "CdoTransaction",
|
|
8005
|
+
'400': "CommonApiError",
|
|
8006
|
+
'401': "AuthenticationError",
|
|
8007
|
+
'403': "CommonApiError",
|
|
8008
|
+
'405': "CommonApiError",
|
|
8009
|
+
'500': "CommonApiError",
|
|
8010
|
+
}
|
|
8011
|
+
response_data = self.api_client.call_api(
|
|
8012
|
+
*_param,
|
|
8013
|
+
_request_timeout=_request_timeout
|
|
8014
|
+
)
|
|
8015
|
+
return response_data.response
|
|
8016
|
+
|
|
8017
|
+
|
|
8018
|
+
def _modify_devices_serialize(
|
|
8019
|
+
self,
|
|
8020
|
+
devices_patch_input,
|
|
8021
|
+
_request_auth,
|
|
8022
|
+
_content_type,
|
|
8023
|
+
_headers,
|
|
8024
|
+
_host_index,
|
|
8025
|
+
) -> RequestSerialized:
|
|
8026
|
+
|
|
8027
|
+
_host = None
|
|
8028
|
+
|
|
8029
|
+
_collection_formats: Dict[str, str] = {
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
_path_params: Dict[str, str] = {}
|
|
8033
|
+
_query_params: List[Tuple[str, str]] = []
|
|
8034
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
8035
|
+
_form_params: List[Tuple[str, str]] = []
|
|
8036
|
+
_files: Dict[str, str] = {}
|
|
8037
|
+
_body_params: Optional[bytes] = None
|
|
8038
|
+
|
|
8039
|
+
# process the path parameters
|
|
8040
|
+
# process the query parameters
|
|
8041
|
+
# process the header parameters
|
|
8042
|
+
# process the form parameters
|
|
8043
|
+
# process the body parameter
|
|
8044
|
+
if devices_patch_input is not None:
|
|
8045
|
+
_body_params = devices_patch_input
|
|
8046
|
+
|
|
8047
|
+
|
|
8048
|
+
# set the HTTP header `Accept`
|
|
8049
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
8050
|
+
[
|
|
8051
|
+
'application/json'
|
|
8052
|
+
]
|
|
8053
|
+
)
|
|
8054
|
+
|
|
8055
|
+
# set the HTTP header `Content-Type`
|
|
8056
|
+
if _content_type:
|
|
8057
|
+
_header_params['Content-Type'] = _content_type
|
|
8058
|
+
else:
|
|
8059
|
+
_default_content_type = (
|
|
8060
|
+
self.api_client.select_header_content_type(
|
|
8061
|
+
[
|
|
8062
|
+
'application/json'
|
|
8063
|
+
]
|
|
8064
|
+
)
|
|
8065
|
+
)
|
|
8066
|
+
if _default_content_type is not None:
|
|
8067
|
+
_header_params['Content-Type'] = _default_content_type
|
|
8068
|
+
|
|
8069
|
+
# authentication setting
|
|
8070
|
+
_auth_settings: List[str] = [
|
|
8071
|
+
'bearerAuth'
|
|
8072
|
+
]
|
|
8073
|
+
|
|
8074
|
+
return self.api_client.param_serialize(
|
|
8075
|
+
method='PATCH',
|
|
8076
|
+
resource_path='/v1/inventory/devices/bulk',
|
|
8077
|
+
path_params=_path_params,
|
|
8078
|
+
query_params=_query_params,
|
|
8079
|
+
header_params=_header_params,
|
|
8080
|
+
body=_body_params,
|
|
8081
|
+
post_params=_form_params,
|
|
8082
|
+
files=_files,
|
|
8083
|
+
auth_settings=_auth_settings,
|
|
8084
|
+
collection_formats=_collection_formats,
|
|
8085
|
+
_host=_host,
|
|
8086
|
+
_request_auth=_request_auth
|
|
8087
|
+
)
|
|
8088
|
+
|
|
8089
|
+
|
|
8090
|
+
|
|
8091
|
+
|
|
7805
8092
|
@validate_call
|
|
7806
8093
|
def modify_template_device(
|
|
7807
8094
|
self,
|
|
@@ -88,7 +88,7 @@ class ApiClient:
|
|
|
88
88
|
self.default_headers[header_name] = header_value
|
|
89
89
|
self.cookie = cookie
|
|
90
90
|
# Set default User-Agent.
|
|
91
|
-
self.user_agent = 'OpenAPI-Generator/1.13.
|
|
91
|
+
self.user_agent = 'OpenAPI-Generator/1.13.608/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.13.0\n"\
|
|
383
|
-
"SDK Package Version: 1.13.
|
|
383
|
+
"SDK Package Version: 1.13.608".\
|
|
384
384
|
format(env=sys.platform, pyversion=sys.version)
|
|
385
385
|
|
|
386
386
|
def get_host_settings(self):
|
|
@@ -89,6 +89,7 @@ from scc_firewall_manager_sdk.models.device_metadata import DeviceMetadata
|
|
|
89
89
|
from scc_firewall_manager_sdk.models.device_page import DevicePage
|
|
90
90
|
from scc_firewall_manager_sdk.models.device_patch_input import DevicePatchInput
|
|
91
91
|
from scc_firewall_manager_sdk.models.device_role import DeviceRole
|
|
92
|
+
from scc_firewall_manager_sdk.models.devices_patch_input import DevicesPatchInput
|
|
92
93
|
from scc_firewall_manager_sdk.models.disk_health_metrics import DiskHealthMetrics
|
|
93
94
|
from scc_firewall_manager_sdk.models.domain_settings import DomainSettings
|
|
94
95
|
from scc_firewall_manager_sdk.models.duo_admin_panel_create_or_update_input import DuoAdminPanelCreateOrUpdateInput
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field,
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from scc_firewall_manager_sdk.models.device_metadata import DeviceMetadata
|
|
24
24
|
from scc_firewall_manager_sdk.models.labels import Labels
|
|
@@ -32,8 +32,7 @@ class DevicePatchInput(BaseModel):
|
|
|
32
32
|
device_metadata: Optional[DeviceMetadata] = Field(default=None, alias="deviceMetadata")
|
|
33
33
|
labels: Optional[Labels] = None
|
|
34
34
|
name: Optional[StrictStr] = Field(default=None, description="A human-readable name for the device.")
|
|
35
|
-
|
|
36
|
-
__properties: ClassVar[List[str]] = ["deviceMetadata", "labels", "name", "optedInToAsaHealthMetrics"]
|
|
35
|
+
__properties: ClassVar[List[str]] = ["deviceMetadata", "labels", "name"]
|
|
37
36
|
|
|
38
37
|
model_config = ConfigDict(
|
|
39
38
|
populate_by_name=True,
|
|
@@ -94,8 +93,7 @@ class DevicePatchInput(BaseModel):
|
|
|
94
93
|
_obj = cls.model_validate({
|
|
95
94
|
"deviceMetadata": DeviceMetadata.from_dict(obj["deviceMetadata"]) if obj.get("deviceMetadata") is not None else None,
|
|
96
95
|
"labels": Labels.from_dict(obj["labels"]) if obj.get("labels") is not None else None,
|
|
97
|
-
"name": obj.get("name")
|
|
98
|
-
"optedInToAsaHealthMetrics": obj.get("optedInToAsaHealthMetrics")
|
|
96
|
+
"name": obj.get("name")
|
|
99
97
|
})
|
|
100
98
|
return _obj
|
|
101
99
|
|
|
@@ -0,0 +1,91 @@
|
|
|
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.13.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
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class DevicesPatchInput(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
DevicesPatchInput
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
device_uids: Optional[Annotated[List[StrictStr], Field(min_length=1, max_length=500)]] = Field(default=None, description="A set of device UIDs to bulk update.", alias="deviceUids")
|
|
32
|
+
opted_in_to_asa_health_metrics: Optional[StrictBool] = Field(default=None, description="Specify whether to enable or disable health metrics collection (SDC-managed ASA devices only).", alias="optedInToAsaHealthMetrics")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["deviceUids", "optedInToAsaHealthMetrics"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of DevicesPatchInput from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of DevicesPatchInput from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"deviceUids": obj.get("deviceUids"),
|
|
87
|
+
"optedInToAsaHealthMetrics": obj.get("optedInToAsaHealthMetrics")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
{scc_firewall_manager_sdk-1.13.606.dist-info → scc_firewall_manager_sdk-1.13.608.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=Pq4-v6UPLciUQrow93OgKXgbrM27wz_XMYyzeTk0oVw,18641
|
|
2
|
+
scc_firewall_manager_sdk/api_client.py,sha256=I_gnN4H9S6w9BwgGiW6xU8KNTlX2R05tlNerPZEe89s,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=Z2YyvjMtxL7Q56csmSINWidXaPnDRnwFJSlpT6bfgLQ,15993
|
|
5
5
|
scc_firewall_manager_sdk/exceptions.py,sha256=J4sPW_b1AGNUeRyPnnDlVtb1b8kOKgDO6cCzCf1wDYg,6039
|
|
6
6
|
scc_firewall_manager_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
scc_firewall_manager_sdk/rest.py,sha256=fAq2gQ-7Y88YdlSxyPNV1I3fctDBTEU0DrBJapzVrNY,9309
|
|
@@ -17,7 +17,7 @@ scc_firewall_manager_sdk/api/commands_api.py,sha256=KUSkY4Fez-R30bsUa7aa-JkwwpeZ
|
|
|
17
17
|
scc_firewall_manager_sdk/api/connectors_api.py,sha256=y7RvcRxzAFqlTX1Ys8nAqLd8Ycpulm-5nbAYxRWoCzA,59889
|
|
18
18
|
scc_firewall_manager_sdk/api/device_health_api.py,sha256=AsB2jnw7A1BKmKpbX2DcFr3OWAuqwDU6aDHhElGvrXw,62283
|
|
19
19
|
scc_firewall_manager_sdk/api/device_upgrades_api.py,sha256=hINjMZ5Tpr163zR-t41XOOphOw72SBkWjLOEXxue5yg,87919
|
|
20
|
-
scc_firewall_manager_sdk/api/inventory_api.py,sha256=
|
|
20
|
+
scc_firewall_manager_sdk/api/inventory_api.py,sha256=KY2vmtz-5LNRcSb_dUl9LgRC8JKYKQuVd20BpaZ28rI,422134
|
|
21
21
|
scc_firewall_manager_sdk/api/meta_api.py,sha256=Kh5Dd9u4KWu3zEYAK1UAnC8Wm6sQvXAaNfuaHbygEQk,29963
|
|
22
22
|
scc_firewall_manager_sdk/api/msp_api.py,sha256=eS488IW4_0GVPbenFN6srhh9xwAMp6TSHgi-MpeW9pc,346575
|
|
23
23
|
scc_firewall_manager_sdk/api/object_management_api.py,sha256=ta2_mL1O-7oevx9YWigOjhs4udfmnmNIPv6p-jvSiMM,151897
|
|
@@ -26,7 +26,7 @@ scc_firewall_manager_sdk/api/search_api.py,sha256=V7waQrZ2Jz_xylLONUL_s3JF8Hj63C
|
|
|
26
26
|
scc_firewall_manager_sdk/api/tenant_management_api.py,sha256=dHMPKC1JBw1nLbGtHTsEpJRMHXAWmxbmGLDDOwANC0s,55069
|
|
27
27
|
scc_firewall_manager_sdk/api/transactions_api.py,sha256=5fVQMXzyMghn9Z3yiXgXbaE3eTwSC6ZC9vVJvESIb-A,12287
|
|
28
28
|
scc_firewall_manager_sdk/api/users_api.py,sha256=CO7rDpDlmwgh7dWNjYPDXghhhJZP3EhsC2nKe-JMbdo,191609
|
|
29
|
-
scc_firewall_manager_sdk/models/__init__.py,sha256=
|
|
29
|
+
scc_firewall_manager_sdk/models/__init__.py,sha256=k7jvDCxztfdft2mkIrGfntnAO-jIPZehbJEEMByjcSw,16536
|
|
30
30
|
scc_firewall_manager_sdk/models/access_group.py,sha256=eJVEMhIO65w2BNCcdIptHC6GtplLMGhpqgeci3MINc8,4583
|
|
31
31
|
scc_firewall_manager_sdk/models/access_group_create_input.py,sha256=mJdIwaxeDnqlvG5fyLo95BzoER97sF2inU99r2VoIbo,3930
|
|
32
32
|
scc_firewall_manager_sdk/models/access_group_page.py,sha256=5x8WJxs6-oGuqdp3weEw4Y2dET5v5h46gQ8umryJOZg,3725
|
|
@@ -99,8 +99,9 @@ scc_firewall_manager_sdk/models/device_gateway_api_request.py,sha256=FlTIGqkrDMu
|
|
|
99
99
|
scc_firewall_manager_sdk/models/device_manager_patch_input.py,sha256=TbNe8KLe2t1PUfiDQbvomPptRX3xsWhaysElQSETO7Y,3559
|
|
100
100
|
scc_firewall_manager_sdk/models/device_metadata.py,sha256=GKDC7rY3GPsUlE8ylOOGf5U2c_50q94qpnm5qexFIK8,3203
|
|
101
101
|
scc_firewall_manager_sdk/models/device_page.py,sha256=qlAqLF5B1TdVngeqVJ8skLWNhKMcGmnrtMgnhcnIiAk,3684
|
|
102
|
-
scc_firewall_manager_sdk/models/device_patch_input.py,sha256=
|
|
102
|
+
scc_firewall_manager_sdk/models/device_patch_input.py,sha256=3BAOEebBnSyFyE2kfFxdmsv_cQ6lWE683TJw5_ScSkg,3523
|
|
103
103
|
scc_firewall_manager_sdk/models/device_role.py,sha256=l23DPighG4CRXVBpMK1uSBhMkJ4MUoUOs-nddptCCwA,1038
|
|
104
|
+
scc_firewall_manager_sdk/models/devices_patch_input.py,sha256=M2CPF1oUKTF_HLzEz4K2SjuFhqxOxqo7Z6d8oSWqyMQ,3135
|
|
104
105
|
scc_firewall_manager_sdk/models/disk_health_metrics.py,sha256=8I-zKX9YZR5yo_1T_S_lEsOzjRLeJDVjQ3HlfJvvhKc,2947
|
|
105
106
|
scc_firewall_manager_sdk/models/domain_settings.py,sha256=E1ZzpTa3EkS02wnsEAEjhvMz_QaNLekcZzgpXnin2ic,3852
|
|
106
107
|
scc_firewall_manager_sdk/models/duo_admin_panel_create_or_update_input.py,sha256=lGhpdfRiYljP8bZsYPuOefVn1fRGw8sJ0uOd4ncf6iQ,3828
|
|
@@ -227,7 +228,7 @@ scc_firewall_manager_sdk/models/user_page.py,sha256=zagv0LVHfNn_VR0EMHB_ZiQ6oWA9
|
|
|
227
228
|
scc_firewall_manager_sdk/models/user_role.py,sha256=WVus0z7L_INfk_jkrQpm41fFh8coK1rfQhxrS2IcUsQ,1104
|
|
228
229
|
scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=o6f4KOotVYPH06y4Gm9EhnddZIPlymWT31x8gfnbVt0,5326
|
|
229
230
|
scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=d7_s7YPs0uQBiX201HJwMc9WR_vSmQpMfAskmRrx2bM,4808
|
|
230
|
-
scc_firewall_manager_sdk-1.13.
|
|
231
|
-
scc_firewall_manager_sdk-1.13.
|
|
232
|
-
scc_firewall_manager_sdk-1.13.
|
|
233
|
-
scc_firewall_manager_sdk-1.13.
|
|
231
|
+
scc_firewall_manager_sdk-1.13.608.dist-info/METADATA,sha256=UHNDHnzfNjLXEqLDhlYTciCB_fTKd5fVCpVm5bwuhZ8,596
|
|
232
|
+
scc_firewall_manager_sdk-1.13.608.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
233
|
+
scc_firewall_manager_sdk-1.13.608.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
|
|
234
|
+
scc_firewall_manager_sdk-1.13.608.dist-info/RECORD,,
|
{scc_firewall_manager_sdk-1.13.606.dist-info → scc_firewall_manager_sdk-1.13.608.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|