oci 2.150.1__py3-none-any.whl → 2.150.2__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 (302) hide show
  1. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  2. oci/adm/application_dependency_management_client.py +36 -36
  3. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  4. oci/ai_document/ai_service_document_client.py +26 -26
  5. oci/ai_language/ai_service_language_client.py +44 -44
  6. oci/ai_speech/ai_service_speech_client.py +19 -19
  7. oci/ai_vision/ai_service_vision_client.py +28 -28
  8. oci/analytics/analytics_client.py +24 -24
  9. oci/announcements_service/announcement_client.py +5 -5
  10. oci/announcements_service/announcement_subscription_client.py +9 -9
  11. oci/announcements_service/announcements_preferences_client.py +4 -4
  12. oci/announcements_service/service_client.py +1 -1
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +12 -12
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  22. oci/apm_traces/attributes_client.py +8 -8
  23. oci/apm_traces/query_client.py +2 -2
  24. oci/apm_traces/trace_client.py +4 -4
  25. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  26. oci/artifacts/artifacts_client.py +32 -32
  27. oci/audit/audit_client.py +3 -3
  28. oci/autoscaling/auto_scaling_client.py +11 -11
  29. oci/bastion/bastion_client.py +15 -15
  30. oci/bds/bds_client.py +84 -84
  31. oci/blockchain/blockchain_platform_client.py +27 -27
  32. oci/budget/budget_client.py +10 -10
  33. oci/capacity_management/capacity_management_client.py +32 -32
  34. oci/certificates/certificates_client.py +5 -5
  35. oci/certificates_management/certificates_management_client.py +32 -32
  36. oci/cims/incident_client.py +6 -6
  37. oci/cloud_bridge/common_client.py +5 -5
  38. oci/cloud_bridge/discovery_client.py +15 -15
  39. oci/cloud_bridge/inventory_client.py +16 -16
  40. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  41. oci/cloud_guard/cloud_guard_client.py +155 -155
  42. oci/cloud_migrations/migration_client.py +43 -43
  43. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  44. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  45. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  46. oci/compute_instance_agent/plugin_client.py +2 -2
  47. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  48. oci/container_engine/container_engine_client.py +282 -45
  49. oci/container_engine/container_engine_client_composite_operations.py +90 -0
  50. oci/container_engine/models/__init__.py +10 -0
  51. oci/container_engine/models/cluster_node.py +101 -0
  52. oci/container_engine/models/image.py +132 -0
  53. oci/container_engine/models/node_eviction_node_pool_settings.py +33 -2
  54. oci/container_engine/models/node_eviction_settings.py +103 -0
  55. oci/container_engine/models/node_pool_cycling_details.py +35 -4
  56. oci/container_engine/models/reboot_cluster_node_details.py +66 -0
  57. oci/container_engine/models/replace_boot_volume_cluster_node_details.py +66 -0
  58. oci/container_engine/models/work_request.py +11 -3
  59. oci/container_engine/models/work_request_summary.py +11 -3
  60. oci/container_instances/container_instance_client.py +18 -18
  61. oci/core/blockstorage_client.py +60 -60
  62. oci/core/compute_client.py +117 -117
  63. oci/core/compute_management_client.py +32 -32
  64. oci/core/models/create_volume_details.py +33 -2
  65. oci/core/models/instance_configuration_create_volume_details.py +33 -2
  66. oci/core/models/update_volume_details.py +33 -2
  67. oci/core/models/volume.py +33 -2
  68. oci/core/virtual_network_client.py +258 -258
  69. oci/dashboard_service/dashboard_client.py +6 -6
  70. oci/dashboard_service/dashboard_group_client.py +6 -6
  71. oci/data_catalog/data_catalog_client.py +149 -149
  72. oci/data_flow/data_flow_client.py +45 -45
  73. oci/data_integration/data_integration_client.py +163 -163
  74. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  75. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  76. oci/data_safe/data_safe_client.py +317 -317
  77. oci/data_science/data_science_client.py +145 -145
  78. oci/database/database_client.py +414 -414
  79. oci/database_management/db_management_client.py +228 -228
  80. oci/database_management/diagnosability_client.py +4 -4
  81. oci/database_management/managed_my_sql_databases_client.py +9 -9
  82. oci/database_management/perfhub_client.py +1 -1
  83. oci/database_management/sql_tuning_client.py +17 -17
  84. oci/database_migration/database_migration_client.py +42 -42
  85. oci/database_tools/database_tools_client.py +23 -23
  86. oci/dblm/db_life_cycle_management_client.py +345 -12
  87. oci/dblm/models/__init__.py +22 -0
  88. oci/dblm/models/additional_patches.py +179 -0
  89. oci/dblm/models/databases_summary.py +670 -0
  90. oci/dblm/models/dblm_patch_management.py +410 -0
  91. oci/dblm/models/fpp_server.py +604 -0
  92. oci/dblm/models/image_details.py +338 -0
  93. oci/dblm/models/images_patch_recommendation_summary.py +132 -0
  94. oci/dblm/models/patch_activity_details.py +394 -0
  95. oci/dblm/models/patch_compliance_details.py +121 -0
  96. oci/dblm/models/patch_databases_collection.py +70 -0
  97. oci/dblm/models/patch_operations_summary.py +194 -0
  98. oci/dblm/models/resource_info.py +33 -2
  99. oci/dblm/models/resources_patch_compliance_summary.py +194 -0
  100. oci/dblm/models/vulnerabilities_summary.py +10 -10
  101. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  102. oci/delegate_access_control/work_request_client.py +4 -4
  103. oci/demand_signal/occ_demand_signal_client.py +7 -7
  104. oci/desktops/desktop_service_client.py +21 -21
  105. oci/devops/devops_client.py +141 -141
  106. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  107. oci/dns/dns_client.py +54 -54
  108. oci/dts/appliance_export_job_client.py +6 -6
  109. oci/dts/shipping_vendors_client.py +1 -1
  110. oci/dts/transfer_appliance_client.py +8 -8
  111. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  112. oci/dts/transfer_device_client.py +5 -5
  113. oci/dts/transfer_job_client.py +6 -6
  114. oci/dts/transfer_package_client.py +7 -7
  115. oci/em_warehouse/em_warehouse_client.py +13 -13
  116. oci/email/email_client.py +31 -31
  117. oci/email_data_plane/email_dp_client.py +1 -1
  118. oci/events/events_client.py +6 -6
  119. oci/file_storage/file_storage_client.py +74 -74
  120. oci/fips.py +58 -36
  121. oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
  122. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  123. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  124. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  125. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
  126. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  127. oci/functions/functions_invoke_client.py +1 -1
  128. oci/functions/functions_management_client.py +16 -16
  129. oci/fusion_apps/fusion_applications_client.py +41 -41
  130. oci/generative_ai/generative_ai_client.py +22 -22
  131. oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
  132. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
  133. oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
  134. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  135. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  136. oci/golden_gate/golden_gate_client.py +89 -89
  137. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  138. oci/governance_rules_control_plane/work_request_client.py +5 -5
  139. oci/healthchecks/health_checks_client.py +17 -17
  140. oci/identity/identity_client.py +145 -145
  141. oci/identity_data_plane/dataplane_client.py +2 -2
  142. oci/identity_domains/identity_domains_client.py +311 -311
  143. oci/integration/integration_instance_client.py +19 -19
  144. oci/jms/java_management_service_client.py +79 -79
  145. oci/jms_java_downloads/java_download_client.py +25 -25
  146. oci/key_management/ekm_client.py +5 -5
  147. oci/key_management/kms_crypto_client.py +6 -6
  148. oci/key_management/kms_hsm_cluster_client.py +12 -12
  149. oci/key_management/kms_management_client.py +21 -21
  150. oci/key_management/kms_vault_client.py +14 -14
  151. oci/license_manager/license_manager_client.py +18 -18
  152. oci/limits/limits_client.py +4 -4
  153. oci/limits/quotas_client.py +7 -7
  154. oci/load_balancer/load_balancer_client.py +61 -61
  155. oci/lockbox/lockbox_client.py +24 -24
  156. oci/log_analytics/log_analytics_client.py +193 -193
  157. oci/logging/logging_management_client.py +30 -30
  158. oci/loggingingestion/logging_client.py +1 -1
  159. oci/loggingsearch/log_search_client.py +1 -1
  160. oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
  161. oci/management_agent/management_agent_client.py +28 -28
  162. oci/management_dashboard/dashx_apis_client.py +14 -14
  163. oci/marketplace/account_client.py +2 -2
  164. oci/marketplace/marketplace_client.py +30 -30
  165. oci/marketplace_private_offer/attachment_client.py +5 -5
  166. oci/marketplace_private_offer/offer_client.py +6 -6
  167. oci/marketplace_publisher/attachment_client.py +5 -5
  168. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  169. oci/marketplace_publisher/offer_client.py +6 -6
  170. oci/media_services/media_services_client.py +60 -60
  171. oci/media_services/media_stream_client.py +2 -2
  172. oci/mngdmac/mac_device_client.py +3 -3
  173. oci/mngdmac/mac_order_client.py +11 -11
  174. oci/monitoring/monitoring_client.py +18 -18
  175. oci/mysql/channels_client.py +7 -7
  176. oci/mysql/db_backups_client.py +7 -7
  177. oci/mysql/db_system_client.py +17 -17
  178. oci/mysql/mysqlaas_client.py +7 -7
  179. oci/mysql/replicas_client.py +5 -5
  180. oci/mysql/work_requests_client.py +4 -4
  181. oci/network_firewall/network_firewall_client.py +86 -86
  182. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  183. oci/nosql/nosql_client.py +24 -24
  184. oci/object_storage/object_storage_client.py +55 -55
  185. oci/oce/oce_instance_client.py +10 -10
  186. oci/oci_control_center/occ_metrics_client.py +3 -3
  187. oci/ocvp/cluster_client.py +5 -5
  188. oci/ocvp/esxi_host_client.py +8 -8
  189. oci/ocvp/sddc_client.py +14 -14
  190. oci/ocvp/work_request_client.py +4 -4
  191. oci/oda/management_client.py +59 -59
  192. oci/oda/oda_client.py +17 -17
  193. oci/oda/odapackage_client.py +7 -7
  194. oci/onesubscription/billing_schedule_client.py +1 -1
  195. oci/onesubscription/commitment_client.py +2 -2
  196. oci/onesubscription/computed_usage_client.py +3 -3
  197. oci/onesubscription/invoice_summary_client.py +2 -2
  198. oci/onesubscription/organization_subscription_client.py +1 -1
  199. oci/onesubscription/ratecard_client.py +1 -1
  200. oci/onesubscription/subscribed_service_client.py +2 -2
  201. oci/onesubscription/subscription_client.py +1 -1
  202. oci/ons/notification_control_plane_client.py +6 -6
  203. oci/ons/notification_data_plane_client.py +10 -10
  204. oci/opa/opa_instance_client.py +13 -13
  205. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  206. oci/opensearch/opensearch_cluster_client.py +16 -16
  207. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  208. oci/operator_access_control/access_requests_client.py +10 -10
  209. oci/operator_access_control/operator_actions_client.py +2 -2
  210. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  211. oci/operator_access_control/operator_control_client.py +6 -6
  212. oci/opsi/operations_insights_client.py +181 -181
  213. oci/optimizer/optimizer_client.py +26 -26
  214. oci/os_management/event_client.py +8 -8
  215. oci/os_management/os_management_client.py +69 -69
  216. oci/os_management_hub/event_client.py +8 -8
  217. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  218. oci/os_management_hub/managed_instance_client.py +33 -33
  219. oci/os_management_hub/managed_instance_group_client.py +26 -26
  220. oci/os_management_hub/management_station_client.py +10 -10
  221. oci/os_management_hub/onboarding_client.py +13 -13
  222. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  223. oci/os_management_hub/scheduled_job_client.py +7 -7
  224. oci/os_management_hub/software_source_client.py +33 -33
  225. oci/os_management_hub/work_request_client.py +5 -5
  226. oci/osp_gateway/address_rule_service_client.py +1 -1
  227. oci/osp_gateway/address_service_client.py +2 -2
  228. oci/osp_gateway/invoice_service_client.py +5 -5
  229. oci/osp_gateway/subscription_service_client.py +5 -5
  230. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  231. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  232. oci/osub_subscription/commitment_client.py +2 -2
  233. oci/osub_subscription/ratecard_client.py +1 -1
  234. oci/osub_subscription/subscription_client.py +1 -1
  235. oci/osub_usage/computed_usage_client.py +3 -3
  236. oci/psql/postgresql_client.py +34 -34
  237. oci/queue/queue_admin_client.py +11 -11
  238. oci/queue/queue_client.py +8 -8
  239. oci/recovery/database_recovery_client.py +26 -26
  240. oci/redis/redis_cluster_client.py +12 -12
  241. oci/regions_definitions.py +9 -0
  242. oci/resource_manager/resource_manager_client.py +52 -52
  243. oci/resource_scheduler/schedule_client.py +13 -13
  244. oci/resource_search/resource_search_client.py +3 -3
  245. oci/rover/rover_bundle_client.py +8 -8
  246. oci/rover/rover_cluster_client.py +8 -8
  247. oci/rover/rover_entitlement_client.py +6 -6
  248. oci/rover/rover_node_client.py +15 -15
  249. oci/rover/shape_client.py +1 -1
  250. oci/rover/work_requests_client.py +5 -5
  251. oci/sch/connector_plugins_client.py +2 -2
  252. oci/sch/service_connector_client.py +12 -12
  253. oci/secrets/secrets_client.py +3 -3
  254. oci/security_attribute/security_attribute_client.py +18 -18
  255. oci/service_catalog/service_catalog_client.py +26 -26
  256. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  257. oci/service_mesh/service_mesh_client.py +48 -48
  258. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  259. oci/streaming/stream_admin_client.py +18 -18
  260. oci/streaming/stream_client.py +8 -8
  261. oci/tenant_manager_control_plane/domain_client.py +5 -5
  262. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  263. oci/tenant_manager_control_plane/governance_client.py +2 -2
  264. oci/tenant_manager_control_plane/link_client.py +3 -3
  265. oci/tenant_manager_control_plane/orders_client.py +2 -2
  266. oci/tenant_manager_control_plane/organization_client.py +10 -10
  267. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  268. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  269. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  270. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  271. oci/threat_intelligence/threatintel_client.py +5 -5
  272. oci/usage/resources_client.py +2 -2
  273. oci/usage/rewards_client.py +6 -6
  274. oci/usage/usagelimits_client.py +1 -1
  275. oci/usage_api/usageapi_client.py +33 -33
  276. oci/vault/vaults_client.py +13 -13
  277. oci/vbs_inst/vbs_instance_client.py +10 -10
  278. oci/version.py +1 -1
  279. oci/visual_builder/models/__init__.py +6 -0
  280. oci/visual_builder/models/network_endpoint_details.py +11 -3
  281. oci/visual_builder/models/private_endpoint_details.py +1 -1
  282. oci/visual_builder/models/public_endpoint_details.py +113 -0
  283. oci/visual_builder/models/update_network_endpoint_details.py +11 -3
  284. oci/visual_builder/models/update_private_endpoint_details.py +1 -1
  285. oci/visual_builder/models/update_public_endpoint_details.py +113 -0
  286. oci/visual_builder/models/virtual_cloud_network.py +103 -0
  287. oci/visual_builder/vb_instance_client.py +14 -14
  288. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  289. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  290. oci/waa/waa_client.py +13 -13
  291. oci/waa/work_request_client.py +4 -4
  292. oci/waas/redirect_client.py +6 -6
  293. oci/waas/waas_client.py +66 -66
  294. oci/waf/waf_client.py +24 -24
  295. oci/work_requests/work_request_client.py +4 -4
  296. oci/zpr/zpr_client.py +15 -15
  297. {oci-2.150.1.dist-info → oci-2.150.2.dist-info}/METADATA +1 -1
  298. {oci-2.150.1.dist-info → oci-2.150.2.dist-info}/RECORD +302 -283
  299. {oci-2.150.1.dist-info → oci-2.150.2.dist-info}/LICENSE.txt +0 -0
  300. {oci-2.150.1.dist-info → oci-2.150.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  301. {oci-2.150.1.dist-info → oci-2.150.2.dist-info}/WHEEL +0 -0
  302. {oci-2.150.1.dist-info → oci-2.150.2.dist-info}/top_level.txt +0 -0
oci/fips.py CHANGED
@@ -3,10 +3,13 @@
3
3
  # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
4
 
5
5
  from __future__ import absolute_import
6
- import sys
6
+ import ctypes.util
7
7
  import ctypes
8
8
  import logging
9
9
  import os
10
+ import re
11
+ import ssl
12
+ import sys
10
13
 
11
14
 
12
15
  class DevNull:
@@ -18,19 +21,32 @@ class DevNull:
18
21
  pass
19
22
 
20
23
 
24
+ def get_openssl_version():
25
+ version_str = ssl.OPENSSL_VERSION
26
+ match = re.search(r'OpenSSL (\d+\.\d+\.\d+)', version_str)
27
+ if match:
28
+ return match.group(1)
29
+ else:
30
+ return version_str
31
+
32
+
21
33
  def override_libcrypto(fips_libcrypto_path):
22
34
  """
23
35
  Override libcrypto and add FIPS_mode function to ssl if it is not there
24
36
  """
25
-
26
- _bs_crypto = ctypes.CDLL(fips_libcrypto_path)
27
- _bs_crypto.FIPS_mode_set(ctypes.c_int(1))
28
- import ssl # noqa: E402
29
- if not hasattr(ssl, 'FIPS_mode'):
30
- ssl.FIPS_mode = _bs_crypto.FIPS_mode
37
+ logger = logging.getLogger("{}.{}".format(__name__, id(override_libcrypto)))
38
+ logger.addHandler(logging.NullHandler())
39
+ openssl_version = get_openssl_version()
40
+ if openssl_version.startswith("1") and fips_libcrypto_path is not None:
41
+ # Handle Openssl 1
42
+ _bs_crypto = ctypes.CDLL(fips_libcrypto_path)
43
+ _bs_crypto.FIPS_mode_set(ctypes.c_int(1))
44
+ import ssl # noqa: E402
45
+ if not hasattr(ssl, 'FIPS_mode'):
46
+ ssl.FIPS_mode = _bs_crypto.FIPS_mode
31
47
 
32
48
 
33
- def md5(intitial_message=''):
49
+ def md5(initial_message=''):
34
50
  """
35
51
  Placeholder md5 function for hashlib so it won't segfault when called after
36
52
  enabling FIPS mode.
@@ -61,22 +77,24 @@ def is_fips_mode():
61
77
  Verify that ssl.FIPS_mode() returns 1 and that using md5 raises an
62
78
  exception
63
79
  """
64
-
80
+ logger = logging.getLogger("{}.{}".format(__name__, id(is_fips_mode)))
81
+ logger.addHandler(logging.NullHandler())
82
+ openssl_version = get_openssl_version()
83
+ if openssl_version.startswith("1"):
84
+ import ssl
85
+ if not hasattr(ssl, 'FIPS_mode'):
86
+ return False
87
+ elif ssl.FIPS_mode() != 1:
88
+ return False
89
+
90
+ # check if hashlib has been disabled
65
91
  import hashlib
66
- import ssl
67
-
68
- if not hasattr(ssl, 'FIPS_mode'):
69
- return False
70
- elif ssl.FIPS_mode() != 1:
71
- return False
72
-
73
92
  try:
74
93
  digest = hashlib.md5(b"Hello World\n").hexdigest() # noqa: F841
75
94
  return False
76
95
  except ValueError:
77
96
  # Expect to get this exception so do nothing
78
97
  pass
79
-
80
98
  return True
81
99
 
82
100
 
@@ -84,7 +102,7 @@ def enable_fips_mode(fips_libcrypto_path=None):
84
102
  """
85
103
  Enable FIPS mode by overriding libcrypto and patching hashlib
86
104
  """
87
-
105
+ openssl_version = get_openssl_version()
88
106
  logger = logging.getLogger("{}.{}".format(__name__, id(enable_fips_mode)))
89
107
  logger.addHandler(logging.NullHandler())
90
108
 
@@ -95,22 +113,26 @@ def enable_fips_mode(fips_libcrypto_path=None):
95
113
  fips_libcrypto_path = os.environ['OCI_PYTHON_SDK_FIPS_LIBCRYPTO_PATH']
96
114
 
97
115
  if fips_libcrypto_path:
98
- override_libcrypto(fips_libcrypto_path)
99
-
100
- import hashlib
101
- try:
102
- digest = hashlib.md5(b"Hello World\n").hexdigest() # noqa: F841
103
-
104
- # If the previous line did not raise an exception md5 needs to be
105
- # patched
106
- patch_hashlib_md5()
107
-
108
- except ValueError:
109
- # Expect to get this exception so do nothing
110
- pass
111
-
112
- logger.info("Using '{}' for libcypto".format(fips_libcrypto_path))
113
- if is_fips_mode():
114
- logger.info("FIPS mode is active")
116
+ if openssl_version.startswith("1"):
117
+ override_libcrypto(fips_libcrypto_path)
118
+
119
+ import hashlib
120
+ try:
121
+ digest = hashlib.md5(b"Hello World\n").hexdigest() # noqa: F841
122
+
123
+ # If the previous line did not raise an exception md5 needs to be
124
+ # patched
125
+ patch_hashlib_md5()
126
+
127
+ except ValueError:
128
+ # Expect to get this exception so do nothing
129
+ pass
130
+
131
+ logger.info("Using '{}' for libcypto".format(fips_libcrypto_path))
132
+ if is_fips_mode():
133
+ logger.info("FIPS mode is active")
134
+ else:
135
+ logger.error("Failed to enter FIPS mode")
115
136
  else:
116
- logger.error("Failed to enter FIPS mode")
137
+ # Warn users who set the FIPS crypto path via environment variable that FIPS mode needs to be set in OS
138
+ logger.warning("FIPS mode for openssl version {} needs to be set in your operating system!".format(openssl_version))
@@ -150,7 +150,7 @@ class FleetAppsManagementAdminClient(object):
150
150
  :rtype: :class:`~oci.response.Response`
151
151
 
152
152
  :example:
153
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/create_compliance_policy_rule.py.html>`__ to see an example of how to use create_compliance_policy_rule API.
153
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/create_compliance_policy_rule.py.html>`__ to see an example of how to use create_compliance_policy_rule API.
154
154
  """
155
155
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
156
156
  required_arguments = []
@@ -249,7 +249,7 @@ class FleetAppsManagementAdminClient(object):
249
249
  :rtype: :class:`~oci.response.Response`
250
250
 
251
251
  :example:
252
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/create_onboarding.py.html>`__ to see an example of how to use create_onboarding API.
252
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/create_onboarding.py.html>`__ to see an example of how to use create_onboarding API.
253
253
  """
254
254
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
255
255
  required_arguments = []
@@ -347,7 +347,7 @@ class FleetAppsManagementAdminClient(object):
347
347
  :rtype: :class:`~oci.response.Response`
348
348
 
349
349
  :example:
350
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/create_platform_configuration.py.html>`__ to see an example of how to use create_platform_configuration API.
350
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/create_platform_configuration.py.html>`__ to see an example of how to use create_platform_configuration API.
351
351
  """
352
352
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
353
353
  required_arguments = []
@@ -445,7 +445,7 @@ class FleetAppsManagementAdminClient(object):
445
445
  :rtype: :class:`~oci.response.Response`
446
446
 
447
447
  :example:
448
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/create_property.py.html>`__ to see an example of how to use create_property API.
448
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/create_property.py.html>`__ to see an example of how to use create_property API.
449
449
  """
450
450
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
451
451
  required_arguments = []
@@ -543,7 +543,7 @@ class FleetAppsManagementAdminClient(object):
543
543
  :rtype: :class:`~oci.response.Response`
544
544
 
545
545
  :example:
546
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/delete_compliance_policy_rule.py.html>`__ to see an example of how to use delete_compliance_policy_rule API.
546
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/delete_compliance_policy_rule.py.html>`__ to see an example of how to use delete_compliance_policy_rule API.
547
547
  """
548
548
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
549
549
  required_arguments = ['compliancePolicyRuleId']
@@ -648,7 +648,7 @@ class FleetAppsManagementAdminClient(object):
648
648
  :rtype: :class:`~oci.response.Response`
649
649
 
650
650
  :example:
651
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/delete_onboarding.py.html>`__ to see an example of how to use delete_onboarding API.
651
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/delete_onboarding.py.html>`__ to see an example of how to use delete_onboarding API.
652
652
  """
653
653
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
654
654
  required_arguments = ['onboardingId']
@@ -753,7 +753,7 @@ class FleetAppsManagementAdminClient(object):
753
753
  :rtype: :class:`~oci.response.Response`
754
754
 
755
755
  :example:
756
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/delete_platform_configuration.py.html>`__ to see an example of how to use delete_platform_configuration API.
756
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/delete_platform_configuration.py.html>`__ to see an example of how to use delete_platform_configuration API.
757
757
  """
758
758
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
759
759
  required_arguments = ['platformConfigurationId']
@@ -858,7 +858,7 @@ class FleetAppsManagementAdminClient(object):
858
858
  :rtype: :class:`~oci.response.Response`
859
859
 
860
860
  :example:
861
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/delete_property.py.html>`__ to see an example of how to use delete_property API.
861
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/delete_property.py.html>`__ to see an example of how to use delete_property API.
862
862
  """
863
863
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
864
864
  required_arguments = ['propertyId']
@@ -973,7 +973,7 @@ class FleetAppsManagementAdminClient(object):
973
973
  :rtype: :class:`~oci.response.Response`
974
974
 
975
975
  :example:
976
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/enable_latest_policy.py.html>`__ to see an example of how to use enable_latest_policy API.
976
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/enable_latest_policy.py.html>`__ to see an example of how to use enable_latest_policy API.
977
977
  """
978
978
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
979
979
  required_arguments = ['onboardingId']
@@ -1076,7 +1076,7 @@ class FleetAppsManagementAdminClient(object):
1076
1076
  :rtype: :class:`~oci.response.Response`
1077
1077
 
1078
1078
  :example:
1079
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/get_compliance_policy.py.html>`__ to see an example of how to use get_compliance_policy API.
1079
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/get_compliance_policy.py.html>`__ to see an example of how to use get_compliance_policy API.
1080
1080
  """
1081
1081
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1082
1082
  required_arguments = ['compliancePolicyId']
@@ -1174,7 +1174,7 @@ class FleetAppsManagementAdminClient(object):
1174
1174
  :rtype: :class:`~oci.response.Response`
1175
1175
 
1176
1176
  :example:
1177
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/get_compliance_policy_rule.py.html>`__ to see an example of how to use get_compliance_policy_rule API.
1177
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/get_compliance_policy_rule.py.html>`__ to see an example of how to use get_compliance_policy_rule API.
1178
1178
  """
1179
1179
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1180
1180
  required_arguments = ['compliancePolicyRuleId']
@@ -1272,7 +1272,7 @@ class FleetAppsManagementAdminClient(object):
1272
1272
  :rtype: :class:`~oci.response.Response`
1273
1273
 
1274
1274
  :example:
1275
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/get_onboarding.py.html>`__ to see an example of how to use get_onboarding API.
1275
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/get_onboarding.py.html>`__ to see an example of how to use get_onboarding API.
1276
1276
  """
1277
1277
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1278
1278
  required_arguments = ['onboardingId']
@@ -1370,7 +1370,7 @@ class FleetAppsManagementAdminClient(object):
1370
1370
  :rtype: :class:`~oci.response.Response`
1371
1371
 
1372
1372
  :example:
1373
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/get_platform_configuration.py.html>`__ to see an example of how to use get_platform_configuration API.
1373
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/get_platform_configuration.py.html>`__ to see an example of how to use get_platform_configuration API.
1374
1374
  """
1375
1375
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1376
1376
  required_arguments = ['platformConfigurationId']
@@ -1468,7 +1468,7 @@ class FleetAppsManagementAdminClient(object):
1468
1468
  :rtype: :class:`~oci.response.Response`
1469
1469
 
1470
1470
  :example:
1471
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/get_property.py.html>`__ to see an example of how to use get_property API.
1471
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/get_property.py.html>`__ to see an example of how to use get_property API.
1472
1472
  """
1473
1473
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1474
1474
  required_arguments = ['propertyId']
@@ -1594,7 +1594,7 @@ class FleetAppsManagementAdminClient(object):
1594
1594
  :rtype: :class:`~oci.response.Response`
1595
1595
 
1596
1596
  :example:
1597
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/list_compliance_policies.py.html>`__ to see an example of how to use list_compliance_policies API.
1597
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/list_compliance_policies.py.html>`__ to see an example of how to use list_compliance_policies API.
1598
1598
  """
1599
1599
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1600
1600
  required_arguments = []
@@ -1757,7 +1757,7 @@ class FleetAppsManagementAdminClient(object):
1757
1757
  :rtype: :class:`~oci.response.Response`
1758
1758
 
1759
1759
  :example:
1760
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/list_compliance_policy_rules.py.html>`__ to see an example of how to use list_compliance_policy_rules API.
1760
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/list_compliance_policy_rules.py.html>`__ to see an example of how to use list_compliance_policy_rules API.
1761
1761
  """
1762
1762
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1763
1763
  required_arguments = []
@@ -1903,7 +1903,7 @@ class FleetAppsManagementAdminClient(object):
1903
1903
  :rtype: :class:`~oci.response.Response`
1904
1904
 
1905
1905
  :example:
1906
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/list_onboarding_policies.py.html>`__ to see an example of how to use list_onboarding_policies API.
1906
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/list_onboarding_policies.py.html>`__ to see an example of how to use list_onboarding_policies API.
1907
1907
  """
1908
1908
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1909
1909
  required_arguments = []
@@ -2041,7 +2041,7 @@ class FleetAppsManagementAdminClient(object):
2041
2041
  :rtype: :class:`~oci.response.Response`
2042
2042
 
2043
2043
  :example:
2044
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/list_onboardings.py.html>`__ to see an example of how to use list_onboardings API.
2044
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/list_onboardings.py.html>`__ to see an example of how to use list_onboardings API.
2045
2045
  """
2046
2046
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2047
2047
  required_arguments = []
@@ -2200,7 +2200,7 @@ class FleetAppsManagementAdminClient(object):
2200
2200
  :rtype: :class:`~oci.response.Response`
2201
2201
 
2202
2202
  :example:
2203
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/list_platform_configurations.py.html>`__ to see an example of how to use list_platform_configurations API.
2203
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/list_platform_configurations.py.html>`__ to see an example of how to use list_platform_configurations API.
2204
2204
  """
2205
2205
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2206
2206
  required_arguments = []
@@ -2370,7 +2370,7 @@ class FleetAppsManagementAdminClient(object):
2370
2370
  :rtype: :class:`~oci.response.Response`
2371
2371
 
2372
2372
  :example:
2373
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/list_properties.py.html>`__ to see an example of how to use list_properties API.
2373
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/list_properties.py.html>`__ to see an example of how to use list_properties API.
2374
2374
  """
2375
2375
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2376
2376
  required_arguments = []
@@ -2525,7 +2525,7 @@ class FleetAppsManagementAdminClient(object):
2525
2525
  :rtype: :class:`~oci.response.Response`
2526
2526
 
2527
2527
  :example:
2528
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/manage_settings.py.html>`__ to see an example of how to use manage_settings API.
2528
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/manage_settings.py.html>`__ to see an example of how to use manage_settings API.
2529
2529
  """
2530
2530
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2531
2531
  required_arguments = ['onboardingId']
@@ -2638,7 +2638,7 @@ class FleetAppsManagementAdminClient(object):
2638
2638
  :rtype: :class:`~oci.response.Response`
2639
2639
 
2640
2640
  :example:
2641
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/update_compliance_policy_rule.py.html>`__ to see an example of how to use update_compliance_policy_rule API.
2641
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/update_compliance_policy_rule.py.html>`__ to see an example of how to use update_compliance_policy_rule API.
2642
2642
  """
2643
2643
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2644
2644
  required_arguments = ['compliancePolicyRuleId']
@@ -2748,7 +2748,7 @@ class FleetAppsManagementAdminClient(object):
2748
2748
  :rtype: :class:`~oci.response.Response`
2749
2749
 
2750
2750
  :example:
2751
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/update_onboarding.py.html>`__ to see an example of how to use update_onboarding API.
2751
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/update_onboarding.py.html>`__ to see an example of how to use update_onboarding API.
2752
2752
  """
2753
2753
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2754
2754
  required_arguments = ['onboardingId']
@@ -2858,7 +2858,7 @@ class FleetAppsManagementAdminClient(object):
2858
2858
  :rtype: :class:`~oci.response.Response`
2859
2859
 
2860
2860
  :example:
2861
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/update_platform_configuration.py.html>`__ to see an example of how to use update_platform_configuration API.
2861
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/update_platform_configuration.py.html>`__ to see an example of how to use update_platform_configuration API.
2862
2862
  """
2863
2863
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2864
2864
  required_arguments = ['platformConfigurationId']
@@ -2968,7 +2968,7 @@ class FleetAppsManagementAdminClient(object):
2968
2968
  :rtype: :class:`~oci.response.Response`
2969
2969
 
2970
2970
  :example:
2971
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.1/fleetappsmanagement/update_property.py.html>`__ to see an example of how to use update_property API.
2971
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.2/fleetappsmanagement/update_property.py.html>`__ to see an example of how to use update_property API.
2972
2972
  """
2973
2973
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2974
2974
  required_arguments = ['propertyId']