oci 2.145.0__py3-none-any.whl → 2.146.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 (475) 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 +26 -26
  6. oci/ai_language/ai_service_language_client.py +44 -44
  7. oci/ai_speech/ai_service_speech_client.py +19 -19
  8. oci/ai_vision/ai_service_vision_client.py +28 -28
  9. oci/analytics/analytics_client.py +24 -24
  10. oci/announcements_service/announcement_client.py +5 -5
  11. oci/announcements_service/announcement_subscription_client.py +9 -9
  12. oci/announcements_service/announcements_preferences_client.py +4 -4
  13. oci/announcements_service/service_client.py +1 -1
  14. oci/apigateway/api_gateway_client.py +21 -21
  15. oci/apigateway/deployment_client.py +6 -6
  16. oci/apigateway/gateway_client.py +6 -6
  17. oci/apigateway/subscribers_client.py +6 -6
  18. oci/apigateway/usage_plans_client.py +6 -6
  19. oci/apigateway/work_requests_client.py +5 -5
  20. oci/apm_config/config_client.py +9 -9
  21. oci/apm_control_plane/apm_domain_client.py +14 -14
  22. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  23. oci/apm_traces/attributes_client.py +8 -8
  24. oci/apm_traces/query_client.py +2 -2
  25. oci/apm_traces/trace_client.py +4 -4
  26. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  27. oci/artifacts/artifacts_client.py +32 -32
  28. oci/audit/audit_client.py +3 -3
  29. oci/autoscaling/auto_scaling_client.py +11 -11
  30. oci/bastion/bastion_client.py +15 -15
  31. oci/bds/bds_client.py +84 -84
  32. oci/blockchain/blockchain_platform_client.py +27 -27
  33. oci/budget/budget_client.py +10 -10
  34. oci/capacity_management/capacity_management_client.py +32 -32
  35. oci/certificates/certificates_client.py +5 -5
  36. oci/certificates_management/certificates_management_client.py +32 -32
  37. oci/cims/incident_client.py +6 -6
  38. oci/cloud_bridge/common_client.py +5 -5
  39. oci/cloud_bridge/discovery_client.py +15 -15
  40. oci/cloud_bridge/inventory_client.py +16 -16
  41. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  42. oci/cloud_guard/cloud_guard_client.py +155 -155
  43. oci/cloud_migrations/migration_client.py +43 -43
  44. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  45. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  46. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  47. oci/compute_instance_agent/plugin_client.py +2 -2
  48. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  49. oci/container_engine/container_engine_client.py +44 -44
  50. oci/container_engine/models/open_id_connect_token_authentication_config.py +37 -2
  51. oci/container_instances/container_instance_client.py +18 -18
  52. oci/container_instances/models/__init__.py +0 -4
  53. oci/container_instances/models/container_health_check.py +3 -11
  54. oci/container_instances/models/container_http_health_check.py +1 -1
  55. oci/container_instances/models/container_tcp_health_check.py +1 -1
  56. oci/container_instances/models/create_container_details.py +2 -2
  57. oci/container_instances/models/create_container_health_check_details.py +3 -11
  58. oci/container_instances/models/create_container_http_health_check_details.py +1 -1
  59. oci/container_instances/models/create_container_tcp_health_check_details.py +1 -1
  60. oci/core/blockstorage_client.py +60 -60
  61. oci/core/compute_client.py +102 -102
  62. oci/core/compute_management_client.py +32 -32
  63. oci/core/models/create_byoip_range_details.py +66 -0
  64. oci/core/models/create_ipv6_details.py +97 -3
  65. oci/core/models/create_private_ip_details.py +96 -2
  66. oci/core/models/create_vnic_details.py +18 -18
  67. oci/core/models/ipv6.py +107 -3
  68. oci/core/models/launch_attach_volume_details.py +2 -2
  69. oci/core/models/network_security_group.py +7 -7
  70. oci/core/models/private_ip.py +107 -3
  71. oci/core/models/update_byoip_range_details.py +68 -2
  72. oci/core/models/update_ipv6_details.py +61 -4
  73. oci/core/models/update_private_ip_details.py +59 -2
  74. oci/core/models/update_vnic_details.py +8 -4
  75. oci/core/models/vnic.py +6 -2
  76. oci/core/virtual_network_client.py +519 -257
  77. oci/core/virtual_network_client_composite_operations.py +44 -0
  78. oci/dashboard_service/dashboard_client.py +6 -6
  79. oci/dashboard_service/dashboard_group_client.py +6 -6
  80. oci/data_catalog/data_catalog_client.py +149 -149
  81. oci/data_flow/data_flow_client.py +45 -45
  82. oci/data_integration/data_integration_client.py +163 -163
  83. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  84. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  85. oci/data_safe/data_safe_client.py +306 -306
  86. oci/data_science/data_science_client.py +101 -101
  87. oci/data_science/models/__init__.py +8 -0
  88. oci/data_science/models/create_pipeline_details.py +31 -0
  89. oci/data_science/models/pipeline.py +31 -0
  90. oci/data_science/models/pipeline_container_step_details.py +32 -1
  91. oci/data_science/models/pipeline_container_step_run.py +1 -1
  92. oci/data_science/models/pipeline_container_step_update_details.py +34 -3
  93. oci/data_science/models/pipeline_custom_script_step_details.py +32 -1
  94. oci/data_science/models/pipeline_custom_script_step_run.py +1 -1
  95. oci/data_science/models/pipeline_custom_script_step_update_details.py +34 -3
  96. oci/data_science/models/pipeline_dataflow_configuration_details.py +281 -0
  97. oci/data_science/models/pipeline_dataflow_step_details.py +141 -0
  98. oci/data_science/models/pipeline_dataflow_step_run.py +122 -0
  99. oci/data_science/models/pipeline_dataflow_step_update_details.py +99 -0
  100. oci/data_science/models/pipeline_ml_job_step_details.py +1 -1
  101. oci/data_science/models/pipeline_ml_job_step_run.py +1 -1
  102. oci/data_science/models/pipeline_ml_job_step_update_details.py +1 -1
  103. oci/data_science/models/pipeline_step_details.py +11 -3
  104. oci/data_science/models/pipeline_step_override_details.py +29 -2
  105. oci/data_science/models/pipeline_step_run.py +11 -3
  106. oci/data_science/models/pipeline_step_update_details.py +11 -3
  107. oci/data_science/models/update_pipeline_details.py +31 -0
  108. oci/database/database_client.py +404 -404
  109. oci/database_management/db_management_client.py +228 -228
  110. oci/database_management/diagnosability_client.py +4 -4
  111. oci/database_management/managed_my_sql_databases_client.py +9 -9
  112. oci/database_management/perfhub_client.py +1 -1
  113. oci/database_management/sql_tuning_client.py +17 -17
  114. oci/database_migration/database_migration_client.py +42 -42
  115. oci/database_tools/database_tools_client.py +23 -23
  116. oci/dblm/__init__.py +14 -0
  117. oci/dblm/db_life_cycle_management_client.py +1762 -0
  118. oci/dblm/db_life_cycle_management_client_composite_operations.py +65 -0
  119. oci/dblm/models/__init__.py +70 -0
  120. oci/dblm/models/aggregated_vulnerability_collection.py +72 -0
  121. oci/dblm/models/aggregated_vulnerability_summary.py +134 -0
  122. oci/dblm/models/child_pdb.py +227 -0
  123. oci/dblm/models/create_vulnerability_scan_details.py +103 -0
  124. oci/dblm/models/dblm_vulnerability.py +393 -0
  125. oci/dblm/models/host_info.py +103 -0
  126. oci/dblm/models/metric_error.py +227 -0
  127. oci/dblm/models/notification_collection.py +72 -0
  128. oci/dblm/models/notification_summary.py +185 -0
  129. oci/dblm/models/patch_recommendation_summary.py +134 -0
  130. oci/dblm/models/patch_recommendations_details_summary.py +227 -0
  131. oci/dblm/models/resource_info.py +382 -0
  132. oci/dblm/models/resource_summary.py +227 -0
  133. oci/dblm/models/vulnerabilities_summary.py +227 -0
  134. oci/dblm/models/vulnerability_collection.py +72 -0
  135. oci/dblm/models/vulnerability_resource_collection.py +72 -0
  136. oci/dblm/models/vulnerability_resource_summary.py +475 -0
  137. oci/dblm/models/vulnerability_scan.py +525 -0
  138. oci/dblm/models/vulnerability_scan_collection.py +72 -0
  139. oci/dblm/models/vulnerability_scan_summary.py +443 -0
  140. oci/dblm/models/vulnerability_summary.py +196 -0
  141. oci/dblm/models/work_request.py +426 -0
  142. oci/dblm/models/work_request_error.py +136 -0
  143. oci/dblm/models/work_request_error_collection.py +72 -0
  144. oci/dblm/models/work_request_log_entry.py +103 -0
  145. oci/dblm/models/work_request_log_entry_collection.py +72 -0
  146. oci/dblm/models/work_request_resource.py +234 -0
  147. oci/dblm/models/work_request_summary.py +426 -0
  148. oci/dblm/models/work_request_summary_collection.py +72 -0
  149. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  150. oci/delegate_access_control/work_request_client.py +4 -4
  151. oci/demand_signal/occ_demand_signal_client.py +7 -7
  152. oci/desktops/desktop_service_client.py +21 -21
  153. oci/devops/devops_client.py +141 -141
  154. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  155. oci/dns/dns_client.py +54 -54
  156. oci/dts/appliance_export_job_client.py +6 -6
  157. oci/dts/shipping_vendors_client.py +1 -1
  158. oci/dts/transfer_appliance_client.py +8 -8
  159. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  160. oci/dts/transfer_device_client.py +5 -5
  161. oci/dts/transfer_job_client.py +6 -6
  162. oci/dts/transfer_package_client.py +7 -7
  163. oci/em_warehouse/em_warehouse_client.py +13 -13
  164. oci/email/email_client.py +31 -31
  165. oci/email/models/create_dkim_details.py +31 -0
  166. oci/email/models/dkim.py +62 -0
  167. oci/email/models/dkim_summary.py +62 -0
  168. oci/email_data_plane/email_dp_client.py +1 -1
  169. oci/events/events_client.py +6 -6
  170. oci/file_storage/file_storage_client.py +68 -68
  171. oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
  172. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  173. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  174. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  175. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
  176. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  177. oci/functions/functions_invoke_client.py +1 -1
  178. oci/functions/functions_management_client.py +16 -16
  179. oci/fusion_apps/fusion_applications_client.py +41 -41
  180. oci/generative_ai/generative_ai_client.py +22 -22
  181. oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
  182. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
  183. oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
  184. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  185. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  186. oci/golden_gate/golden_gate_client.py +84 -84
  187. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  188. oci/governance_rules_control_plane/work_request_client.py +5 -5
  189. oci/healthchecks/health_checks_client.py +17 -17
  190. oci/identity/identity_client.py +145 -145
  191. oci/identity_data_plane/dataplane_client.py +2 -2
  192. oci/identity_domains/identity_domains_client.py +311 -311
  193. oci/integration/integration_instance_client.py +19 -19
  194. oci/jms/java_management_service_client.py +79 -79
  195. oci/jms_java_downloads/java_download_client.py +25 -25
  196. oci/key_management/ekm_client.py +5 -5
  197. oci/key_management/kms_crypto_client.py +6 -6
  198. oci/key_management/kms_hsm_cluster_client.py +12 -12
  199. oci/key_management/kms_management_client.py +21 -21
  200. oci/key_management/kms_vault_client.py +14 -14
  201. oci/license_manager/license_manager_client.py +18 -18
  202. oci/limits/limits_client.py +4 -4
  203. oci/limits/quotas_client.py +7 -7
  204. oci/load_balancer/load_balancer_client.py +61 -61
  205. oci/load_balancer/models/create_load_balancer_details.py +15 -15
  206. oci/load_balancer/models/load_balancer.py +15 -15
  207. oci/load_balancer/models/update_load_balancer_details.py +15 -15
  208. oci/lockbox/lockbox_client.py +24 -24
  209. oci/log_analytics/log_analytics_client.py +193 -193
  210. oci/logging/logging_management_client.py +30 -30
  211. oci/loggingingestion/logging_client.py +1 -1
  212. oci/loggingsearch/log_search_client.py +1 -1
  213. oci/management_agent/management_agent_client.py +28 -28
  214. oci/management_dashboard/dashx_apis_client.py +14 -14
  215. oci/marketplace/account_client.py +2 -2
  216. oci/marketplace/marketplace_client.py +30 -30
  217. oci/marketplace_private_offer/attachment_client.py +5 -5
  218. oci/marketplace_private_offer/offer_client.py +6 -6
  219. oci/marketplace_publisher/attachment_client.py +5 -5
  220. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  221. oci/marketplace_publisher/offer_client.py +6 -6
  222. oci/media_services/media_services_client.py +60 -60
  223. oci/media_services/media_stream_client.py +2 -2
  224. oci/monitoring/monitoring_client.py +18 -18
  225. oci/mysql/channels_client.py +7 -7
  226. oci/mysql/db_backups_client.py +7 -7
  227. oci/mysql/db_system_client.py +17 -17
  228. oci/mysql/models/backup.py +33 -0
  229. oci/mysql/models/backup_summary.py +33 -0
  230. oci/mysql/models/channel.py +35 -2
  231. oci/mysql/models/channel_summary.py +35 -2
  232. oci/mysql/models/configuration.py +35 -2
  233. oci/mysql/models/configuration_summary.py +35 -2
  234. oci/mysql/models/configuration_variables.py +4949 -1858
  235. oci/mysql/models/db_system.py +33 -0
  236. oci/mysql/models/db_system_summary.py +33 -0
  237. oci/mysql/mysqlaas_client.py +7 -7
  238. oci/mysql/replicas_client.py +5 -5
  239. oci/mysql/work_requests_client.py +4 -4
  240. oci/network_firewall/network_firewall_client.py +86 -86
  241. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  242. oci/nosql/nosql_client.py +24 -24
  243. oci/object_storage/object_storage_client.py +55 -55
  244. oci/oce/oce_instance_client.py +10 -10
  245. oci/oci_control_center/occ_metrics_client.py +3 -3
  246. oci/ocvp/cluster_client.py +5 -5
  247. oci/ocvp/esxi_host_client.py +8 -8
  248. oci/ocvp/sddc_client.py +14 -14
  249. oci/ocvp/work_request_client.py +4 -4
  250. oci/oda/management_client.py +59 -59
  251. oci/oda/oda_client.py +17 -17
  252. oci/oda/odapackage_client.py +7 -7
  253. oci/onesubscription/billing_schedule_client.py +1 -1
  254. oci/onesubscription/commitment_client.py +2 -2
  255. oci/onesubscription/computed_usage_client.py +3 -3
  256. oci/onesubscription/invoice_summary_client.py +2 -2
  257. oci/onesubscription/organization_subscription_client.py +1 -1
  258. oci/onesubscription/ratecard_client.py +1 -1
  259. oci/onesubscription/subscribed_service_client.py +2 -2
  260. oci/onesubscription/subscription_client.py +1 -1
  261. oci/ons/notification_control_plane_client.py +6 -6
  262. oci/ons/notification_data_plane_client.py +10 -10
  263. oci/opa/opa_instance_client.py +13 -13
  264. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  265. oci/opensearch/opensearch_cluster_client.py +16 -16
  266. oci/operator_access_control/access_requests_client.py +10 -10
  267. oci/operator_access_control/operator_actions_client.py +2 -2
  268. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  269. oci/operator_access_control/operator_control_client.py +6 -6
  270. oci/opsi/operations_insights_client.py +181 -181
  271. oci/optimizer/optimizer_client.py +26 -26
  272. oci/os_management/event_client.py +8 -8
  273. oci/os_management/os_management_client.py +69 -69
  274. oci/os_management_hub/event_client.py +10 -10
  275. oci/os_management_hub/lifecycle_environment_client.py +138 -16
  276. oci/os_management_hub/lifecycle_environment_client_composite_operations.py +44 -0
  277. oci/os_management_hub/managed_instance_client.py +309 -35
  278. oci/os_management_hub/managed_instance_client_composite_operations.py +91 -0
  279. oci/os_management_hub/managed_instance_group_client.py +149 -27
  280. oci/os_management_hub/managed_instance_group_client_composite_operations.py +44 -0
  281. oci/os_management_hub/management_station_client.py +59 -16
  282. oci/os_management_hub/models/__init__.py +54 -0
  283. oci/os_management_hub/models/add_packages_to_software_source_details.py +35 -4
  284. oci/os_management_hub/models/agent_event.py +1 -1
  285. oci/os_management_hub/models/associate_managed_instances_with_management_station_details.py +103 -0
  286. oci/os_management_hub/models/attach_lifecycle_stage_to_profile_details.py +76 -0
  287. oci/os_management_hub/models/attach_managed_instance_group_to_profile_details.py +76 -0
  288. oci/os_management_hub/models/attach_managed_instances_to_lifecycle_stage_details.py +1 -1
  289. oci/os_management_hub/models/attach_management_station_to_profile_details.py +76 -0
  290. oci/os_management_hub/models/attach_software_sources_to_profile_details.py +76 -0
  291. oci/os_management_hub/models/available_package_summary.py +1 -1
  292. oci/os_management_hub/models/create_custom_software_source_details.py +54 -3
  293. oci/os_management_hub/models/create_lifecycle_environment_details.py +7 -3
  294. oci/os_management_hub/models/create_managed_instance_group_details.py +7 -3
  295. oci/os_management_hub/models/create_management_station_details.py +31 -0
  296. oci/os_management_hub/models/create_mirror_configuration_details.py +33 -2
  297. oci/os_management_hub/models/create_private_software_source_details.py +406 -0
  298. oci/os_management_hub/models/create_profile_details.py +12 -4
  299. oci/os_management_hub/models/create_scheduled_job_details.py +37 -2
  300. oci/os_management_hub/models/create_software_source_details.py +19 -3
  301. oci/os_management_hub/models/create_software_source_profile_details.py +7 -3
  302. oci/os_management_hub/models/create_station_profile_details.py +7 -3
  303. oci/os_management_hub/models/create_third_party_software_source_details.py +406 -0
  304. oci/os_management_hub/models/create_vendor_software_source_details.py +1 -1
  305. oci/os_management_hub/models/create_versioned_custom_software_source_details.py +54 -3
  306. oci/os_management_hub/models/create_windows_stand_alone_profile_details.py +288 -0
  307. oci/os_management_hub/models/custom_software_source.py +102 -9
  308. oci/os_management_hub/models/custom_software_source_summary.py +64 -8
  309. oci/os_management_hub/models/detach_managed_instances_from_lifecycle_stage_details.py +1 -1
  310. oci/os_management_hub/models/detach_software_sources_from_profile_details.py +76 -0
  311. oci/os_management_hub/models/event.py +23 -3
  312. oci/os_management_hub/models/event_summary.py +11 -3
  313. oci/os_management_hub/models/exploit_attempt_event.py +1 -1
  314. oci/os_management_hub/models/group_profile.py +16 -2
  315. oci/os_management_hub/models/install_packages_on_managed_instance_group_details.py +33 -2
  316. oci/os_management_hub/models/installed_package_summary.py +1 -1
  317. oci/os_management_hub/models/kernel_crash_event.py +1 -1
  318. oci/os_management_hub/models/kernel_oops_event.py +1 -1
  319. oci/os_management_hub/models/ksplice_update_event.py +1 -1
  320. oci/os_management_hub/models/lifecycle_environment.py +7 -3
  321. oci/os_management_hub/models/lifecycle_environment_summary.py +7 -3
  322. oci/os_management_hub/models/lifecycle_profile.py +16 -2
  323. oci/os_management_hub/models/lifecycle_stage.py +7 -3
  324. oci/os_management_hub/models/lifecycle_stage_summary.py +7 -3
  325. oci/os_management_hub/models/managed_instance.py +80 -10
  326. oci/os_management_hub/models/managed_instance_analytic_summary.py +11 -3
  327. oci/os_management_hub/models/managed_instance_group.py +7 -3
  328. oci/os_management_hub/models/managed_instance_group_available_package_summary.py +7 -3
  329. oci/os_management_hub/models/managed_instance_group_summary.py +7 -3
  330. oci/os_management_hub/models/managed_instance_summary.py +47 -8
  331. oci/os_management_hub/models/management_station.py +276 -0
  332. oci/os_management_hub/models/management_station_event.py +1 -1
  333. oci/os_management_hub/models/management_station_event_data.py +58 -3
  334. oci/os_management_hub/models/management_station_summary.py +67 -4
  335. oci/os_management_hub/models/mirror_configuration.py +33 -2
  336. oci/os_management_hub/models/mirror_summary.py +107 -25
  337. oci/os_management_hub/models/mirrors_collection.py +2 -1
  338. oci/os_management_hub/models/module_stream.py +7 -3
  339. oci/os_management_hub/models/package_name_summary.py +7 -3
  340. oci/os_management_hub/models/package_summary.py +7 -3
  341. oci/os_management_hub/models/peer_management_station.py +108 -0
  342. oci/os_management_hub/models/private_software_source.py +330 -0
  343. oci/os_management_hub/models/private_software_source_summary.py +212 -0
  344. oci/os_management_hub/models/profile.py +84 -8
  345. oci/os_management_hub/models/profile_collection.py +1 -1
  346. oci/os_management_hub/models/profile_summary.py +17 -7
  347. oci/os_management_hub/models/profile_version.py +811 -0
  348. oci/os_management_hub/models/reboot_event.py +184 -0
  349. oci/os_management_hub/models/reboot_event_data.py +123 -0
  350. oci/os_management_hub/models/reboot_lifecycle_stage_details.py +101 -0
  351. oci/os_management_hub/models/reboot_managed_instance_details.py +101 -0
  352. oci/os_management_hub/models/reboot_managed_instance_group_details.py +101 -0
  353. oci/os_management_hub/models/remove_packages_from_software_source_details.py +72 -0
  354. oci/os_management_hub/models/replace_packages_in_software_source_details.py +72 -0
  355. oci/os_management_hub/models/rerun_work_request_details.py +103 -0
  356. oci/os_management_hub/models/scheduled_job.py +37 -2
  357. oci/os_management_hub/models/scheduled_job_operation.py +46 -5
  358. oci/os_management_hub/models/scheduled_job_summary.py +37 -2
  359. oci/os_management_hub/models/software_source.py +39 -15
  360. oci/os_management_hub/models/software_source_details.py +11 -3
  361. oci/os_management_hub/models/software_source_event.py +1 -1
  362. oci/os_management_hub/models/software_source_profile.py +16 -2
  363. oci/os_management_hub/models/software_source_summary.py +30 -10
  364. oci/os_management_hub/models/software_source_vendor_summary.py +7 -3
  365. oci/os_management_hub/models/software_update_event.py +1 -1
  366. oci/os_management_hub/models/station_health.py +7 -3
  367. oci/os_management_hub/models/station_profile.py +16 -2
  368. oci/os_management_hub/models/synchronize_mirrors_details.py +7 -3
  369. oci/os_management_hub/models/sysadmin_event.py +184 -0
  370. oci/os_management_hub/models/sysadmin_event_data.py +239 -0
  371. oci/os_management_hub/models/system_details.py +7 -3
  372. oci/os_management_hub/models/third_party_software_source.py +330 -0
  373. oci/os_management_hub/models/third_party_software_source_summary.py +212 -0
  374. oci/os_management_hub/models/updatable_package_summary.py +1 -1
  375. oci/os_management_hub/models/update_custom_software_source_details.py +1 -1
  376. oci/os_management_hub/models/update_management_station_details.py +31 -0
  377. oci/os_management_hub/models/update_mirror_configuration_details.py +33 -2
  378. oci/os_management_hub/models/update_private_software_source_details.py +272 -0
  379. oci/os_management_hub/models/update_profile_details.py +1 -1
  380. oci/os_management_hub/models/update_scheduled_job_details.py +2 -2
  381. oci/os_management_hub/models/update_software_source_details.py +19 -3
  382. oci/os_management_hub/models/update_third_party_software_source_details.py +272 -0
  383. oci/os_management_hub/models/update_vendor_software_source_details.py +1 -1
  384. oci/os_management_hub/models/update_versioned_custom_software_source_details.py +1 -1
  385. oci/os_management_hub/models/update_work_request_details.py +9 -5
  386. oci/os_management_hub/models/vendor_software_source.py +5 -5
  387. oci/os_management_hub/models/vendor_software_source_summary.py +2 -2
  388. oci/os_management_hub/models/versioned_custom_software_source.py +102 -9
  389. oci/os_management_hub/models/versioned_custom_software_source_summary.py +63 -7
  390. oci/os_management_hub/models/windows_standalone_profile.py +17 -3
  391. oci/os_management_hub/models/work_request.py +102 -14
  392. oci/os_management_hub/models/work_request_error.py +4 -4
  393. oci/os_management_hub/models/work_request_error_collection.py +1 -1
  394. oci/os_management_hub/models/work_request_log_entry_collection.py +1 -1
  395. oci/os_management_hub/models/work_request_summary.py +47 -8
  396. oci/os_management_hub/models/work_request_summary_collection.py +1 -1
  397. oci/os_management_hub/onboarding_client.py +991 -75
  398. oci/os_management_hub/reporting_managed_instance_client.py +9 -9
  399. oci/os_management_hub/scheduled_job_client.py +9 -9
  400. oci/os_management_hub/software_source_client.py +848 -47
  401. oci/os_management_hub/software_source_client_composite_operations.py +132 -0
  402. oci/os_management_hub/work_request_client.py +144 -11
  403. oci/os_management_hub/work_request_client_composite_operations.py +46 -0
  404. oci/osp_gateway/address_rule_service_client.py +1 -1
  405. oci/osp_gateway/address_service_client.py +2 -2
  406. oci/osp_gateway/invoice_service_client.py +5 -5
  407. oci/osp_gateway/subscription_service_client.py +5 -5
  408. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  409. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  410. oci/osub_subscription/commitment_client.py +2 -2
  411. oci/osub_subscription/ratecard_client.py +1 -1
  412. oci/osub_subscription/subscription_client.py +1 -1
  413. oci/osub_usage/computed_usage_client.py +3 -3
  414. oci/psql/postgresql_client.py +33 -33
  415. oci/queue/queue_admin_client.py +11 -11
  416. oci/queue/queue_client.py +8 -8
  417. oci/recovery/database_recovery_client.py +26 -26
  418. oci/redis/models/redis_cluster.py +7 -3
  419. oci/redis/models/update_redis_cluster_details.py +31 -0
  420. oci/redis/redis_cluster_client.py +12 -12
  421. oci/resource_manager/resource_manager_client.py +52 -52
  422. oci/resource_scheduler/schedule_client.py +13 -13
  423. oci/resource_search/resource_search_client.py +3 -3
  424. oci/rover/rover_bundle_client.py +8 -8
  425. oci/rover/rover_cluster_client.py +8 -8
  426. oci/rover/rover_entitlement_client.py +6 -6
  427. oci/rover/rover_node_client.py +15 -15
  428. oci/rover/shape_client.py +1 -1
  429. oci/rover/work_requests_client.py +5 -5
  430. oci/sch/connector_plugins_client.py +2 -2
  431. oci/sch/service_connector_client.py +12 -12
  432. oci/secrets/secrets_client.py +3 -3
  433. oci/security_attribute/security_attribute_client.py +18 -18
  434. oci/service_catalog/service_catalog_client.py +26 -26
  435. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  436. oci/service_mesh/service_mesh_client.py +48 -48
  437. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  438. oci/streaming/stream_admin_client.py +18 -18
  439. oci/streaming/stream_client.py +8 -8
  440. oci/tenant_manager_control_plane/domain_client.py +5 -5
  441. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  442. oci/tenant_manager_control_plane/governance_client.py +2 -2
  443. oci/tenant_manager_control_plane/link_client.py +3 -3
  444. oci/tenant_manager_control_plane/orders_client.py +2 -2
  445. oci/tenant_manager_control_plane/organization_client.py +10 -10
  446. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  447. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  448. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  449. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  450. oci/threat_intelligence/threatintel_client.py +5 -5
  451. oci/usage/resources_client.py +2 -2
  452. oci/usage/rewards_client.py +6 -6
  453. oci/usage/usagelimits_client.py +1 -1
  454. oci/usage_api/usageapi_client.py +33 -33
  455. oci/vault/vaults_client.py +13 -13
  456. oci/vbs_inst/vbs_instance_client.py +10 -10
  457. oci/version.py +1 -1
  458. oci/visual_builder/vb_instance_client.py +14 -14
  459. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  460. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  461. oci/waa/waa_client.py +13 -13
  462. oci/waa/work_request_client.py +4 -4
  463. oci/waas/redirect_client.py +6 -6
  464. oci/waas/waas_client.py +66 -66
  465. oci/waf/waf_client.py +24 -24
  466. oci/work_requests/work_request_client.py +4 -4
  467. oci/zpr/zpr_client.py +15 -15
  468. {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/METADATA +1 -1
  469. {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/RECORD +473 -411
  470. oci/container_instances/models/container_command_health_check.py +0 -147
  471. oci/container_instances/models/create_container_command_health_check_details.py +0 -132
  472. {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/LICENSE.txt +0 -0
  473. {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  474. {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/WHEEL +0 -0
  475. {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1762 @@
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: 20240102
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from oci._vendor import requests # noqa: F401
10
+ from oci._vendor import six
11
+
12
+ from oci import retry, circuit_breaker # noqa: F401
13
+ from oci.base_client import BaseClient
14
+ from oci.config import get_config_value_or_default, validate_config
15
+ from oci.signer import Signer
16
+ from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
17
+ from oci.exceptions import InvalidAlloyConfig
18
+ from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
19
+ from .models import dblm_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class DbLifeCycleManagementClient(object):
24
+ """
25
+ A description of the Dblm API
26
+ """
27
+
28
+ def __init__(self, config, **kwargs):
29
+ """
30
+ Creates a new service client
31
+
32
+ :param dict config:
33
+ Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
34
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
35
+ the dict using :py:meth:`~oci.config.validate_config`
36
+
37
+ :param str service_endpoint: (optional)
38
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
39
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
40
+ need to specify a service endpoint.
41
+
42
+ :param timeout: (optional)
43
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
44
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
45
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
46
+ :type timeout: float or tuple(float, float)
47
+
48
+ :param signer: (optional)
49
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
50
+ provided in the config parameter.
51
+
52
+ One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
53
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
54
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
55
+
56
+ :param obj retry_strategy: (optional)
57
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
58
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
59
+ Any value provided at the operation level will override whatever is specified at the client level.
60
+
61
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
62
+ is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
63
+
64
+ :param obj circuit_breaker_strategy: (optional)
65
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
66
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
67
+ The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
68
+
69
+ :param function circuit_breaker_callback: (optional)
70
+ Callback function to receive any exceptions triggerred by the circuit breaker.
71
+
72
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
73
+ A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
74
+
75
+ :param allow_control_chars: (optional)
76
+ allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
77
+ allow control characters to be in the response object.
78
+ """
79
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("dblm"):
80
+ raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
81
+
82
+ validate_config(config, signer=kwargs.get('signer'))
83
+ if 'signer' in kwargs:
84
+ signer = kwargs['signer']
85
+
86
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
87
+ signer = get_signer_from_authentication_type(config)
88
+
89
+ else:
90
+ signer = Signer(
91
+ tenancy=config["tenancy"],
92
+ user=config["user"],
93
+ fingerprint=config["fingerprint"],
94
+ private_key_file_location=config.get("key_file"),
95
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
96
+ private_key_content=config.get("key_content")
97
+ )
98
+
99
+ base_client_init_kwargs = {
100
+ 'regional_client': True,
101
+ 'service_endpoint': kwargs.get('service_endpoint'),
102
+ 'base_path': '/20240102',
103
+ 'service_endpoint_template': 'https://dbmgmt.{region}.oci.{secondLevelDomain}',
104
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
105
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
106
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
107
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
108
+ }
109
+ if 'timeout' in kwargs:
110
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
111
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
112
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
113
+ if 'allow_control_chars' in kwargs:
114
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
115
+ self.base_client = BaseClient("db_life_cycle_management", config, signer, dblm_type_mapping, **base_client_init_kwargs)
116
+ self.retry_strategy = kwargs.get('retry_strategy')
117
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
118
+
119
+ def create_vulnerability_scan(self, create_vulnerability_scan_details, **kwargs):
120
+ """
121
+ Creates a VulnerabilityScan.
122
+
123
+
124
+ :param oci.dblm.models.CreateVulnerabilityScanDetails create_vulnerability_scan_details: (required)
125
+ Details for the new VulnerabilityScan.
126
+
127
+ :param str opc_retry_token: (optional)
128
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
129
+ server error without risk of executing that same action again. Retry tokens expire after 24
130
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
131
+ has been deleted and purged from the system, then a retry of the original creation request
132
+ might be rejected.
133
+
134
+ :param str opc_request_id: (optional)
135
+ The client request ID for tracing.
136
+
137
+ :param obj retry_strategy: (optional)
138
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
139
+
140
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
141
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
142
+
143
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
144
+
145
+ :param bool allow_control_chars: (optional)
146
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
147
+ By default, the response will not allow control characters in strings
148
+
149
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.VulnerabilityScan`
150
+ :rtype: :class:`~oci.response.Response`
151
+
152
+ :example:
153
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/create_vulnerability_scan.py.html>`__ to see an example of how to use create_vulnerability_scan API.
154
+ """
155
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
156
+ required_arguments = []
157
+ resource_path = "/vulnerabilityScans"
158
+ method = "POST"
159
+ operation_name = "create_vulnerability_scan"
160
+ api_reference_link = ""
161
+
162
+ # Don't accept unknown kwargs
163
+ expected_kwargs = [
164
+ "allow_control_chars",
165
+ "retry_strategy",
166
+ "opc_retry_token",
167
+ "opc_request_id"
168
+ ]
169
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
170
+ if extra_kwargs:
171
+ raise ValueError(
172
+ f"create_vulnerability_scan got unknown kwargs: {extra_kwargs!r}")
173
+
174
+ header_params = {
175
+ "accept": "application/json",
176
+ "content-type": "application/json",
177
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
178
+ "opc-request-id": kwargs.get("opc_request_id", missing)
179
+ }
180
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
181
+
182
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
183
+ operation_retry_strategy=kwargs.get('retry_strategy'),
184
+ client_retry_strategy=self.retry_strategy
185
+ )
186
+ if retry_strategy is None:
187
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
188
+
189
+ if retry_strategy:
190
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
191
+ self.base_client.add_opc_retry_token_if_needed(header_params)
192
+ self.base_client.add_opc_client_retries_header(header_params)
193
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
194
+ return retry_strategy.make_retrying_call(
195
+ self.base_client.call_api,
196
+ resource_path=resource_path,
197
+ method=method,
198
+ header_params=header_params,
199
+ body=create_vulnerability_scan_details,
200
+ response_type="VulnerabilityScan",
201
+ allow_control_chars=kwargs.get('allow_control_chars'),
202
+ operation_name=operation_name,
203
+ api_reference_link=api_reference_link,
204
+ required_arguments=required_arguments)
205
+ else:
206
+ return self.base_client.call_api(
207
+ resource_path=resource_path,
208
+ method=method,
209
+ header_params=header_params,
210
+ body=create_vulnerability_scan_details,
211
+ response_type="VulnerabilityScan",
212
+ allow_control_chars=kwargs.get('allow_control_chars'),
213
+ operation_name=operation_name,
214
+ api_reference_link=api_reference_link,
215
+ required_arguments=required_arguments)
216
+
217
+ def get_vulnerability(self, compartment_id, **kwargs):
218
+ """
219
+ Gets a Vulnerability
220
+
221
+
222
+ :param str compartment_id: (required)
223
+ The required ID of the compartment in which to list resources.
224
+
225
+ :param str opc_request_id: (optional)
226
+ The client request ID for tracing.
227
+
228
+ :param str database_release: (optional)
229
+ A filter to return only database that match the given release version.
230
+
231
+ :param str lifecycle_state: (optional)
232
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
233
+
234
+ Allowed values are: "CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"
235
+
236
+ :param obj retry_strategy: (optional)
237
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
238
+
239
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
240
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
241
+
242
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
243
+
244
+ :param bool allow_control_chars: (optional)
245
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
246
+ By default, the response will not allow control characters in strings
247
+
248
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.DblmVulnerability`
249
+ :rtype: :class:`~oci.response.Response`
250
+
251
+ :example:
252
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/get_vulnerability.py.html>`__ to see an example of how to use get_vulnerability API.
253
+ """
254
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
255
+ required_arguments = ['compartmentId']
256
+ resource_path = "/vulnerability"
257
+ method = "GET"
258
+ operation_name = "get_vulnerability"
259
+ api_reference_link = ""
260
+
261
+ # Don't accept unknown kwargs
262
+ expected_kwargs = [
263
+ "allow_control_chars",
264
+ "retry_strategy",
265
+ "opc_request_id",
266
+ "database_release",
267
+ "lifecycle_state"
268
+ ]
269
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
270
+ if extra_kwargs:
271
+ raise ValueError(
272
+ f"get_vulnerability got unknown kwargs: {extra_kwargs!r}")
273
+
274
+ if 'lifecycle_state' in kwargs:
275
+ lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"]
276
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
277
+ raise ValueError(
278
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
279
+ )
280
+
281
+ query_params = {
282
+ "compartmentId": compartment_id,
283
+ "databaseRelease": kwargs.get("database_release", missing),
284
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
285
+ }
286
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
287
+
288
+ header_params = {
289
+ "accept": "application/json",
290
+ "content-type": "application/json",
291
+ "opc-request-id": kwargs.get("opc_request_id", missing)
292
+ }
293
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
294
+
295
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
296
+ operation_retry_strategy=kwargs.get('retry_strategy'),
297
+ client_retry_strategy=self.retry_strategy
298
+ )
299
+ if retry_strategy is None:
300
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
301
+
302
+ if retry_strategy:
303
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
304
+ self.base_client.add_opc_client_retries_header(header_params)
305
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
306
+ return retry_strategy.make_retrying_call(
307
+ self.base_client.call_api,
308
+ resource_path=resource_path,
309
+ method=method,
310
+ query_params=query_params,
311
+ header_params=header_params,
312
+ response_type="DblmVulnerability",
313
+ allow_control_chars=kwargs.get('allow_control_chars'),
314
+ operation_name=operation_name,
315
+ api_reference_link=api_reference_link,
316
+ required_arguments=required_arguments)
317
+ else:
318
+ return self.base_client.call_api(
319
+ resource_path=resource_path,
320
+ method=method,
321
+ query_params=query_params,
322
+ header_params=header_params,
323
+ response_type="DblmVulnerability",
324
+ allow_control_chars=kwargs.get('allow_control_chars'),
325
+ operation_name=operation_name,
326
+ api_reference_link=api_reference_link,
327
+ required_arguments=required_arguments)
328
+
329
+ def get_vulnerability_scan(self, vulnerability_scan_id, **kwargs):
330
+ """
331
+ Gets information about a VulnerabilityScan.
332
+
333
+
334
+ :param str vulnerability_scan_id: (required)
335
+ The `OCID`__ of the VulnerabilityScan.
336
+
337
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
338
+
339
+ :param str opc_request_id: (optional)
340
+ The client request ID for tracing.
341
+
342
+ :param obj retry_strategy: (optional)
343
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
344
+
345
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
346
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
347
+
348
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
349
+
350
+ :param bool allow_control_chars: (optional)
351
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
352
+ By default, the response will not allow control characters in strings
353
+
354
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.VulnerabilityScan`
355
+ :rtype: :class:`~oci.response.Response`
356
+
357
+ :example:
358
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/get_vulnerability_scan.py.html>`__ to see an example of how to use get_vulnerability_scan API.
359
+ """
360
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
361
+ required_arguments = ['vulnerabilityScanId']
362
+ resource_path = "/vulnerabilityScans/{vulnerabilityScanId}"
363
+ method = "GET"
364
+ operation_name = "get_vulnerability_scan"
365
+ api_reference_link = ""
366
+
367
+ # Don't accept unknown kwargs
368
+ expected_kwargs = [
369
+ "allow_control_chars",
370
+ "retry_strategy",
371
+ "opc_request_id"
372
+ ]
373
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
374
+ if extra_kwargs:
375
+ raise ValueError(
376
+ f"get_vulnerability_scan got unknown kwargs: {extra_kwargs!r}")
377
+
378
+ path_params = {
379
+ "vulnerabilityScanId": vulnerability_scan_id
380
+ }
381
+
382
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
383
+
384
+ for (k, v) in six.iteritems(path_params):
385
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
386
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
387
+
388
+ header_params = {
389
+ "accept": "application/json",
390
+ "content-type": "application/json",
391
+ "opc-request-id": kwargs.get("opc_request_id", missing)
392
+ }
393
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
394
+
395
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
396
+ operation_retry_strategy=kwargs.get('retry_strategy'),
397
+ client_retry_strategy=self.retry_strategy
398
+ )
399
+ if retry_strategy is None:
400
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
401
+
402
+ if retry_strategy:
403
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
404
+ self.base_client.add_opc_client_retries_header(header_params)
405
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
406
+ return retry_strategy.make_retrying_call(
407
+ self.base_client.call_api,
408
+ resource_path=resource_path,
409
+ method=method,
410
+ path_params=path_params,
411
+ header_params=header_params,
412
+ response_type="VulnerabilityScan",
413
+ allow_control_chars=kwargs.get('allow_control_chars'),
414
+ operation_name=operation_name,
415
+ api_reference_link=api_reference_link,
416
+ required_arguments=required_arguments)
417
+ else:
418
+ return self.base_client.call_api(
419
+ resource_path=resource_path,
420
+ method=method,
421
+ path_params=path_params,
422
+ header_params=header_params,
423
+ response_type="VulnerabilityScan",
424
+ allow_control_chars=kwargs.get('allow_control_chars'),
425
+ operation_name=operation_name,
426
+ api_reference_link=api_reference_link,
427
+ required_arguments=required_arguments)
428
+
429
+ def get_work_request(self, work_request_id, **kwargs):
430
+ """
431
+ Gets details of the work request with the given ID.
432
+
433
+
434
+ :param str work_request_id: (required)
435
+ The ID of the asynchronous request.
436
+
437
+ :param str opc_request_id: (optional)
438
+ The client request ID for tracing.
439
+
440
+ :param obj retry_strategy: (optional)
441
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
442
+
443
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
444
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
445
+
446
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
447
+
448
+ :param bool allow_control_chars: (optional)
449
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
450
+ By default, the response will not allow control characters in strings
451
+
452
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.WorkRequest`
453
+ :rtype: :class:`~oci.response.Response`
454
+
455
+ :example:
456
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
457
+ """
458
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
459
+ required_arguments = ['workRequestId']
460
+ resource_path = "/workRequests/{workRequestId}"
461
+ method = "GET"
462
+ operation_name = "get_work_request"
463
+ api_reference_link = ""
464
+
465
+ # Don't accept unknown kwargs
466
+ expected_kwargs = [
467
+ "allow_control_chars",
468
+ "retry_strategy",
469
+ "opc_request_id"
470
+ ]
471
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
472
+ if extra_kwargs:
473
+ raise ValueError(
474
+ f"get_work_request got unknown kwargs: {extra_kwargs!r}")
475
+
476
+ path_params = {
477
+ "workRequestId": work_request_id
478
+ }
479
+
480
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
481
+
482
+ for (k, v) in six.iteritems(path_params):
483
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
484
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
485
+
486
+ header_params = {
487
+ "accept": "application/json",
488
+ "content-type": "application/json",
489
+ "opc-request-id": kwargs.get("opc_request_id", missing)
490
+ }
491
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
492
+
493
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
494
+ operation_retry_strategy=kwargs.get('retry_strategy'),
495
+ client_retry_strategy=self.retry_strategy
496
+ )
497
+ if retry_strategy is None:
498
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
499
+
500
+ if retry_strategy:
501
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
502
+ self.base_client.add_opc_client_retries_header(header_params)
503
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
504
+ return retry_strategy.make_retrying_call(
505
+ self.base_client.call_api,
506
+ resource_path=resource_path,
507
+ method=method,
508
+ path_params=path_params,
509
+ header_params=header_params,
510
+ response_type="WorkRequest",
511
+ allow_control_chars=kwargs.get('allow_control_chars'),
512
+ operation_name=operation_name,
513
+ api_reference_link=api_reference_link,
514
+ required_arguments=required_arguments)
515
+ else:
516
+ return self.base_client.call_api(
517
+ resource_path=resource_path,
518
+ method=method,
519
+ path_params=path_params,
520
+ header_params=header_params,
521
+ response_type="WorkRequest",
522
+ allow_control_chars=kwargs.get('allow_control_chars'),
523
+ operation_name=operation_name,
524
+ api_reference_link=api_reference_link,
525
+ required_arguments=required_arguments)
526
+
527
+ def list_aggregated_vulnerability_data(self, **kwargs):
528
+ """
529
+ Gets an AggregatedVulnerabilityData
530
+
531
+
532
+ :param str opc_request_id: (optional)
533
+ The client request ID for tracing.
534
+
535
+ :param str compartment_id: (optional)
536
+ The ID of the compartment in which to list resources.
537
+
538
+ :param datetime time_created_greater_than: (optional)
539
+ The created greater than.
540
+
541
+ :param datetime time_ended_less_than: (optional)
542
+ The time ended less than.
543
+
544
+ :param str database_release: (optional)
545
+ A filter to return only database that match the given release version.
546
+
547
+ :param str lifecycle_state: (optional)
548
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
549
+
550
+ Allowed values are: "CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"
551
+
552
+ :param int limit: (optional)
553
+ The maximum number of items to return.
554
+
555
+ :param str page: (optional)
556
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
557
+
558
+ :param obj retry_strategy: (optional)
559
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
560
+
561
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
562
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
563
+
564
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
565
+
566
+ :param bool allow_control_chars: (optional)
567
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
568
+ By default, the response will not allow control characters in strings
569
+
570
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.AggregatedVulnerabilityCollection`
571
+ :rtype: :class:`~oci.response.Response`
572
+
573
+ :example:
574
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_aggregated_vulnerability_data.py.html>`__ to see an example of how to use list_aggregated_vulnerability_data API.
575
+ """
576
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
577
+ required_arguments = []
578
+ resource_path = "/vulnerability/aggregatedVulnerabilityData"
579
+ method = "GET"
580
+ operation_name = "list_aggregated_vulnerability_data"
581
+ api_reference_link = ""
582
+
583
+ # Don't accept unknown kwargs
584
+ expected_kwargs = [
585
+ "allow_control_chars",
586
+ "retry_strategy",
587
+ "opc_request_id",
588
+ "compartment_id",
589
+ "time_created_greater_than",
590
+ "time_ended_less_than",
591
+ "database_release",
592
+ "lifecycle_state",
593
+ "limit",
594
+ "page"
595
+ ]
596
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
597
+ if extra_kwargs:
598
+ raise ValueError(
599
+ f"list_aggregated_vulnerability_data got unknown kwargs: {extra_kwargs!r}")
600
+
601
+ if 'lifecycle_state' in kwargs:
602
+ lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"]
603
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
604
+ raise ValueError(
605
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
606
+ )
607
+
608
+ query_params = {
609
+ "compartmentId": kwargs.get("compartment_id", missing),
610
+ "timeCreatedGreaterThan": kwargs.get("time_created_greater_than", missing),
611
+ "timeEndedLessThan": kwargs.get("time_ended_less_than", missing),
612
+ "databaseRelease": kwargs.get("database_release", missing),
613
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
614
+ "limit": kwargs.get("limit", missing),
615
+ "page": kwargs.get("page", missing)
616
+ }
617
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
618
+
619
+ header_params = {
620
+ "accept": "application/json",
621
+ "content-type": "application/json",
622
+ "opc-request-id": kwargs.get("opc_request_id", missing)
623
+ }
624
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
625
+
626
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
627
+ operation_retry_strategy=kwargs.get('retry_strategy'),
628
+ client_retry_strategy=self.retry_strategy
629
+ )
630
+ if retry_strategy is None:
631
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
632
+
633
+ if retry_strategy:
634
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
635
+ self.base_client.add_opc_client_retries_header(header_params)
636
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
637
+ return retry_strategy.make_retrying_call(
638
+ self.base_client.call_api,
639
+ resource_path=resource_path,
640
+ method=method,
641
+ query_params=query_params,
642
+ header_params=header_params,
643
+ response_type="AggregatedVulnerabilityCollection",
644
+ allow_control_chars=kwargs.get('allow_control_chars'),
645
+ operation_name=operation_name,
646
+ api_reference_link=api_reference_link,
647
+ required_arguments=required_arguments)
648
+ else:
649
+ return self.base_client.call_api(
650
+ resource_path=resource_path,
651
+ method=method,
652
+ query_params=query_params,
653
+ header_params=header_params,
654
+ response_type="AggregatedVulnerabilityCollection",
655
+ allow_control_chars=kwargs.get('allow_control_chars'),
656
+ operation_name=operation_name,
657
+ api_reference_link=api_reference_link,
658
+ required_arguments=required_arguments)
659
+
660
+ def list_notifications(self, compartment_id, **kwargs):
661
+ """
662
+ List of notifications
663
+
664
+
665
+ :param str compartment_id: (required)
666
+ The required ID of the compartment in which to list resources.
667
+
668
+ :param str opc_request_id: (optional)
669
+ The client request ID for tracing.
670
+
671
+ :param int limit: (optional)
672
+ The maximum number of items to return.
673
+
674
+ :param obj retry_strategy: (optional)
675
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
676
+
677
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
678
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
679
+
680
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
681
+
682
+ :param bool allow_control_chars: (optional)
683
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
684
+ By default, the response will not allow control characters in strings
685
+
686
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.NotificationCollection`
687
+ :rtype: :class:`~oci.response.Response`
688
+
689
+ :example:
690
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_notifications.py.html>`__ to see an example of how to use list_notifications API.
691
+ """
692
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
693
+ required_arguments = ['compartmentId']
694
+ resource_path = "/vulnerability/notifications"
695
+ method = "GET"
696
+ operation_name = "list_notifications"
697
+ api_reference_link = ""
698
+
699
+ # Don't accept unknown kwargs
700
+ expected_kwargs = [
701
+ "allow_control_chars",
702
+ "retry_strategy",
703
+ "opc_request_id",
704
+ "limit"
705
+ ]
706
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
707
+ if extra_kwargs:
708
+ raise ValueError(
709
+ f"list_notifications got unknown kwargs: {extra_kwargs!r}")
710
+
711
+ query_params = {
712
+ "compartmentId": compartment_id,
713
+ "limit": kwargs.get("limit", missing)
714
+ }
715
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
716
+
717
+ header_params = {
718
+ "accept": "application/json",
719
+ "content-type": "application/json",
720
+ "opc-request-id": kwargs.get("opc_request_id", missing)
721
+ }
722
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
723
+
724
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
725
+ operation_retry_strategy=kwargs.get('retry_strategy'),
726
+ client_retry_strategy=self.retry_strategy
727
+ )
728
+ if retry_strategy is None:
729
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
730
+
731
+ if retry_strategy:
732
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
733
+ self.base_client.add_opc_client_retries_header(header_params)
734
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
735
+ return retry_strategy.make_retrying_call(
736
+ self.base_client.call_api,
737
+ resource_path=resource_path,
738
+ method=method,
739
+ query_params=query_params,
740
+ header_params=header_params,
741
+ response_type="NotificationCollection",
742
+ allow_control_chars=kwargs.get('allow_control_chars'),
743
+ operation_name=operation_name,
744
+ api_reference_link=api_reference_link,
745
+ required_arguments=required_arguments)
746
+ else:
747
+ return self.base_client.call_api(
748
+ resource_path=resource_path,
749
+ method=method,
750
+ query_params=query_params,
751
+ header_params=header_params,
752
+ response_type="NotificationCollection",
753
+ allow_control_chars=kwargs.get('allow_control_chars'),
754
+ operation_name=operation_name,
755
+ api_reference_link=api_reference_link,
756
+ required_arguments=required_arguments)
757
+
758
+ def list_vulnerabilities(self, **kwargs):
759
+ """
760
+ Gets the vulnerabilities summary list
761
+
762
+
763
+ :param str compartment_id: (optional)
764
+ The ID of the compartment in which to list resources.
765
+
766
+ :param int limit: (optional)
767
+ The maximum number of items to return.
768
+
769
+ :param str page: (optional)
770
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
771
+
772
+ :param str display_name: (optional)
773
+ A filter to return only resources that match the entire display name given.
774
+
775
+ :param str sort_order: (optional)
776
+ The sort order to use, either 'ASC' or 'DESC'.
777
+
778
+ Allowed values are: "ASC", "DESC"
779
+
780
+ :param str sort_by: (optional)
781
+ The field to sort by. Only one sort order may be provided. Default order for vulnerableResources is descending. Default order for cveId is descending.
782
+
783
+ Allowed values are: "cveId", "vulnerableResources"
784
+
785
+ :param str opc_retry_token: (optional)
786
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
787
+ server error without risk of executing that same action again. Retry tokens expire after 24
788
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
789
+ has been deleted and purged from the system, then a retry of the original creation request
790
+ might be rejected.
791
+
792
+ :param str opc_request_id: (optional)
793
+ The client request ID for tracing.
794
+
795
+ :param str lifecycle_state: (optional)
796
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
797
+
798
+ Allowed values are: "CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"
799
+
800
+ :param str database_release: (optional)
801
+ A filter to return only database that match the given release version.
802
+
803
+ :param str resource_id: (optional)
804
+ A filter to return only resources that match the given resource id.
805
+
806
+ :param list[str] severity_type: (optional)
807
+ Filter by one or more severity types.
808
+ Possible values are critical, high, medium, low, info.
809
+
810
+ Allowed values are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO"
811
+
812
+ :param str search_by: (optional)
813
+ The search input for filter cve id and cve description.
814
+
815
+ :param obj retry_strategy: (optional)
816
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
817
+
818
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
819
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
820
+
821
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
822
+
823
+ :param bool allow_control_chars: (optional)
824
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
825
+ By default, the response will not allow control characters in strings
826
+
827
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.VulnerabilityCollection`
828
+ :rtype: :class:`~oci.response.Response`
829
+
830
+ :example:
831
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_vulnerabilities.py.html>`__ to see an example of how to use list_vulnerabilities API.
832
+ """
833
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
834
+ required_arguments = []
835
+ resource_path = "/vulnerability/vulnerabilities"
836
+ method = "GET"
837
+ operation_name = "list_vulnerabilities"
838
+ api_reference_link = ""
839
+
840
+ # Don't accept unknown kwargs
841
+ expected_kwargs = [
842
+ "allow_control_chars",
843
+ "retry_strategy",
844
+ "compartment_id",
845
+ "limit",
846
+ "page",
847
+ "display_name",
848
+ "sort_order",
849
+ "sort_by",
850
+ "opc_retry_token",
851
+ "opc_request_id",
852
+ "lifecycle_state",
853
+ "database_release",
854
+ "resource_id",
855
+ "severity_type",
856
+ "search_by"
857
+ ]
858
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
859
+ if extra_kwargs:
860
+ raise ValueError(
861
+ f"list_vulnerabilities got unknown kwargs: {extra_kwargs!r}")
862
+
863
+ if 'sort_order' in kwargs:
864
+ sort_order_allowed_values = ["ASC", "DESC"]
865
+ if kwargs['sort_order'] not in sort_order_allowed_values:
866
+ raise ValueError(
867
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
868
+ )
869
+
870
+ if 'sort_by' in kwargs:
871
+ sort_by_allowed_values = ["cveId", "vulnerableResources"]
872
+ if kwargs['sort_by'] not in sort_by_allowed_values:
873
+ raise ValueError(
874
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
875
+ )
876
+
877
+ if 'lifecycle_state' in kwargs:
878
+ lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"]
879
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
880
+ raise ValueError(
881
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
882
+ )
883
+
884
+ if 'severity_type' in kwargs:
885
+ severity_type_allowed_values = ["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO"]
886
+ for severity_type_item in kwargs['severity_type']:
887
+ if severity_type_item not in severity_type_allowed_values:
888
+ raise ValueError(
889
+ f"Invalid value for `severity_type`, must be one of { severity_type_allowed_values }"
890
+ )
891
+
892
+ query_params = {
893
+ "compartmentId": kwargs.get("compartment_id", missing),
894
+ "limit": kwargs.get("limit", missing),
895
+ "page": kwargs.get("page", missing),
896
+ "displayName": kwargs.get("display_name", missing),
897
+ "sortOrder": kwargs.get("sort_order", missing),
898
+ "sortBy": kwargs.get("sort_by", missing),
899
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
900
+ "databaseRelease": kwargs.get("database_release", missing),
901
+ "resourceId": kwargs.get("resource_id", missing),
902
+ "severityType": self.base_client.generate_collection_format_param(kwargs.get("severity_type", missing), 'multi'),
903
+ "searchBy": kwargs.get("search_by", missing)
904
+ }
905
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
906
+
907
+ header_params = {
908
+ "accept": "application/json",
909
+ "content-type": "application/json",
910
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
911
+ "opc-request-id": kwargs.get("opc_request_id", missing)
912
+ }
913
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
914
+
915
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
916
+ operation_retry_strategy=kwargs.get('retry_strategy'),
917
+ client_retry_strategy=self.retry_strategy
918
+ )
919
+ if retry_strategy is None:
920
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
921
+
922
+ if retry_strategy:
923
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
924
+ self.base_client.add_opc_retry_token_if_needed(header_params)
925
+ self.base_client.add_opc_client_retries_header(header_params)
926
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
927
+ return retry_strategy.make_retrying_call(
928
+ self.base_client.call_api,
929
+ resource_path=resource_path,
930
+ method=method,
931
+ query_params=query_params,
932
+ header_params=header_params,
933
+ response_type="VulnerabilityCollection",
934
+ allow_control_chars=kwargs.get('allow_control_chars'),
935
+ operation_name=operation_name,
936
+ api_reference_link=api_reference_link,
937
+ required_arguments=required_arguments)
938
+ else:
939
+ return self.base_client.call_api(
940
+ resource_path=resource_path,
941
+ method=method,
942
+ query_params=query_params,
943
+ header_params=header_params,
944
+ response_type="VulnerabilityCollection",
945
+ allow_control_chars=kwargs.get('allow_control_chars'),
946
+ operation_name=operation_name,
947
+ api_reference_link=api_reference_link,
948
+ required_arguments=required_arguments)
949
+
950
+ def list_vulnerability_resources(self, compartment_id, **kwargs):
951
+ """
952
+ Lists the summary of vulnerable and clean resourcees
953
+
954
+
955
+ :param str compartment_id: (required)
956
+ The required ID of the compartment in which to list resources.
957
+
958
+ :param int limit: (optional)
959
+ The maximum number of items to return.
960
+
961
+ :param str page: (optional)
962
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
963
+
964
+ :param str sort_order: (optional)
965
+ The sort order to use, either 'ASC' or 'DESC'.
966
+
967
+ Allowed values are: "ASC", "DESC"
968
+
969
+ :param str sort_by: (optional)
970
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
971
+
972
+ Allowed values are: "timeCreated", "displayName", "vulnerabilityCount"
973
+
974
+ :param str display_name: (optional)
975
+ A filter to return only resources that match the entire display name given.
976
+
977
+ :param str lifecycle_state: (optional)
978
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
979
+
980
+ Allowed values are: "CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"
981
+
982
+ :param str database_release: (optional)
983
+ A filter to return only database that match the given release version.
984
+
985
+ :param str cve_id: (optional)
986
+ The id of a CVE.
987
+
988
+ :param list[str] severity_type: (optional)
989
+ Filter by one or more severity types.
990
+ Possible values are critical, high, medium, low, info and none.
991
+
992
+ Allowed values are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO", "NONE"
993
+
994
+ :param list[str] patch_recommendation: (optional)
995
+ Filter by one or more severity types.
996
+ Possible values are upToDate, patchAvailable
997
+
998
+ Allowed values are: "upToDate", "patchAvailable"
999
+
1000
+ :param str opc_request_id: (optional)
1001
+ The client request ID for tracing.
1002
+
1003
+ :param obj retry_strategy: (optional)
1004
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1005
+
1006
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1007
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1008
+
1009
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1010
+
1011
+ :param bool allow_control_chars: (optional)
1012
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1013
+ By default, the response will not allow control characters in strings
1014
+
1015
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.VulnerabilityResourceCollection`
1016
+ :rtype: :class:`~oci.response.Response`
1017
+
1018
+ :example:
1019
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_vulnerability_resources.py.html>`__ to see an example of how to use list_vulnerability_resources API.
1020
+ """
1021
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1022
+ required_arguments = ['compartmentId']
1023
+ resource_path = "/vulnerability/resources"
1024
+ method = "GET"
1025
+ operation_name = "list_vulnerability_resources"
1026
+ api_reference_link = ""
1027
+
1028
+ # Don't accept unknown kwargs
1029
+ expected_kwargs = [
1030
+ "allow_control_chars",
1031
+ "retry_strategy",
1032
+ "limit",
1033
+ "page",
1034
+ "sort_order",
1035
+ "sort_by",
1036
+ "display_name",
1037
+ "lifecycle_state",
1038
+ "database_release",
1039
+ "cve_id",
1040
+ "severity_type",
1041
+ "patch_recommendation",
1042
+ "opc_request_id"
1043
+ ]
1044
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1045
+ if extra_kwargs:
1046
+ raise ValueError(
1047
+ f"list_vulnerability_resources got unknown kwargs: {extra_kwargs!r}")
1048
+
1049
+ if 'sort_order' in kwargs:
1050
+ sort_order_allowed_values = ["ASC", "DESC"]
1051
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1052
+ raise ValueError(
1053
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1054
+ )
1055
+
1056
+ if 'sort_by' in kwargs:
1057
+ sort_by_allowed_values = ["timeCreated", "displayName", "vulnerabilityCount"]
1058
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1059
+ raise ValueError(
1060
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1061
+ )
1062
+
1063
+ if 'lifecycle_state' in kwargs:
1064
+ lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "FAILED", "NEEDS_ATTENTION", "DELETING", "DELETED"]
1065
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1066
+ raise ValueError(
1067
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1068
+ )
1069
+
1070
+ if 'severity_type' in kwargs:
1071
+ severity_type_allowed_values = ["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO", "NONE"]
1072
+ for severity_type_item in kwargs['severity_type']:
1073
+ if severity_type_item not in severity_type_allowed_values:
1074
+ raise ValueError(
1075
+ f"Invalid value for `severity_type`, must be one of { severity_type_allowed_values }"
1076
+ )
1077
+
1078
+ if 'patch_recommendation' in kwargs:
1079
+ patch_recommendation_allowed_values = ["upToDate", "patchAvailable"]
1080
+ for patch_recommendation_item in kwargs['patch_recommendation']:
1081
+ if patch_recommendation_item not in patch_recommendation_allowed_values:
1082
+ raise ValueError(
1083
+ f"Invalid value for `patch_recommendation`, must be one of { patch_recommendation_allowed_values }"
1084
+ )
1085
+
1086
+ query_params = {
1087
+ "compartmentId": compartment_id,
1088
+ "limit": kwargs.get("limit", missing),
1089
+ "page": kwargs.get("page", missing),
1090
+ "sortOrder": kwargs.get("sort_order", missing),
1091
+ "sortBy": kwargs.get("sort_by", missing),
1092
+ "displayName": kwargs.get("display_name", missing),
1093
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
1094
+ "databaseRelease": kwargs.get("database_release", missing),
1095
+ "cveId": kwargs.get("cve_id", missing),
1096
+ "severityType": self.base_client.generate_collection_format_param(kwargs.get("severity_type", missing), 'multi'),
1097
+ "patchRecommendation": self.base_client.generate_collection_format_param(kwargs.get("patch_recommendation", missing), 'multi')
1098
+ }
1099
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1100
+
1101
+ header_params = {
1102
+ "accept": "application/json",
1103
+ "content-type": "application/json",
1104
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1105
+ }
1106
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1107
+
1108
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1109
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1110
+ client_retry_strategy=self.retry_strategy
1111
+ )
1112
+ if retry_strategy is None:
1113
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1114
+
1115
+ if retry_strategy:
1116
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1117
+ self.base_client.add_opc_client_retries_header(header_params)
1118
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1119
+ return retry_strategy.make_retrying_call(
1120
+ self.base_client.call_api,
1121
+ resource_path=resource_path,
1122
+ method=method,
1123
+ query_params=query_params,
1124
+ header_params=header_params,
1125
+ response_type="VulnerabilityResourceCollection",
1126
+ allow_control_chars=kwargs.get('allow_control_chars'),
1127
+ operation_name=operation_name,
1128
+ api_reference_link=api_reference_link,
1129
+ required_arguments=required_arguments)
1130
+ else:
1131
+ return self.base_client.call_api(
1132
+ resource_path=resource_path,
1133
+ method=method,
1134
+ query_params=query_params,
1135
+ header_params=header_params,
1136
+ response_type="VulnerabilityResourceCollection",
1137
+ allow_control_chars=kwargs.get('allow_control_chars'),
1138
+ operation_name=operation_name,
1139
+ api_reference_link=api_reference_link,
1140
+ required_arguments=required_arguments)
1141
+
1142
+ def list_vulnerability_scans(self, **kwargs):
1143
+ """
1144
+ Gets a list of VulnerabilityScans.
1145
+
1146
+
1147
+ :param str vulnerability_scan_id: (optional)
1148
+ The ID of the vulnerability scan.
1149
+
1150
+ :param str compartment_id: (optional)
1151
+ The ID of the compartment in which to list resources.
1152
+
1153
+ :param str display_name: (optional)
1154
+ A filter to return only resources that match the entire display name given.
1155
+
1156
+ :param int limit: (optional)
1157
+ The maximum number of items to return.
1158
+
1159
+ :param str page: (optional)
1160
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1161
+
1162
+ :param str sort_order: (optional)
1163
+ The sort order to use, either 'ASC' or 'DESC'.
1164
+
1165
+ Allowed values are: "ASC", "DESC"
1166
+
1167
+ :param str sort_by: (optional)
1168
+ The field to sort by. Only one sort order may be provided. Default order is descending.
1169
+
1170
+ Allowed values are: "id", "displayName", "timeCreated", "timeEnded"
1171
+
1172
+ :param str opc_request_id: (optional)
1173
+ The client request ID for tracing.
1174
+
1175
+ :param datetime time_created_greater_than: (optional)
1176
+ The created greater than.
1177
+
1178
+ :param datetime time_ended_less_than: (optional)
1179
+ The time ended less than.
1180
+
1181
+ :param list[str] vulnerability_scan_status: (optional)
1182
+ Filter by one or more vulnerability scan status.
1183
+ Possible values are completed, running, completed with error, aborted.
1184
+
1185
+ Allowed values are: "COMPLETED", "ERROR", "RUNNING", "ABORTED"
1186
+
1187
+ :param str vulnerability_scan_type: (optional)
1188
+ The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
1189
+
1190
+ Allowed values are: "CVE", "PATCH", "IMAGE_PATCH"
1191
+
1192
+ :param obj retry_strategy: (optional)
1193
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1194
+
1195
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1196
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1197
+
1198
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1199
+
1200
+ :param bool allow_control_chars: (optional)
1201
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1202
+ By default, the response will not allow control characters in strings
1203
+
1204
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.VulnerabilityScanCollection`
1205
+ :rtype: :class:`~oci.response.Response`
1206
+
1207
+ :example:
1208
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_vulnerability_scans.py.html>`__ to see an example of how to use list_vulnerability_scans API.
1209
+ """
1210
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1211
+ required_arguments = []
1212
+ resource_path = "/vulnerabilityScans"
1213
+ method = "GET"
1214
+ operation_name = "list_vulnerability_scans"
1215
+ api_reference_link = ""
1216
+
1217
+ # Don't accept unknown kwargs
1218
+ expected_kwargs = [
1219
+ "allow_control_chars",
1220
+ "retry_strategy",
1221
+ "vulnerability_scan_id",
1222
+ "compartment_id",
1223
+ "display_name",
1224
+ "limit",
1225
+ "page",
1226
+ "sort_order",
1227
+ "sort_by",
1228
+ "opc_request_id",
1229
+ "time_created_greater_than",
1230
+ "time_ended_less_than",
1231
+ "vulnerability_scan_status",
1232
+ "vulnerability_scan_type"
1233
+ ]
1234
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1235
+ if extra_kwargs:
1236
+ raise ValueError(
1237
+ f"list_vulnerability_scans got unknown kwargs: {extra_kwargs!r}")
1238
+
1239
+ if 'sort_order' in kwargs:
1240
+ sort_order_allowed_values = ["ASC", "DESC"]
1241
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1242
+ raise ValueError(
1243
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1244
+ )
1245
+
1246
+ if 'sort_by' in kwargs:
1247
+ sort_by_allowed_values = ["id", "displayName", "timeCreated", "timeEnded"]
1248
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1249
+ raise ValueError(
1250
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1251
+ )
1252
+
1253
+ if 'vulnerability_scan_status' in kwargs:
1254
+ vulnerability_scan_status_allowed_values = ["COMPLETED", "ERROR", "RUNNING", "ABORTED"]
1255
+ for vulnerability_scan_status_item in kwargs['vulnerability_scan_status']:
1256
+ if vulnerability_scan_status_item not in vulnerability_scan_status_allowed_values:
1257
+ raise ValueError(
1258
+ f"Invalid value for `vulnerability_scan_status`, must be one of { vulnerability_scan_status_allowed_values }"
1259
+ )
1260
+
1261
+ if 'vulnerability_scan_type' in kwargs:
1262
+ vulnerability_scan_type_allowed_values = ["CVE", "PATCH", "IMAGE_PATCH"]
1263
+ if kwargs['vulnerability_scan_type'] not in vulnerability_scan_type_allowed_values:
1264
+ raise ValueError(
1265
+ f"Invalid value for `vulnerability_scan_type`, must be one of { vulnerability_scan_type_allowed_values }"
1266
+ )
1267
+
1268
+ query_params = {
1269
+ "vulnerabilityScanId": kwargs.get("vulnerability_scan_id", missing),
1270
+ "compartmentId": kwargs.get("compartment_id", missing),
1271
+ "displayName": kwargs.get("display_name", missing),
1272
+ "limit": kwargs.get("limit", missing),
1273
+ "page": kwargs.get("page", missing),
1274
+ "sortOrder": kwargs.get("sort_order", missing),
1275
+ "sortBy": kwargs.get("sort_by", missing),
1276
+ "timeCreatedGreaterThan": kwargs.get("time_created_greater_than", missing),
1277
+ "timeEndedLessThan": kwargs.get("time_ended_less_than", missing),
1278
+ "vulnerabilityScanStatus": self.base_client.generate_collection_format_param(kwargs.get("vulnerability_scan_status", missing), 'multi'),
1279
+ "vulnerabilityScanType": kwargs.get("vulnerability_scan_type", missing)
1280
+ }
1281
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1282
+
1283
+ header_params = {
1284
+ "accept": "application/json",
1285
+ "content-type": "application/json",
1286
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1287
+ }
1288
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1289
+
1290
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1291
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1292
+ client_retry_strategy=self.retry_strategy
1293
+ )
1294
+ if retry_strategy is None:
1295
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1296
+
1297
+ if retry_strategy:
1298
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1299
+ self.base_client.add_opc_client_retries_header(header_params)
1300
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1301
+ return retry_strategy.make_retrying_call(
1302
+ self.base_client.call_api,
1303
+ resource_path=resource_path,
1304
+ method=method,
1305
+ query_params=query_params,
1306
+ header_params=header_params,
1307
+ response_type="VulnerabilityScanCollection",
1308
+ allow_control_chars=kwargs.get('allow_control_chars'),
1309
+ operation_name=operation_name,
1310
+ api_reference_link=api_reference_link,
1311
+ required_arguments=required_arguments)
1312
+ else:
1313
+ return self.base_client.call_api(
1314
+ resource_path=resource_path,
1315
+ method=method,
1316
+ query_params=query_params,
1317
+ header_params=header_params,
1318
+ response_type="VulnerabilityScanCollection",
1319
+ allow_control_chars=kwargs.get('allow_control_chars'),
1320
+ operation_name=operation_name,
1321
+ api_reference_link=api_reference_link,
1322
+ required_arguments=required_arguments)
1323
+
1324
+ def list_work_request_errors(self, work_request_id, **kwargs):
1325
+ """
1326
+ Returns a (paginated) list of errors for the work request with the given ID.
1327
+
1328
+
1329
+ :param str work_request_id: (required)
1330
+ The ID of the asynchronous request.
1331
+
1332
+ :param str opc_request_id: (optional)
1333
+ The client request ID for tracing.
1334
+
1335
+ :param str page: (optional)
1336
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1337
+
1338
+ :param int limit: (optional)
1339
+ The maximum number of items to return.
1340
+
1341
+ :param str sort_by: (optional)
1342
+ The field to sort by. Only one sort order may be provided. Default order for timestamp is descending.
1343
+
1344
+ Allowed values are: "timestamp"
1345
+
1346
+ :param str sort_order: (optional)
1347
+ The sort order to use, either 'ASC' or 'DESC'.
1348
+
1349
+ Allowed values are: "ASC", "DESC"
1350
+
1351
+ :param obj retry_strategy: (optional)
1352
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1353
+
1354
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1355
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1356
+
1357
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1358
+
1359
+ :param bool allow_control_chars: (optional)
1360
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1361
+ By default, the response will not allow control characters in strings
1362
+
1363
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.WorkRequestErrorCollection`
1364
+ :rtype: :class:`~oci.response.Response`
1365
+
1366
+ :example:
1367
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
1368
+ """
1369
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1370
+ required_arguments = ['workRequestId']
1371
+ resource_path = "/workRequests/{workRequestId}/errors"
1372
+ method = "GET"
1373
+ operation_name = "list_work_request_errors"
1374
+ api_reference_link = ""
1375
+
1376
+ # Don't accept unknown kwargs
1377
+ expected_kwargs = [
1378
+ "allow_control_chars",
1379
+ "retry_strategy",
1380
+ "opc_request_id",
1381
+ "page",
1382
+ "limit",
1383
+ "sort_by",
1384
+ "sort_order"
1385
+ ]
1386
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1387
+ if extra_kwargs:
1388
+ raise ValueError(
1389
+ f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}")
1390
+
1391
+ path_params = {
1392
+ "workRequestId": work_request_id
1393
+ }
1394
+
1395
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1396
+
1397
+ for (k, v) in six.iteritems(path_params):
1398
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1399
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1400
+
1401
+ if 'sort_by' in kwargs:
1402
+ sort_by_allowed_values = ["timestamp"]
1403
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1404
+ raise ValueError(
1405
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1406
+ )
1407
+
1408
+ if 'sort_order' in kwargs:
1409
+ sort_order_allowed_values = ["ASC", "DESC"]
1410
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1411
+ raise ValueError(
1412
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1413
+ )
1414
+
1415
+ query_params = {
1416
+ "page": kwargs.get("page", missing),
1417
+ "limit": kwargs.get("limit", missing),
1418
+ "sortBy": kwargs.get("sort_by", missing),
1419
+ "sortOrder": kwargs.get("sort_order", missing)
1420
+ }
1421
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1422
+
1423
+ header_params = {
1424
+ "accept": "application/json",
1425
+ "content-type": "application/json",
1426
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1427
+ }
1428
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1429
+
1430
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1431
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1432
+ client_retry_strategy=self.retry_strategy
1433
+ )
1434
+ if retry_strategy is None:
1435
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1436
+
1437
+ if retry_strategy:
1438
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1439
+ self.base_client.add_opc_client_retries_header(header_params)
1440
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1441
+ return retry_strategy.make_retrying_call(
1442
+ self.base_client.call_api,
1443
+ resource_path=resource_path,
1444
+ method=method,
1445
+ path_params=path_params,
1446
+ query_params=query_params,
1447
+ header_params=header_params,
1448
+ response_type="WorkRequestErrorCollection",
1449
+ allow_control_chars=kwargs.get('allow_control_chars'),
1450
+ operation_name=operation_name,
1451
+ api_reference_link=api_reference_link,
1452
+ required_arguments=required_arguments)
1453
+ else:
1454
+ return self.base_client.call_api(
1455
+ resource_path=resource_path,
1456
+ method=method,
1457
+ path_params=path_params,
1458
+ query_params=query_params,
1459
+ header_params=header_params,
1460
+ response_type="WorkRequestErrorCollection",
1461
+ allow_control_chars=kwargs.get('allow_control_chars'),
1462
+ operation_name=operation_name,
1463
+ api_reference_link=api_reference_link,
1464
+ required_arguments=required_arguments)
1465
+
1466
+ def list_work_request_logs(self, work_request_id, **kwargs):
1467
+ """
1468
+ Returns a (paginated) list of logs for the work request with the given ID.
1469
+
1470
+
1471
+ :param str work_request_id: (required)
1472
+ The ID of the asynchronous request.
1473
+
1474
+ :param str opc_request_id: (optional)
1475
+ The client request ID for tracing.
1476
+
1477
+ :param str page: (optional)
1478
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1479
+
1480
+ :param int limit: (optional)
1481
+ The maximum number of items to return.
1482
+
1483
+ :param str sort_by: (optional)
1484
+ The field to sort by. Only one sort order may be provided. Default order for timestamp is descending.
1485
+
1486
+ Allowed values are: "timestamp"
1487
+
1488
+ :param str sort_order: (optional)
1489
+ The sort order to use, either 'ASC' or 'DESC'.
1490
+
1491
+ Allowed values are: "ASC", "DESC"
1492
+
1493
+ :param obj retry_strategy: (optional)
1494
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1495
+
1496
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1497
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1498
+
1499
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1500
+
1501
+ :param bool allow_control_chars: (optional)
1502
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1503
+ By default, the response will not allow control characters in strings
1504
+
1505
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.WorkRequestLogEntryCollection`
1506
+ :rtype: :class:`~oci.response.Response`
1507
+
1508
+ :example:
1509
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
1510
+ """
1511
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1512
+ required_arguments = ['workRequestId']
1513
+ resource_path = "/workRequests/{workRequestId}/logs"
1514
+ method = "GET"
1515
+ operation_name = "list_work_request_logs"
1516
+ api_reference_link = ""
1517
+
1518
+ # Don't accept unknown kwargs
1519
+ expected_kwargs = [
1520
+ "allow_control_chars",
1521
+ "retry_strategy",
1522
+ "opc_request_id",
1523
+ "page",
1524
+ "limit",
1525
+ "sort_by",
1526
+ "sort_order"
1527
+ ]
1528
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1529
+ if extra_kwargs:
1530
+ raise ValueError(
1531
+ f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}")
1532
+
1533
+ path_params = {
1534
+ "workRequestId": work_request_id
1535
+ }
1536
+
1537
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1538
+
1539
+ for (k, v) in six.iteritems(path_params):
1540
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1541
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1542
+
1543
+ if 'sort_by' in kwargs:
1544
+ sort_by_allowed_values = ["timestamp"]
1545
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1546
+ raise ValueError(
1547
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1548
+ )
1549
+
1550
+ if 'sort_order' in kwargs:
1551
+ sort_order_allowed_values = ["ASC", "DESC"]
1552
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1553
+ raise ValueError(
1554
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1555
+ )
1556
+
1557
+ query_params = {
1558
+ "page": kwargs.get("page", missing),
1559
+ "limit": kwargs.get("limit", missing),
1560
+ "sortBy": kwargs.get("sort_by", missing),
1561
+ "sortOrder": kwargs.get("sort_order", missing)
1562
+ }
1563
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1564
+
1565
+ header_params = {
1566
+ "accept": "application/json",
1567
+ "content-type": "application/json",
1568
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1569
+ }
1570
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1571
+
1572
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1573
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1574
+ client_retry_strategy=self.retry_strategy
1575
+ )
1576
+ if retry_strategy is None:
1577
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1578
+
1579
+ if retry_strategy:
1580
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1581
+ self.base_client.add_opc_client_retries_header(header_params)
1582
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1583
+ return retry_strategy.make_retrying_call(
1584
+ self.base_client.call_api,
1585
+ resource_path=resource_path,
1586
+ method=method,
1587
+ path_params=path_params,
1588
+ query_params=query_params,
1589
+ header_params=header_params,
1590
+ response_type="WorkRequestLogEntryCollection",
1591
+ allow_control_chars=kwargs.get('allow_control_chars'),
1592
+ operation_name=operation_name,
1593
+ api_reference_link=api_reference_link,
1594
+ required_arguments=required_arguments)
1595
+ else:
1596
+ return self.base_client.call_api(
1597
+ resource_path=resource_path,
1598
+ method=method,
1599
+ path_params=path_params,
1600
+ query_params=query_params,
1601
+ header_params=header_params,
1602
+ response_type="WorkRequestLogEntryCollection",
1603
+ allow_control_chars=kwargs.get('allow_control_chars'),
1604
+ operation_name=operation_name,
1605
+ api_reference_link=api_reference_link,
1606
+ required_arguments=required_arguments)
1607
+
1608
+ def list_work_requests(self, **kwargs):
1609
+ """
1610
+ Lists the work requests in a compartment.
1611
+
1612
+
1613
+ :param str compartment_id: (optional)
1614
+ The ID of the compartment in which to list resources.
1615
+
1616
+ :param str work_request_id: (optional)
1617
+ The ID of the asynchronous work request.
1618
+
1619
+ :param str status: (optional)
1620
+ A filter to return only resources their lifecycleState matches the given OperationStatus.
1621
+
1622
+ Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
1623
+
1624
+ :param str resource_id: (optional)
1625
+ The ID of the resource affected by the work request.
1626
+
1627
+ :param str opc_request_id: (optional)
1628
+ The client request ID for tracing.
1629
+
1630
+ :param str page: (optional)
1631
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1632
+
1633
+ :param int limit: (optional)
1634
+ The maximum number of items to return.
1635
+
1636
+ :param str sort_order: (optional)
1637
+ The sort order to use, either 'ASC' or 'DESC'.
1638
+
1639
+ Allowed values are: "ASC", "DESC"
1640
+
1641
+ :param str sort_by: (optional)
1642
+ The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
1643
+
1644
+ Allowed values are: "timeAccepted"
1645
+
1646
+ :param obj retry_strategy: (optional)
1647
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1648
+
1649
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1650
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1651
+
1652
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1653
+
1654
+ :param bool allow_control_chars: (optional)
1655
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1656
+ By default, the response will not allow control characters in strings
1657
+
1658
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dblm.models.WorkRequestSummaryCollection`
1659
+ :rtype: :class:`~oci.response.Response`
1660
+
1661
+ :example:
1662
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/dblm/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
1663
+ """
1664
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1665
+ required_arguments = []
1666
+ resource_path = "/workRequests"
1667
+ method = "GET"
1668
+ operation_name = "list_work_requests"
1669
+ api_reference_link = ""
1670
+
1671
+ # Don't accept unknown kwargs
1672
+ expected_kwargs = [
1673
+ "allow_control_chars",
1674
+ "retry_strategy",
1675
+ "compartment_id",
1676
+ "work_request_id",
1677
+ "status",
1678
+ "resource_id",
1679
+ "opc_request_id",
1680
+ "page",
1681
+ "limit",
1682
+ "sort_order",
1683
+ "sort_by"
1684
+ ]
1685
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1686
+ if extra_kwargs:
1687
+ raise ValueError(
1688
+ f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
1689
+
1690
+ if 'status' in kwargs:
1691
+ status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
1692
+ if kwargs['status'] not in status_allowed_values:
1693
+ raise ValueError(
1694
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
1695
+ )
1696
+
1697
+ if 'sort_order' in kwargs:
1698
+ sort_order_allowed_values = ["ASC", "DESC"]
1699
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1700
+ raise ValueError(
1701
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1702
+ )
1703
+
1704
+ if 'sort_by' in kwargs:
1705
+ sort_by_allowed_values = ["timeAccepted"]
1706
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1707
+ raise ValueError(
1708
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1709
+ )
1710
+
1711
+ query_params = {
1712
+ "compartmentId": kwargs.get("compartment_id", missing),
1713
+ "workRequestId": kwargs.get("work_request_id", missing),
1714
+ "status": kwargs.get("status", missing),
1715
+ "resourceId": kwargs.get("resource_id", missing),
1716
+ "page": kwargs.get("page", missing),
1717
+ "limit": kwargs.get("limit", missing),
1718
+ "sortOrder": kwargs.get("sort_order", missing),
1719
+ "sortBy": kwargs.get("sort_by", missing)
1720
+ }
1721
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1722
+
1723
+ header_params = {
1724
+ "accept": "application/json",
1725
+ "content-type": "application/json",
1726
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1727
+ }
1728
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1729
+
1730
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1731
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1732
+ client_retry_strategy=self.retry_strategy
1733
+ )
1734
+ if retry_strategy is None:
1735
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1736
+
1737
+ if retry_strategy:
1738
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1739
+ self.base_client.add_opc_client_retries_header(header_params)
1740
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1741
+ return retry_strategy.make_retrying_call(
1742
+ self.base_client.call_api,
1743
+ resource_path=resource_path,
1744
+ method=method,
1745
+ query_params=query_params,
1746
+ header_params=header_params,
1747
+ response_type="WorkRequestSummaryCollection",
1748
+ allow_control_chars=kwargs.get('allow_control_chars'),
1749
+ operation_name=operation_name,
1750
+ api_reference_link=api_reference_link,
1751
+ required_arguments=required_arguments)
1752
+ else:
1753
+ return self.base_client.call_api(
1754
+ resource_path=resource_path,
1755
+ method=method,
1756
+ query_params=query_params,
1757
+ header_params=header_params,
1758
+ response_type="WorkRequestSummaryCollection",
1759
+ allow_control_chars=kwargs.get('allow_control_chars'),
1760
+ operation_name=operation_name,
1761
+ api_reference_link=api_reference_link,
1762
+ required_arguments=required_arguments)