python-openstackclient 9.0.0__py3-none-any.whl → 10.1.0__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.
Files changed (352) hide show
  1. openstackclient/__init__.py +2 -6
  2. openstackclient/api/api.py +41 -23
  3. openstackclient/api/compute_v2.py +44 -25
  4. openstackclient/api/object_store_v1.py +75 -97
  5. openstackclient/api/volume_v2.py +2 -1
  6. openstackclient/api/volume_v3.py +2 -1
  7. openstackclient/common/availability_zone.py +59 -43
  8. openstackclient/common/clientmanager.py +56 -29
  9. openstackclient/common/configuration.py +10 -3
  10. openstackclient/common/envvars.py +2 -2
  11. openstackclient/common/extension.py +14 -5
  12. openstackclient/common/limits.py +10 -5
  13. openstackclient/common/module.py +36 -34
  14. openstackclient/common/pagination.py +50 -6
  15. openstackclient/common/progressbar.py +7 -6
  16. openstackclient/common/project_cleanup.py +11 -6
  17. openstackclient/common/quota.py +105 -103
  18. openstackclient/common/versions.py +8 -2
  19. openstackclient/compute/client.py +7 -3
  20. openstackclient/compute/v2/agent.py +17 -10
  21. openstackclient/compute/v2/aggregate.py +36 -22
  22. openstackclient/compute/v2/console.py +14 -8
  23. openstackclient/compute/v2/console_connection.py +11 -3
  24. openstackclient/compute/v2/flavor.py +42 -22
  25. openstackclient/compute/v2/host.py +14 -6
  26. openstackclient/compute/v2/hypervisor.py +16 -5
  27. openstackclient/compute/v2/hypervisor_stats.py +10 -2
  28. openstackclient/compute/v2/keypair.py +35 -16
  29. openstackclient/compute/v2/server.py +268 -179
  30. openstackclient/compute/v2/server_backup.py +10 -4
  31. openstackclient/compute/v2/server_event.py +28 -12
  32. openstackclient/compute/v2/server_group.py +23 -11
  33. openstackclient/compute/v2/server_image.py +19 -10
  34. openstackclient/compute/v2/server_migration.py +27 -10
  35. openstackclient/compute/v2/server_share.py +274 -0
  36. openstackclient/compute/v2/server_volume.py +13 -5
  37. openstackclient/compute/v2/service.py +17 -8
  38. openstackclient/compute/v2/usage.py +28 -23
  39. openstackclient/identity/client.py +8 -3
  40. openstackclient/identity/common.py +82 -47
  41. openstackclient/identity/v2_0/catalog.py +14 -7
  42. openstackclient/identity/v2_0/ec2creds.py +21 -10
  43. openstackclient/identity/v2_0/endpoint.py +23 -11
  44. openstackclient/identity/v2_0/project.py +25 -14
  45. openstackclient/identity/v2_0/role.py +28 -14
  46. openstackclient/identity/v2_0/role_assignment.py +9 -3
  47. openstackclient/identity/v2_0/service.py +23 -11
  48. openstackclient/identity/v2_0/token.py +12 -5
  49. openstackclient/identity/v2_0/user.py +26 -15
  50. openstackclient/identity/v3/access_rule.py +32 -12
  51. openstackclient/identity/v3/application_credential.py +66 -24
  52. openstackclient/identity/v3/catalog.py +14 -7
  53. openstackclient/identity/v3/consumer.py +22 -11
  54. openstackclient/identity/v3/credential.py +39 -17
  55. openstackclient/identity/v3/domain.py +40 -19
  56. openstackclient/identity/v3/ec2creds.py +25 -12
  57. openstackclient/identity/v3/endpoint.py +98 -64
  58. openstackclient/identity/v3/endpoint_group.py +28 -17
  59. openstackclient/identity/v3/federation_protocol.py +44 -20
  60. openstackclient/identity/v3/group.py +64 -40
  61. openstackclient/identity/v3/identity_provider.py +95 -57
  62. openstackclient/identity/v3/implied_role.py +21 -9
  63. openstackclient/identity/v3/limit.py +42 -17
  64. openstackclient/identity/v3/mapping.py +58 -28
  65. openstackclient/identity/v3/policy.py +23 -12
  66. openstackclient/identity/v3/project.py +59 -26
  67. openstackclient/identity/v3/region.py +39 -17
  68. openstackclient/identity/v3/registered_limit.py +41 -16
  69. openstackclient/identity/v3/role.py +62 -31
  70. openstackclient/identity/v3/role_assignment.py +25 -7
  71. openstackclient/identity/v3/service.py +39 -17
  72. openstackclient/identity/v3/service_provider.py +40 -16
  73. openstackclient/identity/v3/tag.py +23 -6
  74. openstackclient/identity/v3/token.py +30 -14
  75. openstackclient/identity/v3/trust.py +39 -18
  76. openstackclient/identity/v3/unscoped_saml.py +10 -2
  77. openstackclient/identity/v3/user.py +86 -36
  78. openstackclient/image/client.py +7 -3
  79. openstackclient/image/v1/image.py +33 -26
  80. openstackclient/image/v2/cache.py +16 -11
  81. openstackclient/image/v2/image.py +88 -56
  82. openstackclient/image/v2/info.py +7 -1
  83. openstackclient/image/v2/metadef_namespaces.py +117 -20
  84. openstackclient/image/v2/metadef_objects.py +32 -19
  85. openstackclient/image/v2/metadef_properties.py +30 -16
  86. openstackclient/image/v2/metadef_resource_type_association.py +14 -7
  87. openstackclient/image/v2/metadef_resource_types.py +7 -1
  88. openstackclient/image/v2/task.py +25 -27
  89. openstackclient/locale/tr_TR/LC_MESSAGES/openstackclient.po +7 -192
  90. openstackclient/network/client.py +7 -2
  91. openstackclient/network/common.py +16 -241
  92. openstackclient/network/utils.py +27 -54
  93. openstackclient/network/v2/address_group.py +39 -16
  94. openstackclient/network/v2/address_scope.py +36 -20
  95. openstackclient/network/v2/bgpvpn/bgpvpn.py +477 -0
  96. openstackclient/network/v2/bgpvpn/constants.py +30 -0
  97. openstackclient/network/v2/bgpvpn/network_association.py +226 -0
  98. openstackclient/network/v2/bgpvpn/port_association.py +504 -0
  99. openstackclient/network/v2/bgpvpn/router_association.py +301 -0
  100. openstackclient/network/v2/default_security_group_rule.py +31 -14
  101. openstackclient/network/v2/floating_ip.py +121 -162
  102. openstackclient/network/v2/floating_ip_port_forwarding.py +41 -19
  103. openstackclient/network/v2/fwaas/__init__.py +0 -0
  104. openstackclient/network/v2/fwaas/group.py +499 -0
  105. openstackclient/network/v2/fwaas/policy.py +518 -0
  106. openstackclient/network/v2/fwaas/rule.py +610 -0
  107. openstackclient/network/v2/ip_availability.py +25 -8
  108. openstackclient/network/v2/l3_conntrack_helper.py +35 -13
  109. openstackclient/network/v2/local_ip.py +27 -13
  110. openstackclient/network/v2/local_ip_association.py +17 -7
  111. openstackclient/network/v2/ndp_proxy.py +23 -11
  112. openstackclient/network/v2/network.py +213 -213
  113. openstackclient/network/v2/network_agent.py +77 -34
  114. openstackclient/network/v2/network_auto_allocated_topology.py +27 -15
  115. openstackclient/network/v2/network_flavor.py +45 -21
  116. openstackclient/network/v2/network_flavor_profile.py +42 -17
  117. openstackclient/network/v2/network_meter.py +39 -15
  118. openstackclient/network/v2/network_meter_rule.py +40 -12
  119. openstackclient/network/v2/network_qos_policy.py +39 -21
  120. openstackclient/network/v2/network_qos_rule.py +48 -18
  121. openstackclient/network/v2/network_qos_rule_type.py +28 -9
  122. openstackclient/network/v2/network_rbac.py +34 -16
  123. openstackclient/network/v2/network_segment.py +32 -11
  124. openstackclient/network/v2/network_segment_range.py +70 -31
  125. openstackclient/network/v2/network_service_provider.py +7 -1
  126. openstackclient/network/v2/network_trunk.py +41 -22
  127. openstackclient/network/v2/port.py +141 -40
  128. openstackclient/network/v2/router.py +101 -67
  129. openstackclient/network/v2/security_group.py +97 -198
  130. openstackclient/network/v2/security_group_rule.py +115 -282
  131. openstackclient/network/v2/subnet.py +63 -34
  132. openstackclient/network/v2/subnet_pool.py +42 -24
  133. openstackclient/network/v2/taas/tap_flow.py +35 -14
  134. openstackclient/network/v2/taas/tap_mirror.py +28 -14
  135. openstackclient/network/v2/taas/tap_service.py +26 -12
  136. openstackclient/object/client.py +7 -2
  137. openstackclient/object/v1/account.py +13 -6
  138. openstackclient/object/v1/container.py +28 -16
  139. openstackclient/object/v1/object.py +28 -16
  140. openstackclient/py.typed +0 -0
  141. openstackclient/shell.py +46 -10
  142. openstackclient/tests/functional/base.py +55 -20
  143. openstackclient/tests/functional/common/test_extension.py +4 -0
  144. openstackclient/tests/functional/common/test_quota.py +3 -1
  145. openstackclient/tests/functional/compute/v2/common.py +14 -13
  146. openstackclient/tests/functional/compute/v2/test_flavor.py +3 -1
  147. openstackclient/tests/functional/compute/v2/test_server.py +3 -0
  148. openstackclient/tests/functional/identity/v2/common.py +10 -6
  149. openstackclient/tests/functional/identity/v2/test_role.py +4 -4
  150. openstackclient/tests/functional/identity/v3/common.py +59 -19
  151. openstackclient/tests/functional/identity/v3/test_application_credential.py +1 -1
  152. openstackclient/tests/functional/identity/v3/test_group.py +20 -20
  153. openstackclient/tests/functional/identity/v3/test_idp.py +3 -1
  154. openstackclient/tests/functional/identity/v3/test_mapping.py +81 -0
  155. openstackclient/tests/functional/identity/v3/test_project.py +10 -10
  156. openstackclient/tests/functional/identity/v3/test_role.py +18 -18
  157. openstackclient/tests/functional/identity/v3/test_role_assignment.py +12 -12
  158. openstackclient/tests/functional/identity/v3/test_user.py +8 -8
  159. openstackclient/tests/functional/image/base.py +1 -6
  160. openstackclient/tests/functional/network/v2/common.py +5 -2
  161. openstackclient/tests/functional/network/v2/test_floating_ip.py +10 -4
  162. openstackclient/tests/functional/network/v2/test_ip_availability.py +4 -0
  163. openstackclient/tests/functional/network/v2/test_network_meter_rule.py +3 -2
  164. openstackclient/tests/functional/network/v2/test_network_segment.py +5 -0
  165. openstackclient/tests/functional/network/v2/test_subnet.py +13 -9
  166. openstackclient/tests/functional/object/v1/common.py +4 -0
  167. openstackclient/tests/functional/volume/v2/common.py +4 -0
  168. openstackclient/tests/functional/volume/v2/test_volume_snapshot.py +27 -11
  169. openstackclient/tests/functional/volume/v2/test_volume_type.py +2 -2
  170. openstackclient/tests/functional/volume/v3/common.py +4 -0
  171. openstackclient/tests/functional/volume/v3/test_volume_group.py +163 -0
  172. openstackclient/tests/functional/volume/v3/test_volume_snapshot.py +11 -7
  173. openstackclient/tests/functional/volume/v3/test_volume_type.py +2 -2
  174. openstackclient/tests/unit/common/test_availability_zone.py +35 -49
  175. openstackclient/tests/unit/common/test_extension.py +2 -2
  176. openstackclient/tests/unit/common/test_limits.py +1 -1
  177. openstackclient/tests/unit/common/test_module.py +82 -44
  178. openstackclient/tests/unit/common/test_project_cleanup.py +3 -1
  179. openstackclient/tests/unit/common/test_quota.py +15 -26
  180. openstackclient/tests/unit/compute/v2/fakes.py +26 -57
  181. openstackclient/tests/unit/compute/v2/test_agent.py +4 -4
  182. openstackclient/tests/unit/compute/v2/test_aggregate.py +1 -1
  183. openstackclient/tests/unit/compute/v2/test_console.py +2 -2
  184. openstackclient/tests/unit/compute/v2/test_console_connection.py +1 -1
  185. openstackclient/tests/unit/compute/v2/test_flavor.py +29 -3
  186. openstackclient/tests/unit/compute/v2/test_host.py +3 -3
  187. openstackclient/tests/unit/compute/v2/test_hypervisor.py +2 -2
  188. openstackclient/tests/unit/compute/v2/test_hypervisor_stats.py +1 -1
  189. openstackclient/tests/unit/compute/v2/test_keypair.py +7 -7
  190. openstackclient/tests/unit/compute/v2/test_server.py +26 -111
  191. openstackclient/tests/unit/compute/v2/test_server_backup.py +1 -1
  192. openstackclient/tests/unit/compute/v2/test_server_event.py +2 -2
  193. openstackclient/tests/unit/compute/v2/test_server_group.py +1 -1
  194. openstackclient/tests/unit/compute/v2/test_server_image.py +1 -1
  195. openstackclient/tests/unit/compute/v2/test_server_migration.py +4 -4
  196. openstackclient/tests/unit/compute/v2/test_server_share.py +287 -0
  197. openstackclient/tests/unit/compute/v2/test_server_volume.py +2 -2
  198. openstackclient/tests/unit/compute/v2/test_service.py +3 -3
  199. openstackclient/tests/unit/compute/v2/test_usage.py +1 -1
  200. openstackclient/tests/unit/identity/v2_0/fakes.py +3 -7
  201. openstackclient/tests/unit/identity/v2_0/test_endpoint.py +1 -1
  202. openstackclient/tests/unit/identity/v2_0/test_project.py +1 -1
  203. openstackclient/tests/unit/identity/v2_0/test_role.py +1 -1
  204. openstackclient/tests/unit/identity/v2_0/test_role_assignment.py +1 -1
  205. openstackclient/tests/unit/identity/v2_0/test_service.py +1 -1
  206. openstackclient/tests/unit/identity/v2_0/test_token.py +2 -2
  207. openstackclient/tests/unit/identity/v2_0/test_user.py +1 -1
  208. openstackclient/tests/unit/identity/v3/fakes.py +8 -38
  209. openstackclient/tests/unit/identity/v3/test_access_rule.py +3 -3
  210. openstackclient/tests/unit/identity/v3/test_application_credential.py +4 -4
  211. openstackclient/tests/unit/identity/v3/test_credential.py +5 -5
  212. openstackclient/tests/unit/identity/v3/test_domain.py +5 -5
  213. openstackclient/tests/unit/identity/v3/test_endpoint.py +6 -6
  214. openstackclient/tests/unit/identity/v3/test_endpoint_group.py +1 -1
  215. openstackclient/tests/unit/identity/v3/test_group.py +12 -22
  216. openstackclient/tests/unit/identity/v3/test_identity_provider.py +303 -299
  217. openstackclient/tests/unit/identity/v3/test_implied_role.py +1 -1
  218. openstackclient/tests/unit/identity/v3/test_limit.py +5 -5
  219. openstackclient/tests/unit/identity/v3/test_mappings.py +163 -79
  220. openstackclient/tests/unit/identity/v3/test_project.py +28 -5
  221. openstackclient/tests/unit/identity/v3/test_protocol.py +3 -3
  222. openstackclient/tests/unit/identity/v3/test_region.py +5 -5
  223. openstackclient/tests/unit/identity/v3/test_registered_limit.py +5 -5
  224. openstackclient/tests/unit/identity/v3/test_role.py +8 -8
  225. openstackclient/tests/unit/identity/v3/test_role_assignment.py +1 -1
  226. openstackclient/tests/unit/identity/v3/test_service.py +5 -5
  227. openstackclient/tests/unit/identity/v3/test_token.py +2 -2
  228. openstackclient/tests/unit/identity/v3/test_trust.py +4 -4
  229. openstackclient/tests/unit/identity/v3/test_user.py +77 -10
  230. openstackclient/tests/unit/image/v2/test_image.py +11 -11
  231. openstackclient/tests/unit/image/v2/test_metadef_namespaces.py +105 -6
  232. openstackclient/tests/unit/network/test_common.py +0 -155
  233. openstackclient/tests/unit/network/v2/bgpvpn/__init__.py +0 -0
  234. openstackclient/tests/unit/network/v2/bgpvpn/fakes.py +179 -0
  235. openstackclient/tests/unit/network/v2/bgpvpn/test_bgpvpn.py +584 -0
  236. openstackclient/tests/unit/network/v2/bgpvpn/test_network_association.py +285 -0
  237. openstackclient/tests/unit/network/v2/bgpvpn/test_port_association.py +384 -0
  238. openstackclient/tests/unit/network/v2/bgpvpn/test_router_association.py +297 -0
  239. openstackclient/tests/unit/network/v2/fakes.py +5 -77
  240. openstackclient/tests/unit/network/v2/fwaas/__init__.py +0 -0
  241. openstackclient/tests/unit/network/v2/fwaas/test_group.py +923 -0
  242. openstackclient/tests/unit/network/v2/fwaas/test_policy.py +869 -0
  243. openstackclient/tests/unit/network/v2/fwaas/test_rule.py +1005 -0
  244. openstackclient/tests/unit/network/v2/taas/{test_osc_tap_flow.py → test_tap_flow.py} +18 -25
  245. openstackclient/tests/unit/network/v2/taas/{test_osc_tap_mirror.py → test_tap_mirror.py} +19 -29
  246. openstackclient/tests/unit/network/v2/taas/{test_osc_tap_service.py → test_tap_service.py} +19 -29
  247. openstackclient/tests/unit/network/v2/test_address_group.py +26 -2
  248. openstackclient/tests/unit/network/v2/test_address_scope.py +24 -0
  249. openstackclient/tests/unit/network/v2/{test_floating_ip_network.py → test_floating_ip.py} +27 -2
  250. openstackclient/tests/unit/network/v2/test_floating_ip_port_forwarding.py +37 -13
  251. openstackclient/tests/unit/network/v2/test_ip_availability.py +25 -0
  252. openstackclient/tests/unit/network/v2/test_l3_conntrack_helper.py +29 -3
  253. openstackclient/tests/unit/network/v2/test_network.py +74 -12
  254. openstackclient/tests/unit/network/v2/test_network_agent.py +58 -5
  255. openstackclient/tests/unit/network/v2/test_network_auto_allocated_topology.py +3 -3
  256. openstackclient/tests/unit/network/v2/test_network_flavor.py +26 -2
  257. openstackclient/tests/unit/network/v2/test_network_flavor_profile.py +24 -0
  258. openstackclient/tests/unit/network/v2/test_network_meter.py +24 -0
  259. openstackclient/tests/unit/network/v2/test_network_qos_policy.py +25 -1
  260. openstackclient/tests/unit/network/v2/test_network_qos_rule.py +2 -2
  261. openstackclient/tests/unit/network/v2/test_network_qos_rule_type.py +24 -0
  262. openstackclient/tests/unit/network/v2/test_network_rbac.py +25 -1
  263. openstackclient/tests/unit/network/v2/test_network_segment.py +25 -1
  264. openstackclient/tests/unit/network/v2/test_network_segment_range.py +31 -10
  265. openstackclient/tests/unit/network/v2/test_network_trunk.py +1 -1
  266. openstackclient/tests/unit/network/v2/test_port.py +166 -0
  267. openstackclient/tests/unit/network/v2/test_router.py +36 -16
  268. openstackclient/tests/unit/network/v2/{test_security_group_network.py → test_security_group.py} +11 -8
  269. openstackclient/tests/unit/network/v2/{test_security_group_rule_network.py → test_security_group_rule.py} +28 -37
  270. openstackclient/tests/unit/network/v2/test_subnet.py +30 -5
  271. openstackclient/tests/unit/network/v2/test_subnet_pool.py +26 -1
  272. openstackclient/tests/unit/object/v1/fakes.py +8 -7
  273. openstackclient/tests/unit/object/v1/test_container.py +65 -101
  274. openstackclient/tests/unit/object/v1/test_container_all.py +8 -1
  275. openstackclient/tests/unit/object/v1/test_object.py +44 -84
  276. openstackclient/tests/unit/object/v1/test_object_all.py +8 -1
  277. openstackclient/tests/unit/test_hacking.py +108 -0
  278. openstackclient/tests/unit/volume/v2/fakes.py +21 -140
  279. openstackclient/tests/unit/volume/v2/test_volume_backup.py +6 -14
  280. openstackclient/tests/unit/volume/v2/test_volume_snapshot.py +8 -1
  281. openstackclient/tests/unit/volume/v2/test_volume_type.py +2 -4
  282. openstackclient/tests/unit/volume/v3/fakes.py +205 -100
  283. openstackclient/tests/unit/volume/v3/test_backup_record.py +114 -0
  284. openstackclient/tests/unit/volume/v3/test_consistency_group.py +720 -0
  285. openstackclient/tests/unit/volume/v3/test_consistency_group_snapshot.py +354 -0
  286. openstackclient/tests/unit/volume/v3/test_qos_specs.py +455 -0
  287. openstackclient/tests/unit/volume/v3/test_volume.py +60 -3
  288. openstackclient/tests/unit/volume/v3/test_volume_attachment.py +3 -1
  289. openstackclient/tests/unit/volume/v3/test_volume_backend.py +158 -0
  290. openstackclient/tests/unit/volume/v3/test_volume_backup.py +6 -14
  291. openstackclient/tests/unit/volume/v3/test_volume_group_type.py +65 -0
  292. openstackclient/tests/unit/volume/v3/test_volume_host.py +115 -0
  293. openstackclient/tests/unit/volume/v3/test_volume_snapshot.py +61 -1
  294. openstackclient/tests/unit/volume/v3/test_volume_type.py +2 -4
  295. openstackclient/volume/client.py +7 -3
  296. openstackclient/volume/v2/backup_record.py +15 -6
  297. openstackclient/volume/v2/consistency_group.py +29 -17
  298. openstackclient/volume/v2/consistency_group_snapshot.py +25 -10
  299. openstackclient/volume/v2/qos_specs.py +28 -17
  300. openstackclient/volume/v2/service.py +17 -6
  301. openstackclient/volume/v2/volume.py +60 -30
  302. openstackclient/volume/v2/volume_backend.py +19 -6
  303. openstackclient/volume/v2/volume_backup.py +48 -23
  304. openstackclient/volume/v2/volume_host.py +6 -4
  305. openstackclient/volume/v2/volume_snapshot.py +49 -24
  306. openstackclient/volume/v2/volume_transfer_request.py +31 -13
  307. openstackclient/volume/v2/volume_type.py +43 -24
  308. openstackclient/volume/v3/backup_record.py +94 -0
  309. openstackclient/volume/v3/block_storage_cleanup.py +11 -3
  310. openstackclient/volume/v3/block_storage_cluster.py +19 -7
  311. openstackclient/volume/v3/block_storage_log_level.py +15 -6
  312. openstackclient/volume/v3/block_storage_manage.py +10 -4
  313. openstackclient/volume/v3/block_storage_resource_filter.py +17 -5
  314. openstackclient/volume/v3/consistency_group.py +400 -0
  315. openstackclient/volume/v3/consistency_group_snapshot.py +225 -0
  316. openstackclient/volume/v3/qos_specs.py +389 -0
  317. openstackclient/volume/v3/service.py +16 -6
  318. openstackclient/volume/v3/volume.py +92 -40
  319. openstackclient/volume/v3/volume_attachment.py +47 -21
  320. openstackclient/volume/v3/volume_backend.py +130 -0
  321. openstackclient/volume/v3/volume_backup.py +55 -27
  322. openstackclient/volume/v3/volume_group.py +23 -13
  323. openstackclient/volume/v3/volume_group_snapshot.py +34 -17
  324. openstackclient/volume/v3/volume_group_type.py +27 -14
  325. openstackclient/volume/v3/volume_host.py +74 -0
  326. openstackclient/volume/v3/volume_message.py +18 -8
  327. openstackclient/volume/v3/volume_snapshot.py +70 -32
  328. openstackclient/volume/v3/volume_transfer_request.py +31 -13
  329. openstackclient/volume/v3/volume_type.py +42 -24
  330. {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/METADATA +7 -8
  331. python_openstackclient-10.1.0.dist-info/RECORD +524 -0
  332. {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/WHEEL +1 -1
  333. {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/entry_points.txt +77 -25
  334. {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/licenses/AUTHORS +9 -0
  335. python_openstackclient-10.1.0.dist-info/pbr.json +1 -0
  336. openstackclient/api/image_v1.py +0 -69
  337. openstackclient/api/image_v2.py +0 -79
  338. openstackclient/network/v2/floating_ip_pool.py +0 -38
  339. openstackclient/tests/functional/image/v1/test_image.py +0 -97
  340. openstackclient/tests/unit/api/test_image_v1.py +0 -96
  341. openstackclient/tests/unit/api/test_image_v2.py +0 -96
  342. openstackclient/tests/unit/network/v2/test_floating_ip_compute.py +0 -248
  343. openstackclient/tests/unit/network/v2/test_floating_ip_pool_compute.py +0 -49
  344. openstackclient/tests/unit/network/v2/test_floating_ip_pool_network.py +0 -39
  345. openstackclient/tests/unit/network/v2/test_network_compute.py +0 -404
  346. openstackclient/tests/unit/network/v2/test_security_group_compute.py +0 -392
  347. openstackclient/tests/unit/network/v2/test_security_group_rule_compute.py +0 -555
  348. python_openstackclient-9.0.0.dist-info/RECORD +0 -499
  349. python_openstackclient-9.0.0.dist-info/pbr.json +0 -1
  350. /openstackclient/{tests/functional/image/v1 → network/v2/bgpvpn}/__init__.py +0 -0
  351. {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/licenses/LICENSE +0 -0
  352. {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/top_level.txt +0 -0
@@ -10,18 +10,20 @@
10
10
  # License for the specific language governing permissions and limitations
11
11
  # under the License.
12
12
 
13
+ import argparse
14
+ from collections.abc import Iterable, Sequence
15
+ from typing import Any
16
+
17
+ from openstack.image.v2 import task as _task
13
18
  from osc_lib.cli import format_columns
14
19
  from osc_lib import utils
15
20
 
16
21
  from openstackclient import command
22
+ from openstackclient.common import pagination
17
23
  from openstackclient.i18n import _
18
24
 
19
- _formatters = {
20
- 'tags': format_columns.ListColumn,
21
- }
22
-
23
25
 
24
- def _format_task(task):
26
+ def _format_task(task: _task.Task) -> dict[str, Any]:
25
27
  """Format an task to make it more consistent with OSC operations."""
26
28
 
27
29
  info = {}
@@ -63,7 +65,7 @@ def _format_task(task):
63
65
  class ShowTask(command.ShowOne):
64
66
  _description = _('Display task details')
65
67
 
66
- def get_parser(self, prog_name):
68
+ def get_parser(self, prog_name: str) -> argparse.ArgumentParser:
67
69
  parser = super().get_parser(prog_name)
68
70
 
69
71
  parser.add_argument(
@@ -74,19 +76,22 @@ class ShowTask(command.ShowOne):
74
76
 
75
77
  return parser
76
78
 
77
- def take_action(self, parsed_args):
79
+ def take_action(
80
+ self, parsed_args: argparse.Namespace
81
+ ) -> tuple[Sequence[str], Iterable[Any]]:
78
82
  image_client = self.app.client_manager.image
79
83
 
80
84
  task = image_client.get_task(parsed_args.task)
81
85
  info = _format_task(task)
82
86
 
83
- return zip(*sorted(info.items()))
87
+ col_headers, col_data = zip(*sorted(info.items()))
88
+ return col_headers, col_data
84
89
 
85
90
 
86
91
  class ListTask(command.Lister):
87
92
  _description = _('List tasks')
88
93
 
89
- def get_parser(self, prog_name):
94
+ def get_parser(self, prog_name: str) -> argparse.ArgumentParser:
90
95
  parser = super().get_parser(prog_name)
91
96
 
92
97
  parser.add_argument(
@@ -110,22 +115,7 @@ class ListTask(command.Lister):
110
115
  'by comma)'
111
116
  ),
112
117
  )
113
- parser.add_argument(
114
- '--limit',
115
- metavar='<num-tasks>',
116
- type=int,
117
- help=_('Maximum number of tasks to display.'),
118
- )
119
- parser.add_argument(
120
- '--marker',
121
- metavar='<task>',
122
- help=_(
123
- 'The last task of the previous page. '
124
- 'Display list of tasks after marker. '
125
- 'Display all tasks if not specified. '
126
- '(name or ID)'
127
- ),
128
- )
118
+ pagination.add_marker_pagination_option_to_parser(parser)
129
119
  parser.add_argument(
130
120
  '--type',
131
121
  metavar='<type>',
@@ -146,7 +136,9 @@ class ListTask(command.Lister):
146
136
 
147
137
  return parser
148
138
 
149
- def take_action(self, parsed_args):
139
+ def take_action(
140
+ self, parsed_args: argparse.Namespace
141
+ ) -> tuple[tuple[str, ...], Iterable[tuple[Any, ...]]]:
150
142
  image_client = self.app.client_manager.image
151
143
 
152
144
  columns = ('id', 'type', 'status', 'owner_id')
@@ -173,7 +165,13 @@ class ListTask(command.Lister):
173
165
  return (
174
166
  column_headers,
175
167
  (
176
- utils.get_item_properties(s, columns, formatters=_formatters)
168
+ utils.get_item_properties(
169
+ s,
170
+ columns,
171
+ formatters={
172
+ 'tags': format_columns.ListColumn,
173
+ },
174
+ )
177
175
  for s in data
178
176
  ),
179
177
  )
@@ -3,7 +3,7 @@ msgid ""
3
3
  msgstr ""
4
4
  "Project-Id-Version: python-openstackclient VERSION\n"
5
5
  "Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
6
- "POT-Creation-Date: 2025-04-01 18:07+0000\n"
6
+ "POT-Creation-Date: 2026-04-15 02:22+0000\n"
7
7
  "MIME-Version: 1.0\n"
8
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
9
  "Content-Transfer-Encoding: 8bit\n"
@@ -1005,9 +1005,6 @@ msgstr "Politika(ları/yı) sil"
1005
1005
  msgid "Delete port(s)"
1006
1006
  msgstr "Bağlantı noktalarını sil"
1007
1007
 
1008
- msgid "Delete project(s)"
1009
- msgstr "Proje(yi/leri) sil"
1010
-
1011
1008
  msgid "Delete public or private key(s)"
1012
1009
  msgstr "Genel veya özel anahtarları sil"
1013
1010
 
@@ -2019,10 +2016,6 @@ msgstr "Bu disk bölümü türü için şifreleme bilgisini ayarlama başarısı
2019
2016
  msgid "Failed to set flavor access to project: %s"
2020
2017
  msgstr "Projeye flavor erişiminin ayarlanması başarısız: %s"
2021
2018
 
2022
- #, python-format
2023
- msgid "Failed to set image property: %s"
2024
- msgstr "İmaj özelliği ayarlarken hata oluştu: %s"
2025
-
2026
2019
  #, python-format
2027
2020
  msgid "Failed to set snapshot property: %s"
2028
2021
  msgstr "Anlık görüntü özelliğini ayarlama başarısız: %s"
@@ -2035,10 +2028,6 @@ msgstr "Anlık görüntü durumunu ayarlama başarısız: %s"
2035
2028
  msgid "Failed to set volume bootable property: %s"
2036
2029
  msgstr "Disk bölümü ön yükleme özelliği ayarlanırken hata oluştu: %s"
2037
2030
 
2038
- #, python-format
2039
- msgid "Failed to set volume property: %s"
2040
- msgstr "Disk özelliklerini ayarlama işlemi başarısız: %s"
2041
-
2042
2031
  #, python-format
2043
2032
  msgid "Failed to set volume read-only access mode flag: %s"
2044
2033
  msgstr "Disk bölümü salt okunur erişim kipi bayrağı ayarlanamadı: %s"
@@ -2083,14 +2072,6 @@ msgstr ""
2083
2072
  msgid "Failed to unset flavor property: %s"
2084
2073
  msgstr "Flavor özelliğini kaldırma işlemi başarısız: %s"
2085
2074
 
2086
- #, python-format
2087
- msgid "Failed to unset image property: %s"
2088
- msgstr "İmaj özelliği ayarını kaldırma başarısız: %s"
2089
-
2090
- #, python-format
2091
- msgid "Failed to unset volume property: %s"
2092
- msgstr "Disk bölümü özelliği ayarlarını kaldırma başarısız: %s"
2093
-
2094
2075
  #, python-format
2095
2076
  msgid "Failed to update snapshot name or description: %s"
2096
2077
  msgstr "Anlık görüntü adı veya açıklaması güncellenemedi: %s"
@@ -2548,14 +2529,6 @@ msgstr "EC2 kimlik bilgilerini listele"
2548
2529
  msgid "List IP availability for network"
2549
2530
  msgstr "Ağ için IP kullanılabilirliğini listele"
2550
2531
 
2551
- msgid "List IP availability of given IP version networks (default is 4)"
2552
- msgstr ""
2553
- "Verilen IP sürüm ağlarının IP kullanılabilirliğini listele (varsayılan sürüm "
2554
- "4)"
2555
-
2556
- msgid "List IP availability of given project (name or ID)"
2557
- msgstr "Verilen projenin IP kullanılabilirliğini listeleyin (isim veya ID)"
2558
-
2559
2532
  msgid "List Network QoS rules"
2560
2533
  msgstr "Ağ QoS kurallarını listele"
2561
2534
 
@@ -2583,24 +2556,6 @@ msgstr "Çıktıdaki ek alanları listele"
2583
2556
  msgid "List address scopes"
2584
2557
  msgstr "Adres kapsamlarını listele"
2585
2558
 
2586
- msgid "List address scopes according to their project (name or ID)"
2587
- msgstr "Adres kapsamlarını projelerine göre listele (ad veya kimlik)"
2588
-
2589
- msgid "List address scopes not shared between projects"
2590
- msgstr "Projeler arasında paylaşılmayan adres kapsamlarını listele"
2591
-
2592
- msgid "List address scopes of given IP version networks (4 or 6)"
2593
- msgstr "Verilen IP sürüm ağlarının adres kapsamlarını listele (4 veya 6)"
2594
-
2595
- msgid "List address scopes shared between projects"
2596
- msgstr "Projeler arasında paylaşılan adres kapsamlarını listele"
2597
-
2598
- msgid "List agents hosting a network (name or ID)"
2599
- msgstr "Bir ağa ev sahipliği yapan ajanları listele (isim veya ID)"
2600
-
2601
- msgid "List agents hosting this router (name or ID)"
2602
- msgstr "Bu yönlendiriciyi barındıran ajanları listele (isim veya ID)"
2603
-
2604
2559
  msgid "List all aggregates"
2605
2560
  msgstr "Tüm kümeleri listele"
2606
2561
 
@@ -2646,18 +2601,12 @@ msgstr "Kapları listele"
2646
2601
  msgid "List credentials"
2647
2602
  msgstr "Kimlik bilgilerini listele"
2648
2603
 
2649
- msgid "List disabled networks"
2650
- msgstr "Devre dışı bırakılan ağları listele"
2651
-
2652
2604
  msgid "List disabled routers"
2653
2605
  msgstr "Devre dışı bırakılmış yönlendiricileri listele"
2654
2606
 
2655
2607
  msgid "List domains"
2656
2608
  msgstr "Alanları listele"
2657
2609
 
2658
- msgid "List enabled networks"
2659
- msgstr "Aktif ağları listele"
2660
-
2661
2610
  msgid "List enabled routers"
2662
2611
  msgstr "Etkinleştirilmiş yönlendiricileri listele"
2663
2612
 
@@ -2676,9 +2625,6 @@ msgstr "Kimlik API için uzantıları listele"
2676
2625
  msgid "List extensions for the Network API"
2677
2626
  msgstr "Ağ API için uzantıları listele"
2678
2627
 
2679
- msgid "List external networks"
2680
- msgstr "Harici ağları listele"
2681
-
2682
2628
  msgid "List federation protocols"
2683
2629
  msgstr "Federasyon protokollerinin listele"
2684
2630
 
@@ -2688,24 +2634,6 @@ msgstr "Flavorları listele"
2688
2634
  msgid "List floating IP(s)"
2689
2635
  msgstr "Yüzen IP(ler) listesi"
2690
2636
 
2691
- msgid "List floating IP(s) according to given fixed IP address"
2692
- msgstr "Verilen sabit IP adresine göre yüzen IP(ler) listesi"
2693
-
2694
- msgid "List floating IP(s) according to given network (name or ID)"
2695
- msgstr "Verilen ağdaki yüzen IP(ler) listesi (isim veya ID)"
2696
-
2697
- msgid "List floating IP(s) according to given port (name or ID)"
2698
- msgstr "Verilen bağlantı noktasına göre yüzen IP(ler) listesi (isim veya ID)"
2699
-
2700
- msgid "List floating IP(s) according to given project (name or ID)"
2701
- msgstr "Verilen projeye göre yüzen IP(ler)i listele (isim veya ID)"
2702
-
2703
- msgid "List floating IP(s) according to given router (name or ID)"
2704
- msgstr "Verilen yönlendiriciye göre yüzen IP(ler)i listele (isim veya ID)"
2705
-
2706
- msgid "List floating IP(s) according to given status ('ACTIVE', 'DOWN')"
2707
- msgstr "Verilen duruma göre yüzen IP(ler) listesi ('AKTİF', 'KAPALI')"
2708
-
2709
2637
  msgid "List groups"
2710
2638
  msgstr "Grupları listele"
2711
2639
 
@@ -2715,9 +2643,6 @@ msgstr "Yönetici arakatman listesi"
2715
2643
  msgid "List identity providers"
2716
2644
  msgstr "Kimlik sağlayıcılarını listele"
2717
2645
 
2718
- msgid "List internal networks"
2719
- msgstr "Dahili ağları listele"
2720
-
2721
2646
  msgid "List key fingerprints"
2722
2647
  msgstr "Anahtar parmak izlerini listele"
2723
2648
 
@@ -2733,13 +2658,6 @@ msgstr "Modül sürümlerini listele"
2733
2658
  msgid "List network RBAC policies"
2734
2659
  msgstr "Ağ RBAC politikalarının listesi"
2735
2660
 
2736
- msgid ""
2737
- "List network RBAC policies according to given action (\"access_as_external\" "
2738
- "or \"access_as_shared\")"
2739
- msgstr ""
2740
- "Verilen eyleme göre ağ RBAC ilkelerini listele (\"access_as_external\" veya "
2741
- "\"access_as_shared\")"
2742
-
2743
2661
  msgid "List network agents"
2744
2662
  msgstr "Ağ ajanlarını listele"
2745
2663
 
@@ -2761,48 +2679,12 @@ msgstr "Ağ kotasını listele"
2761
2679
  msgid "List network segments"
2762
2680
  msgstr "Ağ bölümlerini listele"
2763
2681
 
2764
- msgid "List network segments that belong to this network (name or ID)"
2765
- msgstr "Bu ağa ait ağ kesimlerini listeleyin (ad veya kimlik)"
2766
-
2767
2682
  msgid "List networks"
2768
2683
  msgstr "Ağları listele"
2769
2684
 
2770
- msgid ""
2771
- "List networks according to VLAN ID for VLAN networks or Tunnel ID for GENEVE/"
2772
- "GRE/VXLAN networks"
2773
- msgstr ""
2774
- "VLAN ağları için VLAN ID'ye veya GENEVA/GRE/VXLAN ağları için Tünel ID'ye "
2775
- "göre ağları listele"
2776
-
2777
- msgid "List networks according to name of the physical network"
2778
- msgstr "Ağları fiziksel ağın adına göre listeleme"
2779
-
2780
- msgid "List networks according to their name"
2781
- msgstr "Ağları isimlerine göre listele"
2782
-
2783
- msgid "List networks according to their project (name or ID)"
2784
- msgstr "Projelerine göre ağları listele (isim veya ID)"
2785
-
2786
- msgid ""
2787
- "List networks according to their status ('ACTIVE', 'BUILD', 'DOWN', 'ERROR')"
2788
- msgstr ""
2789
- "Ağları durumlarına göre listeleyin ('AKTİF', 'KURMA', 'KAPALI', 'HATA')"
2790
-
2791
- msgid "List networks hosted by agent (ID only)"
2792
- msgstr "Aracı tarafından barındırılan ağları listele (yalnızca ID)"
2793
-
2794
- msgid "List networks not shared between projects"
2795
- msgstr "Projeler arasında paylaşılmayan ağları listele"
2796
-
2797
- msgid "List networks shared between projects"
2798
- msgstr "Projeler arasında paylaşılan ağları listele"
2799
-
2800
2685
  msgid "List objects"
2801
2686
  msgstr "Nesneleri listele"
2802
2687
 
2803
- msgid "List only address scopes of given name in output"
2804
- msgstr "Çıktıda verilen adın sadece adres kapsamlarını listeleyin"
2805
-
2806
2688
  msgid "List only agents running on the specified host"
2807
2689
  msgstr "Yalnızca belirtilen ana bilgisayarda çalışan ajanları listele"
2808
2690
 
@@ -2825,9 +2707,6 @@ msgstr ""
2825
2707
  "Yalnızca belirtilen aygıt sahibi olan bağlantı noktalarını listeleyin. Bu, "
2826
2708
  "bağlantı noktasını kullanan varlıktır (örneğin, ağ: dhcp)."
2827
2709
 
2828
- msgid "List only ports with this MAC address"
2829
- msgstr "Sadece bu MAC adresine sahip bağlantı noktalarını listele"
2830
-
2831
2710
  msgid "List only private flavors"
2832
2711
  msgstr "Sadece gizli flavorları listele"
2833
2712
 
@@ -2849,29 +2728,6 @@ msgstr "Sadece genele açık türleri listele"
2849
2728
  msgid "List only specified service (name only)"
2850
2729
  msgstr "Sadece belirtilen servisleri listele (sadece isim)"
2851
2730
 
2852
- msgid "List only subnet pools of given address scope in output (name or ID)"
2853
- msgstr ""
2854
- "Verilen adres kapsamındaki sadece altağ havuzlarını çıktıda listele (isim "
2855
- "veya ID)"
2856
-
2857
- msgid "List only subnet pools of given name in output"
2858
- msgstr "Verilen isimdeki sadece altağ havuzlarını çıktıda listele"
2859
-
2860
- msgid "List only subnets of given gateway IP in output"
2861
- msgstr "Verilen geçit IP'sinin sadece alt ağlarını çıktıda listele"
2862
-
2863
- msgid "List only subnets of given name in output"
2864
- msgstr "Verilen isimdeki sadece altağları çıktıda listele"
2865
-
2866
- msgid ""
2867
- "List only subnets which belong to a given network in output (name or ID)"
2868
- msgstr "Verilen bir ağa ait sadece altağları çıktıda listele (isim veya ID)"
2869
-
2870
- msgid ""
2871
- "List only subnets which belong to a given project in output (name or ID)"
2872
- msgstr ""
2873
- "Verilen bir projeye ait sadece altağları çıktıda listele (isim veya ID)"
2874
-
2875
2731
  msgid "List policies"
2876
2732
  msgstr "Politikaları listele"
2877
2733
 
@@ -2881,9 +2737,6 @@ msgstr "Yüzer IP adresleri havuzlarını listele"
2881
2737
  msgid "List ports"
2882
2738
  msgstr "Bağlantı noktalarını listele"
2883
2739
 
2884
- msgid "List ports according to their project (name or ID)"
2885
- msgstr "Projeye bağlı olarak bağlantı noktalarını listele (isim veya ID)"
2886
-
2887
2740
  msgid "List projects"
2888
2741
  msgstr "Projeleri listele"
2889
2742
 
@@ -2913,27 +2766,12 @@ msgstr "Yönlendiricilerin listesi"
2913
2766
  msgid "List routers according to their name"
2914
2767
  msgstr "Yönlendiricileri isimlerine göre listele"
2915
2768
 
2916
- msgid "List routers according to their project (name or ID)"
2917
- msgstr "Yönlendiricileri projelerine göre listele (isim veya ID)"
2918
-
2919
- msgid "List routers hosted by an agent (ID only)"
2920
- msgstr "Bir ajan tarafından sunulan yönlendiricileri listele (sadece ID)"
2921
-
2922
- msgid "List rules applied to incoming network traffic"
2923
- msgstr "Gelen ağ trafiğine uygulanan kurallar listesi"
2924
-
2925
- msgid "List rules applied to outgoing network traffic"
2926
- msgstr "Giden ağ trafiğine uygulanan kuralları listele"
2927
-
2928
2769
  msgid "List security group rules"
2929
2770
  msgstr "Güvenlik grubu kurallarını listele"
2930
2771
 
2931
2772
  msgid "List security groups"
2932
2773
  msgstr "Güvenlik gruplarını listele"
2933
2774
 
2934
- msgid "List security groups according to the project (name or ID)"
2935
- msgstr "Projeye göre güvenlik grubunu listele (isim veya ID)"
2936
-
2937
2775
  msgid "List servers"
2938
2776
  msgstr "Sunucuları listele"
2939
2777
 
@@ -2955,32 +2793,9 @@ msgstr "Belirtilen sunucu üzerindeki servisleri listele (sadece isim)"
2955
2793
  msgid "List subnet pools"
2956
2794
  msgstr "Altağ havuzlarını listele"
2957
2795
 
2958
- msgid "List subnet pools according to their project (name or ID)"
2959
- msgstr "Alt ağ havuzlarını projelerine göre listele (isim veya ID)"
2960
-
2961
- msgid "List subnet pools not shared between projects"
2962
- msgstr "Projeler arasında paylaşılmayan altağ havularını listele"
2963
-
2964
- msgid "List subnet pools not used as the default external subnet pool"
2965
- msgstr ""
2966
- "Varsayılan harici altağ havuzu olarak kullanılmayan altağ havuzlarını listele"
2967
-
2968
- msgid "List subnet pools shared between projects"
2969
- msgstr "Projeler arasında paylaşılan altağ havuzlarını listele"
2970
-
2971
- msgid "List subnet pools used as the default external subnet pool"
2972
- msgstr ""
2973
- "Varsayılan harici altağ havuzu olarak kullanılan altağ havuzlarını listele"
2974
-
2975
2796
  msgid "List subnets"
2976
2797
  msgstr "Alt ağları listele"
2977
2798
 
2978
- msgid "List subnets which have DHCP disabled"
2979
- msgstr "DHCP'nin devre dışı olduğu altağları listele"
2980
-
2981
- msgid "List subnets which have DHCP enabled"
2982
- msgstr "DHCP'nin etkin olduğu altağları listele"
2983
-
2984
2799
  msgid "List the default volume type"
2985
2800
  msgstr "Varsayılan disk bölümü türünü listele"
2986
2801
 
@@ -4643,8 +4458,8 @@ msgstr "Ağı varsayılan dış ağ olarak ayarlayın"
4643
4458
 
4644
4459
  msgid ""
4645
4460
  "Set the notional service where the encryption is performed (\"front-end\" or "
4646
- "\"back-end\") (admin only) (The default value for this option is \"front-end"
4647
- "\" when setting encryption type of a volume for the first time. Consider "
4461
+ "\"back-end\") (admin only) (The default value for this option is \"front-"
4462
+ "end\" when setting encryption type of a volume for the first time. Consider "
4648
4463
  "using other encryption options such as: \"--encryption-cipher\", \"--"
4649
4464
  "encryption-key-size\" and \"--encryption-provider\")"
4650
4465
  msgstr ""
@@ -4656,10 +4471,10 @@ msgstr ""
4656
4471
 
4657
4472
  msgid ""
4658
4473
  "Set the notional service where the encryption is performed (\"front-end\" or "
4659
- "\"back-end\") (admin only) (The default value for this option is \"front-end"
4660
- "\" when setting encryption type of a volume. Consider using other encryption "
4661
- "options such as: \"--encryption-cipher\", \"--encryption-key-size\" and \"--"
4662
- "encryption-provider\")"
4474
+ "\"back-end\") (admin only) (The default value for this option is \"front-"
4475
+ "end\" when setting encryption type of a volume. Consider using other "
4476
+ "encryption options such as: \"--encryption-cipher\", \"--encryption-key-"
4477
+ "size\" and \"--encryption-provider\")"
4663
4478
  msgstr ""
4664
4479
  "Şifrelemenin gerçekleştirildiği kavramsal servisi ayarla (\"front-end\" veya "
4665
4480
  "\"back-end\") (sadece yönetici) (Bir disk bölümünün şifreleme türü "
@@ -10,7 +10,9 @@
10
10
  # License for the specific language governing permissions and limitations
11
11
  # under the License.
12
12
 
13
+ import argparse
13
14
  import logging
15
+ from typing import Any
14
16
 
15
17
  from osc_lib import utils
16
18
 
@@ -23,9 +25,10 @@ DEFAULT_API_VERSION = '2.0'
23
25
  API_VERSION_OPTION = 'os_network_api_version'
24
26
  API_NAME = 'network'
25
27
  API_VERSIONS = ('2.0', '2')
28
+ API_EXTENSIONS = ('bgpvpn', 'fwaas', 'taas')
26
29
 
27
30
 
28
- def make_client(instance):
31
+ def make_client(instance: Any) -> Any:
29
32
  """Returns a network proxy"""
30
33
  LOG.debug(
31
34
  'Network client initialized using OpenStack SDK: %s',
@@ -34,7 +37,9 @@ def make_client(instance):
34
37
  return instance.sdk_connection.network
35
38
 
36
39
 
37
- def build_option_parser(parser):
40
+ def build_option_parser(
41
+ parser: argparse.ArgumentParser,
42
+ ) -> argparse.ArgumentParser:
38
43
  """Hook to add global options"""
39
44
  parser.add_argument(
40
45
  '--os-network-api-version',