oci 2.150.0__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.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +12 -12
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +84 -84
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +282 -45
- oci/container_engine/container_engine_client_composite_operations.py +90 -0
- oci/container_engine/models/__init__.py +10 -0
- oci/container_engine/models/cluster_node.py +101 -0
- oci/container_engine/models/image.py +132 -0
- oci/container_engine/models/node_eviction_node_pool_settings.py +33 -2
- oci/container_engine/models/node_eviction_settings.py +103 -0
- oci/container_engine/models/node_pool_cycling_details.py +35 -4
- oci/container_engine/models/reboot_cluster_node_details.py +66 -0
- oci/container_engine/models/replace_boot_volume_cluster_node_details.py +66 -0
- oci/container_engine/models/work_request.py +11 -3
- oci/container_engine/models/work_request_summary.py +11 -3
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +117 -117
- oci/core/compute_management_client.py +32 -32
- oci/core/models/create_volume_details.py +33 -2
- oci/core/models/instance_configuration_create_volume_details.py +33 -2
- oci/core/models/update_volume_details.py +33 -2
- oci/core/models/volume.py +33 -2
- oci/core/virtual_network_client.py +258 -258
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +45 -45
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +317 -317
- oci/data_science/data_science_client.py +145 -145
- oci/database/database_client.py +414 -414
- oci/database/models/autonomous_container_database.py +31 -0
- oci/database/models/autonomous_container_database_summary.py +31 -0
- oci/database/models/create_autonomous_container_database_details.py +31 -0
- oci/database/models/update_autonomous_container_database_details.py +31 -0
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/db_life_cycle_management_client.py +345 -12
- oci/dblm/models/__init__.py +22 -0
- oci/dblm/models/additional_patches.py +179 -0
- oci/dblm/models/databases_summary.py +670 -0
- oci/dblm/models/dblm_patch_management.py +410 -0
- oci/dblm/models/fpp_server.py +604 -0
- oci/dblm/models/image_details.py +338 -0
- oci/dblm/models/images_patch_recommendation_summary.py +132 -0
- oci/dblm/models/patch_activity_details.py +394 -0
- oci/dblm/models/patch_compliance_details.py +121 -0
- oci/dblm/models/patch_databases_collection.py +70 -0
- oci/dblm/models/patch_operations_summary.py +194 -0
- oci/dblm/models/resource_info.py +33 -2
- oci/dblm/models/resources_patch_compliance_summary.py +194 -0
- oci/dblm/models/vulnerabilities_summary.py +10 -10
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +74 -74
- oci/fips.py +58 -36
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_inference/generative_ai_inference_client.py +102 -5
- oci/generative_ai_inference/models/__init__.py +26 -0
- oci/generative_ai_inference/models/apply_guardrails_details.py +124 -0
- oci/generative_ai_inference/models/apply_guardrails_result.py +66 -0
- oci/generative_ai_inference/models/assistant_message.py +3 -0
- oci/generative_ai_inference/models/category_score.py +101 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +53 -2
- oci/generative_ai_inference/models/content_moderation_configuration.py +70 -0
- oci/generative_ai_inference/models/content_moderation_result.py +70 -0
- oci/generative_ai_inference/models/guardrail_configs.py +120 -0
- oci/generative_ai_inference/models/guardrails_input.py +99 -0
- oci/generative_ai_inference/models/guardrails_results.py +124 -0
- oci/generative_ai_inference/models/guardrails_text_input.py +111 -0
- oci/generative_ai_inference/models/personally_identifiable_information_configuration.py +70 -0
- oci/generative_ai_inference/models/personally_identifiable_information_result.py +194 -0
- oci/generative_ai_inference/models/prompt_injection_configuration.py +39 -0
- oci/generative_ai_inference/models/prompt_injection_protection_result.py +70 -0
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +89 -89
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/lustre_file_storage/lustre_file_storage_client.py +22 -22
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +16 -16
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +181 -181
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +34 -34
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/regions_definitions.py +9 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +87 -87
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/models/__init__.py +6 -0
- oci/visual_builder/models/network_endpoint_details.py +11 -3
- oci/visual_builder/models/private_endpoint_details.py +1 -1
- oci/visual_builder/models/public_endpoint_details.py +113 -0
- oci/visual_builder/models/update_network_endpoint_details.py +11 -3
- oci/visual_builder/models/update_private_endpoint_details.py +1 -1
- oci/visual_builder/models/update_public_endpoint_details.py +113 -0
- oci/visual_builder/models/virtual_cloud_network.py +103 -0
- oci/visual_builder/vb_instance_client.py +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/METADATA +1 -1
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/RECORD +322 -290
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/LICENSE.txt +0 -0
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/WHEEL +0 -0
- {oci-2.150.0.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
|
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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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(
|
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
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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']
|