oci 2.151.0__py3-none-any.whl → 2.152.1__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 (430) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/addons/__init__.py +20 -0
  4. oci/addons/adk/__init__.py +13 -0
  5. oci/addons/adk/agent.py +852 -0
  6. oci/addons/adk/agent_client.py +682 -0
  7. oci/addons/adk/agent_error.py +36 -0
  8. oci/addons/adk/auth/__init__.py +5 -0
  9. oci/addons/adk/auth/auth_provider.py +28 -0
  10. oci/addons/adk/auth/factory.py +78 -0
  11. oci/addons/adk/auth/oci/__init__.py +5 -0
  12. oci/addons/adk/auth/oci/instance_principal.py +53 -0
  13. oci/addons/adk/auth/oci/resource_principal.py +53 -0
  14. oci/addons/adk/auth/oci/session.py +91 -0
  15. oci/addons/adk/auth/oci/user_principal.py +64 -0
  16. oci/addons/adk/constants.py +17 -0
  17. oci/addons/adk/logger.py +163 -0
  18. oci/addons/adk/run/__init__.py +5 -0
  19. oci/addons/adk/run/response.py +56 -0
  20. oci/addons/adk/run/types.py +32 -0
  21. oci/addons/adk/tool/__init__.py +13 -0
  22. oci/addons/adk/tool/function_tool.py +334 -0
  23. oci/addons/adk/tool/prebuilt/__init__.py +8 -0
  24. oci/addons/adk/tool/prebuilt/agentic_rag_tool.py +49 -0
  25. oci/addons/adk/tool/prebuilt/calculator_toolkit.py +104 -0
  26. oci/addons/adk/tool/tool.py +37 -0
  27. oci/addons/adk/tool/toolkit.py +189 -0
  28. oci/addons/adk/tool/utils.py +120 -0
  29. oci/addons/adk/util.py +325 -0
  30. oci/adm/application_dependency_management_client.py +36 -36
  31. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  32. oci/ai_document/ai_service_document_client.py +26 -26
  33. oci/ai_language/ai_service_language_client.py +44 -44
  34. oci/ai_speech/ai_service_speech_client.py +19 -19
  35. oci/ai_vision/ai_service_vision_client.py +28 -28
  36. oci/analytics/analytics_client.py +24 -24
  37. oci/announcements_service/announcement_client.py +5 -5
  38. oci/announcements_service/announcement_subscription_client.py +9 -9
  39. oci/announcements_service/announcements_preferences_client.py +4 -4
  40. oci/announcements_service/service_client.py +1 -1
  41. oci/apigateway/api_gateway_client.py +21 -21
  42. oci/apigateway/deployment_client.py +6 -6
  43. oci/apigateway/gateway_client.py +6 -6
  44. oci/apigateway/subscribers_client.py +6 -6
  45. oci/apigateway/usage_plans_client.py +6 -6
  46. oci/apigateway/work_requests_client.py +5 -5
  47. oci/apm_config/config_client.py +12 -12
  48. oci/apm_control_plane/apm_domain_client.py +14 -14
  49. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  50. oci/apm_traces/attributes_client.py +8 -8
  51. oci/apm_traces/query_client.py +2 -2
  52. oci/apm_traces/trace_client.py +4 -4
  53. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  54. oci/artifacts/artifacts_client.py +32 -32
  55. oci/audit/audit_client.py +3 -3
  56. oci/autoscaling/auto_scaling_client.py +11 -11
  57. oci/bastion/bastion_client.py +15 -15
  58. oci/bds/bds_client.py +84 -84
  59. oci/blockchain/blockchain_platform_client.py +27 -27
  60. oci/budget/budget_client.py +10 -10
  61. oci/capacity_management/capacity_management_client.py +32 -32
  62. oci/certificates/certificates_client.py +5 -5
  63. oci/certificates_management/certificates_management_client.py +32 -32
  64. oci/cims/incident_client.py +6 -6
  65. oci/cloud_bridge/common_client.py +5 -5
  66. oci/cloud_bridge/discovery_client.py +15 -15
  67. oci/cloud_bridge/inventory_client.py +16 -16
  68. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  69. oci/cloud_guard/cloud_guard_client.py +155 -155
  70. oci/cloud_migrations/migration_client.py +43 -43
  71. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  72. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  73. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  74. oci/compute_instance_agent/plugin_client.py +2 -2
  75. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  76. oci/container_engine/container_engine_client.py +46 -46
  77. oci/container_instances/container_instance_client.py +18 -18
  78. oci/core/blockstorage_client.py +60 -60
  79. oci/core/compute_client.py +117 -117
  80. oci/core/compute_management_client.py +32 -32
  81. oci/core/virtual_network_client.py +258 -258
  82. oci/dashboard_service/dashboard_client.py +6 -6
  83. oci/dashboard_service/dashboard_group_client.py +6 -6
  84. oci/data_catalog/data_catalog_client.py +149 -149
  85. oci/data_flow/data_flow_client.py +45 -45
  86. oci/data_integration/data_integration_client.py +163 -163
  87. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  88. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  89. oci/data_safe/data_safe_client.py +317 -317
  90. oci/data_science/data_science_client.py +145 -145
  91. oci/database/database_client.py +745 -469
  92. oci/database/models/__init__.py +2 -0
  93. oci/database/models/autonomous_db_version_summary.py +31 -0
  94. oci/database/models/backup.py +4 -2
  95. oci/database/models/backup_summary.py +4 -2
  96. oci/database/models/create_external_backup_job_details.py +4 -4
  97. oci/database/models/db_system.py +4 -2
  98. oci/database/models/db_system_summary.py +4 -2
  99. oci/database/models/db_system_upgrade_summary.py +152 -0
  100. oci/database/models/external_container_database.py +4 -2
  101. oci/database/models/external_container_database_summary.py +4 -2
  102. oci/database/models/external_database_base.py +4 -2
  103. oci/database/models/external_non_container_database.py +4 -2
  104. oci/database/models/external_non_container_database_summary.py +4 -2
  105. oci/database/models/external_pluggable_database.py +4 -2
  106. oci/database/models/external_pluggable_database_summary.py +4 -2
  107. oci/database_management/db_management_client.py +356 -230
  108. oci/database_management/db_management_client_composite_operations.py +44 -0
  109. oci/database_management/diagnosability_client.py +4 -4
  110. oci/database_management/managed_my_sql_databases_client.py +7 -247
  111. oci/database_management/models/__init__.py +0 -4
  112. oci/database_management/models/database_diagnostics_and_management_feature_details.py +35 -4
  113. oci/database_management/models/disable_database_management_feature_details.py +33 -2
  114. oci/database_management/models/disable_external_container_database_management_feature_details.py +33 -2
  115. oci/database_management/models/discovered_external_database.py +64 -2
  116. oci/database_management/models/exadata_infrastructure_lifecycle_state_values.py +40 -36
  117. oci/database_management/models/external_database_diagnostics_and_management_feature_details.py +64 -2
  118. oci/database_management/models/managed_database.py +2 -4
  119. oci/database_management/models/managed_database_summary.py +2 -4
  120. oci/database_management/models/modify_database_management_feature_details.py +1 -1
  121. oci/database_management/perfhub_client.py +1 -1
  122. oci/database_management/sql_tuning_client.py +17 -17
  123. oci/database_migration/database_migration_client.py +42 -42
  124. oci/database_tools/database_tools_client.py +23 -23
  125. oci/dblm/db_life_cycle_management_client.py +14 -14
  126. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  127. oci/delegate_access_control/work_request_client.py +4 -4
  128. oci/demand_signal/occ_demand_signal_client.py +7 -7
  129. oci/desktops/desktop_service_client.py +21 -21
  130. oci/devops/devops_client.py +141 -141
  131. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  132. oci/distributed_database/__init__.py +20 -0
  133. oci/distributed_database/distributed_autonomous_db_service_client.py +2315 -0
  134. oci/distributed_database/distributed_autonomous_db_service_client_composite_operations.py +605 -0
  135. oci/distributed_database/distributed_db_private_endpoint_service_client.py +944 -0
  136. oci/distributed_database/distributed_db_private_endpoint_service_client_composite_operations.py +238 -0
  137. oci/distributed_database/distributed_db_service_client.py +2435 -0
  138. oci/distributed_database/distributed_db_service_client_composite_operations.py +647 -0
  139. oci/distributed_database/distributed_db_work_request_service_client.py +654 -0
  140. oci/distributed_database/distributed_db_work_request_service_client_composite_operations.py +26 -0
  141. oci/distributed_database/models/__init__.py +158 -0
  142. oci/distributed_database/models/add_distributed_autonomous_database_gds_control_node_details.py +105 -0
  143. oci/distributed_database/models/add_distributed_database_gds_control_node_details.py +105 -0
  144. oci/distributed_database/models/catalog_peer_with_dedicated_infra.py +331 -0
  145. oci/distributed_database/models/catalog_peer_with_exadb_xs.py +331 -0
  146. oci/distributed_database/models/change_distributed_autonomous_database_compartment_details.py +74 -0
  147. oci/distributed_database/models/change_distributed_database_compartment_details.py +74 -0
  148. oci/distributed_database/models/change_distributed_database_private_endpoint_compartment_details.py +74 -0
  149. oci/distributed_database/models/change_distributed_db_backup_config_details.py +66 -0
  150. oci/distributed_database/models/configure_distributed_autonomous_database_gsms_details.py +103 -0
  151. oci/distributed_database/models/configure_distributed_database_gsms_details.py +103 -0
  152. oci/distributed_database/models/create_distributed_autonomous_database_catalog_details.py +101 -0
  153. oci/distributed_database/models/create_distributed_autonomous_database_catalog_with_dedicated_infra_details.py +342 -0
  154. oci/distributed_database/models/create_distributed_autonomous_database_details.py +799 -0
  155. oci/distributed_database/models/create_distributed_autonomous_database_shard_details.py +101 -0
  156. oci/distributed_database/models/create_distributed_autonomous_database_shard_with_dedicated_infra_details.py +377 -0
  157. oci/distributed_database/models/create_distributed_database_catalog_details.py +99 -0
  158. oci/distributed_database/models/create_distributed_database_catalog_with_exadb_xs_details.py +282 -0
  159. oci/distributed_database/models/create_distributed_database_details.py +810 -0
  160. oci/distributed_database/models/create_distributed_database_private_endpoint_details.py +260 -0
  161. oci/distributed_database/models/create_distributed_database_shard_details.py +99 -0
  162. oci/distributed_database/models/create_distributed_database_shard_with_exadb_xs_details.py +282 -0
  163. oci/distributed_database/models/distributed_autonomous_database.py +1143 -0
  164. oci/distributed_database/models/distributed_autonomous_database_associated_with_private_endpoint.py +105 -0
  165. oci/distributed_database/models/distributed_autonomous_database_catalog.py +194 -0
  166. oci/distributed_database/models/distributed_autonomous_database_catalog_with_dedicated_infra.py +559 -0
  167. oci/distributed_database/models/distributed_autonomous_database_collection.py +70 -0
  168. oci/distributed_database/models/distributed_autonomous_database_connection_string.py +70 -0
  169. oci/distributed_database/models/distributed_autonomous_database_gsm.py +385 -0
  170. oci/distributed_database/models/distributed_autonomous_database_gsm_image.py +105 -0
  171. oci/distributed_database/models/distributed_autonomous_database_shard.py +194 -0
  172. oci/distributed_database/models/distributed_autonomous_database_shard_with_dedicated_infra.py +592 -0
  173. oci/distributed_database/models/distributed_autonomous_database_summary.py +935 -0
  174. oci/distributed_database/models/distributed_autonomous_db_metadata.py +70 -0
  175. oci/distributed_database/models/distributed_database.py +1154 -0
  176. oci/distributed_database/models/distributed_database_associated_with_private_endpoint.py +105 -0
  177. oci/distributed_database/models/distributed_database_catalog.py +192 -0
  178. oci/distributed_database/models/distributed_database_catalog_with_exadb_xs.py +466 -0
  179. oci/distributed_database/models/distributed_database_collection.py +70 -0
  180. oci/distributed_database/models/distributed_database_gsm.py +385 -0
  181. oci/distributed_database/models/distributed_database_private_endpoint.py +639 -0
  182. oci/distributed_database/models/distributed_database_private_endpoint_collection.py +70 -0
  183. oci/distributed_database/models/distributed_database_private_endpoint_summary.py +479 -0
  184. oci/distributed_database/models/distributed_database_shard.py +192 -0
  185. oci/distributed_database/models/distributed_database_shard_with_exadb_xs.py +499 -0
  186. oci/distributed_database/models/distributed_database_summary.py +904 -0
  187. oci/distributed_database/models/distributed_db_backup_config.py +536 -0
  188. oci/distributed_database/models/distributed_db_backup_destination.py +362 -0
  189. oci/distributed_database/models/distributed_db_connection_string.py +70 -0
  190. oci/distributed_database/models/distributed_db_gsm_image.py +105 -0
  191. oci/distributed_database/models/distributed_db_metadata.py +70 -0
  192. oci/distributed_database/models/generate_distributed_autonomous_database_wallet_details.py +70 -0
  193. oci/distributed_database/models/generate_distributed_database_wallet_details.py +70 -0
  194. oci/distributed_database/models/patch_distributed_autonomous_database_details.py +73 -0
  195. oci/distributed_database/models/patch_distributed_database_details.py +73 -0
  196. oci/distributed_database/models/patch_insert_instruction.py +87 -0
  197. oci/distributed_database/models/patch_instruction.py +154 -0
  198. oci/distributed_database/models/patch_merge_instruction.py +95 -0
  199. oci/distributed_database/models/patch_remove_instruction.py +57 -0
  200. oci/distributed_database/models/shard_peer_with_dedicated_infra.py +331 -0
  201. oci/distributed_database/models/shard_peer_with_exadb_xs.py +331 -0
  202. oci/distributed_database/models/update_distributed_autonomous_database_details.py +136 -0
  203. oci/distributed_database/models/update_distributed_database_details.py +136 -0
  204. oci/distributed_database/models/update_distributed_database_private_endpoint_details.py +198 -0
  205. oci/distributed_database/models/upload_distributed_autonomous_database_signed_certificate_and_generate_wallet_details.py +71 -0
  206. oci/distributed_database/models/upload_distributed_database_signed_certificate_and_generate_wallet_details.py +71 -0
  207. oci/distributed_database/models/work_request.py +516 -0
  208. oci/distributed_database/models/work_request_error.py +134 -0
  209. oci/distributed_database/models/work_request_error_collection.py +70 -0
  210. oci/distributed_database/models/work_request_log_entry.py +101 -0
  211. oci/distributed_database/models/work_request_log_entry_collection.py +70 -0
  212. oci/distributed_database/models/work_request_resource.py +232 -0
  213. oci/distributed_database/models/work_request_summary.py +516 -0
  214. oci/distributed_database/models/work_request_summary_collection.py +70 -0
  215. oci/dns/dns_client.py +54 -54
  216. oci/dts/appliance_export_job_client.py +6 -6
  217. oci/dts/shipping_vendors_client.py +1 -1
  218. oci/dts/transfer_appliance_client.py +8 -8
  219. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  220. oci/dts/transfer_device_client.py +5 -5
  221. oci/dts/transfer_job_client.py +6 -6
  222. oci/dts/transfer_package_client.py +7 -7
  223. oci/em_warehouse/em_warehouse_client.py +13 -13
  224. oci/email/email_client.py +31 -31
  225. oci/email_data_plane/email_dp_client.py +1 -1
  226. oci/events/events_client.py +6 -6
  227. oci/file_storage/file_storage_client.py +74 -74
  228. oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
  229. oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
  230. oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
  231. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  232. oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
  233. oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
  234. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
  235. oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
  236. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  237. oci/functions/functions_invoke_client.py +1 -1
  238. oci/functions/functions_management_client.py +16 -16
  239. oci/fusion_apps/fusion_applications_client.py +41 -41
  240. oci/generative_ai/generative_ai_client.py +22 -22
  241. oci/generative_ai/models/create_dedicated_ai_cluster_details.py +4 -0
  242. oci/generative_ai/models/dedicated_ai_cluster.py +11 -3
  243. oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
  244. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
  245. oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
  246. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  247. oci/globally_distributed_database/sharded_database_service_client.py +58 -58
  248. oci/golden_gate/golden_gate_client.py +89 -89
  249. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  250. oci/governance_rules_control_plane/work_request_client.py +5 -5
  251. oci/healthchecks/health_checks_client.py +17 -17
  252. oci/identity/identity_client.py +145 -145
  253. oci/identity_data_plane/dataplane_client.py +2 -2
  254. oci/identity_domains/identity_domains_client.py +311 -311
  255. oci/integration/integration_instance_client.py +19 -19
  256. oci/jms/java_management_service_client.py +79 -79
  257. oci/jms_java_downloads/java_download_client.py +25 -25
  258. oci/key_management/ekm_client.py +5 -5
  259. oci/key_management/kms_crypto_client.py +6 -6
  260. oci/key_management/kms_hsm_cluster_client.py +12 -12
  261. oci/key_management/kms_management_client.py +21 -21
  262. oci/key_management/kms_vault_client.py +14 -14
  263. oci/license_manager/license_manager_client.py +18 -18
  264. oci/limits/limits_client.py +4 -4
  265. oci/limits/quotas_client.py +7 -7
  266. oci/load_balancer/load_balancer_client.py +61 -61
  267. oci/lockbox/lockbox_client.py +24 -24
  268. oci/log_analytics/log_analytics_client.py +200 -200
  269. oci/logging/logging_management_client.py +30 -30
  270. oci/loggingingestion/logging_client.py +1 -1
  271. oci/loggingsearch/log_search_client.py +1 -1
  272. oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
  273. oci/management_agent/management_agent_client.py +28 -28
  274. oci/management_dashboard/dashx_apis_client.py +14 -14
  275. oci/marketplace/account_client.py +2 -2
  276. oci/marketplace/marketplace_client.py +30 -30
  277. oci/marketplace_private_offer/attachment_client.py +5 -5
  278. oci/marketplace_private_offer/offer_client.py +6 -6
  279. oci/marketplace_publisher/attachment_client.py +5 -5
  280. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  281. oci/marketplace_publisher/offer_client.py +6 -6
  282. oci/media_services/media_services_client.py +60 -60
  283. oci/media_services/media_stream_client.py +2 -2
  284. oci/mngdmac/mac_device_client.py +3 -3
  285. oci/mngdmac/mac_order_client.py +11 -11
  286. oci/model_deployment/__init__.py +14 -0
  287. oci/model_deployment/model_deployment_client.py +331 -0
  288. oci/model_deployment/model_deployment_client_composite_operations.py +26 -0
  289. oci/model_deployment/models/__init__.py +14 -0
  290. oci/model_deployment/models/inference_result.py +70 -0
  291. oci/monitoring/monitoring_client.py +18 -18
  292. oci/mysql/channels_client.py +7 -7
  293. oci/mysql/db_backups_client.py +7 -7
  294. oci/mysql/db_system_client.py +17 -17
  295. oci/mysql/models/create_db_system_details.py +31 -0
  296. oci/mysql/models/db_system.py +31 -0
  297. oci/mysql/models/db_system_snapshot.py +31 -0
  298. oci/mysql/models/replica.py +31 -0
  299. oci/mysql/models/replica_overrides.py +33 -2
  300. oci/mysql/models/replica_summary.py +31 -0
  301. oci/mysql/models/update_db_system_details.py +31 -0
  302. oci/mysql/mysqlaas_client.py +7 -7
  303. oci/mysql/replicas_client.py +5 -5
  304. oci/mysql/work_requests_client.py +4 -4
  305. oci/network_firewall/network_firewall_client.py +86 -86
  306. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  307. oci/nosql/nosql_client.py +24 -24
  308. oci/object_storage/object_storage_client.py +55 -55
  309. oci/oce/oce_instance_client.py +10 -10
  310. oci/oci_control_center/occ_metrics_client.py +3 -3
  311. oci/ocvp/cluster_client.py +5 -5
  312. oci/ocvp/esxi_host_client.py +8 -8
  313. oci/ocvp/sddc_client.py +14 -14
  314. oci/ocvp/work_request_client.py +4 -4
  315. oci/oda/management_client.py +59 -59
  316. oci/oda/oda_client.py +17 -17
  317. oci/oda/odapackage_client.py +7 -7
  318. oci/onesubscription/billing_schedule_client.py +1 -1
  319. oci/onesubscription/commitment_client.py +2 -2
  320. oci/onesubscription/computed_usage_client.py +3 -3
  321. oci/onesubscription/invoice_summary_client.py +2 -2
  322. oci/onesubscription/organization_subscription_client.py +1 -1
  323. oci/onesubscription/ratecard_client.py +1 -1
  324. oci/onesubscription/subscribed_service_client.py +2 -2
  325. oci/onesubscription/subscription_client.py +1 -1
  326. oci/ons/notification_control_plane_client.py +6 -6
  327. oci/ons/notification_data_plane_client.py +10 -10
  328. oci/opa/opa_instance_client.py +13 -13
  329. oci/opensearch/models/__init__.py +2 -0
  330. oci/opensearch/models/create_opensearch_cluster_details.py +291 -0
  331. oci/opensearch/models/create_opensearch_cluster_pipeline_details.py +31 -0
  332. oci/opensearch/models/opensearch_cluster.py +291 -0
  333. oci/opensearch/models/opensearch_cluster_pipeline.py +31 -0
  334. oci/opensearch/models/opensearch_cluster_pipeline_summary.py +31 -0
  335. oci/opensearch/models/resize_opensearch_cluster_horizontal_details.py +31 -0
  336. oci/opensearch/models/resize_opensearch_cluster_vertical_details.py +217 -0
  337. oci/opensearch/models/shapes_details.py +70 -0
  338. oci/opensearch/models/update_cluster_specs_details.py +186 -0
  339. oci/opensearch/models/update_opensearch_cluster_pipeline_details.py +31 -0
  340. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  341. oci/opensearch/opensearch_cluster_client.py +87 -16
  342. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  343. oci/operator_access_control/access_requests_client.py +10 -10
  344. oci/operator_access_control/operator_actions_client.py +2 -2
  345. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  346. oci/operator_access_control/operator_control_client.py +6 -6
  347. oci/opsi/operations_insights_client.py +181 -181
  348. oci/optimizer/optimizer_client.py +26 -26
  349. oci/os_management/event_client.py +8 -8
  350. oci/os_management/os_management_client.py +69 -69
  351. oci/os_management_hub/event_client.py +8 -8
  352. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  353. oci/os_management_hub/managed_instance_client.py +33 -33
  354. oci/os_management_hub/managed_instance_group_client.py +26 -26
  355. oci/os_management_hub/management_station_client.py +10 -10
  356. oci/os_management_hub/onboarding_client.py +13 -13
  357. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  358. oci/os_management_hub/scheduled_job_client.py +7 -7
  359. oci/os_management_hub/software_source_client.py +33 -33
  360. oci/os_management_hub/work_request_client.py +5 -5
  361. oci/osp_gateway/address_rule_service_client.py +1 -1
  362. oci/osp_gateway/address_service_client.py +2 -2
  363. oci/osp_gateway/invoice_service_client.py +5 -5
  364. oci/osp_gateway/subscription_service_client.py +5 -5
  365. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  366. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  367. oci/osub_subscription/commitment_client.py +2 -2
  368. oci/osub_subscription/ratecard_client.py +1 -1
  369. oci/osub_subscription/subscription_client.py +1 -1
  370. oci/osub_usage/computed_usage_client.py +3 -3
  371. oci/psql/postgresql_client.py +34 -34
  372. oci/queue/queue_admin_client.py +11 -11
  373. oci/queue/queue_client.py +8 -8
  374. oci/recovery/database_recovery_client.py +26 -26
  375. oci/redis/redis_cluster_client.py +12 -12
  376. oci/resource_manager/resource_manager_client.py +52 -52
  377. oci/resource_scheduler/schedule_client.py +14 -14
  378. oci/resource_search/resource_search_client.py +3 -3
  379. oci/rover/rover_bundle_client.py +8 -8
  380. oci/rover/rover_cluster_client.py +8 -8
  381. oci/rover/rover_entitlement_client.py +6 -6
  382. oci/rover/rover_node_client.py +15 -15
  383. oci/rover/shape_client.py +1 -1
  384. oci/rover/work_requests_client.py +5 -5
  385. oci/sch/connector_plugins_client.py +2 -2
  386. oci/sch/service_connector_client.py +12 -12
  387. oci/secrets/secrets_client.py +3 -3
  388. oci/security_attribute/security_attribute_client.py +18 -18
  389. oci/service_catalog/service_catalog_client.py +26 -26
  390. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  391. oci/service_mesh/service_mesh_client.py +48 -48
  392. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  393. oci/streaming/stream_admin_client.py +18 -18
  394. oci/streaming/stream_client.py +8 -8
  395. oci/tenant_manager_control_plane/domain_client.py +5 -5
  396. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  397. oci/tenant_manager_control_plane/governance_client.py +2 -2
  398. oci/tenant_manager_control_plane/link_client.py +3 -3
  399. oci/tenant_manager_control_plane/orders_client.py +2 -2
  400. oci/tenant_manager_control_plane/organization_client.py +10 -10
  401. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  402. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  403. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  404. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  405. oci/threat_intelligence/threatintel_client.py +5 -5
  406. oci/usage/resources_client.py +2 -2
  407. oci/usage/rewards_client.py +6 -6
  408. oci/usage/usagelimits_client.py +1 -1
  409. oci/usage_api/usageapi_client.py +33 -33
  410. oci/vault/vaults_client.py +13 -13
  411. oci/vbs_inst/vbs_instance_client.py +10 -10
  412. oci/version.py +1 -1
  413. oci/visual_builder/vb_instance_client.py +14 -14
  414. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  415. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  416. oci/waa/waa_client.py +13 -13
  417. oci/waa/work_request_client.py +4 -4
  418. oci/waas/redirect_client.py +6 -6
  419. oci/waas/waas_client.py +66 -66
  420. oci/waf/waf_client.py +24 -24
  421. oci/work_requests/work_request_client.py +4 -4
  422. oci/zpr/zpr_client.py +15 -15
  423. {oci-2.151.0.dist-info → oci-2.152.1.dist-info}/METADATA +6 -1
  424. {oci-2.151.0.dist-info → oci-2.152.1.dist-info}/RECORD +428 -313
  425. oci/database_management/models/disable_external_mysql_associated_service_details.py +0 -144
  426. oci/database_management/models/enable_external_mysql_associated_service_details.py +0 -144
  427. {oci-2.151.0.dist-info → oci-2.152.1.dist-info}/LICENSE.txt +0 -0
  428. {oci-2.151.0.dist-info → oci-2.152.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  429. {oci-2.151.0.dist-info → oci-2.152.1.dist-info}/WHEEL +0 -0
  430. {oci-2.151.0.dist-info → oci-2.152.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,944 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
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
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20250101
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from oci._vendor import requests # noqa: F401
10
+ from oci._vendor import six
11
+
12
+ from oci import retry, circuit_breaker # noqa: F401
13
+ from oci.base_client import BaseClient
14
+ from oci.config import get_config_value_or_default, validate_config
15
+ from oci.signer import Signer
16
+ from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
17
+ from oci.exceptions import InvalidAlloyConfig
18
+ from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
19
+ from .models import distributed_database_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class DistributedDbPrivateEndpointServiceClient(object):
24
+ """
25
+ Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases.
26
+ """
27
+
28
+ def __init__(self, config, **kwargs):
29
+ """
30
+ Creates a new service client
31
+
32
+ :param dict config:
33
+ Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
34
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
35
+ the dict using :py:meth:`~oci.config.validate_config`
36
+
37
+ :param str service_endpoint: (optional)
38
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
39
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
40
+ need to specify a service endpoint.
41
+
42
+ :param timeout: (optional)
43
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
44
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
45
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
46
+ :type timeout: float or tuple(float, float)
47
+
48
+ :param signer: (optional)
49
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
50
+ provided in the config parameter.
51
+
52
+ One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
53
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
54
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
55
+
56
+ :param obj retry_strategy: (optional)
57
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
58
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
59
+ Any value provided at the operation level will override whatever is specified at the client level.
60
+
61
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
62
+ is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
63
+
64
+ :param obj circuit_breaker_strategy: (optional)
65
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
66
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
67
+ The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
68
+
69
+ :param function circuit_breaker_callback: (optional)
70
+ Callback function to receive any exceptions triggerred by the circuit breaker.
71
+
72
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
73
+ A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
74
+
75
+ :param allow_control_chars: (optional)
76
+ allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
77
+ allow control characters to be in the response object.
78
+ """
79
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("distributed_database"):
80
+ raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
81
+
82
+ validate_config(config, signer=kwargs.get('signer'))
83
+ if 'signer' in kwargs:
84
+ signer = kwargs['signer']
85
+
86
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
87
+ signer = get_signer_from_authentication_type(config)
88
+
89
+ else:
90
+ signer = Signer(
91
+ tenancy=config["tenancy"],
92
+ user=config["user"],
93
+ fingerprint=config["fingerprint"],
94
+ private_key_file_location=config.get("key_file"),
95
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
96
+ private_key_content=config.get("key_content")
97
+ )
98
+
99
+ base_client_init_kwargs = {
100
+ 'regional_client': True,
101
+ 'service_endpoint': kwargs.get('service_endpoint'),
102
+ 'base_path': '/20250101',
103
+ 'service_endpoint_template': 'https://globaldb.{region}.oci.{secondLevelDomain}',
104
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
105
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
106
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
107
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
108
+ }
109
+ if 'timeout' in kwargs:
110
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
111
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
112
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
113
+ if 'allow_control_chars' in kwargs:
114
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
115
+ self.base_client = BaseClient("distributed_db_private_endpoint_service", config, signer, distributed_database_type_mapping, **base_client_init_kwargs)
116
+ self.retry_strategy = kwargs.get('retry_strategy')
117
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
118
+
119
+ def change_distributed_database_private_endpoint_compartment(self, change_distributed_database_private_endpoint_compartment_details, distributed_database_private_endpoint_id, **kwargs):
120
+ """
121
+ Moves the DistributedDatabasePrivateEndpoint to the specified compartment.
122
+
123
+
124
+ :param oci.distributed_database.models.ChangeDistributedDatabasePrivateEndpointCompartmentDetails change_distributed_database_private_endpoint_compartment_details: (required)
125
+ Request to move the private endpoint to a different compartment.
126
+
127
+ :param str distributed_database_private_endpoint_id: (required)
128
+ Distributed Database PrivateEndpoint identifier
129
+
130
+ :param str opc_request_id: (optional)
131
+ The client request ID for tracing.
132
+
133
+ :param str if_match: (optional)
134
+ For optimistic concurrency control. In the PUT or DELETE call
135
+ for a resource, set the `if-match` parameter to the value of the
136
+ etag from a previous GET or POST response for that resource.
137
+ The resource will be updated or deleted only if the etag you
138
+ provide matches the resource's current etag value.
139
+
140
+ :param str opc_retry_token: (optional)
141
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
142
+ server error without risk of executing that same action again. Retry tokens expire after 24
143
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
144
+ has been deleted and purged from the system, then a retry of the original creation request
145
+ might be rejected.
146
+
147
+ :param obj retry_strategy: (optional)
148
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
149
+
150
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
151
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
152
+
153
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
154
+
155
+ :param bool allow_control_chars: (optional)
156
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
157
+ By default, the response will not allow control characters in strings
158
+
159
+ :return: A :class:`~oci.response.Response` object with data of type None
160
+ :rtype: :class:`~oci.response.Response`
161
+
162
+ :example:
163
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.1/distributeddatabase/change_distributed_database_private_endpoint_compartment.py.html>`__ to see an example of how to use change_distributed_database_private_endpoint_compartment API.
164
+ """
165
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
166
+ required_arguments = ['distributedDatabasePrivateEndpointId']
167
+ resource_path = "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}/actions/changeCompartment"
168
+ method = "POST"
169
+ operation_name = "change_distributed_database_private_endpoint_compartment"
170
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/ChangeDistributedDatabasePrivateEndpointCompartment"
171
+
172
+ # Don't accept unknown kwargs
173
+ expected_kwargs = [
174
+ "allow_control_chars",
175
+ "retry_strategy",
176
+ "opc_request_id",
177
+ "if_match",
178
+ "opc_retry_token"
179
+ ]
180
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
181
+ if extra_kwargs:
182
+ raise ValueError(
183
+ f"change_distributed_database_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}")
184
+
185
+ path_params = {
186
+ "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id
187
+ }
188
+
189
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
190
+
191
+ for (k, v) in six.iteritems(path_params):
192
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
193
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
194
+
195
+ header_params = {
196
+ "accept": "application/json",
197
+ "content-type": "application/json",
198
+ "opc-request-id": kwargs.get("opc_request_id", missing),
199
+ "if-match": kwargs.get("if_match", missing),
200
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
201
+ }
202
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
203
+
204
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
205
+ operation_retry_strategy=kwargs.get('retry_strategy'),
206
+ client_retry_strategy=self.retry_strategy
207
+ )
208
+ if retry_strategy is None:
209
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
210
+
211
+ if retry_strategy:
212
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
213
+ self.base_client.add_opc_retry_token_if_needed(header_params)
214
+ self.base_client.add_opc_client_retries_header(header_params)
215
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
216
+ return retry_strategy.make_retrying_call(
217
+ self.base_client.call_api,
218
+ resource_path=resource_path,
219
+ method=method,
220
+ path_params=path_params,
221
+ header_params=header_params,
222
+ body=change_distributed_database_private_endpoint_compartment_details,
223
+ allow_control_chars=kwargs.get('allow_control_chars'),
224
+ operation_name=operation_name,
225
+ api_reference_link=api_reference_link,
226
+ required_arguments=required_arguments)
227
+ else:
228
+ return self.base_client.call_api(
229
+ resource_path=resource_path,
230
+ method=method,
231
+ path_params=path_params,
232
+ header_params=header_params,
233
+ body=change_distributed_database_private_endpoint_compartment_details,
234
+ allow_control_chars=kwargs.get('allow_control_chars'),
235
+ operation_name=operation_name,
236
+ api_reference_link=api_reference_link,
237
+ required_arguments=required_arguments)
238
+
239
+ def create_distributed_database_private_endpoint(self, create_distributed_database_private_endpoint_details, **kwargs):
240
+ """
241
+ Creates a DistributedDatabasePrivateEndpoint.
242
+
243
+
244
+ :param oci.distributed_database.models.CreateDistributedDatabasePrivateEndpointDetails create_distributed_database_private_endpoint_details: (required)
245
+ Details of DistributedDatabasePrivateEndpoint to be created.
246
+
247
+ :param str opc_retry_token: (optional)
248
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
249
+ server error without risk of executing that same action again. Retry tokens expire after 24
250
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
251
+ has been deleted and purged from the system, then a retry of the original creation request
252
+ might be rejected.
253
+
254
+ :param str opc_request_id: (optional)
255
+ The client request ID for tracing.
256
+
257
+ :param obj retry_strategy: (optional)
258
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
259
+
260
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
261
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
262
+
263
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
264
+
265
+ :param bool allow_control_chars: (optional)
266
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
267
+ By default, the response will not allow control characters in strings
268
+
269
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.distributed_database.models.DistributedDatabasePrivateEndpoint`
270
+ :rtype: :class:`~oci.response.Response`
271
+
272
+ :example:
273
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.1/distributeddatabase/create_distributed_database_private_endpoint.py.html>`__ to see an example of how to use create_distributed_database_private_endpoint API.
274
+ """
275
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
276
+ required_arguments = []
277
+ resource_path = "/distributedDatabasePrivateEndpoints"
278
+ method = "POST"
279
+ operation_name = "create_distributed_database_private_endpoint"
280
+ api_reference_link = ""
281
+
282
+ # Don't accept unknown kwargs
283
+ expected_kwargs = [
284
+ "allow_control_chars",
285
+ "retry_strategy",
286
+ "opc_retry_token",
287
+ "opc_request_id"
288
+ ]
289
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
290
+ if extra_kwargs:
291
+ raise ValueError(
292
+ f"create_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}")
293
+
294
+ header_params = {
295
+ "accept": "application/json",
296
+ "content-type": "application/json",
297
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
298
+ "opc-request-id": kwargs.get("opc_request_id", missing)
299
+ }
300
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
301
+
302
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
303
+ operation_retry_strategy=kwargs.get('retry_strategy'),
304
+ client_retry_strategy=self.retry_strategy
305
+ )
306
+ if retry_strategy is None:
307
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
308
+
309
+ if retry_strategy:
310
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
311
+ self.base_client.add_opc_retry_token_if_needed(header_params)
312
+ self.base_client.add_opc_client_retries_header(header_params)
313
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
314
+ return retry_strategy.make_retrying_call(
315
+ self.base_client.call_api,
316
+ resource_path=resource_path,
317
+ method=method,
318
+ header_params=header_params,
319
+ body=create_distributed_database_private_endpoint_details,
320
+ response_type="DistributedDatabasePrivateEndpoint",
321
+ allow_control_chars=kwargs.get('allow_control_chars'),
322
+ operation_name=operation_name,
323
+ api_reference_link=api_reference_link,
324
+ required_arguments=required_arguments)
325
+ else:
326
+ return self.base_client.call_api(
327
+ resource_path=resource_path,
328
+ method=method,
329
+ header_params=header_params,
330
+ body=create_distributed_database_private_endpoint_details,
331
+ response_type="DistributedDatabasePrivateEndpoint",
332
+ allow_control_chars=kwargs.get('allow_control_chars'),
333
+ operation_name=operation_name,
334
+ api_reference_link=api_reference_link,
335
+ required_arguments=required_arguments)
336
+
337
+ def delete_distributed_database_private_endpoint(self, distributed_database_private_endpoint_id, **kwargs):
338
+ """
339
+ Deletes the given DistributedDatabasePrivateEndpoint.
340
+
341
+
342
+ :param str distributed_database_private_endpoint_id: (required)
343
+ Distributed Database PrivateEndpoint identifier
344
+
345
+ :param str opc_request_id: (optional)
346
+ The client request ID for tracing.
347
+
348
+ :param str opc_retry_token: (optional)
349
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
350
+ server error without risk of executing that same action again. Retry tokens expire after 24
351
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
352
+ has been deleted and purged from the system, then a retry of the original creation request
353
+ might be rejected.
354
+
355
+ :param str if_match: (optional)
356
+ For optimistic concurrency control. In the PUT or DELETE call
357
+ for a resource, set the `if-match` parameter to the value of the
358
+ etag from a previous GET or POST response for that resource.
359
+ The resource will be updated or deleted only if the etag you
360
+ provide matches the resource's current etag value.
361
+
362
+ :param obj retry_strategy: (optional)
363
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
364
+
365
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
366
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
367
+
368
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
369
+
370
+ :param bool allow_control_chars: (optional)
371
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
372
+ By default, the response will not allow control characters in strings
373
+
374
+ :return: A :class:`~oci.response.Response` object with data of type None
375
+ :rtype: :class:`~oci.response.Response`
376
+
377
+ :example:
378
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.1/distributeddatabase/delete_distributed_database_private_endpoint.py.html>`__ to see an example of how to use delete_distributed_database_private_endpoint API.
379
+ """
380
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
381
+ required_arguments = ['distributedDatabasePrivateEndpointId']
382
+ resource_path = "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}"
383
+ method = "DELETE"
384
+ operation_name = "delete_distributed_database_private_endpoint"
385
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/DeleteDistributedDatabasePrivateEndpoint"
386
+
387
+ # Don't accept unknown kwargs
388
+ expected_kwargs = [
389
+ "allow_control_chars",
390
+ "retry_strategy",
391
+ "opc_request_id",
392
+ "opc_retry_token",
393
+ "if_match"
394
+ ]
395
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
396
+ if extra_kwargs:
397
+ raise ValueError(
398
+ f"delete_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}")
399
+
400
+ path_params = {
401
+ "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id
402
+ }
403
+
404
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
405
+
406
+ for (k, v) in six.iteritems(path_params):
407
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
408
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
409
+
410
+ header_params = {
411
+ "accept": "application/json",
412
+ "content-type": "application/json",
413
+ "opc-request-id": kwargs.get("opc_request_id", missing),
414
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
415
+ "if-match": kwargs.get("if_match", missing)
416
+ }
417
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
418
+
419
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
420
+ operation_retry_strategy=kwargs.get('retry_strategy'),
421
+ client_retry_strategy=self.retry_strategy
422
+ )
423
+ if retry_strategy is None:
424
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
425
+
426
+ if retry_strategy:
427
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
428
+ self.base_client.add_opc_retry_token_if_needed(header_params)
429
+ self.base_client.add_opc_client_retries_header(header_params)
430
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
431
+ return retry_strategy.make_retrying_call(
432
+ self.base_client.call_api,
433
+ resource_path=resource_path,
434
+ method=method,
435
+ path_params=path_params,
436
+ header_params=header_params,
437
+ allow_control_chars=kwargs.get('allow_control_chars'),
438
+ operation_name=operation_name,
439
+ api_reference_link=api_reference_link,
440
+ required_arguments=required_arguments)
441
+ else:
442
+ return self.base_client.call_api(
443
+ resource_path=resource_path,
444
+ method=method,
445
+ path_params=path_params,
446
+ header_params=header_params,
447
+ allow_control_chars=kwargs.get('allow_control_chars'),
448
+ operation_name=operation_name,
449
+ api_reference_link=api_reference_link,
450
+ required_arguments=required_arguments)
451
+
452
+ def get_distributed_database_private_endpoint(self, distributed_database_private_endpoint_id, **kwargs):
453
+ """
454
+ Get the DistributedDatabasePrivateEndpoint resource.
455
+
456
+
457
+ :param str distributed_database_private_endpoint_id: (required)
458
+ Distributed Database PrivateEndpoint identifier
459
+
460
+ :param str if_none_match: (optional)
461
+ For conditional requests. In the GET call for a resource, set the
462
+ `If-None-Match` header to the value of the ETag from a previous GET (or
463
+ POST or PUT) response for that resource. The server will return with
464
+ either a 304 Not Modified response if the resource has not changed, or a
465
+ 200 OK response with the updated representation.
466
+
467
+ :param str opc_request_id: (optional)
468
+ The client request ID for tracing.
469
+
470
+ :param obj retry_strategy: (optional)
471
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
472
+
473
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
474
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
475
+
476
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
477
+
478
+ :param bool allow_control_chars: (optional)
479
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
480
+ By default, the response will not allow control characters in strings
481
+
482
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.distributed_database.models.DistributedDatabasePrivateEndpoint`
483
+ :rtype: :class:`~oci.response.Response`
484
+
485
+ :example:
486
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.1/distributeddatabase/get_distributed_database_private_endpoint.py.html>`__ to see an example of how to use get_distributed_database_private_endpoint API.
487
+ """
488
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
489
+ required_arguments = ['distributedDatabasePrivateEndpointId']
490
+ resource_path = "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}"
491
+ method = "GET"
492
+ operation_name = "get_distributed_database_private_endpoint"
493
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/GetDistributedDatabasePrivateEndpoint"
494
+
495
+ # Don't accept unknown kwargs
496
+ expected_kwargs = [
497
+ "allow_control_chars",
498
+ "retry_strategy",
499
+ "if_none_match",
500
+ "opc_request_id"
501
+ ]
502
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
503
+ if extra_kwargs:
504
+ raise ValueError(
505
+ f"get_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}")
506
+
507
+ path_params = {
508
+ "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id
509
+ }
510
+
511
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
512
+
513
+ for (k, v) in six.iteritems(path_params):
514
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
515
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
516
+
517
+ header_params = {
518
+ "accept": "application/json",
519
+ "content-type": "application/json",
520
+ "if-none-match": kwargs.get("if_none_match", missing),
521
+ "opc-request-id": kwargs.get("opc_request_id", missing)
522
+ }
523
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
524
+
525
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
526
+ operation_retry_strategy=kwargs.get('retry_strategy'),
527
+ client_retry_strategy=self.retry_strategy
528
+ )
529
+ if retry_strategy is None:
530
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
531
+
532
+ if retry_strategy:
533
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
534
+ self.base_client.add_opc_client_retries_header(header_params)
535
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
536
+ return retry_strategy.make_retrying_call(
537
+ self.base_client.call_api,
538
+ resource_path=resource_path,
539
+ method=method,
540
+ path_params=path_params,
541
+ header_params=header_params,
542
+ response_type="DistributedDatabasePrivateEndpoint",
543
+ allow_control_chars=kwargs.get('allow_control_chars'),
544
+ operation_name=operation_name,
545
+ api_reference_link=api_reference_link,
546
+ required_arguments=required_arguments)
547
+ else:
548
+ return self.base_client.call_api(
549
+ resource_path=resource_path,
550
+ method=method,
551
+ path_params=path_params,
552
+ header_params=header_params,
553
+ response_type="DistributedDatabasePrivateEndpoint",
554
+ allow_control_chars=kwargs.get('allow_control_chars'),
555
+ operation_name=operation_name,
556
+ api_reference_link=api_reference_link,
557
+ required_arguments=required_arguments)
558
+
559
+ def list_distributed_database_private_endpoints(self, compartment_id, **kwargs):
560
+ """
561
+ List of DistributedDatabasePrivateEndpoints.
562
+
563
+
564
+ :param str compartment_id: (required)
565
+ The ID of the compartment in which to list resources.
566
+
567
+ :param str lifecycle_state: (optional)
568
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
569
+
570
+ Allowed values are: "ACTIVE", "FAILED", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING"
571
+
572
+ :param int limit: (optional)
573
+ The maximum number of items to return.
574
+
575
+ :param str page: (optional)
576
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
577
+
578
+ :param str sort_order: (optional)
579
+ The sort order to use, either 'ASC' or 'DESC'.
580
+
581
+ Allowed values are: "ASC", "DESC"
582
+
583
+ :param str sort_by: (optional)
584
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
585
+
586
+ Allowed values are: "timeCreated", "timeUpdated"
587
+
588
+ :param str opc_request_id: (optional)
589
+ The client request ID for tracing.
590
+
591
+ :param str display_name: (optional)
592
+ A filter to return only private endpoint that match the entire name given. The match is not case sensitive.
593
+
594
+ :param obj retry_strategy: (optional)
595
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
596
+
597
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
598
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
599
+
600
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
601
+
602
+ :param bool allow_control_chars: (optional)
603
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
604
+ By default, the response will not allow control characters in strings
605
+
606
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.distributed_database.models.DistributedDatabasePrivateEndpointCollection`
607
+ :rtype: :class:`~oci.response.Response`
608
+
609
+ :example:
610
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.1/distributeddatabase/list_distributed_database_private_endpoints.py.html>`__ to see an example of how to use list_distributed_database_private_endpoints API.
611
+ """
612
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
613
+ required_arguments = ['compartmentId']
614
+ resource_path = "/distributedDatabasePrivateEndpoints"
615
+ method = "GET"
616
+ operation_name = "list_distributed_database_private_endpoints"
617
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpointCollection/ListDistributedDatabasePrivateEndpoints"
618
+
619
+ # Don't accept unknown kwargs
620
+ expected_kwargs = [
621
+ "allow_control_chars",
622
+ "retry_strategy",
623
+ "lifecycle_state",
624
+ "limit",
625
+ "page",
626
+ "sort_order",
627
+ "sort_by",
628
+ "opc_request_id",
629
+ "display_name"
630
+ ]
631
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
632
+ if extra_kwargs:
633
+ raise ValueError(
634
+ f"list_distributed_database_private_endpoints got unknown kwargs: {extra_kwargs!r}")
635
+
636
+ if 'lifecycle_state' in kwargs:
637
+ lifecycle_state_allowed_values = ["ACTIVE", "FAILED", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING"]
638
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
639
+ raise ValueError(
640
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
641
+ )
642
+
643
+ if 'sort_order' in kwargs:
644
+ sort_order_allowed_values = ["ASC", "DESC"]
645
+ if kwargs['sort_order'] not in sort_order_allowed_values:
646
+ raise ValueError(
647
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
648
+ )
649
+
650
+ if 'sort_by' in kwargs:
651
+ sort_by_allowed_values = ["timeCreated", "timeUpdated"]
652
+ if kwargs['sort_by'] not in sort_by_allowed_values:
653
+ raise ValueError(
654
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
655
+ )
656
+
657
+ query_params = {
658
+ "compartmentId": compartment_id,
659
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
660
+ "limit": kwargs.get("limit", missing),
661
+ "page": kwargs.get("page", missing),
662
+ "sortOrder": kwargs.get("sort_order", missing),
663
+ "sortBy": kwargs.get("sort_by", missing),
664
+ "displayName": kwargs.get("display_name", missing)
665
+ }
666
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
667
+
668
+ header_params = {
669
+ "accept": "application/json",
670
+ "content-type": "application/json",
671
+ "opc-request-id": kwargs.get("opc_request_id", missing)
672
+ }
673
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
674
+
675
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
676
+ operation_retry_strategy=kwargs.get('retry_strategy'),
677
+ client_retry_strategy=self.retry_strategy
678
+ )
679
+ if retry_strategy is None:
680
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
681
+
682
+ if retry_strategy:
683
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
684
+ self.base_client.add_opc_client_retries_header(header_params)
685
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
686
+ return retry_strategy.make_retrying_call(
687
+ self.base_client.call_api,
688
+ resource_path=resource_path,
689
+ method=method,
690
+ query_params=query_params,
691
+ header_params=header_params,
692
+ response_type="DistributedDatabasePrivateEndpointCollection",
693
+ allow_control_chars=kwargs.get('allow_control_chars'),
694
+ operation_name=operation_name,
695
+ api_reference_link=api_reference_link,
696
+ required_arguments=required_arguments)
697
+ else:
698
+ return self.base_client.call_api(
699
+ resource_path=resource_path,
700
+ method=method,
701
+ query_params=query_params,
702
+ header_params=header_params,
703
+ response_type="DistributedDatabasePrivateEndpointCollection",
704
+ allow_control_chars=kwargs.get('allow_control_chars'),
705
+ operation_name=operation_name,
706
+ api_reference_link=api_reference_link,
707
+ required_arguments=required_arguments)
708
+
709
+ def reinstate_proxy_instance(self, distributed_database_private_endpoint_id, **kwargs):
710
+ """
711
+ Reinstates the proxy instance associated with the DistributedDatabasePrivateEndpoint.
712
+
713
+
714
+ :param str distributed_database_private_endpoint_id: (required)
715
+ Distributed Database PrivateEndpoint identifier
716
+
717
+ :param str opc_request_id: (optional)
718
+ The client request ID for tracing.
719
+
720
+ :param str if_match: (optional)
721
+ For optimistic concurrency control. In the PUT or DELETE call
722
+ for a resource, set the `if-match` parameter to the value of the
723
+ etag from a previous GET or POST response for that resource.
724
+ The resource will be updated or deleted only if the etag you
725
+ provide matches the resource's current etag value.
726
+
727
+ :param str opc_retry_token: (optional)
728
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
729
+ server error without risk of executing that same action again. Retry tokens expire after 24
730
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
731
+ has been deleted and purged from the system, then a retry of the original creation request
732
+ might be rejected.
733
+
734
+ :param obj retry_strategy: (optional)
735
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
736
+
737
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
738
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
739
+
740
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
741
+
742
+ :param bool allow_control_chars: (optional)
743
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
744
+ By default, the response will not allow control characters in strings
745
+
746
+ :return: A :class:`~oci.response.Response` object with data of type None
747
+ :rtype: :class:`~oci.response.Response`
748
+
749
+ :example:
750
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.1/distributeddatabase/reinstate_proxy_instance.py.html>`__ to see an example of how to use reinstate_proxy_instance API.
751
+ """
752
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
753
+ required_arguments = ['distributedDatabasePrivateEndpointId']
754
+ resource_path = "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}/actions/reinstateProxyInstance"
755
+ method = "POST"
756
+ operation_name = "reinstate_proxy_instance"
757
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/ReinstateProxyInstance"
758
+
759
+ # Don't accept unknown kwargs
760
+ expected_kwargs = [
761
+ "allow_control_chars",
762
+ "retry_strategy",
763
+ "opc_request_id",
764
+ "if_match",
765
+ "opc_retry_token"
766
+ ]
767
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
768
+ if extra_kwargs:
769
+ raise ValueError(
770
+ f"reinstate_proxy_instance got unknown kwargs: {extra_kwargs!r}")
771
+
772
+ path_params = {
773
+ "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id
774
+ }
775
+
776
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
777
+
778
+ for (k, v) in six.iteritems(path_params):
779
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
780
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
781
+
782
+ header_params = {
783
+ "accept": "application/json",
784
+ "content-type": "application/json",
785
+ "opc-request-id": kwargs.get("opc_request_id", missing),
786
+ "if-match": kwargs.get("if_match", missing),
787
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
788
+ }
789
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
790
+
791
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
792
+ operation_retry_strategy=kwargs.get('retry_strategy'),
793
+ client_retry_strategy=self.retry_strategy
794
+ )
795
+ if retry_strategy is None:
796
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
797
+
798
+ if retry_strategy:
799
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
800
+ self.base_client.add_opc_retry_token_if_needed(header_params)
801
+ self.base_client.add_opc_client_retries_header(header_params)
802
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
803
+ return retry_strategy.make_retrying_call(
804
+ self.base_client.call_api,
805
+ resource_path=resource_path,
806
+ method=method,
807
+ path_params=path_params,
808
+ header_params=header_params,
809
+ allow_control_chars=kwargs.get('allow_control_chars'),
810
+ operation_name=operation_name,
811
+ api_reference_link=api_reference_link,
812
+ required_arguments=required_arguments)
813
+ else:
814
+ return self.base_client.call_api(
815
+ resource_path=resource_path,
816
+ method=method,
817
+ path_params=path_params,
818
+ header_params=header_params,
819
+ allow_control_chars=kwargs.get('allow_control_chars'),
820
+ operation_name=operation_name,
821
+ api_reference_link=api_reference_link,
822
+ required_arguments=required_arguments)
823
+
824
+ def update_distributed_database_private_endpoint(self, distributed_database_private_endpoint_id, update_distributed_database_private_endpoint_details, **kwargs):
825
+ """
826
+ Updates the configuration of DistributedDatabasePrivateEndpoint.
827
+
828
+
829
+ :param str distributed_database_private_endpoint_id: (required)
830
+ Distributed Database PrivateEndpoint identifier
831
+
832
+ :param oci.distributed_database.models.UpdateDistributedDatabasePrivateEndpointDetails update_distributed_database_private_endpoint_details: (required)
833
+ The configuration of private endpoint to be updated.
834
+
835
+ :param str opc_retry_token: (optional)
836
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
837
+ server error without risk of executing that same action again. Retry tokens expire after 24
838
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
839
+ has been deleted and purged from the system, then a retry of the original creation request
840
+ might be rejected.
841
+
842
+ :param str opc_request_id: (optional)
843
+ The client request ID for tracing.
844
+
845
+ :param str if_match: (optional)
846
+ For optimistic concurrency control. In the PUT or DELETE call
847
+ for a resource, set the `if-match` parameter to the value of the
848
+ etag from a previous GET or POST response for that resource.
849
+ The resource will be updated or deleted only if the etag you
850
+ provide matches the resource's current etag value.
851
+
852
+ :param obj retry_strategy: (optional)
853
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
854
+
855
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
856
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
857
+
858
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
859
+
860
+ :param bool allow_control_chars: (optional)
861
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
862
+ By default, the response will not allow control characters in strings
863
+
864
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.distributed_database.models.DistributedDatabasePrivateEndpoint`
865
+ :rtype: :class:`~oci.response.Response`
866
+
867
+ :example:
868
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.1/distributeddatabase/update_distributed_database_private_endpoint.py.html>`__ to see an example of how to use update_distributed_database_private_endpoint API.
869
+ """
870
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
871
+ required_arguments = ['distributedDatabasePrivateEndpointId']
872
+ resource_path = "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}"
873
+ method = "PUT"
874
+ operation_name = "update_distributed_database_private_endpoint"
875
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/UpdateDistributedDatabasePrivateEndpoint"
876
+
877
+ # Don't accept unknown kwargs
878
+ expected_kwargs = [
879
+ "allow_control_chars",
880
+ "retry_strategy",
881
+ "opc_retry_token",
882
+ "opc_request_id",
883
+ "if_match"
884
+ ]
885
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
886
+ if extra_kwargs:
887
+ raise ValueError(
888
+ f"update_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}")
889
+
890
+ path_params = {
891
+ "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id
892
+ }
893
+
894
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
895
+
896
+ for (k, v) in six.iteritems(path_params):
897
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
898
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
899
+
900
+ header_params = {
901
+ "accept": "application/json",
902
+ "content-type": "application/json",
903
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
904
+ "opc-request-id": kwargs.get("opc_request_id", missing),
905
+ "if-match": kwargs.get("if_match", missing)
906
+ }
907
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
908
+
909
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
910
+ operation_retry_strategy=kwargs.get('retry_strategy'),
911
+ client_retry_strategy=self.retry_strategy
912
+ )
913
+ if retry_strategy is None:
914
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
915
+
916
+ if retry_strategy:
917
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
918
+ self.base_client.add_opc_retry_token_if_needed(header_params)
919
+ self.base_client.add_opc_client_retries_header(header_params)
920
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
921
+ return retry_strategy.make_retrying_call(
922
+ self.base_client.call_api,
923
+ resource_path=resource_path,
924
+ method=method,
925
+ path_params=path_params,
926
+ header_params=header_params,
927
+ body=update_distributed_database_private_endpoint_details,
928
+ response_type="DistributedDatabasePrivateEndpoint",
929
+ allow_control_chars=kwargs.get('allow_control_chars'),
930
+ operation_name=operation_name,
931
+ api_reference_link=api_reference_link,
932
+ required_arguments=required_arguments)
933
+ else:
934
+ return self.base_client.call_api(
935
+ resource_path=resource_path,
936
+ method=method,
937
+ path_params=path_params,
938
+ header_params=header_params,
939
+ body=update_distributed_database_private_endpoint_details,
940
+ response_type="DistributedDatabasePrivateEndpoint",
941
+ allow_control_chars=kwargs.get('allow_control_chars'),
942
+ operation_name=operation_name,
943
+ api_reference_link=api_reference_link,
944
+ required_arguments=required_arguments)