scc-firewall-manager-sdk 1.15.245__py3-none-any.whl → 1.15.247__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.

@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.15.245"
18
+ __version__ = "1.15.247"
19
19
 
20
20
  # import apis into sdk package
21
21
  from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
@@ -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.245/python'
91
+ self.user_agent = 'OpenAPI-Generator/1.15.247/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.245".\
383
+ "SDK Package Version: 1.15.247".\
384
384
  format(env=sys.platform, pyversion=sys.version)
385
385
 
386
386
  def get_host_settings(self):
@@ -18,8 +18,8 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
- from typing import Any, ClassVar, Dict, List, Optional
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional, Union
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
@@ -27,25 +27,10 @@ class DeviceUpgradeStatusDto(BaseModel):
27
27
  """
28
28
  DeviceUpgradeStatusDto
29
29
  """ # noqa: E501
30
- hardware_model: Optional[StrictStr] = Field(default=None, description="The hardware model of the devices being upgraded.", alias="hardwareModel")
31
- managed_tenant_display_name: Optional[StrictStr] = Field(default=None, description="The display name of the managed tenant in CDO.", alias="managedTenantDisplayName")
32
- managed_tenant_name: Optional[StrictStr] = Field(default=None, description="The name of the managed tenant in CDO.", alias="managedTenantName")
33
- managed_tenant_uid: Optional[StrictStr] = Field(default=None, description="The unique identifier, represented as a UUID, of the managed tenant in Security Cloud Control that this device belongs to.", alias="managedTenantUid")
34
- name: Optional[StrictStr] = Field(default=None, description="The name of the device being upgraded.")
35
- transaction_uid: Optional[StrictStr] = Field(default=None, description="The unique identifier, represented as a UUID, of the CDO transaction on the managed tenant that tracks this upgrade run.", alias="transactionUid")
36
- uid: Optional[StrictStr] = Field(default=None, description="The unique identifier, represented as a UUID, of the device being upgraded.")
37
- upgrade_run_status: Optional[StrictStr] = Field(default=None, description="The current status of the upgrade run.", alias="upgradeRunStatus")
38
- __properties: ClassVar[List[str]] = ["hardwareModel", "managedTenantDisplayName", "managedTenantName", "managedTenantUid", "name", "transactionUid", "uid", "upgradeRunStatus"]
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(['IN_PROGRESS', 'REBUILDING_UPGRADE_CACHE', 'PERFORMING_UPGRADE', 'UPGRADE_STAGED', 'UPGRADE_STAGING_FAILED', 'UGPRADE_STAGING_FAILED', 'UPGRADE_COMPLETED', 'UPGRADE_FAILED']):
47
- raise ValueError("must be one of enum values ('IN_PROGRESS', 'REBUILDING_UPGRADE_CACHE', 'PERFORMING_UPGRADE', 'UPGRADE_STAGED', 'UPGRADE_STAGING_FAILED', 'UGPRADE_STAGING_FAILED', 'UPGRADE_COMPLETED', 'UPGRADE_FAILED')")
48
- return value
30
+ message: Optional[StrictStr] = Field(default=None, description="A message, indicating current progress, returned from the device.")
31
+ percentage_complete: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The percentage completion of the current task being performed", alias="percentageComplete")
32
+ uid: Optional[StrictStr] = Field(default=None, description="The unique identifier, represented as a UUID, of the device in SCC Firewall Manager.")
33
+ __properties: ClassVar[List[str]] = ["message", "percentageComplete", "uid"]
49
34
 
50
35
  model_config = ConfigDict(
51
36
  populate_by_name=True,
@@ -98,14 +83,9 @@ class DeviceUpgradeStatusDto(BaseModel):
98
83
  return cls.model_validate(obj)
99
84
 
100
85
  _obj = cls.model_validate({
101
- "hardwareModel": obj.get("hardwareModel"),
102
- "managedTenantDisplayName": obj.get("managedTenantDisplayName"),
103
- "managedTenantName": obj.get("managedTenantName"),
104
- "managedTenantUid": obj.get("managedTenantUid"),
105
- "name": obj.get("name"),
106
- "transactionUid": obj.get("transactionUid"),
107
- "uid": obj.get("uid"),
108
- "upgradeRunStatus": obj.get("upgradeRunStatus")
86
+ "message": obj.get("message"),
87
+ "percentageComplete": obj.get("percentageComplete"),
88
+ "uid": obj.get("uid")
109
89
  })
110
90
  return _obj
111
91
 
@@ -20,6 +20,7 @@ import json
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
+ from scc_firewall_manager_sdk.models.device_upgrade_status_dto import DeviceUpgradeStatusDto
23
24
  from typing import Optional, Set
24
25
  from typing_extensions import Self
25
26
 
@@ -28,6 +29,7 @@ class UpgradeRunDto(BaseModel):
28
29
  UpgradeRunDto
29
30
  """ # noqa: E501
30
31
  device_uids: Optional[List[StrictStr]] = Field(default=None, description="The set of device UIDs that are part of this upgrade run.", alias="deviceUids")
32
+ device_upgrade_statuses: Optional[List[DeviceUpgradeStatusDto]] = Field(default=None, description="The current status of each device in the upgrade run.", alias="deviceUpgradeStatuses")
31
33
  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
34
  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
35
  transaction_uid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the CDO transaction that tracks this upgrade run.", alias="transactionUid")
@@ -35,7 +37,7 @@ class UpgradeRunDto(BaseModel):
35
37
  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
38
  upgrade_run_status: Optional[StrictStr] = Field(default=None, description="The current status of the upgrade run.", alias="upgradeRunStatus")
37
39
  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"]
40
+ __properties: ClassVar[List[str]] = ["deviceUids", "deviceUpgradeStatuses", "name", "stageUpgradeOnly", "transactionUid", "uid", "upgradePackageUid", "upgradeRunStatus", "upgradeRunType"]
39
41
 
40
42
  @field_validator('upgrade_run_status')
41
43
  def upgrade_run_status_validate_enum(cls, value):
@@ -96,6 +98,13 @@ class UpgradeRunDto(BaseModel):
96
98
  exclude=excluded_fields,
97
99
  exclude_none=True,
98
100
  )
101
+ # override the default output from pydantic by calling `to_dict()` of each item in device_upgrade_statuses (list)
102
+ _items = []
103
+ if self.device_upgrade_statuses:
104
+ for _item in self.device_upgrade_statuses:
105
+ if _item:
106
+ _items.append(_item.to_dict())
107
+ _dict['deviceUpgradeStatuses'] = _items
99
108
  return _dict
100
109
 
101
110
  @classmethod
@@ -109,6 +118,7 @@ class UpgradeRunDto(BaseModel):
109
118
 
110
119
  _obj = cls.model_validate({
111
120
  "deviceUids": obj.get("deviceUids"),
121
+ "deviceUpgradeStatuses": [DeviceUpgradeStatusDto.from_dict(_item) for _item in obj["deviceUpgradeStatuses"]] if obj.get("deviceUpgradeStatuses") is not None else None,
112
122
  "name": obj.get("name"),
113
123
  "stageUpgradeOnly": obj.get("stageUpgradeOnly"),
114
124
  "transactionUid": obj.get("transactionUid"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scc-firewall-manager-sdk
3
- Version: 1.15.245
3
+ Version: 1.15.247
4
4
  Summary: Cisco Security Cloud Control Firewall Manager API
5
5
  Home-page:
6
6
  Author: Cisco Security Cloud Control TAC
@@ -1,7 +1,7 @@
1
- scc_firewall_manager_sdk/__init__.py,sha256=0JFWawvGgUv6ULIUgRl6KdFeiW9w84JrTP0IeVWqlEc,23421
2
- scc_firewall_manager_sdk/api_client.py,sha256=tiR2c78Rs41ri0YLAVzao_09dpGEDJgDwYdtdZD4HzM,25921
1
+ scc_firewall_manager_sdk/__init__.py,sha256=bBn37G61Gx_Y-Jp1r0TuqcY9zAMOBqx7q6zG8DQDMnw,23421
2
+ scc_firewall_manager_sdk/api_client.py,sha256=MiBqde4Fs8-h2J2JWcYUAhhTjesK1TVFxSyMhh36x8g,25921
3
3
  scc_firewall_manager_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- scc_firewall_manager_sdk/configuration.py,sha256=tk6h2xXueF5EJTLC84T4lKj0N7WoJj7P7GIvkF39DtU,15993
4
+ scc_firewall_manager_sdk/configuration.py,sha256=9sDbLyLhDOb4nM5zgIYYO6vaeZMVZocG3hlWiIzN4mw,15993
5
5
  scc_firewall_manager_sdk/exceptions.py,sha256=u5-7l5MRjP-aS2pNudBzqSw9OI4xVsIvUjw4WCA8LEk,6039
6
6
  scc_firewall_manager_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  scc_firewall_manager_sdk/rest.py,sha256=cSeilvAB5y-V_10IdXcZ0kOyv5dYW8jeWVhrD6kUDa0,9309
@@ -118,7 +118,7 @@ scc_firewall_manager_sdk/models/device_metadata.py,sha256=PNCBkG35enpJhcwqiku4NH
118
118
  scc_firewall_manager_sdk/models/device_page.py,sha256=ha32rLEnC9v8JpDff_07t_rtFLa-pAJFelG7czmFl8g,3684
119
119
  scc_firewall_manager_sdk/models/device_patch_input.py,sha256=1LOG---DhQRxRYP0qA8PzzopCUX5c0bbLu7ptIySYXo,4224
120
120
  scc_firewall_manager_sdk/models/device_role.py,sha256=cqv0xYyNhsvAOoDRUpdeSwkbEE9u89hEf8gA66cAteQ,1038
121
- scc_firewall_manager_sdk/models/device_upgrade_status_dto.py,sha256=W9HPNTkieM9hjcMHDIsNThXW1pGIiz6oI5an_UdWTYo,5084
121
+ scc_firewall_manager_sdk/models/device_upgrade_status_dto.py,sha256=APBrvjPIxnDTUDPSsQBttDpwyTjqC77b0opzJ32A6ZY,3216
122
122
  scc_firewall_manager_sdk/models/devices_patch_input.py,sha256=lSH-tNHYdS0CjWsHcSsnzQ9kL5ZxIsaVoHMxp5_Z8n4,3836
123
123
  scc_firewall_manager_sdk/models/disk_health_metrics.py,sha256=QU7XHLFoitOo4_ijLYromfp0stM8c7tx1T20uocXGXs,2947
124
124
  scc_firewall_manager_sdk/models/domain_settings.py,sha256=QqPTLHlNLd-PDoVqviIrU0IIPXhqLdTqTokV6uVQ8ug,3852
@@ -267,7 +267,7 @@ scc_firewall_manager_sdk/models/upgrade_asa_device_input.py,sha256=j_zJPdZT2o__U
267
267
  scc_firewall_manager_sdk/models/upgrade_compatibility_info_dto.py,sha256=MrrStiOPXJs6odegiASDlqyWKwsWTT8h2N-N4ds_CtU,4060
268
268
  scc_firewall_manager_sdk/models/upgrade_ftd_device_input.py,sha256=MbPKinUCTDXl39E-P7KhiHb3oJKb_Liewn7WS21Y-0k,3843
269
269
  scc_firewall_manager_sdk/models/upgrade_ftd_devices_input.py,sha256=yEoDUzkxOm0M_4FBiLF_nNsjQxdY8SZ7YtR3YfKkf-4,4274
270
- scc_firewall_manager_sdk/models/upgrade_run_dto.py,sha256=5xImnRPUTKYXdExRnb0V40EAZ6PwL5EXACAF2JPCEdw,5596
270
+ scc_firewall_manager_sdk/models/upgrade_run_dto.py,sha256=ieTBMisgm34JT91OIWok-dAkjKX6oc06svVktYUlPHA,6451
271
271
  scc_firewall_manager_sdk/models/upgrade_run_metadata_dto.py,sha256=y1t2kF5-KztfeSfFul5RJBcKIgNhOHeA_JAttKC6Pm0,3202
272
272
  scc_firewall_manager_sdk/models/upgrade_run_modify_input.py,sha256=attD1huRN1nST0xkblUW50VgNYtNXtOGH_1WVF0q-jw,2708
273
273
  scc_firewall_manager_sdk/models/url_object_content.py,sha256=OqcDbRE_HoEGf4Z_yCsTH8B08R9GdY8RMOs1wM0-ecY,2657
@@ -281,7 +281,7 @@ scc_firewall_manager_sdk/models/vlan_interface_create_input.py,sha256=AKUqPJw5ku
281
281
  scc_firewall_manager_sdk/models/vlan_interface_patch_input.py,sha256=srEFTyQykscNrWsbp8KGEzbmHC07_AU3DXjJ-7Be4zc,6054
282
282
  scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=HAgBTdocZeHGDZP_-9NyRtzP9E7BReGtiOmn4S3J-_g,5326
283
283
  scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=f9Z62yGFvz4QAQ07Z4bjfHLw2bRg46ccwoLuQ8q30TE,4808
284
- scc_firewall_manager_sdk-1.15.245.dist-info/METADATA,sha256=bzcLR84NnKbwVuu552nvw0HK0GSdEsczxoxf4p7hyDE,596
285
- scc_firewall_manager_sdk-1.15.245.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
286
- scc_firewall_manager_sdk-1.15.245.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
287
- scc_firewall_manager_sdk-1.15.245.dist-info/RECORD,,
284
+ scc_firewall_manager_sdk-1.15.247.dist-info/METADATA,sha256=zLJKFjvaEHQzSXCywvNjaZXqtzbFkmMW8e0dKbTlyjk,596
285
+ scc_firewall_manager_sdk-1.15.247.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
286
+ scc_firewall_manager_sdk-1.15.247.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
287
+ scc_firewall_manager_sdk-1.15.247.dist-info/RECORD,,