oci 2.152.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 (376) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/addons/adk/auth/__init__.py +2 -0
  4. oci/addons/adk/auth/oci/__init__.py +2 -0
  5. oci/addons/adk/run/__init__.py +2 -0
  6. oci/adm/application_dependency_management_client.py +36 -36
  7. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  8. oci/ai_document/ai_service_document_client.py +26 -26
  9. oci/ai_language/ai_service_language_client.py +44 -44
  10. oci/ai_speech/ai_service_speech_client.py +19 -19
  11. oci/ai_vision/ai_service_vision_client.py +28 -28
  12. oci/analytics/analytics_client.py +24 -24
  13. oci/announcements_service/announcement_client.py +5 -5
  14. oci/announcements_service/announcement_subscription_client.py +9 -9
  15. oci/announcements_service/announcements_preferences_client.py +4 -4
  16. oci/announcements_service/service_client.py +1 -1
  17. oci/apigateway/api_gateway_client.py +21 -21
  18. oci/apigateway/deployment_client.py +6 -6
  19. oci/apigateway/gateway_client.py +6 -6
  20. oci/apigateway/subscribers_client.py +6 -6
  21. oci/apigateway/usage_plans_client.py +6 -6
  22. oci/apigateway/work_requests_client.py +5 -5
  23. oci/apm_config/config_client.py +12 -12
  24. oci/apm_control_plane/apm_domain_client.py +14 -14
  25. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  26. oci/apm_traces/attributes_client.py +8 -8
  27. oci/apm_traces/query_client.py +2 -2
  28. oci/apm_traces/trace_client.py +4 -4
  29. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  30. oci/artifacts/artifacts_client.py +32 -32
  31. oci/audit/audit_client.py +3 -3
  32. oci/autoscaling/auto_scaling_client.py +11 -11
  33. oci/bastion/bastion_client.py +15 -15
  34. oci/bds/bds_client.py +84 -84
  35. oci/blockchain/blockchain_platform_client.py +27 -27
  36. oci/budget/budget_client.py +10 -10
  37. oci/capacity_management/capacity_management_client.py +32 -32
  38. oci/certificates/certificates_client.py +5 -5
  39. oci/certificates_management/certificates_management_client.py +32 -32
  40. oci/cims/incident_client.py +6 -6
  41. oci/cloud_bridge/common_client.py +5 -5
  42. oci/cloud_bridge/discovery_client.py +15 -15
  43. oci/cloud_bridge/inventory_client.py +16 -16
  44. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  45. oci/cloud_guard/cloud_guard_client.py +155 -155
  46. oci/cloud_migrations/migration_client.py +43 -43
  47. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  48. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  49. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  50. oci/compute_instance_agent/plugin_client.py +2 -2
  51. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  52. oci/container_engine/container_engine_client.py +46 -46
  53. oci/container_instances/container_instance_client.py +18 -18
  54. oci/core/blockstorage_client.py +60 -60
  55. oci/core/compute_client.py +117 -117
  56. oci/core/compute_management_client.py +32 -32
  57. oci/core/virtual_network_client.py +258 -258
  58. oci/dashboard_service/dashboard_client.py +6 -6
  59. oci/dashboard_service/dashboard_group_client.py +6 -6
  60. oci/data_catalog/data_catalog_client.py +149 -149
  61. oci/data_flow/data_flow_client.py +45 -45
  62. oci/data_integration/data_integration_client.py +163 -163
  63. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  64. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  65. oci/data_safe/data_safe_client.py +317 -317
  66. oci/data_science/data_science_client.py +145 -145
  67. oci/database/database_client.py +745 -469
  68. oci/database/models/__init__.py +2 -0
  69. oci/database/models/autonomous_db_version_summary.py +31 -0
  70. oci/database/models/backup.py +4 -2
  71. oci/database/models/backup_summary.py +4 -2
  72. oci/database/models/create_external_backup_job_details.py +4 -4
  73. oci/database/models/db_system.py +4 -2
  74. oci/database/models/db_system_summary.py +4 -2
  75. oci/database/models/db_system_upgrade_summary.py +152 -0
  76. oci/database/models/external_container_database.py +4 -2
  77. oci/database/models/external_container_database_summary.py +4 -2
  78. oci/database/models/external_database_base.py +4 -2
  79. oci/database/models/external_non_container_database.py +4 -2
  80. oci/database/models/external_non_container_database_summary.py +4 -2
  81. oci/database/models/external_pluggable_database.py +4 -2
  82. oci/database/models/external_pluggable_database_summary.py +4 -2
  83. oci/database_management/db_management_client.py +229 -229
  84. oci/database_management/diagnosability_client.py +4 -4
  85. oci/database_management/managed_my_sql_databases_client.py +7 -7
  86. oci/database_management/perfhub_client.py +1 -1
  87. oci/database_management/sql_tuning_client.py +17 -17
  88. oci/database_migration/database_migration_client.py +42 -42
  89. oci/database_tools/database_tools_client.py +23 -23
  90. oci/dblm/db_life_cycle_management_client.py +14 -14
  91. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  92. oci/delegate_access_control/work_request_client.py +4 -4
  93. oci/demand_signal/occ_demand_signal_client.py +7 -7
  94. oci/desktops/desktop_service_client.py +21 -21
  95. oci/devops/devops_client.py +141 -141
  96. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  97. oci/distributed_database/__init__.py +20 -0
  98. oci/distributed_database/distributed_autonomous_db_service_client.py +2315 -0
  99. oci/distributed_database/distributed_autonomous_db_service_client_composite_operations.py +605 -0
  100. oci/distributed_database/distributed_db_private_endpoint_service_client.py +944 -0
  101. oci/distributed_database/distributed_db_private_endpoint_service_client_composite_operations.py +238 -0
  102. oci/distributed_database/distributed_db_service_client.py +2435 -0
  103. oci/distributed_database/distributed_db_service_client_composite_operations.py +647 -0
  104. oci/distributed_database/distributed_db_work_request_service_client.py +654 -0
  105. oci/distributed_database/distributed_db_work_request_service_client_composite_operations.py +26 -0
  106. oci/distributed_database/models/__init__.py +158 -0
  107. oci/distributed_database/models/add_distributed_autonomous_database_gds_control_node_details.py +105 -0
  108. oci/distributed_database/models/add_distributed_database_gds_control_node_details.py +105 -0
  109. oci/distributed_database/models/catalog_peer_with_dedicated_infra.py +331 -0
  110. oci/distributed_database/models/catalog_peer_with_exadb_xs.py +331 -0
  111. oci/distributed_database/models/change_distributed_autonomous_database_compartment_details.py +74 -0
  112. oci/distributed_database/models/change_distributed_database_compartment_details.py +74 -0
  113. oci/distributed_database/models/change_distributed_database_private_endpoint_compartment_details.py +74 -0
  114. oci/distributed_database/models/change_distributed_db_backup_config_details.py +66 -0
  115. oci/distributed_database/models/configure_distributed_autonomous_database_gsms_details.py +103 -0
  116. oci/distributed_database/models/configure_distributed_database_gsms_details.py +103 -0
  117. oci/distributed_database/models/create_distributed_autonomous_database_catalog_details.py +101 -0
  118. oci/distributed_database/models/create_distributed_autonomous_database_catalog_with_dedicated_infra_details.py +342 -0
  119. oci/distributed_database/models/create_distributed_autonomous_database_details.py +799 -0
  120. oci/distributed_database/models/create_distributed_autonomous_database_shard_details.py +101 -0
  121. oci/distributed_database/models/create_distributed_autonomous_database_shard_with_dedicated_infra_details.py +377 -0
  122. oci/distributed_database/models/create_distributed_database_catalog_details.py +99 -0
  123. oci/distributed_database/models/create_distributed_database_catalog_with_exadb_xs_details.py +282 -0
  124. oci/distributed_database/models/create_distributed_database_details.py +810 -0
  125. oci/distributed_database/models/create_distributed_database_private_endpoint_details.py +260 -0
  126. oci/distributed_database/models/create_distributed_database_shard_details.py +99 -0
  127. oci/distributed_database/models/create_distributed_database_shard_with_exadb_xs_details.py +282 -0
  128. oci/distributed_database/models/distributed_autonomous_database.py +1143 -0
  129. oci/distributed_database/models/distributed_autonomous_database_associated_with_private_endpoint.py +105 -0
  130. oci/distributed_database/models/distributed_autonomous_database_catalog.py +194 -0
  131. oci/distributed_database/models/distributed_autonomous_database_catalog_with_dedicated_infra.py +559 -0
  132. oci/distributed_database/models/distributed_autonomous_database_collection.py +70 -0
  133. oci/distributed_database/models/distributed_autonomous_database_connection_string.py +70 -0
  134. oci/distributed_database/models/distributed_autonomous_database_gsm.py +385 -0
  135. oci/distributed_database/models/distributed_autonomous_database_gsm_image.py +105 -0
  136. oci/distributed_database/models/distributed_autonomous_database_shard.py +194 -0
  137. oci/distributed_database/models/distributed_autonomous_database_shard_with_dedicated_infra.py +592 -0
  138. oci/distributed_database/models/distributed_autonomous_database_summary.py +935 -0
  139. oci/distributed_database/models/distributed_autonomous_db_metadata.py +70 -0
  140. oci/distributed_database/models/distributed_database.py +1154 -0
  141. oci/distributed_database/models/distributed_database_associated_with_private_endpoint.py +105 -0
  142. oci/distributed_database/models/distributed_database_catalog.py +192 -0
  143. oci/distributed_database/models/distributed_database_catalog_with_exadb_xs.py +466 -0
  144. oci/distributed_database/models/distributed_database_collection.py +70 -0
  145. oci/distributed_database/models/distributed_database_gsm.py +385 -0
  146. oci/distributed_database/models/distributed_database_private_endpoint.py +639 -0
  147. oci/distributed_database/models/distributed_database_private_endpoint_collection.py +70 -0
  148. oci/distributed_database/models/distributed_database_private_endpoint_summary.py +479 -0
  149. oci/distributed_database/models/distributed_database_shard.py +192 -0
  150. oci/distributed_database/models/distributed_database_shard_with_exadb_xs.py +499 -0
  151. oci/distributed_database/models/distributed_database_summary.py +904 -0
  152. oci/distributed_database/models/distributed_db_backup_config.py +536 -0
  153. oci/distributed_database/models/distributed_db_backup_destination.py +362 -0
  154. oci/distributed_database/models/distributed_db_connection_string.py +70 -0
  155. oci/distributed_database/models/distributed_db_gsm_image.py +105 -0
  156. oci/distributed_database/models/distributed_db_metadata.py +70 -0
  157. oci/distributed_database/models/generate_distributed_autonomous_database_wallet_details.py +70 -0
  158. oci/distributed_database/models/generate_distributed_database_wallet_details.py +70 -0
  159. oci/distributed_database/models/patch_distributed_autonomous_database_details.py +73 -0
  160. oci/distributed_database/models/patch_distributed_database_details.py +73 -0
  161. oci/distributed_database/models/patch_insert_instruction.py +87 -0
  162. oci/distributed_database/models/patch_instruction.py +154 -0
  163. oci/distributed_database/models/patch_merge_instruction.py +95 -0
  164. oci/distributed_database/models/patch_remove_instruction.py +57 -0
  165. oci/distributed_database/models/shard_peer_with_dedicated_infra.py +331 -0
  166. oci/distributed_database/models/shard_peer_with_exadb_xs.py +331 -0
  167. oci/distributed_database/models/update_distributed_autonomous_database_details.py +136 -0
  168. oci/distributed_database/models/update_distributed_database_details.py +136 -0
  169. oci/distributed_database/models/update_distributed_database_private_endpoint_details.py +198 -0
  170. oci/distributed_database/models/upload_distributed_autonomous_database_signed_certificate_and_generate_wallet_details.py +71 -0
  171. oci/distributed_database/models/upload_distributed_database_signed_certificate_and_generate_wallet_details.py +71 -0
  172. oci/distributed_database/models/work_request.py +516 -0
  173. oci/distributed_database/models/work_request_error.py +134 -0
  174. oci/distributed_database/models/work_request_error_collection.py +70 -0
  175. oci/distributed_database/models/work_request_log_entry.py +101 -0
  176. oci/distributed_database/models/work_request_log_entry_collection.py +70 -0
  177. oci/distributed_database/models/work_request_resource.py +232 -0
  178. oci/distributed_database/models/work_request_summary.py +516 -0
  179. oci/distributed_database/models/work_request_summary_collection.py +70 -0
  180. oci/dns/dns_client.py +54 -54
  181. oci/dts/appliance_export_job_client.py +6 -6
  182. oci/dts/shipping_vendors_client.py +1 -1
  183. oci/dts/transfer_appliance_client.py +8 -8
  184. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  185. oci/dts/transfer_device_client.py +5 -5
  186. oci/dts/transfer_job_client.py +6 -6
  187. oci/dts/transfer_package_client.py +7 -7
  188. oci/em_warehouse/em_warehouse_client.py +13 -13
  189. oci/email/email_client.py +31 -31
  190. oci/email_data_plane/email_dp_client.py +1 -1
  191. oci/events/events_client.py +6 -6
  192. oci/file_storage/file_storage_client.py +74 -74
  193. oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
  194. oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
  195. oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
  196. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  197. oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
  198. oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
  199. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
  200. oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
  201. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  202. oci/functions/functions_invoke_client.py +1 -1
  203. oci/functions/functions_management_client.py +16 -16
  204. oci/fusion_apps/fusion_applications_client.py +41 -41
  205. oci/generative_ai/generative_ai_client.py +22 -22
  206. oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
  207. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
  208. oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
  209. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  210. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  211. oci/golden_gate/golden_gate_client.py +89 -89
  212. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  213. oci/governance_rules_control_plane/work_request_client.py +5 -5
  214. oci/healthchecks/health_checks_client.py +17 -17
  215. oci/identity/identity_client.py +145 -145
  216. oci/identity_data_plane/dataplane_client.py +2 -2
  217. oci/identity_domains/identity_domains_client.py +311 -311
  218. oci/integration/integration_instance_client.py +19 -19
  219. oci/jms/java_management_service_client.py +79 -79
  220. oci/jms_java_downloads/java_download_client.py +25 -25
  221. oci/key_management/ekm_client.py +5 -5
  222. oci/key_management/kms_crypto_client.py +6 -6
  223. oci/key_management/kms_hsm_cluster_client.py +12 -12
  224. oci/key_management/kms_management_client.py +21 -21
  225. oci/key_management/kms_vault_client.py +14 -14
  226. oci/license_manager/license_manager_client.py +18 -18
  227. oci/limits/limits_client.py +4 -4
  228. oci/limits/quotas_client.py +7 -7
  229. oci/load_balancer/load_balancer_client.py +61 -61
  230. oci/lockbox/lockbox_client.py +24 -24
  231. oci/log_analytics/log_analytics_client.py +200 -200
  232. oci/logging/logging_management_client.py +30 -30
  233. oci/loggingingestion/logging_client.py +1 -1
  234. oci/loggingsearch/log_search_client.py +1 -1
  235. oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
  236. oci/management_agent/management_agent_client.py +28 -28
  237. oci/management_dashboard/dashx_apis_client.py +14 -14
  238. oci/marketplace/account_client.py +2 -2
  239. oci/marketplace/marketplace_client.py +30 -30
  240. oci/marketplace_private_offer/attachment_client.py +5 -5
  241. oci/marketplace_private_offer/offer_client.py +6 -6
  242. oci/marketplace_publisher/attachment_client.py +5 -5
  243. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  244. oci/marketplace_publisher/offer_client.py +6 -6
  245. oci/media_services/media_services_client.py +60 -60
  246. oci/media_services/media_stream_client.py +2 -2
  247. oci/mngdmac/mac_device_client.py +3 -3
  248. oci/mngdmac/mac_order_client.py +11 -11
  249. oci/model_deployment/model_deployment_client.py +2 -2
  250. oci/monitoring/monitoring_client.py +18 -18
  251. oci/mysql/channels_client.py +7 -7
  252. oci/mysql/db_backups_client.py +7 -7
  253. oci/mysql/db_system_client.py +17 -17
  254. oci/mysql/models/create_db_system_details.py +31 -0
  255. oci/mysql/models/db_system.py +31 -0
  256. oci/mysql/models/db_system_snapshot.py +31 -0
  257. oci/mysql/models/replica.py +31 -0
  258. oci/mysql/models/replica_overrides.py +33 -2
  259. oci/mysql/models/replica_summary.py +31 -0
  260. oci/mysql/models/update_db_system_details.py +31 -0
  261. oci/mysql/mysqlaas_client.py +7 -7
  262. oci/mysql/replicas_client.py +5 -5
  263. oci/mysql/work_requests_client.py +4 -4
  264. oci/network_firewall/network_firewall_client.py +86 -86
  265. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  266. oci/nosql/nosql_client.py +24 -24
  267. oci/object_storage/object_storage_client.py +55 -55
  268. oci/oce/oce_instance_client.py +10 -10
  269. oci/oci_control_center/occ_metrics_client.py +3 -3
  270. oci/ocvp/cluster_client.py +5 -5
  271. oci/ocvp/esxi_host_client.py +8 -8
  272. oci/ocvp/sddc_client.py +14 -14
  273. oci/ocvp/work_request_client.py +4 -4
  274. oci/oda/management_client.py +59 -59
  275. oci/oda/oda_client.py +17 -17
  276. oci/oda/odapackage_client.py +7 -7
  277. oci/onesubscription/billing_schedule_client.py +1 -1
  278. oci/onesubscription/commitment_client.py +2 -2
  279. oci/onesubscription/computed_usage_client.py +3 -3
  280. oci/onesubscription/invoice_summary_client.py +2 -2
  281. oci/onesubscription/organization_subscription_client.py +1 -1
  282. oci/onesubscription/ratecard_client.py +1 -1
  283. oci/onesubscription/subscribed_service_client.py +2 -2
  284. oci/onesubscription/subscription_client.py +1 -1
  285. oci/ons/notification_control_plane_client.py +6 -6
  286. oci/ons/notification_data_plane_client.py +10 -10
  287. oci/opa/opa_instance_client.py +13 -13
  288. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  289. oci/opensearch/opensearch_cluster_client.py +17 -17
  290. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  291. oci/operator_access_control/access_requests_client.py +10 -10
  292. oci/operator_access_control/operator_actions_client.py +2 -2
  293. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  294. oci/operator_access_control/operator_control_client.py +6 -6
  295. oci/opsi/operations_insights_client.py +181 -181
  296. oci/optimizer/optimizer_client.py +26 -26
  297. oci/os_management/event_client.py +8 -8
  298. oci/os_management/os_management_client.py +69 -69
  299. oci/os_management_hub/event_client.py +8 -8
  300. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  301. oci/os_management_hub/managed_instance_client.py +33 -33
  302. oci/os_management_hub/managed_instance_group_client.py +26 -26
  303. oci/os_management_hub/management_station_client.py +10 -10
  304. oci/os_management_hub/onboarding_client.py +13 -13
  305. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  306. oci/os_management_hub/scheduled_job_client.py +7 -7
  307. oci/os_management_hub/software_source_client.py +33 -33
  308. oci/os_management_hub/work_request_client.py +5 -5
  309. oci/osp_gateway/address_rule_service_client.py +1 -1
  310. oci/osp_gateway/address_service_client.py +2 -2
  311. oci/osp_gateway/invoice_service_client.py +5 -5
  312. oci/osp_gateway/subscription_service_client.py +5 -5
  313. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  314. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  315. oci/osub_subscription/commitment_client.py +2 -2
  316. oci/osub_subscription/ratecard_client.py +1 -1
  317. oci/osub_subscription/subscription_client.py +1 -1
  318. oci/osub_usage/computed_usage_client.py +3 -3
  319. oci/psql/postgresql_client.py +34 -34
  320. oci/queue/queue_admin_client.py +11 -11
  321. oci/queue/queue_client.py +8 -8
  322. oci/recovery/database_recovery_client.py +26 -26
  323. oci/redis/redis_cluster_client.py +12 -12
  324. oci/resource_manager/resource_manager_client.py +52 -52
  325. oci/resource_scheduler/schedule_client.py +14 -14
  326. oci/resource_search/resource_search_client.py +3 -3
  327. oci/rover/rover_bundle_client.py +8 -8
  328. oci/rover/rover_cluster_client.py +8 -8
  329. oci/rover/rover_entitlement_client.py +6 -6
  330. oci/rover/rover_node_client.py +15 -15
  331. oci/rover/shape_client.py +1 -1
  332. oci/rover/work_requests_client.py +5 -5
  333. oci/sch/connector_plugins_client.py +2 -2
  334. oci/sch/service_connector_client.py +12 -12
  335. oci/secrets/secrets_client.py +3 -3
  336. oci/security_attribute/security_attribute_client.py +18 -18
  337. oci/service_catalog/service_catalog_client.py +26 -26
  338. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  339. oci/service_mesh/service_mesh_client.py +48 -48
  340. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  341. oci/streaming/stream_admin_client.py +18 -18
  342. oci/streaming/stream_client.py +8 -8
  343. oci/tenant_manager_control_plane/domain_client.py +5 -5
  344. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  345. oci/tenant_manager_control_plane/governance_client.py +2 -2
  346. oci/tenant_manager_control_plane/link_client.py +3 -3
  347. oci/tenant_manager_control_plane/orders_client.py +2 -2
  348. oci/tenant_manager_control_plane/organization_client.py +10 -10
  349. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  350. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  351. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  352. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  353. oci/threat_intelligence/threatintel_client.py +5 -5
  354. oci/usage/resources_client.py +2 -2
  355. oci/usage/rewards_client.py +6 -6
  356. oci/usage/usagelimits_client.py +1 -1
  357. oci/usage_api/usageapi_client.py +33 -33
  358. oci/vault/vaults_client.py +13 -13
  359. oci/vbs_inst/vbs_instance_client.py +10 -10
  360. oci/version.py +1 -1
  361. oci/visual_builder/vb_instance_client.py +14 -14
  362. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  363. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  364. oci/waa/waa_client.py +13 -13
  365. oci/waa/work_request_client.py +4 -4
  366. oci/waas/redirect_client.py +6 -6
  367. oci/waas/waas_client.py +66 -66
  368. oci/waf/waf_client.py +24 -24
  369. oci/work_requests/work_request_client.py +4 -4
  370. oci/zpr/zpr_client.py +15 -15
  371. {oci-2.152.0.dist-info → oci-2.152.1.dist-info}/METADATA +1 -1
  372. {oci-2.152.0.dist-info → oci-2.152.1.dist-info}/RECORD +376 -292
  373. {oci-2.152.0.dist-info → oci-2.152.1.dist-info}/LICENSE.txt +0 -0
  374. {oci-2.152.0.dist-info → oci-2.152.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  375. {oci-2.152.0.dist-info → oci-2.152.1.dist-info}/WHEEL +0 -0
  376. {oci-2.152.0.dist-info → oci-2.152.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,647 @@
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
+ import oci # noqa: F401
8
+ from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
9
+
10
+
11
+ class DistributedDbServiceClientCompositeOperations(object):
12
+ """
13
+ This class provides a wrapper around :py:class:`~oci.distributed_database.DistributedDbServiceClient` and offers convenience methods
14
+ for operations that would otherwise need to be chained together. For example, instead of performing an action
15
+ on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
16
+ to enter a given state, you can call a single method in this class to accomplish the same functionality
17
+ """
18
+
19
+ def __init__(self, client, **kwargs):
20
+ """
21
+ Creates a new DistributedDbServiceClientCompositeOperations object
22
+
23
+ :param DistributedDbServiceClient client:
24
+ The service client which will be wrapped by this object
25
+ """
26
+ self.client = client
27
+
28
+ def add_distributed_database_gds_control_node_and_wait_for_state(self, distributed_database_id, add_distributed_database_gds_control_node_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
29
+ """
30
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.add_distributed_database_gds_control_node` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
31
+ to enter the given state(s).
32
+
33
+ :param str distributed_database_id: (required)
34
+ Globally distributed database identifier
35
+
36
+ :param oci.distributed_database.models.AddDistributedDatabaseGdsControlNodeDetails add_distributed_database_gds_control_node_details: (required)
37
+ Details required to provision the new Global database services control(GDS CTL) node for the Distributed database.
38
+
39
+ :param list[str] wait_for_states:
40
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
41
+
42
+ :param dict operation_kwargs:
43
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.add_distributed_database_gds_control_node`
44
+
45
+ :param dict waiter_kwargs:
46
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
47
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
48
+ """
49
+ operation_result = self.client.add_distributed_database_gds_control_node(distributed_database_id, add_distributed_database_gds_control_node_details, **operation_kwargs)
50
+ if not wait_for_states:
51
+ return operation_result
52
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
53
+ if 'opc-work-request-id' not in operation_result.headers:
54
+ return operation_result
55
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
56
+
57
+ try:
58
+ waiter_result = oci.wait_until(
59
+ self.client,
60
+ self.client.get_work_request(wait_for_resource_id),
61
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
62
+ **waiter_kwargs
63
+ )
64
+ result_to_return = waiter_result
65
+
66
+ return result_to_return
67
+ except Exception as e:
68
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
69
+
70
+ def change_distributed_database_compartment_and_wait_for_state(self, change_distributed_database_compartment_details, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
71
+ """
72
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.change_distributed_database_compartment` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
73
+ to enter the given state(s).
74
+
75
+ :param oci.distributed_database.models.ChangeDistributedDatabaseCompartmentDetails change_distributed_database_compartment_details: (required)
76
+ Request to move the Globally distributed database to a different compartment.
77
+
78
+ :param str distributed_database_id: (required)
79
+ Globally distributed database identifier
80
+
81
+ :param list[str] wait_for_states:
82
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
83
+
84
+ :param dict operation_kwargs:
85
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.change_distributed_database_compartment`
86
+
87
+ :param dict waiter_kwargs:
88
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
89
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
90
+ """
91
+ operation_result = self.client.change_distributed_database_compartment(change_distributed_database_compartment_details, distributed_database_id, **operation_kwargs)
92
+ if not wait_for_states:
93
+ return operation_result
94
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
95
+ if 'opc-work-request-id' not in operation_result.headers:
96
+ return operation_result
97
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
98
+
99
+ try:
100
+ waiter_result = oci.wait_until(
101
+ self.client,
102
+ self.client.get_work_request(wait_for_resource_id),
103
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
104
+ **waiter_kwargs
105
+ )
106
+ result_to_return = waiter_result
107
+
108
+ return result_to_return
109
+ except Exception as e:
110
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
111
+
112
+ def change_distributed_db_backup_config_and_wait_for_state(self, distributed_database_id, change_distributed_db_backup_config_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
113
+ """
114
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.change_distributed_db_backup_config` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
115
+ to enter the given state(s).
116
+
117
+ :param str distributed_database_id: (required)
118
+ Globally distributed database identifier
119
+
120
+ :param oci.distributed_database.models.ChangeDistributedDbBackupConfigDetails change_distributed_db_backup_config_details: (required)
121
+ Details of the DistributedDbBackupConfig for the Globally distributed database.
122
+
123
+ :param list[str] wait_for_states:
124
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
125
+
126
+ :param dict operation_kwargs:
127
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.change_distributed_db_backup_config`
128
+
129
+ :param dict waiter_kwargs:
130
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
131
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
132
+ """
133
+ operation_result = self.client.change_distributed_db_backup_config(distributed_database_id, change_distributed_db_backup_config_details, **operation_kwargs)
134
+ if not wait_for_states:
135
+ return operation_result
136
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
137
+ if 'opc-work-request-id' not in operation_result.headers:
138
+ return operation_result
139
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
140
+
141
+ try:
142
+ waiter_result = oci.wait_until(
143
+ self.client,
144
+ self.client.get_work_request(wait_for_resource_id),
145
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
146
+ **waiter_kwargs
147
+ )
148
+ result_to_return = waiter_result
149
+
150
+ return result_to_return
151
+ except Exception as e:
152
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
153
+
154
+ def configure_distributed_database_gsms_and_wait_for_state(self, configure_distributed_database_gsms_details, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
155
+ """
156
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.configure_distributed_database_gsms` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
157
+ to enter the given state(s).
158
+
159
+ :param oci.distributed_database.models.ConfigureDistributedDatabaseGsmsDetails configure_distributed_database_gsms_details: (required)
160
+ Details to configure the new GSM instances for the distributed database.
161
+
162
+ :param str distributed_database_id: (required)
163
+ Globally distributed database identifier
164
+
165
+ :param list[str] wait_for_states:
166
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
167
+
168
+ :param dict operation_kwargs:
169
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.configure_distributed_database_gsms`
170
+
171
+ :param dict waiter_kwargs:
172
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
173
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
174
+ """
175
+ operation_result = self.client.configure_distributed_database_gsms(configure_distributed_database_gsms_details, distributed_database_id, **operation_kwargs)
176
+ if not wait_for_states:
177
+ return operation_result
178
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
179
+ if 'opc-work-request-id' not in operation_result.headers:
180
+ return operation_result
181
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
182
+
183
+ try:
184
+ waiter_result = oci.wait_until(
185
+ self.client,
186
+ self.client.get_work_request(wait_for_resource_id),
187
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
188
+ **waiter_kwargs
189
+ )
190
+ result_to_return = waiter_result
191
+
192
+ return result_to_return
193
+ except Exception as e:
194
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
195
+
196
+ def configure_distributed_database_sharding_and_wait_for_state(self, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
197
+ """
198
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.configure_distributed_database_sharding` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
199
+ to enter the given state(s).
200
+
201
+ :param str distributed_database_id: (required)
202
+ Globally distributed database identifier
203
+
204
+ :param list[str] wait_for_states:
205
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
206
+
207
+ :param dict operation_kwargs:
208
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.configure_distributed_database_sharding`
209
+
210
+ :param dict waiter_kwargs:
211
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
212
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
213
+ """
214
+ operation_result = self.client.configure_distributed_database_sharding(distributed_database_id, **operation_kwargs)
215
+ if not wait_for_states:
216
+ return operation_result
217
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
218
+ if 'opc-work-request-id' not in operation_result.headers:
219
+ return operation_result
220
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
221
+
222
+ try:
223
+ waiter_result = oci.wait_until(
224
+ self.client,
225
+ self.client.get_work_request(wait_for_resource_id),
226
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
227
+ **waiter_kwargs
228
+ )
229
+ result_to_return = waiter_result
230
+
231
+ return result_to_return
232
+ except Exception as e:
233
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
234
+
235
+ def create_distributed_database_and_wait_for_state(self, create_distributed_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
236
+ """
237
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.create_distributed_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
238
+ to enter the given state(s).
239
+
240
+ :param oci.distributed_database.models.CreateDistributedDatabaseDetails create_distributed_database_details: (required)
241
+ Details of the Globally distributed database to be created.
242
+
243
+ :param list[str] wait_for_states:
244
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
245
+
246
+ :param dict operation_kwargs:
247
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.create_distributed_database`
248
+
249
+ :param dict waiter_kwargs:
250
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
251
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
252
+ """
253
+ operation_result = self.client.create_distributed_database(create_distributed_database_details, **operation_kwargs)
254
+ if not wait_for_states:
255
+ return operation_result
256
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
257
+ if 'opc-work-request-id' not in operation_result.headers:
258
+ return operation_result
259
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
260
+
261
+ try:
262
+ waiter_result = oci.wait_until(
263
+ self.client,
264
+ self.client.get_work_request(wait_for_resource_id),
265
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
266
+ **waiter_kwargs
267
+ )
268
+ result_to_return = waiter_result
269
+
270
+ return result_to_return
271
+ except Exception as e:
272
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
273
+
274
+ def delete_distributed_database_and_wait_for_state(self, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
275
+ """
276
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.delete_distributed_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
277
+ to enter the given state(s).
278
+
279
+ :param str distributed_database_id: (required)
280
+ Globally distributed database identifier
281
+
282
+ :param list[str] wait_for_states:
283
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
284
+
285
+ :param dict operation_kwargs:
286
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.delete_distributed_database`
287
+
288
+ :param dict waiter_kwargs:
289
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
290
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
291
+ """
292
+ operation_result = None
293
+ try:
294
+ operation_result = self.client.delete_distributed_database(distributed_database_id, **operation_kwargs)
295
+ except oci.exceptions.ServiceError as e:
296
+ if e.status == 404:
297
+ return WAIT_RESOURCE_NOT_FOUND
298
+ else:
299
+ raise e
300
+
301
+ if not wait_for_states:
302
+ return operation_result
303
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
304
+ if 'opc-work-request-id' not in operation_result.headers:
305
+ return operation_result
306
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
307
+
308
+ try:
309
+ waiter_result = oci.wait_until(
310
+ self.client,
311
+ self.client.get_work_request(wait_for_resource_id),
312
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
313
+ **waiter_kwargs
314
+ )
315
+ result_to_return = waiter_result
316
+
317
+ return result_to_return
318
+ except Exception as e:
319
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
320
+
321
+ def generate_distributed_database_gsm_certificate_signing_request_and_wait_for_state(self, distributed_database_id, ca_bundle_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
322
+ """
323
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.generate_distributed_database_gsm_certificate_signing_request` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
324
+ to enter the given state(s).
325
+
326
+ :param str distributed_database_id: (required)
327
+ Globally distributed database identifier
328
+
329
+ :param str ca_bundle_id: (required)
330
+ The ID of the Ca Bundle.
331
+
332
+ :param list[str] wait_for_states:
333
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
334
+
335
+ :param dict operation_kwargs:
336
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.generate_distributed_database_gsm_certificate_signing_request`
337
+
338
+ :param dict waiter_kwargs:
339
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
340
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
341
+ """
342
+ operation_result = self.client.generate_distributed_database_gsm_certificate_signing_request(distributed_database_id, ca_bundle_id, **operation_kwargs)
343
+ if not wait_for_states:
344
+ return operation_result
345
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
346
+ if 'opc-work-request-id' not in operation_result.headers:
347
+ return operation_result
348
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
349
+
350
+ try:
351
+ waiter_result = oci.wait_until(
352
+ self.client,
353
+ self.client.get_work_request(wait_for_resource_id),
354
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
355
+ **waiter_kwargs
356
+ )
357
+ result_to_return = waiter_result
358
+
359
+ return result_to_return
360
+ except Exception as e:
361
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
362
+
363
+ def patch_distributed_database_and_wait_for_state(self, distributed_database_id, patch_distributed_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
364
+ """
365
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.patch_distributed_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
366
+ to enter the given state(s).
367
+
368
+ :param str distributed_database_id: (required)
369
+ Globally distributed database identifier
370
+
371
+ :param oci.distributed_database.models.PatchDistributedDatabaseDetails patch_distributed_database_details: (required)
372
+ The payload containing instructions to patch the Globally distributed database.
373
+
374
+ :param list[str] wait_for_states:
375
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
376
+
377
+ :param dict operation_kwargs:
378
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.patch_distributed_database`
379
+
380
+ :param dict waiter_kwargs:
381
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
382
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
383
+ """
384
+ operation_result = self.client.patch_distributed_database(distributed_database_id, patch_distributed_database_details, **operation_kwargs)
385
+ if not wait_for_states:
386
+ return operation_result
387
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
388
+ if 'opc-work-request-id' not in operation_result.headers:
389
+ return operation_result
390
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
391
+
392
+ try:
393
+ waiter_result = oci.wait_until(
394
+ self.client,
395
+ self.client.get_work_request(wait_for_resource_id),
396
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
397
+ **waiter_kwargs
398
+ )
399
+ result_to_return = waiter_result
400
+
401
+ return result_to_return
402
+ except Exception as e:
403
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
404
+
405
+ def rotate_distributed_database_passwords_and_wait_for_state(self, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
406
+ """
407
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.rotate_distributed_database_passwords` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
408
+ to enter the given state(s).
409
+
410
+ :param str distributed_database_id: (required)
411
+ Globally distributed database identifier
412
+
413
+ :param list[str] wait_for_states:
414
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
415
+
416
+ :param dict operation_kwargs:
417
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.rotate_distributed_database_passwords`
418
+
419
+ :param dict waiter_kwargs:
420
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
421
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
422
+ """
423
+ operation_result = self.client.rotate_distributed_database_passwords(distributed_database_id, **operation_kwargs)
424
+ if not wait_for_states:
425
+ return operation_result
426
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
427
+ if 'opc-work-request-id' not in operation_result.headers:
428
+ return operation_result
429
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
430
+
431
+ try:
432
+ waiter_result = oci.wait_until(
433
+ self.client,
434
+ self.client.get_work_request(wait_for_resource_id),
435
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
436
+ **waiter_kwargs
437
+ )
438
+ result_to_return = waiter_result
439
+
440
+ return result_to_return
441
+ except Exception as e:
442
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
443
+
444
+ def start_distributed_database_and_wait_for_state(self, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
445
+ """
446
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.start_distributed_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
447
+ to enter the given state(s).
448
+
449
+ :param str distributed_database_id: (required)
450
+ Globally distributed database identifier
451
+
452
+ :param list[str] wait_for_states:
453
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
454
+
455
+ :param dict operation_kwargs:
456
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.start_distributed_database`
457
+
458
+ :param dict waiter_kwargs:
459
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
460
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
461
+ """
462
+ operation_result = self.client.start_distributed_database(distributed_database_id, **operation_kwargs)
463
+ if not wait_for_states:
464
+ return operation_result
465
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
466
+ if 'opc-work-request-id' not in operation_result.headers:
467
+ return operation_result
468
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
469
+
470
+ try:
471
+ waiter_result = oci.wait_until(
472
+ self.client,
473
+ self.client.get_work_request(wait_for_resource_id),
474
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
475
+ **waiter_kwargs
476
+ )
477
+ result_to_return = waiter_result
478
+
479
+ return result_to_return
480
+ except Exception as e:
481
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
482
+
483
+ def stop_distributed_database_and_wait_for_state(self, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
484
+ """
485
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.stop_distributed_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
486
+ to enter the given state(s).
487
+
488
+ :param str distributed_database_id: (required)
489
+ Globally distributed database identifier
490
+
491
+ :param list[str] wait_for_states:
492
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
493
+
494
+ :param dict operation_kwargs:
495
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.stop_distributed_database`
496
+
497
+ :param dict waiter_kwargs:
498
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
499
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
500
+ """
501
+ operation_result = self.client.stop_distributed_database(distributed_database_id, **operation_kwargs)
502
+ if not wait_for_states:
503
+ return operation_result
504
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
505
+ if 'opc-work-request-id' not in operation_result.headers:
506
+ return operation_result
507
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
508
+
509
+ try:
510
+ waiter_result = oci.wait_until(
511
+ self.client,
512
+ self.client.get_work_request(wait_for_resource_id),
513
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
514
+ **waiter_kwargs
515
+ )
516
+ result_to_return = waiter_result
517
+
518
+ return result_to_return
519
+ except Exception as e:
520
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
521
+
522
+ def update_distributed_database_and_wait_for_state(self, distributed_database_id, update_distributed_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
523
+ """
524
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.update_distributed_database` and waits for the :py:class:`~oci.distributed_database.models.DistributedDatabase` acted upon
525
+ to enter the given state(s).
526
+
527
+ :param str distributed_database_id: (required)
528
+ Globally distributed database identifier
529
+
530
+ :param oci.distributed_database.models.UpdateDistributedDatabaseDetails update_distributed_database_details: (required)
531
+ The configuration of the Globally distributed database to be updated.
532
+
533
+ :param list[str] wait_for_states:
534
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.DistributedDatabase.lifecycle_state`
535
+
536
+ :param dict operation_kwargs:
537
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.update_distributed_database`
538
+
539
+ :param dict waiter_kwargs:
540
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
541
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
542
+ """
543
+ operation_result = self.client.update_distributed_database(distributed_database_id, update_distributed_database_details, **operation_kwargs)
544
+ if not wait_for_states:
545
+ return operation_result
546
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
547
+ distributed_database_id = operation_result.data.id
548
+
549
+ try:
550
+ waiter_result = oci.wait_until(
551
+ self.client,
552
+ self.client.get_distributed_database(distributed_database_id), # noqa: F821
553
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
554
+ **waiter_kwargs
555
+ )
556
+ result_to_return = waiter_result
557
+
558
+ return result_to_return
559
+ except (NameError, TypeError) as e:
560
+ if not e.args:
561
+ e.args = ('',)
562
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
563
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
564
+ except Exception as e:
565
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
566
+
567
+ def upload_distributed_database_signed_certificate_and_generate_wallet_and_wait_for_state(self, distributed_database_id, upload_distributed_database_signed_certificate_and_generate_wallet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
568
+ """
569
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.upload_distributed_database_signed_certificate_and_generate_wallet` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
570
+ to enter the given state(s).
571
+
572
+ :param str distributed_database_id: (required)
573
+ Globally distributed database identifier
574
+
575
+ :param oci.distributed_database.models.UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails upload_distributed_database_signed_certificate_and_generate_wallet_details: (required)
576
+ Details required to upload the CA signed certificates to GSM instances of Globally distributed database and generate
577
+ the wallets.
578
+
579
+ :param list[str] wait_for_states:
580
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
581
+
582
+ :param dict operation_kwargs:
583
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.upload_distributed_database_signed_certificate_and_generate_wallet`
584
+
585
+ :param dict waiter_kwargs:
586
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
587
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
588
+ """
589
+ operation_result = self.client.upload_distributed_database_signed_certificate_and_generate_wallet(distributed_database_id, upload_distributed_database_signed_certificate_and_generate_wallet_details, **operation_kwargs)
590
+ if not wait_for_states:
591
+ return operation_result
592
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
593
+ if 'opc-work-request-id' not in operation_result.headers:
594
+ return operation_result
595
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
596
+
597
+ try:
598
+ waiter_result = oci.wait_until(
599
+ self.client,
600
+ self.client.get_work_request(wait_for_resource_id),
601
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
602
+ **waiter_kwargs
603
+ )
604
+ result_to_return = waiter_result
605
+
606
+ return result_to_return
607
+ except Exception as e:
608
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
609
+
610
+ def validate_distributed_database_network_and_wait_for_state(self, distributed_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
611
+ """
612
+ Calls :py:func:`~oci.distributed_database.DistributedDbServiceClient.validate_distributed_database_network` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
613
+ to enter the given state(s).
614
+
615
+ :param str distributed_database_id: (required)
616
+ Globally distributed database identifier
617
+
618
+ :param list[str] wait_for_states:
619
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
620
+
621
+ :param dict operation_kwargs:
622
+ A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedDbServiceClient.validate_distributed_database_network`
623
+
624
+ :param dict waiter_kwargs:
625
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
626
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
627
+ """
628
+ operation_result = self.client.validate_distributed_database_network(distributed_database_id, **operation_kwargs)
629
+ if not wait_for_states:
630
+ return operation_result
631
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
632
+ if 'opc-work-request-id' not in operation_result.headers:
633
+ return operation_result
634
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
635
+
636
+ try:
637
+ waiter_result = oci.wait_until(
638
+ self.client,
639
+ self.client.get_work_request(wait_for_resource_id),
640
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
641
+ **waiter_kwargs
642
+ )
643
+ result_to_return = waiter_result
644
+
645
+ return result_to_return
646
+ except Exception as e:
647
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)