oci 2.121.1__py3-none-any.whl → 2.123.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (564) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/adm/application_dependency_management_client.py +36 -36
  4. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  5. oci/ai_document/ai_service_document_client.py +22 -22
  6. oci/ai_language/ai_service_language_client.py +68 -53
  7. oci/ai_language/models/__init__.py +0 -2
  8. oci/ai_language/models/batch_detect_dominant_language_details.py +101 -0
  9. oci/ai_language/models/batch_detect_language_key_phrases_details.py +31 -0
  10. oci/ai_language/models/batch_detect_language_pii_entities_details.py +31 -0
  11. oci/ai_language/models/batch_detect_language_sentiments_details.py +31 -0
  12. oci/ai_language/models/batch_language_translation_details.py +62 -48
  13. oci/ai_language/models/endpoint.py +4 -4
  14. oci/ai_language/models/endpoint_summary.py +4 -4
  15. oci/ai_language/models/model.py +6 -6
  16. oci/ai_language/models/model_details.py +0 -4
  17. oci/ai_language/models/model_summary.py +8 -8
  18. oci/ai_language/models/project.py +4 -4
  19. oci/ai_language/models/project_summary.py +4 -4
  20. oci/ai_language/models/translation_document_result.py +12 -100
  21. oci/ai_speech/ai_service_speech_client.py +9 -9
  22. oci/ai_vision/ai_service_vision_client.py +25 -25
  23. oci/analytics/analytics_client.py +23 -23
  24. oci/announcements_service/announcement_client.py +4 -4
  25. oci/announcements_service/announcement_subscription_client.py +9 -9
  26. oci/announcements_service/announcements_preferences_client.py +4 -4
  27. oci/apigateway/api_gateway_client.py +21 -21
  28. oci/apigateway/deployment_client.py +6 -6
  29. oci/apigateway/gateway_client.py +6 -6
  30. oci/apigateway/subscribers_client.py +6 -6
  31. oci/apigateway/usage_plans_client.py +6 -6
  32. oci/apigateway/work_requests_client.py +5 -5
  33. oci/apm_config/config_client.py +8 -8
  34. oci/apm_control_plane/apm_domain_client.py +14 -14
  35. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  36. oci/apm_traces/query_client.py +2 -2
  37. oci/apm_traces/trace_client.py +4 -4
  38. oci/application_migration/application_migration_client.py +19 -19
  39. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  40. oci/artifacts/artifacts_client.py +32 -32
  41. oci/audit/audit_client.py +3 -3
  42. oci/autoscaling/auto_scaling_client.py +11 -11
  43. oci/bastion/bastion_client.py +15 -15
  44. oci/bds/bds_client.py +51 -51
  45. oci/blockchain/blockchain_platform_client.py +27 -27
  46. oci/budget/budget_client.py +10 -10
  47. oci/capacity_management/capacity_management_client.py +19 -19
  48. oci/certificates/certificates_client.py +5 -5
  49. oci/certificates_management/certificates_management_client.py +32 -32
  50. oci/cims/incident_client.py +8 -8
  51. oci/cims/user_client.py +1 -1
  52. oci/cloud_bridge/common_client.py +5 -5
  53. oci/cloud_bridge/discovery_client.py +14 -14
  54. oci/cloud_bridge/inventory_client.py +16 -16
  55. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  56. oci/cloud_guard/cloud_guard_client.py +133 -133
  57. oci/cloud_migrations/migration_client.py +43 -43
  58. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  59. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  60. oci/compute_instance_agent/plugin_client.py +2 -2
  61. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  62. oci/container_engine/container_engine_client.py +44 -44
  63. oci/container_instances/container_instance_client.py +31 -19
  64. oci/core/blockstorage_client.py +60 -60
  65. oci/core/compute_client.py +111 -101
  66. oci/core/compute_management_client.py +32 -32
  67. oci/core/models/__init__.py +14 -0
  68. oci/core/models/amd_vm_launch_instance_platform_config.py +45 -2
  69. oci/core/models/amd_vm_platform_config.py +45 -2
  70. oci/core/models/amd_vm_update_instance_platform_config.py +94 -0
  71. oci/core/models/attach_volume_details.py +6 -4
  72. oci/core/models/instance_configuration_amd_vm_launch_instance_platform_config.py +45 -2
  73. oci/core/models/instance_configuration_intel_vm_launch_instance_platform_config.py +45 -2
  74. oci/core/models/intel_vm_launch_instance_platform_config.py +45 -2
  75. oci/core/models/intel_vm_platform_config.py +45 -2
  76. oci/core/models/intel_vm_update_instance_platform_config.py +94 -0
  77. oci/core/models/launch_attach_i_scsi_volume_details.py +203 -0
  78. oci/core/models/launch_attach_volume_details.py +279 -0
  79. oci/core/models/launch_create_volume_details.py +101 -0
  80. oci/core/models/launch_create_volume_from_attributes.py +240 -0
  81. oci/core/models/launch_instance_details.py +31 -0
  82. oci/core/models/update_instance_details.py +29 -2
  83. oci/core/models/update_instance_platform_config.py +109 -0
  84. oci/core/virtual_network_client.py +242 -242
  85. oci/dashboard_service/dashboard_client.py +6 -6
  86. oci/dashboard_service/dashboard_group_client.py +6 -6
  87. oci/data_catalog/data_catalog_client.py +287 -153
  88. oci/data_catalog/models/__init__.py +4 -0
  89. oci/data_catalog/models/asynchronous_export_data_asset_details.py +99 -0
  90. oci/data_catalog/models/asynchronous_export_data_asset_result.py +196 -0
  91. oci/data_catalog/models/create_job_definition_details.py +7 -3
  92. oci/data_catalog/models/create_job_execution_details.py +7 -3
  93. oci/data_catalog/models/job.py +7 -3
  94. oci/data_catalog/models/job_definition.py +7 -3
  95. oci/data_catalog/models/job_definition_summary.py +7 -3
  96. oci/data_catalog/models/job_execution.py +7 -3
  97. oci/data_catalog/models/job_execution_summary.py +7 -3
  98. oci/data_catalog/models/job_summary.py +7 -3
  99. oci/data_flow/data_flow_client.py +42 -42
  100. oci/data_integration/data_integration_client.py +163 -163
  101. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  102. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  103. oci/data_safe/data_safe_client.py +272 -272
  104. oci/data_science/data_science_client.py +91 -91
  105. oci/data_science/models/__init__.py +4 -0
  106. oci/data_science/models/create_job_details.py +27 -0
  107. oci/data_science/models/create_job_run_details.py +27 -0
  108. oci/data_science/models/data_science_private_endpoint.py +33 -0
  109. oci/data_science/models/data_science_private_endpoint_summary.py +33 -0
  110. oci/data_science/models/job.py +27 -0
  111. oci/data_science/models/job_environment_configuration_details.py +101 -0
  112. oci/data_science/models/job_run.py +27 -0
  113. oci/data_science/models/model_version_set.py +35 -2
  114. oci/data_science/models/model_version_set_summary.py +35 -2
  115. oci/data_science/models/ocir_container_job_environment_configuration_details.py +234 -0
  116. oci/data_science/models/project.py +35 -2
  117. oci/data_science/models/project_summary.py +35 -2
  118. oci/database/database_client.py +351 -344
  119. oci/database/models/__init__.py +2 -2
  120. oci/database/models/autonomous_container_database.py +24 -30
  121. oci/database/models/autonomous_container_database_dataguard_association.py +37 -13
  122. oci/database/models/autonomous_container_database_resource_usage.py +6 -6
  123. oci/database/models/autonomous_container_database_summary.py +24 -30
  124. oci/database/models/autonomous_database.py +52 -71
  125. oci/database/models/autonomous_database_backup.py +6 -6
  126. oci/database/models/autonomous_database_backup_summary.py +6 -6
  127. oci/database/models/autonomous_database_dataguard_association.py +63 -11
  128. oci/database/models/autonomous_database_key_history_entry.py +4 -4
  129. oci/database/models/autonomous_database_summary.py +52 -71
  130. oci/database/models/autonomous_db_preview_version_summary.py +1 -1
  131. oci/database/models/autonomous_vm_cluster.py +14 -14
  132. oci/database/models/autonomous_vm_cluster_summary.py +14 -14
  133. oci/database/models/backup.py +6 -6
  134. oci/database/models/backup_summary.py +6 -6
  135. oci/database/models/cloud_autonomous_vm_cluster.py +16 -16
  136. oci/database/models/cloud_autonomous_vm_cluster_summary.py +16 -16
  137. oci/database/models/cloud_exadata_infrastructure.py +72 -0
  138. oci/database/models/cloud_exadata_infrastructure_summary.py +72 -0
  139. oci/database/models/cloud_vm_cluster.py +37 -0
  140. oci/database/models/cloud_vm_cluster_summary.py +37 -0
  141. oci/database/models/compute_performance_summary.py +2 -2
  142. oci/database/models/configure_autonomous_database_vault_key_details.py +2 -2
  143. oci/database/models/create_autonomous_container_database_dataguard_association_details.py +67 -1
  144. oci/database/models/create_autonomous_container_database_details.py +6 -6
  145. oci/database/models/create_autonomous_database_base.py +51 -68
  146. oci/database/models/create_autonomous_database_clone_details.py +0 -7
  147. oci/database/models/create_autonomous_database_details.py +0 -7
  148. oci/database/models/create_autonomous_database_from_backup_details.py +0 -7
  149. oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +0 -7
  150. oci/database/models/create_autonomous_vm_cluster_details.py +2 -2
  151. oci/database/models/create_cloud_autonomous_vm_cluster_details.py +6 -6
  152. oci/database/models/create_cloud_exadata_infrastructure_details.py +35 -0
  153. oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +0 -7
  154. oci/database/models/create_cross_region_disaster_recovery_details.py +0 -7
  155. oci/database/models/create_data_guard_association_with_new_db_system_details.py +4 -4
  156. oci/database/models/create_database_base.py +2 -2
  157. oci/database/models/create_database_details.py +4 -4
  158. oci/database/models/create_db_home_base.py +2 -2
  159. oci/database/models/create_refreshable_autonomous_database_clone_details.py +0 -7
  160. oci/database/models/database.py +6 -6
  161. oci/database/models/database_connection_credentials.py +4 -4
  162. oci/database/models/{database_connection_credentails_by_name.py → database_connection_credentials_by_name.py} +8 -8
  163. oci/database/models/database_summary.py +6 -6
  164. oci/database/models/key_store_type_from_oracle_key_vault_details.py +2 -2
  165. oci/database/models/launch_db_system_base.py +2 -2
  166. oci/database/models/migrate_vault_key_details.py +4 -4
  167. oci/database/models/update_autonomous_database_details.py +45 -66
  168. oci/database/models/update_autonomous_vm_cluster_details.py +6 -6
  169. oci/database/models/update_cloud_autonomous_vm_cluster_details.py +10 -10
  170. oci/database_management/db_management_client.py +832 -198
  171. oci/database_management/db_management_client_composite_operations.py +188 -0
  172. oci/database_management/diagnosability_client.py +4 -4
  173. oci/database_management/managed_my_sql_databases_client.py +6 -6
  174. oci/database_management/models/__init__.py +10 -0
  175. oci/database_management/models/child_database.py +80 -2
  176. oci/database_management/models/create_db_management_private_endpoint_details.py +80 -2
  177. oci/database_management/models/create_external_db_system_details.py +80 -2
  178. oci/database_management/models/create_external_db_system_discovery_details.py +80 -2
  179. oci/database_management/models/create_external_db_system_macs_connector_details.py +80 -2
  180. oci/database_management/models/create_external_exadata_infrastructure_details.py +80 -2
  181. oci/database_management/models/create_external_exadata_storage_connector_details.py +80 -2
  182. oci/database_management/models/create_managed_database_group_details.py +80 -2
  183. oci/database_management/models/create_named_credential_details.py +80 -2
  184. oci/database_management/models/create_sql_job_details.py +80 -2
  185. oci/database_management/models/db_management_private_endpoint.py +80 -2
  186. oci/database_management/models/db_management_private_endpoint_summary.py +80 -2
  187. oci/database_management/models/external_asm.py +80 -2
  188. oci/database_management/models/external_asm_instance.py +80 -2
  189. oci/database_management/models/external_asm_instance_summary.py +80 -2
  190. oci/database_management/models/external_asm_summary.py +80 -2
  191. oci/database_management/models/external_cluster.py +80 -2
  192. oci/database_management/models/external_cluster_instance.py +80 -2
  193. oci/database_management/models/external_cluster_instance_summary.py +80 -2
  194. oci/database_management/models/external_cluster_summary.py +80 -2
  195. oci/database_management/models/external_database_summary.py +80 -2
  196. oci/database_management/models/external_db_home.py +80 -2
  197. oci/database_management/models/external_db_home_summary.py +80 -2
  198. oci/database_management/models/external_db_node.py +80 -2
  199. oci/database_management/models/external_db_node_summary.py +80 -2
  200. oci/database_management/models/external_db_system.py +80 -2
  201. oci/database_management/models/external_db_system_connector_summary.py +80 -2
  202. oci/database_management/models/external_db_system_discovery.py +80 -2
  203. oci/database_management/models/external_db_system_discovery_summary.py +80 -2
  204. oci/database_management/models/external_db_system_macs_connector.py +80 -2
  205. oci/database_management/models/external_db_system_summary.py +80 -2
  206. oci/database_management/models/external_exadata_infrastructure.py +80 -2
  207. oci/database_management/models/external_exadata_infrastructure_summary.py +80 -2
  208. oci/database_management/models/external_exadata_storage_connector.py +80 -2
  209. oci/database_management/models/external_exadata_storage_connector_summary.py +80 -2
  210. oci/database_management/models/external_exadata_storage_grid.py +80 -2
  211. oci/database_management/models/external_exadata_storage_server.py +80 -2
  212. oci/database_management/models/external_exadata_storage_server_summary.py +80 -2
  213. oci/database_management/models/external_listener.py +80 -2
  214. oci/database_management/models/external_listener_summary.py +80 -2
  215. oci/database_management/models/job_summary.py +80 -2
  216. oci/database_management/models/managed_database.py +111 -2
  217. oci/database_management/models/managed_database_group.py +80 -2
  218. oci/database_management/models/managed_database_group_summary.py +80 -2
  219. oci/database_management/models/managed_database_summary.py +111 -2
  220. oci/database_management/models/named_credential.py +80 -2
  221. oci/database_management/models/named_credential_summary.py +80 -2
  222. oci/database_management/models/sql_job.py +80 -2
  223. oci/database_management/models/update_db_management_private_endpoint_details.py +80 -2
  224. oci/database_management/models/update_external_asm_details.py +80 -2
  225. oci/database_management/models/update_external_asm_instance_details.py +119 -0
  226. oci/database_management/models/update_external_cluster_details.py +80 -2
  227. oci/database_management/models/update_external_cluster_instance_details.py +80 -2
  228. oci/database_management/models/update_external_db_home_details.py +119 -0
  229. oci/database_management/models/update_external_db_node_details.py +80 -2
  230. oci/database_management/models/update_external_db_system_details.py +80 -2
  231. oci/database_management/models/update_external_db_system_discovery_details.py +80 -2
  232. oci/database_management/models/update_external_db_system_macs_connector_details.py +80 -2
  233. oci/database_management/models/update_external_exadata_infrastructure_details.py +80 -2
  234. oci/database_management/models/update_external_exadata_storage_connector_details.py +80 -2
  235. oci/database_management/models/update_external_exadata_storage_grid_details.py +119 -0
  236. oci/database_management/models/update_external_exadata_storage_server_details.py +119 -0
  237. oci/database_management/models/update_external_listener_details.py +80 -2
  238. oci/database_management/models/update_managed_database_details.py +119 -0
  239. oci/database_management/models/update_managed_database_group_details.py +80 -2
  240. oci/database_management/models/update_named_credential_details.py +80 -2
  241. oci/database_management/models/update_sql_job_details.py +80 -2
  242. oci/database_management/perfhub_client.py +1 -1
  243. oci/database_management/sql_tuning_client.py +17 -17
  244. oci/database_migration/database_migration_client.py +41 -41
  245. oci/database_tools/database_tools_client.py +23 -23
  246. oci/desktops/__init__.py +14 -0
  247. oci/desktops/desktop_service_client.py +2649 -0
  248. oci/desktops/desktop_service_client_composite_operations.py +441 -0
  249. oci/desktops/models/__init__.py +68 -0
  250. oci/desktops/models/change_desktop_pool_compartment_details.py +72 -0
  251. oci/desktops/models/create_desktop_pool_details.py +694 -0
  252. oci/desktops/models/desktop.py +393 -0
  253. oci/desktops/models/desktop_availability_policy.py +95 -0
  254. oci/desktops/models/desktop_collection.py +72 -0
  255. oci/desktops/models/desktop_device_policy.py +348 -0
  256. oci/desktops/models/desktop_image.py +103 -0
  257. oci/desktops/models/desktop_network_configuration.py +103 -0
  258. oci/desktops/models/desktop_pool.py +823 -0
  259. oci/desktops/models/desktop_pool_collection.py +72 -0
  260. oci/desktops/models/desktop_pool_desktop_collection.py +72 -0
  261. oci/desktops/models/desktop_pool_desktop_summary.py +339 -0
  262. oci/desktops/models/desktop_pool_summary.py +403 -0
  263. oci/desktops/models/desktop_pool_volume_collection.py +72 -0
  264. oci/desktops/models/desktop_pool_volume_summary.py +319 -0
  265. oci/desktops/models/desktop_schedule.py +103 -0
  266. oci/desktops/models/desktop_summary.py +339 -0
  267. oci/desktops/models/hosting_options.py +99 -0
  268. oci/desktops/models/update_desktop_details.py +148 -0
  269. oci/desktops/models/update_desktop_pool_details.py +392 -0
  270. oci/desktops/models/work_request.py +420 -0
  271. oci/desktops/models/work_request_error.py +136 -0
  272. oci/desktops/models/work_request_error_collection.py +72 -0
  273. oci/desktops/models/work_request_log_entry.py +103 -0
  274. oci/desktops/models/work_request_log_entry_collection.py +72 -0
  275. oci/desktops/models/work_request_resource.py +203 -0
  276. oci/desktops/models/work_request_summary.py +420 -0
  277. oci/desktops/models/work_request_summary_collection.py +72 -0
  278. oci/devops/devops_client.py +89 -89
  279. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  280. oci/dns/dns_client.py +52 -52
  281. oci/dts/appliance_export_job_client.py +6 -6
  282. oci/dts/shipping_vendors_client.py +1 -1
  283. oci/dts/transfer_appliance_client.py +8 -8
  284. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  285. oci/dts/transfer_device_client.py +5 -5
  286. oci/dts/transfer_job_client.py +6 -6
  287. oci/dts/transfer_package_client.py +7 -7
  288. oci/em_warehouse/em_data_lake_client.py +13 -13
  289. oci/em_warehouse/em_warehouse_client.py +13 -13
  290. oci/email/email_client.py +25 -25
  291. oci/events/events_client.py +6 -6
  292. oci/file_storage/file_storage_client.py +50 -50
  293. oci/fleet_software_update/fleet_software_update_client.py +44 -44
  294. oci/functions/functions_invoke_client.py +1 -1
  295. oci/functions/functions_management_client.py +16 -16
  296. oci/fusion_apps/data_masking_activity_client.py +3 -3
  297. oci/fusion_apps/fusion_applications_client.py +39 -39
  298. oci/fusion_apps/fusion_environment_client.py +15 -15
  299. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  300. oci/fusion_apps/refresh_activity_client.py +4 -4
  301. oci/fusion_apps/scheduled_activity_client.py +2 -2
  302. oci/fusion_apps/service_attachment_client.py +2 -2
  303. oci/generative_ai/generative_ai_client.py +22 -22
  304. oci/generative_ai_inference/generative_ai_inference_client.py +3 -3
  305. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  306. oci/globally_distributed_database/sharded_database_service_client.py +29 -29
  307. oci/golden_gate/golden_gate_client.py +61 -61
  308. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  309. oci/governance_rules_control_plane/work_request_client.py +5 -5
  310. oci/healthchecks/health_checks_client.py +17 -17
  311. oci/identity/identity_client.py +145 -145
  312. oci/identity_data_plane/dataplane_client.py +2 -2
  313. oci/identity_domains/identity_domains_client.py +300 -300
  314. oci/integration/integration_instance_client.py +15 -15
  315. oci/jms/java_management_service_client.py +66 -66
  316. oci/jms_java_downloads/java_download_client.py +25 -25
  317. oci/key_management/ekm_client.py +5 -5
  318. oci/key_management/kms_crypto_client.py +6 -6
  319. oci/key_management/kms_hsm_cluster_client.py +12 -12
  320. oci/key_management/kms_management_client.py +21 -21
  321. oci/key_management/kms_vault_client.py +14 -14
  322. oci/key_management/models/__init__.py +2 -0
  323. oci/key_management/models/auto_key_rotation_details.py +247 -0
  324. oci/key_management/models/create_key_details.py +58 -0
  325. oci/key_management/models/import_key_details.py +58 -0
  326. oci/key_management/models/key.py +58 -0
  327. oci/key_management/models/key_summary.py +33 -2
  328. oci/key_management/models/key_version.py +33 -2
  329. oci/key_management/models/key_version_summary.py +33 -2
  330. oci/key_management/models/update_key_details.py +58 -0
  331. oci/license_manager/license_manager_client.py +18 -18
  332. oci/limits/limits_client.py +4 -4
  333. oci/limits/quotas_client.py +7 -7
  334. oci/load_balancer/load_balancer_client.py +61 -61
  335. oci/lockbox/lockbox_client.py +23 -23
  336. oci/log_analytics/log_analytics_client.py +193 -193
  337. oci/logging/logging_management_client.py +30 -30
  338. oci/loggingingestion/logging_client.py +1 -1
  339. oci/loggingsearch/log_search_client.py +1 -1
  340. oci/management_agent/management_agent_client.py +28 -28
  341. oci/management_dashboard/dashx_apis_client.py +14 -14
  342. oci/marketplace/account_client.py +2 -2
  343. oci/marketplace/marketplace_client.py +30 -30
  344. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  345. oci/media_services/media_services_client.py +60 -60
  346. oci/media_services/media_stream_client.py +2 -2
  347. oci/monitoring/monitoring_client.py +18 -18
  348. oci/mysql/channels_client.py +7 -7
  349. oci/mysql/db_backups_client.py +6 -6
  350. oci/mysql/db_system_client.py +17 -17
  351. oci/mysql/mysqlaas_client.py +7 -7
  352. oci/mysql/replicas_client.py +5 -5
  353. oci/mysql/work_requests_client.py +4 -4
  354. oci/network_firewall/network_firewall_client.py +80 -80
  355. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  356. oci/nosql/nosql_client.py +24 -24
  357. oci/object_storage/object_storage_client.py +50 -50
  358. oci/oce/oce_instance_client.py +10 -10
  359. oci/oci_control_center/occ_metrics_client.py +3 -3
  360. oci/ocvp/cluster_client.py +5 -5
  361. oci/ocvp/esxi_host_client.py +8 -8
  362. oci/ocvp/sddc_client.py +14 -14
  363. oci/ocvp/work_request_client.py +4 -4
  364. oci/oda/management_client.py +419 -56
  365. oci/oda/management_client_composite_operations.py +132 -0
  366. oci/oda/models/__init__.py +42 -0
  367. oci/oda/models/bot.py +31 -0
  368. oci/oda/models/bulk_create_skill_entities_details.py +72 -0
  369. oci/oda/models/clone_skill_details.py +7 -0
  370. oci/oda/models/composite_entity.py +154 -0
  371. oci/oda/models/create_new_skill_details.py +7 -0
  372. oci/oda/models/create_oda_instance_attachment_details.py +7 -3
  373. oci/oda/models/create_skill_composite_entity_details.py +147 -0
  374. oci/oda/models/create_skill_details.py +31 -0
  375. oci/oda/models/create_skill_entity_details.py +140 -0
  376. oci/oda/models/create_skill_value_list_entity_details.py +89 -0
  377. oci/oda/models/create_skill_version_details.py +7 -0
  378. oci/oda/models/digital_assistant.py +31 -0
  379. oci/oda/models/entity.py +171 -0
  380. oci/oda/models/entity_action.py +161 -0
  381. oci/oda/models/entity_action_argument.py +263 -0
  382. oci/oda/models/entity_action_argument_natural_language_mapping.py +72 -0
  383. oci/oda/models/entity_action_natural_language_mapping.py +72 -0
  384. oci/oda/models/entity_attribute.py +345 -0
  385. oci/oda/models/entity_attribute_natural_language_mapping.py +72 -0
  386. oci/oda/models/entity_natural_language_mapping.py +72 -0
  387. oci/oda/models/extend_skill_details.py +7 -0
  388. oci/oda/models/language_mapping.py +134 -0
  389. oci/oda/models/name_mapping.py +72 -0
  390. oci/oda/models/oda_instance_attachment.py +7 -3
  391. oci/oda/models/oda_instance_attachment_summary.py +7 -3
  392. oci/oda/models/skill.py +31 -0
  393. oci/oda/models/static_entity_value.py +99 -0
  394. oci/oda/models/static_entity_value_natural_language_mapping.py +72 -0
  395. oci/oda/models/train_skill_details.py +72 -0
  396. oci/oda/models/train_skill_parameter.py +101 -0
  397. oci/oda/models/train_skill_query_entity_parameter.py +51 -0
  398. oci/oda/models/value_list_entity.py +96 -0
  399. oci/oda/models/work_request.py +15 -3
  400. oci/oda/oda_client.py +17 -17
  401. oci/oda/odapackage_client.py +7 -7
  402. oci/onesubscription/billing_schedule_client.py +1 -1
  403. oci/onesubscription/commitment_client.py +2 -2
  404. oci/onesubscription/computed_usage_client.py +3 -3
  405. oci/onesubscription/invoice_summary_client.py +2 -2
  406. oci/onesubscription/organization_subscription_client.py +1 -1
  407. oci/onesubscription/ratecard_client.py +1 -1
  408. oci/onesubscription/subscribed_service_client.py +2 -2
  409. oci/onesubscription/subscription_client.py +1 -1
  410. oci/ons/notification_control_plane_client.py +6 -6
  411. oci/ons/notification_data_plane_client.py +10 -10
  412. oci/opa/opa_instance_client.py +11 -11
  413. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  414. oci/opensearch/opensearch_cluster_client.py +14 -14
  415. oci/operator_access_control/access_requests_client.py +118 -9
  416. oci/operator_access_control/models/__init__.py +11 -1
  417. oci/operator_access_control/models/access_request.py +221 -0
  418. oci/operator_access_control/models/access_request_summary.py +35 -0
  419. oci/operator_access_control/models/approver_detail.py +235 -0
  420. oci/operator_access_control/models/assignment_validation_status.py +317 -0
  421. oci/operator_access_control/models/audit_log_report.py +193 -0
  422. oci/operator_access_control/models/create_operator_control_assignment_details.py +31 -0
  423. oci/operator_access_control/models/create_operator_control_details.py +31 -0
  424. oci/operator_access_control/models/operator_control.py +31 -0
  425. oci/operator_access_control/models/operator_control_assignment.py +62 -0
  426. oci/operator_access_control/models/operator_control_assignment_summary.py +93 -0
  427. oci/operator_access_control/models/operator_control_summary.py +31 -0
  428. oci/operator_access_control/models/status_detail.py +169 -0
  429. oci/operator_access_control/models/update_operator_control_assignment_details.py +31 -0
  430. oci/operator_access_control/models/update_operator_control_details.py +31 -0
  431. oci/operator_access_control/models/validate_operator_assignment_details.py +72 -0
  432. oci/operator_access_control/operator_actions_client.py +2 -2
  433. oci/operator_access_control/operator_control_assignment_client.py +224 -6
  434. oci/operator_access_control/operator_control_client.py +6 -6
  435. oci/opsi/operations_insights_client.py +175 -175
  436. oci/optimizer/optimizer_client.py +26 -26
  437. oci/os_management/event_client.py +8 -8
  438. oci/os_management/os_management_client.py +69 -69
  439. oci/os_management_hub/lifecycle_environment_client.py +11 -11
  440. oci/os_management_hub/managed_instance_client.py +22 -22
  441. oci/os_management_hub/managed_instance_group_client.py +22 -22
  442. oci/os_management_hub/management_station_client.py +8 -8
  443. oci/os_management_hub/onboarding_client.py +5 -5
  444. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  445. oci/os_management_hub/scheduled_job_client.py +6 -6
  446. oci/os_management_hub/software_source_client.py +22 -22
  447. oci/os_management_hub/work_request_client.py +4 -4
  448. oci/osp_gateway/address_rule_service_client.py +1 -1
  449. oci/osp_gateway/address_service_client.py +2 -2
  450. oci/osp_gateway/invoice_service_client.py +5 -5
  451. oci/osp_gateway/subscription_service_client.py +5 -5
  452. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  453. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  454. oci/osub_subscription/commitment_client.py +2 -2
  455. oci/osub_subscription/ratecard_client.py +1 -1
  456. oci/osub_subscription/subscription_client.py +1 -1
  457. oci/osub_usage/computed_usage_client.py +3 -3
  458. oci/psql/postgresql_client.py +33 -33
  459. oci/queue/queue_admin_client.py +11 -11
  460. oci/queue/queue_client.py +8 -8
  461. oci/recovery/database_recovery_client.py +23 -23
  462. oci/redis/redis_cluster_client.py +11 -11
  463. oci/regions_definitions.py +5 -0
  464. oci/resource_manager/resource_manager_client.py +52 -52
  465. oci/resource_search/resource_search_client.py +3 -3
  466. oci/rover/rover_bundle_client.py +8 -8
  467. oci/rover/rover_cluster_client.py +8 -8
  468. oci/rover/rover_entitlement_client.py +6 -6
  469. oci/rover/rover_node_client.py +15 -15
  470. oci/rover/shape_client.py +1 -1
  471. oci/rover/work_requests_client.py +5 -5
  472. oci/sch/__init__.py +3 -1
  473. oci/sch/connector_plugins_client.py +386 -0
  474. oci/sch/connector_plugins_client_composite_operations.py +26 -0
  475. oci/sch/models/__init__.py +16 -0
  476. oci/sch/models/change_service_connector_compartment_details.py +3 -3
  477. oci/sch/models/connector_plugin.py +355 -0
  478. oci/sch/models/connector_plugin_collection.py +72 -0
  479. oci/sch/models/connector_plugin_summary.py +322 -0
  480. oci/sch/models/create_service_connector_details.py +3 -3
  481. oci/sch/models/dimension_details.py +2 -2
  482. oci/sch/models/function_task_details.py +2 -2
  483. oci/sch/models/functions_target_details.py +98 -5
  484. oci/sch/models/latest_streaming_cursor.py +4 -2
  485. oci/sch/models/log_rule_task_details.py +5 -5
  486. oci/sch/models/log_source.py +4 -0
  487. oci/sch/models/logging_analytics_target_details.py +5 -5
  488. oci/sch/models/logging_source_details.py +3 -3
  489. oci/sch/models/monitoring_source.py +2 -2
  490. oci/sch/models/monitoring_source_details.py +5 -5
  491. oci/sch/models/monitoring_source_metric_details.py +2 -2
  492. oci/sch/models/monitoring_target_details.py +3 -3
  493. oci/sch/models/notifications_target_details.py +5 -5
  494. oci/sch/models/object_storage_target_details.py +9 -5
  495. oci/sch/models/plugin_source_details.py +123 -0
  496. oci/sch/models/service_connector.py +14 -14
  497. oci/sch/models/service_connector_collection.py +1 -1
  498. oci/sch/models/service_connector_summary.py +11 -11
  499. oci/sch/models/source_connector_plugin.py +132 -0
  500. oci/sch/models/source_connector_plugin_summary.py +125 -0
  501. oci/sch/models/source_details.py +19 -11
  502. oci/sch/models/streaming_cursor_details.py +7 -4
  503. oci/sch/models/streaming_source_details.py +5 -1
  504. oci/sch/models/streaming_target_details.py +3 -3
  505. oci/sch/models/target_connector_plugin.py +99 -0
  506. oci/sch/models/target_connector_plugin_summary.py +92 -0
  507. oci/sch/models/target_details.py +8 -8
  508. oci/sch/models/task_details.py +8 -8
  509. oci/sch/models/trim_horizon_streaming_cursor.py +4 -2
  510. oci/sch/models/update_service_connector_details.py +1 -1
  511. oci/sch/models/work_request.py +2 -2
  512. oci/sch/service_connector_client.py +138 -81
  513. oci/sch/service_connector_client_composite_operations.py +7 -7
  514. oci/secrets/secrets_client.py +3 -3
  515. oci/service_catalog/service_catalog_client.py +26 -26
  516. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  517. oci/service_mesh/service_mesh_client.py +48 -48
  518. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  519. oci/streaming/stream_admin_client.py +18 -18
  520. oci/streaming/stream_client.py +8 -8
  521. oci/tenant_manager_control_plane/domain_client.py +5 -5
  522. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  523. oci/tenant_manager_control_plane/governance_client.py +2 -2
  524. oci/tenant_manager_control_plane/link_client.py +3 -3
  525. oci/tenant_manager_control_plane/orders_client.py +2 -2
  526. oci/tenant_manager_control_plane/organization_client.py +10 -10
  527. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  528. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  529. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  530. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  531. oci/threat_intelligence/threatintel_client.py +5 -5
  532. oci/usage/resources_client.py +2 -2
  533. oci/usage/rewards_client.py +6 -6
  534. oci/usage/usagelimits_client.py +1 -1
  535. oci/usage_api/usageapi_client.py +28 -28
  536. oci/vault/models/__init__.py +8 -0
  537. oci/vault/models/bytes_generation_context.py +107 -0
  538. oci/vault/models/create_secret_details.py +61 -3
  539. oci/vault/models/passphrase_generation_context.py +138 -0
  540. oci/vault/models/secret.py +60 -2
  541. oci/vault/models/secret_generation_context.py +152 -0
  542. oci/vault/models/secret_summary.py +60 -2
  543. oci/vault/models/secret_version.py +33 -2
  544. oci/vault/models/secret_version_summary.py +33 -2
  545. oci/vault/models/ssh_key_generation_context.py +111 -0
  546. oci/vault/models/update_secret_details.py +60 -2
  547. oci/vault/vaults_client.py +13 -13
  548. oci/vbs_inst/vbs_instance_client.py +10 -10
  549. oci/version.py +1 -1
  550. oci/visual_builder/vb_instance_client.py +13 -13
  551. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  552. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  553. oci/waa/waa_client.py +13 -13
  554. oci/waa/work_request_client.py +4 -4
  555. oci/waas/redirect_client.py +6 -6
  556. oci/waas/waas_client.py +66 -66
  557. oci/waf/waf_client.py +24 -24
  558. oci/work_requests/work_request_client.py +4 -4
  559. {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/METADATA +3 -3
  560. {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/RECORD +564 -475
  561. {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/THIRD_PARTY_LICENSES.txt +136 -2
  562. {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/LICENSE.txt +0 -0
  563. {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/WHEEL +0 -0
  564. {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,441 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, 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: 20220618
6
+
7
+ import oci # noqa: F401
8
+ from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
9
+
10
+
11
+ class DesktopServiceClientCompositeOperations(object):
12
+ """
13
+ This class provides a wrapper around :py:class:`~oci.desktops.DesktopServiceClient` 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 DesktopServiceClientCompositeOperations object
22
+
23
+ :param DesktopServiceClient client:
24
+ The service client which will be wrapped by this object
25
+ """
26
+ self.client = client
27
+
28
+ def change_desktop_pool_compartment_and_wait_for_state(self, desktop_pool_id, change_desktop_pool_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
29
+ """
30
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.change_desktop_pool_compartment` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
31
+ to enter the given state(s).
32
+
33
+ :param str desktop_pool_id: (required)
34
+ The OCID of the desktop pool.
35
+
36
+ :param oci.desktops.models.ChangeDesktopPoolCompartmentDetails change_desktop_pool_compartment_details: (required)
37
+ The details of the new compartment of the desktop pool.
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.desktops.models.WorkRequest.status`
41
+
42
+ :param dict operation_kwargs:
43
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.change_desktop_pool_compartment`
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.change_desktop_pool_compartment(desktop_pool_id, change_desktop_pool_compartment_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 create_desktop_pool_and_wait_for_state(self, create_desktop_pool_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
71
+ """
72
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.create_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
73
+ to enter the given state(s).
74
+
75
+ :param oci.desktops.models.CreateDesktopPoolDetails create_desktop_pool_details: (required)
76
+ The details of the desktop pool to create.
77
+
78
+ :param list[str] wait_for_states:
79
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
80
+
81
+ :param dict operation_kwargs:
82
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.create_desktop_pool`
83
+
84
+ :param dict waiter_kwargs:
85
+ 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``
86
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
87
+ """
88
+ operation_result = self.client.create_desktop_pool(create_desktop_pool_details, **operation_kwargs)
89
+ if not wait_for_states:
90
+ return operation_result
91
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
92
+ if 'opc-work-request-id' not in operation_result.headers:
93
+ return operation_result
94
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
95
+
96
+ try:
97
+ waiter_result = oci.wait_until(
98
+ self.client,
99
+ self.client.get_work_request(wait_for_resource_id),
100
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
101
+ **waiter_kwargs
102
+ )
103
+ result_to_return = waiter_result
104
+
105
+ return result_to_return
106
+ except Exception as e:
107
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
108
+
109
+ def delete_desktop_and_wait_for_state(self, desktop_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
110
+ """
111
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
112
+ to enter the given state(s).
113
+
114
+ :param str desktop_id: (required)
115
+ The OCID of the desktop.
116
+
117
+ :param list[str] wait_for_states:
118
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
119
+
120
+ :param dict operation_kwargs:
121
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop`
122
+
123
+ :param dict waiter_kwargs:
124
+ 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``
125
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
126
+ """
127
+ operation_result = None
128
+ try:
129
+ operation_result = self.client.delete_desktop(desktop_id, **operation_kwargs)
130
+ except oci.exceptions.ServiceError as e:
131
+ if e.status == 404:
132
+ return WAIT_RESOURCE_NOT_FOUND
133
+ else:
134
+ raise e
135
+
136
+ if not wait_for_states:
137
+ return operation_result
138
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
139
+ if 'opc-work-request-id' not in operation_result.headers:
140
+ return operation_result
141
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
142
+
143
+ try:
144
+ waiter_result = oci.wait_until(
145
+ self.client,
146
+ self.client.get_work_request(wait_for_resource_id),
147
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
148
+ **waiter_kwargs
149
+ )
150
+ result_to_return = waiter_result
151
+
152
+ return result_to_return
153
+ except Exception as e:
154
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
155
+
156
+ def delete_desktop_pool_and_wait_for_state(self, desktop_pool_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
157
+ """
158
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
159
+ to enter the given state(s).
160
+
161
+ :param str desktop_pool_id: (required)
162
+ The OCID of the desktop pool.
163
+
164
+ :param list[str] wait_for_states:
165
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
166
+
167
+ :param dict operation_kwargs:
168
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop_pool`
169
+
170
+ :param dict waiter_kwargs:
171
+ 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``
172
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
173
+ """
174
+ operation_result = None
175
+ try:
176
+ operation_result = self.client.delete_desktop_pool(desktop_pool_id, **operation_kwargs)
177
+ except oci.exceptions.ServiceError as e:
178
+ if e.status == 404:
179
+ return WAIT_RESOURCE_NOT_FOUND
180
+ else:
181
+ raise e
182
+
183
+ if not wait_for_states:
184
+ return operation_result
185
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
186
+ if 'opc-work-request-id' not in operation_result.headers:
187
+ return operation_result
188
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
189
+
190
+ try:
191
+ waiter_result = oci.wait_until(
192
+ self.client,
193
+ self.client.get_work_request(wait_for_resource_id),
194
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
195
+ **waiter_kwargs
196
+ )
197
+ result_to_return = waiter_result
198
+
199
+ return result_to_return
200
+ except Exception as e:
201
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
202
+
203
+ def start_desktop_and_wait_for_state(self, desktop_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
204
+ """
205
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.start_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
206
+ to enter the given state(s).
207
+
208
+ :param str desktop_id: (required)
209
+ The OCID of the desktop.
210
+
211
+ :param list[str] wait_for_states:
212
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
213
+
214
+ :param dict operation_kwargs:
215
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.start_desktop`
216
+
217
+ :param dict waiter_kwargs:
218
+ 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``
219
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
220
+ """
221
+ operation_result = self.client.start_desktop(desktop_id, **operation_kwargs)
222
+ if not wait_for_states:
223
+ return operation_result
224
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
225
+ if 'opc-work-request-id' not in operation_result.headers:
226
+ return operation_result
227
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
228
+
229
+ try:
230
+ waiter_result = oci.wait_until(
231
+ self.client,
232
+ self.client.get_work_request(wait_for_resource_id),
233
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
234
+ **waiter_kwargs
235
+ )
236
+ result_to_return = waiter_result
237
+
238
+ return result_to_return
239
+ except Exception as e:
240
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
241
+
242
+ def start_desktop_pool_and_wait_for_state(self, desktop_pool_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
243
+ """
244
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.start_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
245
+ to enter the given state(s).
246
+
247
+ :param str desktop_pool_id: (required)
248
+ The OCID of the desktop pool.
249
+
250
+ :param list[str] wait_for_states:
251
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
252
+
253
+ :param dict operation_kwargs:
254
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.start_desktop_pool`
255
+
256
+ :param dict waiter_kwargs:
257
+ 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``
258
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
259
+ """
260
+ operation_result = self.client.start_desktop_pool(desktop_pool_id, **operation_kwargs)
261
+ if not wait_for_states:
262
+ return operation_result
263
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
264
+ if 'opc-work-request-id' not in operation_result.headers:
265
+ return operation_result
266
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
267
+
268
+ try:
269
+ waiter_result = oci.wait_until(
270
+ self.client,
271
+ self.client.get_work_request(wait_for_resource_id),
272
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
273
+ **waiter_kwargs
274
+ )
275
+ result_to_return = waiter_result
276
+
277
+ return result_to_return
278
+ except Exception as e:
279
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
280
+
281
+ def stop_desktop_and_wait_for_state(self, desktop_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
282
+ """
283
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
284
+ to enter the given state(s).
285
+
286
+ :param str desktop_id: (required)
287
+ The OCID of the desktop.
288
+
289
+ :param list[str] wait_for_states:
290
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
291
+
292
+ :param dict operation_kwargs:
293
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop`
294
+
295
+ :param dict waiter_kwargs:
296
+ 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``
297
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
298
+ """
299
+ operation_result = self.client.stop_desktop(desktop_id, **operation_kwargs)
300
+ if not wait_for_states:
301
+ return operation_result
302
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
303
+ if 'opc-work-request-id' not in operation_result.headers:
304
+ return operation_result
305
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
306
+
307
+ try:
308
+ waiter_result = oci.wait_until(
309
+ self.client,
310
+ self.client.get_work_request(wait_for_resource_id),
311
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
312
+ **waiter_kwargs
313
+ )
314
+ result_to_return = waiter_result
315
+
316
+ return result_to_return
317
+ except Exception as e:
318
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
319
+
320
+ def stop_desktop_pool_and_wait_for_state(self, desktop_pool_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
321
+ """
322
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
323
+ to enter the given state(s).
324
+
325
+ :param str desktop_pool_id: (required)
326
+ The OCID of the desktop pool.
327
+
328
+ :param list[str] wait_for_states:
329
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
330
+
331
+ :param dict operation_kwargs:
332
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop_pool`
333
+
334
+ :param dict waiter_kwargs:
335
+ 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``
336
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
337
+ """
338
+ operation_result = self.client.stop_desktop_pool(desktop_pool_id, **operation_kwargs)
339
+ if not wait_for_states:
340
+ return operation_result
341
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
342
+ if 'opc-work-request-id' not in operation_result.headers:
343
+ return operation_result
344
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
345
+
346
+ try:
347
+ waiter_result = oci.wait_until(
348
+ self.client,
349
+ self.client.get_work_request(wait_for_resource_id),
350
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
351
+ **waiter_kwargs
352
+ )
353
+ result_to_return = waiter_result
354
+
355
+ return result_to_return
356
+ except Exception as e:
357
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
358
+
359
+ def update_desktop_and_wait_for_state(self, desktop_id, update_desktop_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
360
+ """
361
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.update_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
362
+ to enter the given state(s).
363
+
364
+ :param str desktop_id: (required)
365
+ The OCID of the desktop.
366
+
367
+ :param oci.desktops.models.UpdateDesktopDetails update_desktop_details: (required)
368
+ The details of the update.
369
+
370
+ :param list[str] wait_for_states:
371
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
372
+
373
+ :param dict operation_kwargs:
374
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.update_desktop`
375
+
376
+ :param dict waiter_kwargs:
377
+ 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``
378
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
379
+ """
380
+ operation_result = self.client.update_desktop(desktop_id, update_desktop_details, **operation_kwargs)
381
+ if not wait_for_states:
382
+ return operation_result
383
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
384
+ if 'opc-work-request-id' not in operation_result.headers:
385
+ return operation_result
386
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
387
+
388
+ try:
389
+ waiter_result = oci.wait_until(
390
+ self.client,
391
+ self.client.get_work_request(wait_for_resource_id),
392
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
393
+ **waiter_kwargs
394
+ )
395
+ result_to_return = waiter_result
396
+
397
+ return result_to_return
398
+ except Exception as e:
399
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
400
+
401
+ def update_desktop_pool_and_wait_for_state(self, desktop_pool_id, update_desktop_pool_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
402
+ """
403
+ Calls :py:func:`~oci.desktops.DesktopServiceClient.update_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
404
+ to enter the given state(s).
405
+
406
+ :param str desktop_pool_id: (required)
407
+ The OCID of the desktop pool.
408
+
409
+ :param oci.desktops.models.UpdateDesktopPoolDetails update_desktop_pool_details: (required)
410
+ The details of the update.
411
+
412
+ :param list[str] wait_for_states:
413
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
414
+
415
+ :param dict operation_kwargs:
416
+ A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.update_desktop_pool`
417
+
418
+ :param dict waiter_kwargs:
419
+ 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``
420
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
421
+ """
422
+ operation_result = self.client.update_desktop_pool(desktop_pool_id, update_desktop_pool_details, **operation_kwargs)
423
+ if not wait_for_states:
424
+ return operation_result
425
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
426
+ if 'opc-work-request-id' not in operation_result.headers:
427
+ return operation_result
428
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
429
+
430
+ try:
431
+ waiter_result = oci.wait_until(
432
+ self.client,
433
+ self.client.get_work_request(wait_for_resource_id),
434
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
435
+ **waiter_kwargs
436
+ )
437
+ result_to_return = waiter_result
438
+
439
+ return result_to_return
440
+ except Exception as e:
441
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
@@ -0,0 +1,68 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, 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: 20220618
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from .change_desktop_pool_compartment_details import ChangeDesktopPoolCompartmentDetails
10
+ from .create_desktop_pool_details import CreateDesktopPoolDetails
11
+ from .desktop import Desktop
12
+ from .desktop_availability_policy import DesktopAvailabilityPolicy
13
+ from .desktop_collection import DesktopCollection
14
+ from .desktop_device_policy import DesktopDevicePolicy
15
+ from .desktop_image import DesktopImage
16
+ from .desktop_network_configuration import DesktopNetworkConfiguration
17
+ from .desktop_pool import DesktopPool
18
+ from .desktop_pool_collection import DesktopPoolCollection
19
+ from .desktop_pool_desktop_collection import DesktopPoolDesktopCollection
20
+ from .desktop_pool_desktop_summary import DesktopPoolDesktopSummary
21
+ from .desktop_pool_summary import DesktopPoolSummary
22
+ from .desktop_pool_volume_collection import DesktopPoolVolumeCollection
23
+ from .desktop_pool_volume_summary import DesktopPoolVolumeSummary
24
+ from .desktop_schedule import DesktopSchedule
25
+ from .desktop_summary import DesktopSummary
26
+ from .hosting_options import HostingOptions
27
+ from .update_desktop_details import UpdateDesktopDetails
28
+ from .update_desktop_pool_details import UpdateDesktopPoolDetails
29
+ from .work_request import WorkRequest
30
+ from .work_request_error import WorkRequestError
31
+ from .work_request_error_collection import WorkRequestErrorCollection
32
+ from .work_request_log_entry import WorkRequestLogEntry
33
+ from .work_request_log_entry_collection import WorkRequestLogEntryCollection
34
+ from .work_request_resource import WorkRequestResource
35
+ from .work_request_summary import WorkRequestSummary
36
+ from .work_request_summary_collection import WorkRequestSummaryCollection
37
+
38
+ # Maps type names to classes for desktops services.
39
+ desktops_type_mapping = {
40
+ "ChangeDesktopPoolCompartmentDetails": ChangeDesktopPoolCompartmentDetails,
41
+ "CreateDesktopPoolDetails": CreateDesktopPoolDetails,
42
+ "Desktop": Desktop,
43
+ "DesktopAvailabilityPolicy": DesktopAvailabilityPolicy,
44
+ "DesktopCollection": DesktopCollection,
45
+ "DesktopDevicePolicy": DesktopDevicePolicy,
46
+ "DesktopImage": DesktopImage,
47
+ "DesktopNetworkConfiguration": DesktopNetworkConfiguration,
48
+ "DesktopPool": DesktopPool,
49
+ "DesktopPoolCollection": DesktopPoolCollection,
50
+ "DesktopPoolDesktopCollection": DesktopPoolDesktopCollection,
51
+ "DesktopPoolDesktopSummary": DesktopPoolDesktopSummary,
52
+ "DesktopPoolSummary": DesktopPoolSummary,
53
+ "DesktopPoolVolumeCollection": DesktopPoolVolumeCollection,
54
+ "DesktopPoolVolumeSummary": DesktopPoolVolumeSummary,
55
+ "DesktopSchedule": DesktopSchedule,
56
+ "DesktopSummary": DesktopSummary,
57
+ "HostingOptions": HostingOptions,
58
+ "UpdateDesktopDetails": UpdateDesktopDetails,
59
+ "UpdateDesktopPoolDetails": UpdateDesktopPoolDetails,
60
+ "WorkRequest": WorkRequest,
61
+ "WorkRequestError": WorkRequestError,
62
+ "WorkRequestErrorCollection": WorkRequestErrorCollection,
63
+ "WorkRequestLogEntry": WorkRequestLogEntry,
64
+ "WorkRequestLogEntryCollection": WorkRequestLogEntryCollection,
65
+ "WorkRequestResource": WorkRequestResource,
66
+ "WorkRequestSummary": WorkRequestSummary,
67
+ "WorkRequestSummaryCollection": WorkRequestSummaryCollection
68
+ }
@@ -0,0 +1,72 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, 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: 20220618
6
+
7
+
8
+ from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
9
+ from oci.decorators import init_model_state_from_kwargs
10
+
11
+
12
+ @init_model_state_from_kwargs
13
+ class ChangeDesktopPoolCompartmentDetails(object):
14
+ """
15
+ Provides the OCID of the new compartment that will contain the desktop pool.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new ChangeDesktopPoolCompartmentDetails object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param compartment_id:
24
+ The value to assign to the compartment_id property of this ChangeDesktopPoolCompartmentDetails.
25
+ :type compartment_id: str
26
+
27
+ """
28
+ self.swagger_types = {
29
+ 'compartment_id': 'str'
30
+ }
31
+
32
+ self.attribute_map = {
33
+ 'compartment_id': 'compartmentId'
34
+ }
35
+
36
+ self._compartment_id = None
37
+
38
+ @property
39
+ def compartment_id(self):
40
+ """
41
+ **[Required]** Gets the compartment_id of this ChangeDesktopPoolCompartmentDetails.
42
+ The OCID of the compartment which will contain the desktop pool.
43
+
44
+
45
+ :return: The compartment_id of this ChangeDesktopPoolCompartmentDetails.
46
+ :rtype: str
47
+ """
48
+ return self._compartment_id
49
+
50
+ @compartment_id.setter
51
+ def compartment_id(self, compartment_id):
52
+ """
53
+ Sets the compartment_id of this ChangeDesktopPoolCompartmentDetails.
54
+ The OCID of the compartment which will contain the desktop pool.
55
+
56
+
57
+ :param compartment_id: The compartment_id of this ChangeDesktopPoolCompartmentDetails.
58
+ :type: str
59
+ """
60
+ self._compartment_id = compartment_id
61
+
62
+ def __repr__(self):
63
+ return formatted_flat_dict(self)
64
+
65
+ def __eq__(self, other):
66
+ if other is None:
67
+ return False
68
+
69
+ return self.__dict__ == other.__dict__
70
+
71
+ def __ne__(self, other):
72
+ return not self == other