catalystwan 0.40.2.dev1__tar.gz → 2.0.0a1__tar.gz

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.
Files changed (653) hide show
  1. catalystwan-2.0.0a1/PKG-INFO +238 -0
  2. catalystwan-2.0.0a1/README.rst +38 -0
  3. catalystwan-2.0.0a1/pyproject.toml +82 -0
  4. catalystwan-2.0.0a1/setup.cfg +4 -0
  5. catalystwan-2.0.0a1/src/catalystwan/core/__init__.py +2 -0
  6. catalystwan-2.0.0a1/src/catalystwan/core/abstractions.py +26 -0
  7. {catalystwan-0.40.2.dev1/catalystwan → catalystwan-2.0.0a1/src/catalystwan/core}/apigw_auth.py +27 -14
  8. catalystwan-2.0.0a1/src/catalystwan/core/client.py +71 -0
  9. catalystwan-2.0.0a1/src/catalystwan/core/encoder.py +12 -0
  10. {catalystwan-0.40.2.dev1/catalystwan → catalystwan-2.0.0a1/src/catalystwan/core}/exceptions.py +29 -9
  11. catalystwan-2.0.0a1/src/catalystwan/core/loader.py +37 -0
  12. catalystwan-0.40.2.dev1/catalystwan/__init__.py → catalystwan-2.0.0a1/src/catalystwan/core/metadata.py +9 -22
  13. catalystwan-2.0.0a1/src/catalystwan/core/models/deserialize.py +204 -0
  14. catalystwan-2.0.0a1/src/catalystwan/core/models/serialize.py +137 -0
  15. catalystwan-2.0.0a1/src/catalystwan/core/request_adapter.py +246 -0
  16. {catalystwan-0.40.2.dev1/catalystwan → catalystwan-2.0.0a1/src/catalystwan/core}/request_limiter.py +1 -2
  17. {catalystwan-0.40.2.dev1/catalystwan → catalystwan-2.0.0a1/src/catalystwan/core}/response.py +41 -88
  18. {catalystwan-0.40.2.dev1/catalystwan → catalystwan-2.0.0a1/src/catalystwan/core}/session.py +84 -101
  19. catalystwan-2.0.0a1/src/catalystwan/core/types.py +33 -0
  20. {catalystwan-0.40.2.dev1/catalystwan → catalystwan-2.0.0a1/src/catalystwan/core}/version.py +3 -5
  21. {catalystwan-0.40.2.dev1/catalystwan → catalystwan-2.0.0a1/src/catalystwan/core}/vmanage_auth.py +46 -21
  22. catalystwan-2.0.0a1/src/catalystwan.egg-info/PKG-INFO +238 -0
  23. catalystwan-2.0.0a1/src/catalystwan.egg-info/SOURCES.txt +33 -0
  24. catalystwan-2.0.0a1/src/catalystwan.egg-info/dependency_links.txt +1 -0
  25. catalystwan-2.0.0a1/src/catalystwan.egg-info/requires.txt +20 -0
  26. catalystwan-2.0.0a1/src/catalystwan.egg-info/top_level.txt +1 -0
  27. catalystwan-2.0.0a1/tests/test_ft_deserialize.py +290 -0
  28. catalystwan-2.0.0a1/tests/test_ft_serialize.py +356 -0
  29. catalystwan-2.0.0a1/tests/test_model_deserialize.py +133 -0
  30. catalystwan-2.0.0a1/tests/test_model_serialize.py +143 -0
  31. catalystwan-2.0.0a1/tests/test_parcel_deserialize.py +163 -0
  32. catalystwan-2.0.0a1/tests/test_parcel_serialize.py +218 -0
  33. catalystwan-0.40.2.dev1/PKG-INFO +0 -539
  34. catalystwan-0.40.2.dev1/README.md +0 -510
  35. catalystwan-0.40.2.dev1/catalystwan/abstractions.py +0 -77
  36. catalystwan-0.40.2.dev1/catalystwan/api/admin_tech_api.py +0 -176
  37. catalystwan-0.40.2.dev1/catalystwan/api/administration.py +0 -434
  38. catalystwan-0.40.2.dev1/catalystwan/api/alarms_api.py +0 -186
  39. catalystwan-0.40.2.dev1/catalystwan/api/api_container.py +0 -73
  40. catalystwan-0.40.2.dev1/catalystwan/api/basic_api.py +0 -338
  41. catalystwan-0.40.2.dev1/catalystwan/api/builders/__init__.py +0 -14
  42. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/application_priority.py +0 -58
  43. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/builder_factory.py +0 -59
  44. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/cli.py +0 -76
  45. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/other.py +0 -79
  46. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/report.py +0 -137
  47. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/service.py +0 -213
  48. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/system.py +0 -80
  49. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/transport.py +0 -214
  50. catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/uc_voice.py +0 -287
  51. catalystwan-0.40.2.dev1/catalystwan/api/config_device_inventory_api.py +0 -58
  52. catalystwan-0.40.2.dev1/catalystwan/api/config_group_api.py +0 -150
  53. catalystwan-0.40.2.dev1/catalystwan/api/configuration_groups/parcel.py +0 -206
  54. catalystwan-0.40.2.dev1/catalystwan/api/dashboard_api.py +0 -215
  55. catalystwan-0.40.2.dev1/catalystwan/api/device_action_api.py +0 -216
  56. catalystwan-0.40.2.dev1/catalystwan/api/feature_profile_api.py +0 -2401
  57. catalystwan-0.40.2.dev1/catalystwan/api/logs_api.py +0 -63
  58. catalystwan-0.40.2.dev1/catalystwan/api/monitoring_status_api.py +0 -76
  59. catalystwan-0.40.2.dev1/catalystwan/api/mtt_aaa_api.py +0 -197
  60. catalystwan-0.40.2.dev1/catalystwan/api/omp_api.py +0 -124
  61. catalystwan-0.40.2.dev1/catalystwan/api/packet_capture_api.py +0 -152
  62. catalystwan-0.40.2.dev1/catalystwan/api/parcel_api.py +0 -42
  63. catalystwan-0.40.2.dev1/catalystwan/api/partition_manager_api.py +0 -143
  64. catalystwan-0.40.2.dev1/catalystwan/api/policy_api.py +0 -1163
  65. catalystwan-0.40.2.dev1/catalystwan/api/resource_pool_api.py +0 -74
  66. catalystwan-0.40.2.dev1/catalystwan/api/software_action_api.py +0 -269
  67. catalystwan-0.40.2.dev1/catalystwan/api/speedtest_api.py +0 -153
  68. catalystwan-0.40.2.dev1/catalystwan/api/task_status_api.py +0 -171
  69. catalystwan-0.40.2.dev1/catalystwan/api/template_api.py +0 -761
  70. catalystwan-0.40.2.dev1/catalystwan/api/templates/README.md +0 -101
  71. catalystwan-0.40.2.dev1/catalystwan/api/templates/bool_str.py +0 -6
  72. catalystwan-0.40.2.dev1/catalystwan/api/templates/cli_template.py +0 -236
  73. catalystwan-0.40.2.dev1/catalystwan/api/templates/device_template/device_template.py +0 -189
  74. catalystwan-0.40.2.dev1/catalystwan/api/templates/device_variable.py +0 -7
  75. catalystwan-0.40.2.dev1/catalystwan/api/templates/feature_template.py +0 -133
  76. catalystwan-0.40.2.dev1/catalystwan/api/templates/feature_template_field.py +0 -175
  77. catalystwan-0.40.2.dev1/catalystwan/api/templates/feature_template_payload.py +0 -17
  78. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/aaa_model.py +0 -387
  79. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_aaa_model.py +0 -331
  80. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_banner_model.py +0 -27
  81. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_bfd_model.py +0 -61
  82. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_bgp_model.py +0 -510
  83. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_logging_model.py +0 -122
  84. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_ntp_model.py +0 -60
  85. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_omp_model.py +0 -121
  86. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_ospf.py +0 -241
  87. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_ospfv3.py +0 -498
  88. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_secure_internet_gateway.py +0 -385
  89. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_snmp_model.py +0 -102
  90. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_system.py +0 -318
  91. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_vpn_interface_model.py +0 -822
  92. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cisco_vpn_model.py +0 -603
  93. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/cli_template.py +0 -18
  94. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/omp_vsmart_model.py +0 -73
  95. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/security_vsmart_model.py +0 -28
  96. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/supported.py +0 -42
  97. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/system_vsmart_model.py +0 -182
  98. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/vpn_vsmart_interface_model.py +0 -198
  99. catalystwan-0.40.2.dev1/catalystwan/api/templates/models/vpn_vsmart_model.py +0 -124
  100. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/aaa/aaa_model.py +0 -91
  101. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/aaa/feature/aaa.json.j2 +0 -373
  102. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/aaa/feature/accounting.json.j2 +0 -40
  103. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/aaa/feature/radius.json.j2 +0 -107
  104. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/aaa/feature/tacacs.json.j2 +0 -95
  105. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/aaa/feature/user.json.j2 +0 -60
  106. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/cisco_vpn/cisco_vpn_model.py +0 -92
  107. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/cisco_vpn/feature/cisco_vpn.json.j2 +0 -224
  108. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/cisco_vpn/feature/dns.json.j2 +0 -86
  109. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/cisco_vpn/feature/ipv4route.json.j2 +0 -59
  110. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/cisco_vpn/feature/ipv6route.json.j2 +0 -58
  111. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/cisco_vpn/feature/mapping.json.j2 +0 -24
  112. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/tenant/tenant.json.j2 +0 -127
  113. catalystwan-0.40.2.dev1/catalystwan/api/templates/payloads/tenant/tenant_model.py +0 -43
  114. catalystwan-0.40.2.dev1/catalystwan/api/tenant_backup_restore_api.py +0 -154
  115. catalystwan-0.40.2.dev1/catalystwan/api/tenant_management_api.py +0 -127
  116. catalystwan-0.40.2.dev1/catalystwan/api/tenant_migration_api.py +0 -121
  117. catalystwan-0.40.2.dev1/catalystwan/api/versions_utils.py +0 -414
  118. catalystwan-0.40.2.dev1/catalystwan/api/virtual_image_action_api.py +0 -200
  119. catalystwan-0.40.2.dev1/catalystwan/dataclasses.py +0 -493
  120. catalystwan-0.40.2.dev1/catalystwan/endpoints/__init__.py +0 -606
  121. catalystwan-0.40.2.dev1/catalystwan/endpoints/administration_user_and_group.py +0 -341
  122. catalystwan-0.40.2.dev1/catalystwan/endpoints/api_gateway.py +0 -24
  123. catalystwan-0.40.2.dev1/catalystwan/endpoints/certificate_management_device.py +0 -141
  124. catalystwan-0.40.2.dev1/catalystwan/endpoints/certificate_management_vmanage.py +0 -48
  125. catalystwan-0.40.2.dev1/catalystwan/endpoints/client.py +0 -96
  126. catalystwan-0.40.2.dev1/catalystwan/endpoints/cluster_management.py +0 -130
  127. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/device/software_update.py +0 -31
  128. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/disaster_recovery.py +0 -305
  129. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/application_priority.py +0 -107
  130. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/cli.py +0 -60
  131. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/dns_security.py +0 -83
  132. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/embedded_security.py +0 -88
  133. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/other.py +0 -62
  134. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/policy_object.py +0 -105
  135. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/service.py +0 -137
  136. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/sig_security.py +0 -88
  137. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/system.py +0 -205
  138. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/topology.py +0 -93
  139. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/transport.py +0 -214
  140. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/feature_profile/sdwan/uc_voice.py +0 -77
  141. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/network_hierarchy.py +0 -32
  142. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/abstractions.py +0 -49
  143. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/access_control_list.py +0 -57
  144. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/access_control_list_ipv6.py +0 -57
  145. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/aip.py +0 -52
  146. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/amp.py +0 -52
  147. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/app_route.py +0 -50
  148. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/cflowd.py +0 -46
  149. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/control.py +0 -57
  150. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/device_access.py +0 -57
  151. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/device_access_ipv6.py +0 -59
  152. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/dial_peer.py +0 -57
  153. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/dns_security.py +0 -50
  154. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/fxo_port.py +0 -57
  155. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/fxs_did_port.py +0 -57
  156. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/fxs_port.py +0 -57
  157. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/hub_and_spoke.py +0 -57
  158. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/intrusion_prevention.py +0 -52
  159. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/mesh.py +0 -53
  160. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/pri_isdn_port.py +0 -57
  161. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/qos_map.py +0 -53
  162. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/rewrite.py +0 -57
  163. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/route_policy.py +0 -50
  164. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/rule_set.py +0 -53
  165. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/security_group.py +0 -57
  166. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/srst_phone_profile.py +0 -59
  167. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/ssl_decryption.py +0 -50
  168. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/ssl_decryption_utd_profile.py +0 -52
  169. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/traffic_data.py +0 -58
  170. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/url_filtering.py +0 -50
  171. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/vpn_membership.py +0 -57
  172. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/vpn_qos_map.py +0 -50
  173. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/definition/zone_based_firewall.py +0 -57
  174. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/app.py +0 -48
  175. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/app_probe.py +0 -52
  176. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/as_path.py +0 -48
  177. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/class_map.py +0 -48
  178. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/color.py +0 -48
  179. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/community.py +0 -48
  180. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/data_ipv6_prefix.py +0 -52
  181. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/data_prefix.py +0 -48
  182. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/expanded_community.py +0 -52
  183. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/extended_community.py +0 -52
  184. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/fax_protocol.py +0 -48
  185. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/fqdn.py +0 -48
  186. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/geo_location.py +0 -48
  187. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/identity.py +0 -48
  188. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/ips_signature.py +0 -52
  189. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/ipv6_prefix.py +0 -48
  190. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/local_app.py +0 -48
  191. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/local_domain.py +0 -48
  192. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/media_profile.py +0 -52
  193. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/mirror.py +0 -48
  194. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/modem_pass_through.py +0 -52
  195. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/policer.py +0 -48
  196. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/port.py +0 -48
  197. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/preferred_color_group.py +0 -52
  198. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/prefix.py +0 -49
  199. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/protocol_name.py +0 -52
  200. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/region.py +0 -47
  201. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/scalable_group_tag.py +0 -52
  202. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/site.py +0 -52
  203. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/sla.py +0 -48
  204. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/supervisory_disconnect.py +0 -52
  205. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/threat_grid_api_key.py +0 -52
  206. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/tloc.py +0 -48
  207. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/translation_profile.py +0 -52
  208. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/translation_rules.py +0 -52
  209. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/trunkgroup.py +0 -48
  210. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/umbrella_data.py +0 -52
  211. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/url_allow_list.py +0 -48
  212. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/url_block_list.py +0 -48
  213. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/vpn.py +0 -50
  214. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/list/zone.py +0 -48
  215. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/security_template.py +0 -55
  216. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/vedge_template.py +0 -52
  217. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/voice_template.py +0 -39
  218. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy/vsmart_template.py +0 -79
  219. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/policy_group.py +0 -30
  220. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/software_actions.py +0 -201
  221. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration/topology_group.py +0 -51
  222. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_dashboard_status.py +0 -127
  223. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_device_actions.py +0 -385
  224. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_device_inventory.py +0 -309
  225. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_device_template.py +0 -39
  226. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_feature_profile.py +0 -135
  227. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_general_template.py +0 -31
  228. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_group.py +0 -197
  229. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_settings.py +0 -753
  230. catalystwan-0.40.2.dev1/catalystwan/endpoints/configuration_template_master.py +0 -48
  231. catalystwan-0.40.2.dev1/catalystwan/endpoints/endpoints_container.py +0 -279
  232. catalystwan-0.40.2.dev1/catalystwan/endpoints/misc.py +0 -21
  233. catalystwan-0.40.2.dev1/catalystwan/endpoints/monitoring/device_details.py +0 -246
  234. catalystwan-0.40.2.dev1/catalystwan/endpoints/monitoring/security_policy.py +0 -12
  235. catalystwan-0.40.2.dev1/catalystwan/endpoints/monitoring/server_info.py +0 -12
  236. catalystwan-0.40.2.dev1/catalystwan/endpoints/monitoring/status.py +0 -76
  237. catalystwan-0.40.2.dev1/catalystwan/endpoints/real_time_monitoring/reboot_history.py +0 -35
  238. catalystwan-0.40.2.dev1/catalystwan/endpoints/sdavc_cloud_connector.py +0 -43
  239. catalystwan-0.40.2.dev1/catalystwan/endpoints/tenant_backup_restore.py +0 -40
  240. catalystwan-0.40.2.dev1/catalystwan/endpoints/tenant_management.py +0 -215
  241. catalystwan-0.40.2.dev1/catalystwan/endpoints/tenant_migration.py +0 -102
  242. catalystwan-0.40.2.dev1/catalystwan/endpoints/troubleshooting_tools/device_connectivity.py +0 -128
  243. catalystwan-0.40.2.dev1/catalystwan/endpoints/url_monitoring.py +0 -26
  244. catalystwan-0.40.2.dev1/catalystwan/integration_tests/__init__.py +0 -0
  245. catalystwan-0.40.2.dev1/catalystwan/integration_tests/base.py +0 -81
  246. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/__init__.py +0 -0
  247. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/policy/__init__.py +0 -0
  248. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/policy/base.py +0 -33
  249. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/policy/test_extended_community.py +0 -33
  250. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/policy/test_security_app_list.py +0 -32
  251. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_application_priority.py +0 -433
  252. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_cli.py +0 -54
  253. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_dns_security.py +0 -106
  254. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_other.py +0 -49
  255. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_service.py +0 -1078
  256. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_sig_security.py +0 -322
  257. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_ssl_decryption.py +0 -85
  258. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_system.py +0 -368
  259. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/test_transport.py +0 -1700
  260. catalystwan-0.40.2.dev1/catalystwan/integration_tests/feature_profile/sdwan/topology/test_topology.py +0 -93
  261. catalystwan-0.40.2.dev1/catalystwan/integration_tests/profile_builder/__init__.py +0 -0
  262. catalystwan-0.40.2.dev1/catalystwan/integration_tests/profile_builder/test_pb_service.py +0 -78
  263. catalystwan-0.40.2.dev1/catalystwan/integration_tests/profile_builder/test_pb_transport.py +0 -56
  264. catalystwan-0.40.2.dev1/catalystwan/integration_tests/profile_builder/test_pb_uc_voice.py +0 -277
  265. catalystwan-0.40.2.dev1/catalystwan/integration_tests/test_data/__init__.py +0 -117
  266. catalystwan-0.40.2.dev1/catalystwan/integration_tests/test_find_template_values.py +0 -38
  267. catalystwan-0.40.2.dev1/catalystwan/integration_tests/test_network_hierarchy.py +0 -82
  268. catalystwan-0.40.2.dev1/catalystwan/integration_tests/test_settings.py +0 -30
  269. catalystwan-0.40.2.dev1/catalystwan/logging.conf +0 -37
  270. catalystwan-0.40.2.dev1/catalystwan/models/common.py +0 -1508
  271. catalystwan-0.40.2.dev1/catalystwan/models/configuration/common.py +0 -11
  272. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/README.md +0 -344
  273. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/builder.py +0 -22
  274. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/common.py +0 -790
  275. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/parcel.py +0 -232
  276. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/acl/__init__.py +0 -13
  277. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/acl/ipv4acl.py +0 -298
  278. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/acl/ipv6acl.py +0 -344
  279. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/application_priority/__init__.py +0 -218
  280. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/application_priority/cloud_probe.py +0 -61
  281. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/application_priority/policy_settings.py +0 -31
  282. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/application_priority/qos_policy.py +0 -102
  283. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/application_priority/traffic_policy.py +0 -1054
  284. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/cli/__init__.py +0 -23
  285. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/cli/config.py +0 -18
  286. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/cli/full_config.py +0 -15
  287. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/dns_security/__init__.py +0 -13
  288. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/dns_security/dns.py +0 -110
  289. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/embedded_security/__init__.py +0 -23
  290. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/embedded_security/ngfirewall.py +0 -915
  291. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/embedded_security/policy.py +0 -171
  292. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/other/__init__.py +0 -25
  293. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/other/cybervision.py +0 -44
  294. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/other/thousandeyes.py +0 -147
  295. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/other/ucse.py +0 -110
  296. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/__init__.py +0 -178
  297. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/app_probe.py +0 -56
  298. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/application_list.py +0 -31
  299. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/as_path.py +0 -22
  300. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/color_list.py +0 -21
  301. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/data_prefix.py +0 -35
  302. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/expanded_community_list.py +0 -25
  303. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/extended_community.py +0 -34
  304. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/fowarding_class.py +0 -26
  305. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv4_network_object.py +0 -15
  306. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv4_service_object.py +0 -254
  307. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv6_data_prefix.py +0 -28
  308. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv6_prefix_list.py +0 -38
  309. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/mirror.py +0 -27
  310. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/network_object_group.py +0 -15
  311. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/object_group.py +0 -15
  312. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/policer.py +0 -42
  313. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/prefered_group_color.py +0 -83
  314. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/prefix_list.py +0 -28
  315. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/service_object_group.py +0 -21
  316. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/sla_class.py +0 -130
  317. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/standard_community.py +0 -30
  318. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/tloc_list.py +0 -44
  319. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/aip.py +0 -64
  320. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/amp.py +0 -79
  321. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/application_list.py +0 -31
  322. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/data_prefix.py +0 -22
  323. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/fqdn.py +0 -24
  324. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/geolocation_list.py +0 -32
  325. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/identity.py +0 -30
  326. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/intrusion_prevention.py +0 -58
  327. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/ips_signature.py +0 -44
  328. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/local_domain.py +0 -24
  329. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/protocol_list.py +0 -21
  330. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/scalable_group_tag.py +0 -26
  331. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/security_port.py +0 -45
  332. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/ssl_decryption.py +0 -126
  333. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/ssl_decryption_profile.py +0 -165
  334. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/url.py +0 -32
  335. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/url_filtering.py +0 -148
  336. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/zone.py +0 -44
  337. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/routing/__init__.py +0 -26
  338. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/routing/bgp.py +0 -609
  339. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/routing/ospf.py +0 -173
  340. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/routing/ospfv3.py +0 -301
  341. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/__init__.py +0 -91
  342. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/appqoe.py +0 -270
  343. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/dhcp_server.py +0 -127
  344. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/dual_router_ha.py +0 -26
  345. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/eigrp.py +0 -103
  346. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/lan/common.py +0 -33
  347. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/lan/ethernet.py +0 -404
  348. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/lan/gre.py +0 -136
  349. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/lan/ipsec.py +0 -119
  350. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/lan/multilink.py +0 -101
  351. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/lan/svi.py +0 -182
  352. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/lan/vpn.py +0 -627
  353. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/multicast.py +0 -242
  354. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/object_tracker.py +0 -84
  355. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/route_policy.py +0 -419
  356. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/service_chain.py +0 -38
  357. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/service_insertion_attachment.py +0 -184
  358. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/switchport.py +0 -110
  359. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/tracker.py +0 -92
  360. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/service/wireless_lan.py +0 -216
  361. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/sig_security/__init__.py +0 -19
  362. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/sig_security/sig_security.py +0 -379
  363. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/__init__.py +0 -59
  364. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/aaa.py +0 -406
  365. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/banner.py +0 -30
  366. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/basic.py +0 -290
  367. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/bfd.py +0 -69
  368. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/device_access.py +0 -157
  369. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/device_access_ipv6.py +0 -157
  370. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/global_parcel.py +0 -163
  371. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/logging_parcel.py +0 -162
  372. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/mrf.py +0 -75
  373. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/ntp.py +0 -103
  374. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/omp.py +0 -120
  375. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/security.py +0 -179
  376. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/system/snmp.py +0 -173
  377. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/topology/__init__.py +0 -29
  378. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/topology/custom_control.py +0 -425
  379. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/topology/hubspoke.py +0 -60
  380. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/topology/mesh.py +0 -23
  381. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/__init__.py +0 -93
  382. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/cellular_controller.py +0 -58
  383. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/cellular_profile.py +0 -71
  384. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/gps.py +0 -37
  385. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/management/ethernet.py +0 -121
  386. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/t1e1controller.py +0 -124
  387. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/vpn.py +0 -285
  388. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/cellular.py +0 -173
  389. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ethernet.py +0 -389
  390. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/gre.py +0 -46
  391. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ipsec.py +0 -98
  392. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/multilink.py +0 -219
  393. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/protocol_over.py +0 -405
  394. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/t1e1serial.py +0 -195
  395. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/__init__.py +0 -62
  396. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/analog_interface.py +0 -436
  397. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/call_routing.py +0 -179
  398. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/digital_interface.py +0 -375
  399. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/dsp_farm.py +0 -193
  400. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/media_profile.py +0 -25
  401. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/server_group.py +0 -51
  402. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/srst.py +0 -86
  403. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/supervisory_disconnect.py +0 -68
  404. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/translation_profile.py +0 -42
  405. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/translation_rule.py +0 -31
  406. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/trunk_group.py +0 -26
  407. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/voice_global.py +0 -55
  408. catalystwan-0.40.2.dev1/catalystwan/models/configuration/feature_profile/sdwan/uc_voice/voice_tenant.py +0 -40
  409. catalystwan-0.40.2.dev1/catalystwan/models/configuration/network_hierarchy/__init__.py +0 -22
  410. catalystwan-0.40.2.dev1/catalystwan/models/configuration/network_hierarchy/cflowd.py +0 -120
  411. catalystwan-0.40.2.dev1/catalystwan/models/configuration/network_hierarchy/node.py +0 -88
  412. catalystwan-0.40.2.dev1/catalystwan/models/configuration/policy_group.py +0 -74
  413. catalystwan-0.40.2.dev1/catalystwan/models/configuration/profile_type.py +0 -5
  414. catalystwan-0.40.2.dev1/catalystwan/models/configuration/topology_group.py +0 -52
  415. catalystwan-0.40.2.dev1/catalystwan/models/device_inventory.py +0 -30
  416. catalystwan-0.40.2.dev1/catalystwan/models/feature_profile_parcel.py +0 -15
  417. catalystwan-0.40.2.dev1/catalystwan/models/misc/application_protocols.py +0 -29
  418. catalystwan-0.40.2.dev1/catalystwan/models/monitoring/security_policy.py +0 -16
  419. catalystwan-0.40.2.dev1/catalystwan/models/monitoring/server_info.py +0 -12
  420. catalystwan-0.40.2.dev1/catalystwan/models/policy/__init__.py +0 -392
  421. catalystwan-0.40.2.dev1/catalystwan/models/policy/centralized.py +0 -265
  422. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/access_control_list.py +0 -193
  423. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/access_control_list_ipv6.py +0 -187
  424. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/aip.py +0 -60
  425. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/amp.py +0 -65
  426. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/app_route.py +0 -246
  427. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/cflowd.py +0 -95
  428. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/control.py +0 -366
  429. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/device_access.py +0 -117
  430. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/device_access_ipv6.py +0 -115
  431. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/dial_peer.py +0 -60
  432. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/dns_security.py +0 -130
  433. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/fxo_port.py +0 -63
  434. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/fxs_did_port.py +0 -58
  435. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/fxs_port.py +0 -56
  436. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/hub_and_spoke.py +0 -87
  437. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/intrusion_prevention.py +0 -55
  438. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/mesh.py +0 -47
  439. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/pri_isdn_port.py +0 -48
  440. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/qos_map.py +0 -111
  441. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/rewrite.py +0 -47
  442. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/route_policy.py +0 -187
  443. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/rule_set.py +0 -270
  444. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/security_group.py +0 -93
  445. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/srst_phone_profile.py +0 -37
  446. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/ssl_decryption.py +0 -209
  447. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/ssl_decryption_utd_profile.py +0 -87
  448. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/traffic_data.py +0 -496
  449. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/url_filtering.py +0 -70
  450. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/vpn_membership.py +0 -42
  451. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/vpn_qos_map.py +0 -46
  452. catalystwan-0.40.2.dev1/catalystwan/models/policy/definition/zone_based_firewall.py +0 -301
  453. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/app.py +0 -44
  454. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/app_probe.py +0 -42
  455. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/as_path.py +0 -30
  456. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/class_map.py +0 -30
  457. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/color.py +0 -28
  458. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/communities.py +0 -83
  459. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/data_ipv6_prefix.py +0 -30
  460. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/data_prefix.py +0 -30
  461. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/fax_protocol.py +0 -45
  462. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/fqdn.py +0 -24
  463. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/geo_location.py +0 -33
  464. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/identity.py +0 -29
  465. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/ips_signature.py +0 -27
  466. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/ipv6_prefix.py +0 -33
  467. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/local_app.py +0 -45
  468. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/local_domain.py +0 -36
  469. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/media_profile.py +0 -44
  470. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/mirror.py +0 -27
  471. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/modem_pass_through.py +0 -27
  472. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/policer.py +0 -39
  473. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/port.py +0 -33
  474. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/preferred_color_group.py +0 -82
  475. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/prefix.py +0 -33
  476. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/protocol_name.py +0 -26
  477. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/region.py +0 -45
  478. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/scalable_group_tag.py +0 -30
  479. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/site.py +0 -34
  480. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/sla.py +0 -77
  481. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/supervisory_disconnect.py +0 -62
  482. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/threat_grid_api_key.py +0 -32
  483. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/tloc.py +0 -32
  484. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/translation_profile.py +0 -32
  485. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/translation_rules.py +0 -29
  486. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/trunkgroup.py +0 -56
  487. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/umbrella_data.py +0 -30
  488. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/url.py +0 -39
  489. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/vpn.py +0 -40
  490. catalystwan-0.40.2.dev1/catalystwan/models/policy/list/zone.py +0 -45
  491. catalystwan-0.40.2.dev1/catalystwan/models/policy/localized.py +0 -154
  492. catalystwan-0.40.2.dev1/catalystwan/models/policy/policy.py +0 -100
  493. catalystwan-0.40.2.dev1/catalystwan/models/policy/policy_definition.py +0 -1624
  494. catalystwan-0.40.2.dev1/catalystwan/models/policy/policy_list.py +0 -47
  495. catalystwan-0.40.2.dev1/catalystwan/models/policy/security.py +0 -279
  496. catalystwan-0.40.2.dev1/catalystwan/models/policy/voice.py +0 -77
  497. catalystwan-0.40.2.dev1/catalystwan/models/settings.py +0 -41
  498. catalystwan-0.40.2.dev1/catalystwan/models/templates.py +0 -79
  499. catalystwan-0.40.2.dev1/catalystwan/models/tenant.py +0 -105
  500. catalystwan-0.40.2.dev1/catalystwan/models/url_monitoring.py +0 -28
  501. catalystwan-0.40.2.dev1/catalystwan/tests/__init__.py +0 -0
  502. catalystwan-0.40.2.dev1/catalystwan/tests/builders/uc_voice.py +0 -85
  503. catalystwan-0.40.2.dev1/catalystwan/tests/models/__init__.py +0 -0
  504. catalystwan-0.40.2.dev1/catalystwan/tests/models/test_digital_interface.py +0 -56
  505. catalystwan-0.40.2.dev1/catalystwan/tests/templates/__init__.py +0 -0
  506. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/__init__.py +0 -0
  507. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/aaa_basic.json +0 -96
  508. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/aaa_complex.json +0 -464
  509. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/__init__.py +0 -0
  510. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/alias.json +0 -7
  511. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/basic.json +0 -7
  512. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/basic_no_value.json +0 -7
  513. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/children.json +0 -39
  514. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/children_nested.json +0 -72
  515. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/children_nested_datapath.json +0 -72
  516. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/basic/data_path.json +0 -13
  517. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_aaa.json +0 -178
  518. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_aaa_complex.json +0 -361
  519. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_banner.json +0 -20
  520. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_bfd.json +0 -90
  521. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_logging_complex.json +0 -268
  522. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_ntp_complex.json +0 -143
  523. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_omp_complex.json +0 -175
  524. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_ospf_complex.json +0 -302
  525. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_sig.json +0 -405
  526. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_snmp_complex.json +0 -258
  527. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_system_complex.json +0 -502
  528. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_vpn_basic.json +0 -17
  529. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_vpn_complex.json +0 -1081
  530. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/cisco_vpn_interface_complex.json +0 -821
  531. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/default_cisco_system.json +0 -184
  532. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/omp_vsmart_1.json +0 -26
  533. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/omp_vsmart_2.json +0 -48
  534. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/omp_vsmart_3.json +0 -71
  535. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/omp_vsmart_complex.json +0 -73
  536. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/security_vsmart_complex.json +0 -24
  537. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/system_vsmart_complex.json +0 -193
  538. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/vpn_vsmart_basic.json +0 -17
  539. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/vpn_vsmart_complex.json +0 -179
  540. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/vpn_vsmart_interface_basic.json +0 -42
  541. catalystwan-0.40.2.dev1/catalystwan/tests/templates/definitions/vpn_vsmart_interface_complex.json +0 -208
  542. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/__init__.py +0 -53
  543. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/aaa.py +0 -106
  544. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_aaa.py +0 -124
  545. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_banner.py +0 -7
  546. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_bfd.py +0 -15
  547. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_logging.py +0 -65
  548. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_ntp.py +0 -17
  549. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_omp.py +0 -37
  550. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_ospf.py +0 -60
  551. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_secure_internet_gateway.py +0 -95
  552. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_snmp.py +0 -40
  553. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_system.py +0 -113
  554. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_vpn.py +0 -240
  555. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/cisco_vpn_interface.py +0 -200
  556. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/omp_vsmart.py +0 -53
  557. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/security_vsmart.py +0 -11
  558. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/system_vsmart.py +0 -37
  559. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/vpn_vsmart.py +0 -32
  560. catalystwan-0.40.2.dev1/catalystwan/tests/templates/models/vpn_vsmart_interface.py +0 -54
  561. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/aaa.json +0 -1096
  562. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/basic/alias.json +0 -24
  563. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/basic/basic.json +0 -23
  564. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/basic/children.json +0 -59
  565. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/basic/children_nested.json +0 -112
  566. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/basic/children_nested_datapath.json +0 -112
  567. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/basic/data_path.json +0 -29
  568. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cedge_aaa.json +0 -1185
  569. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_banner.json +0 -44
  570. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_bfd.json +0 -266
  571. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_logging.json +0 -577
  572. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_ntp.json +0 -265
  573. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_omp.json +0 -479
  574. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_ospf.json +0 -908
  575. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_secure_internet_gateway.json +0 -1520
  576. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_snmp.json +0 -561
  577. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_system.json +0 -3099
  578. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_vpn.json +0 -2504
  579. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/cisco_vpn_interface.json +0 -3348
  580. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/omp-vsmart.json +0 -222
  581. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/security-vsmart.json +0 -58
  582. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/system-vsmart.json +0 -2585
  583. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/vpn-vsmart-interface.json +0 -859
  584. catalystwan-0.40.2.dev1/catalystwan/tests/templates/schemas/vpn-vsmart.json +0 -445
  585. catalystwan-0.40.2.dev1/catalystwan/tests/templates/test_chose_model.py +0 -32
  586. catalystwan-0.40.2.dev1/catalystwan/tests/templates/test_deserialize_model.py +0 -69
  587. catalystwan-0.40.2.dev1/catalystwan/tests/templates/test_find_template_values.py +0 -193
  588. catalystwan-0.40.2.dev1/catalystwan/tests/templates/test_find_template_values_2.py +0 -193
  589. catalystwan-0.40.2.dev1/catalystwan/tests/templates/test_generate_payload.py +0 -137
  590. catalystwan-0.40.2.dev1/catalystwan/tests/templates/test_serialize_model.py +0 -52
  591. catalystwan-0.40.2.dev1/catalystwan/tests/test_admin_tech_api.py +0 -198
  592. catalystwan-0.40.2.dev1/catalystwan/tests/test_administration.py +0 -470
  593. catalystwan-0.40.2.dev1/catalystwan/tests/test_alarms_api.py +0 -251
  594. catalystwan-0.40.2.dev1/catalystwan/tests/test_cli_template.py +0 -218
  595. catalystwan-0.40.2.dev1/catalystwan/tests/test_creation_tools.py +0 -155
  596. catalystwan-0.40.2.dev1/catalystwan/tests/test_device_action_api.py +0 -117
  597. catalystwan-0.40.2.dev1/catalystwan/tests/test_devices_api.py +0 -674
  598. catalystwan-0.40.2.dev1/catalystwan/tests/test_endpoints.py +0 -907
  599. catalystwan-0.40.2.dev1/catalystwan/tests/test_feature_profile_api.py +0 -282
  600. catalystwan-0.40.2.dev1/catalystwan/tests/test_feature_template_field.py +0 -33
  601. catalystwan-0.40.2.dev1/catalystwan/tests/test_logs_api.py +0 -40
  602. catalystwan-0.40.2.dev1/catalystwan/tests/test_models_common.py +0 -53
  603. catalystwan-0.40.2.dev1/catalystwan/tests/test_monitoring_security_policy.py +0 -65
  604. catalystwan-0.40.2.dev1/catalystwan/tests/test_monitoring_server_info.py +0 -49
  605. catalystwan-0.40.2.dev1/catalystwan/tests/test_monitoring_status_api.py +0 -118
  606. catalystwan-0.40.2.dev1/catalystwan/tests/test_mtt_aaa_api.py +0 -293
  607. catalystwan-0.40.2.dev1/catalystwan/tests/test_omp_api.py +0 -438
  608. catalystwan-0.40.2.dev1/catalystwan/tests/test_packet_capture.py +0 -125
  609. catalystwan-0.40.2.dev1/catalystwan/tests/test_partition_manager_api.py +0 -121
  610. catalystwan-0.40.2.dev1/catalystwan/tests/test_response.py +0 -183
  611. catalystwan-0.40.2.dev1/catalystwan/tests/test_session.py +0 -102
  612. catalystwan-0.40.2.dev1/catalystwan/tests/test_software_action_api.py +0 -154
  613. catalystwan-0.40.2.dev1/catalystwan/tests/test_speed_test_api.py +0 -143
  614. catalystwan-0.40.2.dev1/catalystwan/tests/test_task_status_api.py +0 -381
  615. catalystwan-0.40.2.dev1/catalystwan/tests/test_templates.py +0 -405
  616. catalystwan-0.40.2.dev1/catalystwan/tests/test_tenant_backup_restore_api.py +0 -88
  617. catalystwan-0.40.2.dev1/catalystwan/tests/test_tenant_management_api.py +0 -153
  618. catalystwan-0.40.2.dev1/catalystwan/tests/test_tenant_migration_api.py +0 -102
  619. catalystwan-0.40.2.dev1/catalystwan/tests/test_typed_list.py +0 -426
  620. catalystwan-0.40.2.dev1/catalystwan/tests/test_url_monitoring.py +0 -80
  621. catalystwan-0.40.2.dev1/catalystwan/tests/test_version.py +0 -99
  622. catalystwan-0.40.2.dev1/catalystwan/tests/test_version_utils.py +0 -240
  623. catalystwan-0.40.2.dev1/catalystwan/tests/test_vmanage_auth.py +0 -149
  624. catalystwan-0.40.2.dev1/catalystwan/typed_list.py +0 -288
  625. catalystwan-0.40.2.dev1/catalystwan/utils/__init__.py +0 -0
  626. catalystwan-0.40.2.dev1/catalystwan/utils/alarm_status.py +0 -16
  627. catalystwan-0.40.2.dev1/catalystwan/utils/certificate_status.py +0 -13
  628. catalystwan-0.40.2.dev1/catalystwan/utils/colors.py +0 -12
  629. catalystwan-0.40.2.dev1/catalystwan/utils/config_status.py +0 -8
  630. catalystwan-0.40.2.dev1/catalystwan/utils/creation_tools.py +0 -136
  631. catalystwan-0.40.2.dev1/catalystwan/utils/dashboard.py +0 -255
  632. catalystwan-0.40.2.dev1/catalystwan/utils/device_model.py +0 -322
  633. catalystwan-0.40.2.dev1/catalystwan/utils/dict.py +0 -61
  634. catalystwan-0.40.2.dev1/catalystwan/utils/feature_template/choose_model.py +0 -30
  635. catalystwan-0.40.2.dev1/catalystwan/utils/feature_template/find_template_values.py +0 -111
  636. catalystwan-0.40.2.dev1/catalystwan/utils/model.py +0 -45
  637. catalystwan-0.40.2.dev1/catalystwan/utils/operation_status.py +0 -22
  638. catalystwan-0.40.2.dev1/catalystwan/utils/persona.py +0 -5
  639. catalystwan-0.40.2.dev1/catalystwan/utils/personality.py +0 -10
  640. catalystwan-0.40.2.dev1/catalystwan/utils/pydantic_field.py +0 -12
  641. catalystwan-0.40.2.dev1/catalystwan/utils/reachability.py +0 -14
  642. catalystwan-0.40.2.dev1/catalystwan/utils/session_type.py +0 -17
  643. catalystwan-0.40.2.dev1/catalystwan/utils/template_type.py +0 -8
  644. catalystwan-0.40.2.dev1/catalystwan/utils/type_check.py +0 -22
  645. catalystwan-0.40.2.dev1/catalystwan/utils/upgrades_helper.py +0 -95
  646. catalystwan-0.40.2.dev1/catalystwan/utils/validate_status.py +0 -8
  647. catalystwan-0.40.2.dev1/catalystwan/workflows/backup_restore_device_templates.py +0 -467
  648. catalystwan-0.40.2.dev1/catalystwan/workflows/tenant_migration.py +0 -203
  649. catalystwan-0.40.2.dev1/pyproject.toml +0 -37
  650. catalystwan-0.40.2.dev1/setup.py +0 -108
  651. {catalystwan-0.40.2.dev1 → catalystwan-2.0.0a1}/LICENSE +0 -0
  652. {catalystwan-0.40.2.dev1/catalystwan/api → catalystwan-2.0.0a1/src/catalystwan/core/models}/__init__.py +0 -0
  653. /catalystwan-0.40.2.dev1/catalystwan/api/builders/feature_profiles/__init__.py → /catalystwan-2.0.0a1/src/catalystwan/core/py.typed +0 -0
@@ -0,0 +1,238 @@
1
+ Metadata-Version: 2.1
2
+ Name: catalystwan
3
+ Version: 2.0.0a1
4
+ Summary: Cisco Catalyst WAN SDK for Python
5
+ License: Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for reasonable and customary use in describing the
145
+ origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing
170
+ the Work or Derivative Works thereof, You may choose to offer,
171
+ and charge a fee for, acceptance of support, warranty, indemnity,
172
+ or other liability obligations and/or rights consistent with this
173
+ License. However, in accepting such obligations, You may act only
174
+ on Your own behalf and on Your sole responsibility, not on behalf
175
+ of any other Contributor, and only if You agree to indemnify,
176
+ defend, and hold each Contributor harmless for any liability
177
+ incurred by, or claims asserted against, such Contributor by reason
178
+ of your accepting any such warranty or additional liability.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. We also recommend that a
189
+ file or class name and description of purpose be included on the
190
+ same "printed page" as the copyright notice for easier
191
+ identification within third-party archives.
192
+
193
+ Copyright (c) 2024 Cisco Systems, Inc. and/or its affiliates
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
206
+
207
+ Project-URL: Homepage, https://github.com/cisco-en-programmability/catalystwan-sdk-next-python
208
+ Classifier: Development Status :: 3 - Alpha
209
+ Classifier: Intended Audience :: Developers
210
+ Classifier: License :: OSI Approved :: Apache Software License
211
+ Classifier: Programming Language :: Python
212
+ Classifier: Programming Language :: Python :: 3
213
+ Classifier: Programming Language :: Python :: 3.8
214
+ Classifier: Programming Language :: Python :: 3.9
215
+ Classifier: Programming Language :: Python :: 3.10
216
+ Classifier: Programming Language :: Python :: 3.11
217
+ Classifier: Programming Language :: Python :: 3.12
218
+ Classifier: Operating System :: OS Independent
219
+ Classifier: Topic :: Internet
220
+ Requires-Python: >=3.8
221
+ Description-Content-Type: text/markdown
222
+ License-File: LICENSE
223
+ Requires-Dist: packaging>=23.0
224
+ Requires-Dist: requests>=2.32.3
225
+ Requires-Dist: typing-extensions>=4.12.2
226
+ Requires-Dist: urllib3>=2.2.2
227
+ Requires-Dist: catalystwan-types==2.0.0a0
228
+ Requires-Dist: catalystwan-v20-15==2.0.0a1
229
+ Requires-Dist: catalystwan-v20-16==2.0.0a1
230
+ Provides-Extra: test
231
+ Requires-Dist: pytest>=8.2.2; extra == "test"
232
+ Provides-Extra: ver-all
233
+ Requires-Dist: catalystwan-v20-15==2.0.0a1; extra == "ver-all"
234
+ Requires-Dist: catalystwan-v20-16==2.0.0a1; extra == "ver-all"
235
+ Provides-Extra: ver-2015
236
+ Requires-Dist: catalystwan-v20-15==2.0.0a1; extra == "ver-2015"
237
+ Provides-Extra: ver-2016
238
+ Requires-Dist: catalystwan-v20-16==2.0.0a1; extra == "ver-2016"
@@ -0,0 +1,38 @@
1
+ Cisco Catalyst WAN SDK 2.0 :: Core
2
+ ==================================
3
+
4
+ Welcome to the official documentation for the Cisco Catalyst WAN SDK, a package designed for creating simple and parallel automatic requests via the official SD-WAN Manager API.
5
+
6
+ Overview
7
+ ========
8
+ Cisco Catalyst WAN SDK serves as a multiple session handler (provider, provider as a tenant, tenant) and is environment-independent. You just need a connection to any SD-WAN Manager.
9
+
10
+
11
+ Important Notice: Version Incompatibility
12
+ =========================================
13
+
14
+ Cisco Catalyst WAN SDK Version 2.0 Incompatibility with Legacy Versions
15
+ We are excited to announce the release of Cisco Catalyst WAN SDK version 2.0. This new version introduces a range of enhancements and features designed to improve performance and usability. However, it is important to note that version 2.0 is not compatible with any previous legacy versions of the SDK.
16
+
17
+ Actions Recommended:
18
+ Backup: Ensure you have backups of your current projects before attempting to upgrade.
19
+ Review Documentation: Carefully review the updated documentation and release notes for guidance on migration and new features.
20
+ Test Thoroughly: Test your projects thoroughly in a development environment before deploying version 2.0 in production.
21
+
22
+ We appreciate your understanding and cooperation as we continue to enhance the Cisco Catalyst WAN SDK. Should you have any questions or require assistance, please reach out through our support channels.
23
+
24
+ Thank you for your continued support and feedback!
25
+
26
+
27
+ Installation
28
+ ============
29
+ To install the SDK, run the following command:
30
+
31
+ .. code-block:: bash
32
+
33
+ pip install catalystwan
34
+
35
+ Supported Python Versions
36
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
37
+ Python >= 3.8
38
+
@@ -0,0 +1,82 @@
1
+ [project]
2
+ name = "catalystwan"
3
+ version = "2.0.0a1"
4
+ description = "Cisco Catalyst WAN SDK for Python"
5
+ dependencies = [
6
+ "packaging >= 23.0",
7
+ "requests >= 2.32.3",
8
+ "typing-extensions >= 4.12.2",
9
+ "urllib3 >=2.2.2",
10
+ "catalystwan-types == 2.0.0a0",
11
+ "catalystwan-v20-15 == 2.0.0a1",
12
+ "catalystwan-v20-16 == 2.0.0a1"
13
+ ]
14
+ readme = "README.md"
15
+ license = {file = "LICENSE"}
16
+ requires-python = ">= 3.8"
17
+ classifiers = [
18
+ # one of:
19
+ # "Development Status :: 3 - Alpha"
20
+ # "Development Status :: 4 - Beta"
21
+ # "Development Status :: 5 - Production/Stable"
22
+ "Development Status :: 3 - Alpha",
23
+ "Intended Audience :: Developers",
24
+ "License :: OSI Approved :: Apache Software License",
25
+ "Programming Language :: Python",
26
+ "Programming Language :: Python :: 3",
27
+ "Programming Language :: Python :: 3.8",
28
+ "Programming Language :: Python :: 3.9",
29
+ "Programming Language :: Python :: 3.10",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Operating System :: OS Independent",
33
+ "Topic :: Internet",
34
+ ]
35
+ [project.urls]
36
+ Homepage = "https://github.com/cisco-en-programmability/catalystwan-sdk-next-python"
37
+
38
+ [project.optional-dependencies]
39
+ test = [
40
+ "pytest>=8.2.2",
41
+ ]
42
+ "ver-all" = [
43
+ "catalystwan-v20-15 == 2.0.0a1",
44
+ "catalystwan-v20-16 == 2.0.0a1",
45
+ ]
46
+ "ver-2015" = [
47
+ "catalystwan-v20-15 == 2.0.0a1",
48
+ ]
49
+ "ver-2016" = [
50
+ "catalystwan-v20-16 == 2.0.0a1",
51
+ ]
52
+ # for nox
53
+ [dependency-groups]
54
+ dev = [
55
+ { include-group = "test" },
56
+ { include-group = "typing" },
57
+ ]
58
+ typing = [
59
+ "mypy",
60
+ "pytype",
61
+ ]
62
+ test = [
63
+ "coverage[toml]>=7.2",
64
+ "pytest",
65
+ "pytest-cov",
66
+ "pytest-snapshot",
67
+ ]
68
+
69
+
70
+ [build-system]
71
+ requires = ["setuptools"]
72
+ build-backend = "setuptools.build_meta"
73
+
74
+ [tool.setuptools.packages.find]
75
+ where = ["src"]
76
+
77
+ [tool.mypy]
78
+ files = "src"
79
+ exclude="loader\\.py$"
80
+ mypy_path = "$MYPY_CONFIG_FILE_DIR/src/"
81
+ namespace_packages = true
82
+ explicit_package_bases = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,2 @@
1
+ from catalystwan.core.client import create_client as create_client
2
+ from catalystwan.core.client import create_thread_client as create_thread_client
@@ -0,0 +1,26 @@
1
+ from typing import Optional, Protocol, TypeVar
2
+
3
+ from catalystwan.abc import SessionInterface, SessionType
4
+ from requests import PreparedRequest # type: ignore
5
+
6
+ T = TypeVar("T")
7
+
8
+
9
+ ProviderView = SessionType.PROVIDER
10
+ TenantView = SessionType.TENANT
11
+ ProviderAsTenantView = SessionType.PROVIDER_AS_TENANT
12
+ SingleTenantView = SessionType.SINGLE_TENANT
13
+
14
+
15
+ class AuthProtocol(Protocol):
16
+ """
17
+ Additional interface for Auth to handle login/logout for multiple auth types by common ManagerSession
18
+ """
19
+
20
+ def logout(self, client: SessionInterface) -> None: ...
21
+
22
+ def clear(self, last_request: Optional[PreparedRequest]) -> None: ...
23
+
24
+ def increase_session_count(self) -> None: ...
25
+
26
+ def decrease_session_count(self) -> None: ...
@@ -1,22 +1,22 @@
1
- # Copyright 2024 Cisco Systems, Inc. and its affiliates
2
1
  import logging
2
+ from dataclasses import asdict, dataclass, field
3
3
  from threading import RLock
4
4
  from typing import Literal, Optional
5
5
  from urllib.parse import urlparse
6
6
 
7
- from pydantic import BaseModel, Field, PositiveInt
7
+ from catalystwan.abc import SessionInterface
8
+ from catalystwan.core.abstractions import AuthProtocol
9
+ from catalystwan.core.exceptions import CatalystwanException
10
+ from catalystwan.core.response import auth_response_debug
8
11
  from requests import HTTPError, PreparedRequest, post
9
12
  from requests.auth import AuthBase
10
13
  from requests.exceptions import JSONDecodeError
11
14
 
12
- from catalystwan.abstractions import APIEndpointClient, AuthProtocol
13
- from catalystwan.exceptions import CatalystwanException
14
- from catalystwan.response import auth_response_debug
15
-
16
15
  LoginMode = Literal["machine", "user", "session"]
17
16
 
18
17
 
19
- class ApiGwLogin(BaseModel):
18
+ @dataclass
19
+ class ApiGwLogin:
20
20
  client_id: str
21
21
  client_secret: str
22
22
  org_name: str
@@ -24,7 +24,7 @@ class ApiGwLogin(BaseModel):
24
24
  username: Optional[str] = None
25
25
  session: Optional[str] = None
26
26
  tenant_user: Optional[bool] = None
27
- token_duration: PositiveInt = Field(default=60 * 30, description="in seconds")
27
+ token_duration: int = field(default=10)
28
28
 
29
29
 
30
30
  class ApiGwAuth(AuthBase, AuthProtocol):
@@ -34,7 +34,12 @@ class ApiGwAuth(AuthBase, AuthProtocol):
34
34
  2. Use the token in the Authorization header for subsequent requests.
35
35
  """
36
36
 
37
- def __init__(self, login: ApiGwLogin, logger: Optional[logging.Logger] = None, verify: bool = False):
37
+ def __init__(
38
+ self,
39
+ login: ApiGwLogin,
40
+ logger: Optional[logging.Logger] = None,
41
+ verify: bool = False,
42
+ ):
38
43
  self.login = login
39
44
  self.token = ""
40
45
  self.logger = logger or logging.getLogger(__name__)
@@ -70,13 +75,19 @@ class ApiGwAuth(AuthBase, AuthProtocol):
70
75
 
71
76
  @staticmethod
72
77
  def get_token(
73
- base_url: str, apigw_login: ApiGwLogin, logger: Optional[logging.Logger] = None, verify: bool = False
78
+ base_url: str,
79
+ apigw_login: ApiGwLogin,
80
+ logger: Optional[logging.Logger] = None,
81
+ verify: bool = False,
74
82
  ) -> str:
75
83
  try:
76
84
  response = post(
77
85
  url=f"{base_url}/apigw/login",
78
86
  verify=verify,
79
- json=apigw_login.model_dump(exclude_none=True),
87
+ json=asdict(
88
+ apigw_login,
89
+ dict_factory=lambda d: {k: v for (k, v) in d if v is not None},
90
+ ),
80
91
  timeout=10,
81
92
  )
82
93
  if logger is not None:
@@ -84,10 +95,12 @@ class ApiGwAuth(AuthBase, AuthProtocol):
84
95
  response.raise_for_status()
85
96
  token = response.json()["token"]
86
97
  except JSONDecodeError:
87
- raise CatalystwanException(f"Incorrect response type from ApiGateway login request, ({response.text})")
98
+ raise CatalystwanException(
99
+ f"Incorrect response type from ApiGateway login request, ({response.text})"
100
+ )
88
101
  except HTTPError as ex:
89
102
  raise CatalystwanException(
90
- f"Problem with connection to ApiGateway login endpoint, ({ex}). Response: ({response.text})"
103
+ f"Problem with connection to ApiGateway login endpoint, ({ex})"
91
104
  )
92
105
  except KeyError as ex:
93
106
  raise CatalystwanException(f"Not found token in login response from ApiGateway, ({ex})")
@@ -96,7 +109,7 @@ class ApiGwAuth(AuthBase, AuthProtocol):
96
109
  raise CatalystwanException("Failed to get bearer token")
97
110
  return token
98
111
 
99
- def logout(self, client: APIEndpointClient) -> None:
112
+ def logout(self, client: SessionInterface) -> None:
100
113
  return None
101
114
 
102
115
  def _clear(self) -> None:
@@ -0,0 +1,71 @@
1
+ from __future__ import annotations
2
+
3
+ import logging
4
+ from contextlib import contextmanager
5
+ from copy import copy
6
+ from typing import TYPE_CHECKING, Generator, Optional, Union
7
+
8
+ from catalystwan.core.apigw_auth import ApiGwAuth
9
+ from catalystwan.core.loader import load_client
10
+ from catalystwan.core.request_adapter import RequestAdapter
11
+ from catalystwan.core.request_limiter import RequestLimiter
12
+ from catalystwan.core.session import ManagerSession, create_base_url, create_manager_session
13
+ from catalystwan.core.vmanage_auth import vManageAuth
14
+
15
+ if TYPE_CHECKING:
16
+ from catalystwan.core.loader import ApiClient
17
+
18
+
19
+ @contextmanager
20
+ def create_thread_client(
21
+ url: str,
22
+ auth: Union[vManageAuth, ApiGwAuth],
23
+ port: Optional[int] = None,
24
+ subdomain: Optional[str] = None,
25
+ logger: Optional[logging.Logger] = None,
26
+ request_limiter: Optional[RequestLimiter] = None,
27
+ ) -> Generator[ApiClient, None, None]:
28
+ if logger is None:
29
+ logger = logging.getLogger(__name__)
30
+ session = ManagerSession(
31
+ base_url=create_base_url(url, port),
32
+ auth=auth,
33
+ subdomain=subdomain,
34
+ logger=logger,
35
+ request_limiter=request_limiter,
36
+ )
37
+ with session.login():
38
+ version = session.api_version.base_version
39
+ logger.debug(f"Choosing client for version {version}...")
40
+ client = load_client(session.api_version.base_version)
41
+ logger.debug(f"Client for version {version} loaded")
42
+ yield client(RequestAdapter(session=session, logger=logger))
43
+
44
+
45
+ @contextmanager
46
+ def create_client(
47
+ url: str,
48
+ username: str,
49
+ password: str,
50
+ port: Optional[int] = None,
51
+ subdomain: Optional[str] = None,
52
+ logger: Optional[logging.Logger] = None,
53
+ ) -> Generator[ApiClient, None, None]:
54
+ if logger is None:
55
+ logger = logging.getLogger(__name__)
56
+ with create_manager_session(url, username, password, port, subdomain, logger) as session:
57
+ version = session.api_version.base_version
58
+ logger.debug(f"Choosing client for version {version}...")
59
+ client = load_client(session.api_version.base_version)
60
+ logger.debug(f"Client for version {version} loaded")
61
+ yield client(RequestAdapter(session=session, logger=logger))
62
+
63
+
64
+ @contextmanager
65
+ def copy_client(client: ApiClient) -> Generator[ApiClient, None, None]:
66
+ request_adapter = copy(client._request_adapter)
67
+ session = request_adapter.session
68
+ with session.login():
69
+ new_client = load_client(session.api_version.base_version)(request_adapter)
70
+ assert new_client.api_version == client.api_version
71
+ yield new_client
@@ -0,0 +1,12 @@
1
+ import json
2
+ from typing import Any
3
+
4
+
5
+ def serialize_model_value(value: Any, to_json: bool) -> Any:
6
+ if not to_json:
7
+ return value
8
+ try:
9
+ json.dumps(value)
10
+ return value
11
+ except TypeError:
12
+ return str(value)
@@ -1,15 +1,15 @@
1
- # Copyright 2023 Cisco Systems, Inc. and its affiliates
2
-
1
+ from dataclasses import dataclass
3
2
  from typing import Union
4
3
 
5
- from pydantic import BaseModel
6
4
  from requests import HTTPError, RequestException
7
5
 
8
6
 
9
- class ManagerErrorInfo(BaseModel):
10
- message: Union[str, None] = None
11
- details: Union[str, None] = None
12
- code: Union[str, None] = None
7
+ @dataclass
8
+ class ManagerErrorInfo:
9
+ message: Union[str, None]
10
+ details: Union[str, None]
11
+ code: Union[str, None]
12
+ type: Union[str, None]
13
13
 
14
14
 
15
15
  class CatalystwanException(Exception):
@@ -19,6 +19,10 @@ class CatalystwanException(Exception):
19
19
  class ManagerRequestException(RequestException, CatalystwanException):
20
20
  """Exception raised when there is ambigous problem during sending of request to Manager"""
21
21
 
22
+ def __init__(self, *args, **kwargs):
23
+ """Initialize RequestException with `request` and `response` objects."""
24
+ super().__init__(*args, **kwargs)
25
+
22
26
 
23
27
  class ManagerHTTPError(HTTPError, ManagerRequestException):
24
28
  def __init__(self, *args, error_info: ManagerErrorInfo, **kwargs):
@@ -39,7 +43,9 @@ class ManagerHTTPError(HTTPError, ManagerRequestException):
39
43
  f"Headers: {self.request.headers}, Body: {self.request.body}"
40
44
  )
41
45
  response_str = (
42
- f"Response: {str(self.response.json())}" if self.response else "Response: No response information"
46
+ f"Response: {str(self.response.json())}"
47
+ if self.response
48
+ else "Response: No response information"
43
49
  )
44
50
  return f"{error_info_str}\n\n {request_str}\n\n {response_str}"
45
51
 
@@ -114,7 +120,9 @@ class APIVersionError(CatalystwanException):
114
120
  """Raised when API is unsupported in running vManage version."""
115
121
 
116
122
  def __init__(self, item, supported, current):
117
- self.message = f"vManage is running: {current} but {item} only supported in API version: {supported}"
123
+ self.message = (
124
+ f"vManage is running: {current} but {item} only supported in API version: {supported}"
125
+ )
118
126
 
119
127
 
120
128
  class APIViewError(CatalystwanException):
@@ -210,3 +218,15 @@ class CatalystwanDeprecationWarning(DeprecationWarning):
210
218
  f" The public API SHOULD NOT be considered stable."
211
219
  )
212
220
  return message
221
+
222
+
223
+ class CatalystwanModelInputException(CatalystwanException): ...
224
+
225
+
226
+ class CatalystwanModelValidationError(CatalystwanException): ...
227
+
228
+
229
+ class CatalystwanResponseTypeError(CatalystwanException):
230
+ """Raised when SDWAN response does not match expected type."""
231
+
232
+ ...