oci 2.134.0__py3-none-any.whl → 2.135.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (703) 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 +25 -25
  9. oci/analytics/analytics_client.py +24 -24
  10. oci/analytics/models/analytics_instance.py +55 -0
  11. oci/analytics/models/create_analytics_instance_details.py +55 -0
  12. oci/analytics/models/update_analytics_instance_details.py +57 -2
  13. oci/announcements_service/announcement_client.py +5 -5
  14. oci/announcements_service/announcement_subscription_client.py +9 -9
  15. oci/announcements_service/announcements_preferences_client.py +4 -4
  16. oci/announcements_service/models/base_announcement.py +25 -25
  17. oci/announcements_service/models/base_create_announcements_preferences_details.py +5 -5
  18. oci/announcements_service/models/base_service.py +15 -15
  19. oci/announcements_service/service_client.py +1 -1
  20. oci/apigateway/api_gateway_client.py +21 -21
  21. oci/apigateway/deployment_client.py +6 -6
  22. oci/apigateway/gateway_client.py +6 -6
  23. oci/apigateway/models/body_validation_request_policy.py +5 -5
  24. oci/apigateway/models/header_validation_request_policy.py +5 -5
  25. oci/apigateway/models/validation_request_policy.py +5 -5
  26. oci/apigateway/subscribers_client.py +6 -6
  27. oci/apigateway/usage_plans_client.py +6 -6
  28. oci/apigateway/work_requests_client.py +5 -5
  29. oci/apm_config/config_client.py +9 -9
  30. oci/apm_control_plane/apm_domain_client.py +14 -14
  31. oci/apm_control_plane/models/base_domain_details.py +5 -5
  32. oci/apm_control_plane/models/base_key_details.py +5 -5
  33. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  34. oci/apm_traces/attributes_client.py +8 -8
  35. oci/apm_traces/query_client.py +2 -2
  36. oci/apm_traces/trace_client.py +4 -4
  37. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  38. oci/artifacts/artifacts_client.py +32 -32
  39. oci/audit/audit_client.py +3 -3
  40. oci/autoscaling/auto_scaling_client.py +11 -11
  41. oci/bastion/bastion_client.py +15 -15
  42. oci/bds/bds_client.py +72 -72
  43. oci/blockchain/blockchain_platform_client.py +27 -27
  44. oci/blockchain/models/availability_domain.py +5 -5
  45. oci/blockchain/models/peer_role.py +5 -5
  46. oci/budget/budget_client.py +10 -10
  47. oci/capacity_management/capacity_management_client.py +32 -32
  48. oci/certificates/certificates_client.py +5 -5
  49. oci/certificates_management/certificates_management_client.py +32 -32
  50. oci/cims/incident_client.py +8 -8
  51. oci/cims/user_client.py +1 -1
  52. oci/cloud_bridge/common_client.py +5 -5
  53. oci/cloud_bridge/discovery_client.py +14 -14
  54. oci/cloud_bridge/inventory_client.py +16 -16
  55. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  56. oci/cloud_guard/cloud_guard_client.py +155 -155
  57. oci/cloud_migrations/migration_client.py +43 -43
  58. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  59. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  60. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  61. oci/compute_instance_agent/plugin_client.py +2 -2
  62. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  63. oci/container_engine/container_engine_client.py +44 -44
  64. oci/container_instances/container_instance_client.py +18 -18
  65. oci/core/blockstorage_client.py +60 -60
  66. oci/core/compute_client.py +108 -102
  67. oci/core/compute_management_client.py +32 -32
  68. oci/core/models/add_network_security_group_security_rules_details.py +6 -2
  69. oci/core/models/compute_bare_metal_host.py +10 -10
  70. oci/core/models/compute_hpc_island.py +5 -5
  71. oci/core/models/compute_network_block.py +5 -5
  72. oci/core/models/create_service_gateway_details.py +2 -2
  73. oci/core/models/create_vcn_details.py +35 -0
  74. oci/core/models/create_vnic_details.py +35 -0
  75. oci/core/models/instance.py +82 -0
  76. oci/core/models/instance_configuration_create_vnic_details.py +35 -0
  77. oci/core/models/instance_configuration_launch_instance_details.py +35 -0
  78. oci/core/models/launch_instance_details.py +35 -0
  79. oci/core/models/service_gateway.py +4 -4
  80. oci/core/models/topology.py +5 -5
  81. oci/core/models/update_instance_details.py +35 -0
  82. oci/core/models/update_vcn_details.py +37 -2
  83. oci/core/models/update_vnic_details.py +35 -0
  84. oci/core/models/vcn.py +35 -0
  85. oci/core/models/vnic.py +35 -0
  86. oci/core/virtual_network_client.py +256 -253
  87. oci/dashboard_service/dashboard_client.py +6 -6
  88. oci/dashboard_service/dashboard_group_client.py +6 -6
  89. oci/data_catalog/data_catalog_client.py +149 -149
  90. oci/data_catalog/models/base_tag.py +5 -5
  91. oci/data_catalog/models/base_tag_summary.py +5 -5
  92. oci/data_catalog/models/object_lineage.py +5 -5
  93. oci/data_flow/data_flow_client.py +42 -42
  94. oci/data_integration/data_integration_client.py +163 -163
  95. oci/data_integration/models/abstract_call_attribute.py +5 -5
  96. oci/data_integration/models/abstract_data_operation_config.py +5 -5
  97. oci/data_integration/models/cancel_rest_call_config.py +5 -5
  98. oci/data_integration/models/composite_type.py +2 -1
  99. oci/data_integration/models/conditional_composite_field_map.py +2 -1
  100. oci/data_integration/models/connection_details.py +5 -5
  101. oci/data_integration/models/connection_from_adwc_details.py +2 -1
  102. oci/data_integration/models/connection_from_atp_details.py +2 -1
  103. oci/data_integration/models/connection_from_hdfs_details.py +2 -1
  104. oci/data_integration/models/connection_from_jdbc_details.py +2 -1
  105. oci/data_integration/models/connection_from_lake_details.py +2 -1
  106. oci/data_integration/models/connection_from_my_sql_details.py +2 -1
  107. oci/data_integration/models/connection_from_my_sql_heat_wave_details.py +2 -1
  108. oci/data_integration/models/connection_from_o_auth2_details.py +7 -6
  109. oci/data_integration/models/connection_from_object_storage_details.py +2 -1
  110. oci/data_integration/models/connection_from_oracle_ebs_details.py +2 -1
  111. oci/data_integration/models/connection_from_oracle_people_soft_details.py +2 -1
  112. oci/data_integration/models/connection_from_oracle_siebel_details.py +2 -1
  113. oci/data_integration/models/connection_summary_from_adwc.py +2 -1
  114. oci/data_integration/models/connection_summary_from_atp.py +2 -1
  115. oci/data_integration/models/connection_summary_from_hdfs.py +2 -1
  116. oci/data_integration/models/connection_summary_from_jdbc.py +2 -1
  117. oci/data_integration/models/connection_summary_from_lake.py +2 -1
  118. oci/data_integration/models/connection_summary_from_my_sql.py +2 -1
  119. oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py +2 -1
  120. oci/data_integration/models/connection_summary_from_oracle_ebs.py +2 -1
  121. oci/data_integration/models/connection_summary_from_oracle_people_soft.py +2 -1
  122. oci/data_integration/models/connection_summary_from_oracle_siebel.py +2 -1
  123. oci/data_integration/models/connector_attribute.py +5 -5
  124. oci/data_integration/models/derived_type.py +2 -1
  125. oci/data_integration/models/dynamic_proxy_field.py +2 -1
  126. oci/data_integration/models/flow_port_link.py +5 -5
  127. oci/data_integration/models/key.py +5 -5
  128. oci/data_integration/models/materialized_composite_type.py +2 -1
  129. oci/data_integration/models/materialized_dynamic_field.py +2 -1
  130. oci/data_integration/models/output_link.py +2 -1
  131. oci/data_integration/models/poll_rest_call_config.py +5 -5
  132. oci/data_integration/models/rest_call_config.py +5 -5
  133. oci/data_integration/models/shape_field.py +2 -1
  134. oci/data_integration/models/task_run_lineage_details.py +5 -5
  135. oci/data_integration/models/typed_expression.py +2 -1
  136. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  137. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  138. oci/data_safe/data_safe_client.py +781 -287
  139. oci/data_safe/data_safe_client_composite_operations.py +164 -0
  140. oci/data_safe/models/__init__.py +12 -0
  141. oci/data_safe/models/bulk_create_sql_firewall_allowed_sqls_details.py +142 -0
  142. oci/data_safe/models/bulk_delete_sql_firewall_allowed_sqls_details.py +99 -0
  143. oci/data_safe/models/generate_report_details.py +7 -3
  144. oci/data_safe/models/list_selection_mode.py +84 -0
  145. oci/data_safe/models/patch_sql_firewall_allowed_sql_details.py +103 -0
  146. oci/data_safe/models/report.py +7 -3
  147. oci/data_safe/models/report_definition.py +7 -3
  148. oci/data_safe/models/report_summary.py +7 -3
  149. oci/data_safe/models/schedule_report_details.py +7 -3
  150. oci/data_safe/models/scim_query_selection_mode.py +98 -0
  151. oci/data_safe/models/selection_details.py +113 -0
  152. oci/data_safe/models/sql_firewall_allowed_sql.py +10 -10
  153. oci/data_safe/models/work_request.py +15 -3
  154. oci/data_safe/models/work_request_summary.py +15 -3
  155. oci/data_science/data_science_client.py +91 -91
  156. oci/data_science/models/custom_expression_query_scaling_configuration.py +2 -1
  157. oci/data_science/models/scaling_configuration.py +5 -5
  158. oci/database/database_client.py +652 -394
  159. oci/database/database_client_composite_operations.py +176 -0
  160. oci/database/models/__init__.py +6 -0
  161. oci/database/models/autonomous_database.py +70 -0
  162. oci/database/models/autonomous_database_summary.py +70 -0
  163. oci/database/models/cloud_autonomous_vm_cluster.py +39 -0
  164. oci/database/models/cloud_autonomous_vm_cluster_summary.py +39 -0
  165. oci/database/models/cloud_vm_cluster.py +39 -0
  166. oci/database/models/cloud_vm_cluster_summary.py +39 -0
  167. oci/database/models/create_autonomous_database_base.py +50 -3
  168. oci/database/models/create_autonomous_database_clone_details.py +8 -1
  169. oci/database/models/create_autonomous_database_details.py +8 -1
  170. oci/database/models/create_autonomous_database_from_backup_details.py +8 -1
  171. oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +8 -1
  172. oci/database/models/create_cloud_autonomous_vm_cluster_details.py +41 -2
  173. oci/database/models/create_cloud_vm_cluster_details.py +39 -0
  174. oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +8 -1
  175. oci/database/models/create_cross_region_disaster_recovery_details.py +8 -1
  176. oci/database/models/create_cross_tenancy_disaster_recovery_details.py +8 -1
  177. oci/database/models/create_data_guard_association_with_new_db_system_details.py +39 -0
  178. oci/database/models/create_exadb_vm_cluster_details.py +39 -0
  179. oci/database/models/create_refreshable_autonomous_database_clone_details.py +8 -1
  180. oci/database/models/db_system.py +39 -0
  181. oci/database/models/db_system_summary.py +39 -0
  182. oci/database/models/exadb_vm_cluster.py +39 -0
  183. oci/database/models/exadb_vm_cluster_summary.py +39 -0
  184. oci/database/models/external_database_base.py +15 -15
  185. oci/database/models/infrastructure_target_version_summary.py +5 -5
  186. oci/database/models/launch_db_system_base.py +39 -0
  187. oci/database/models/launch_db_system_details.py +7 -0
  188. oci/database/models/launch_db_system_from_backup_details.py +7 -0
  189. oci/database/models/launch_db_system_from_database_details.py +7 -0
  190. oci/database/models/launch_db_system_from_db_system_details.py +7 -0
  191. oci/database/models/oci_provider_set_key_version_details.py +82 -0
  192. oci/database/models/pluggable_database.py +62 -0
  193. oci/database/models/pluggable_database_summary.py +62 -0
  194. oci/database/models/set_key_version_details.py +101 -0
  195. oci/database/models/undelete_autonomous_database_details.py +447 -0
  196. oci/database/models/update_autonomous_database_details.py +39 -0
  197. oci/database/models/update_cloud_autonomous_vm_cluster_details.py +41 -2
  198. oci/database/models/update_cloud_vm_cluster_details.py +39 -0
  199. oci/database/models/update_db_system_details.py +39 -0
  200. oci/database/models/update_exadb_vm_cluster_details.py +39 -0
  201. oci/database_management/db_management_client.py +211 -211
  202. oci/database_management/diagnosability_client.py +4 -4
  203. oci/database_management/managed_my_sql_databases_client.py +7 -7
  204. oci/database_management/models/awr_query_result.py +5 -5
  205. oci/database_management/models/dbm_resource.py +10 -10
  206. oci/database_management/models/discovered_external_asm_instance.py +4 -2
  207. oci/database_management/models/discovered_external_pluggable_database.py +4 -2
  208. oci/database_management/models/entity_discovered.py +10 -10
  209. oci/database_management/models/external_exadata_infrastructure_discovery_summary.py +9 -7
  210. oci/database_management/models/external_exadata_storage_grid_summary.py +4 -2
  211. oci/database_management/models/external_serviced_database.py +10 -10
  212. oci/database_management/models/external_storage_grid_discovery_summary.py +4 -2
  213. oci/database_management/models/external_storage_server_discovery_summary.py +4 -2
  214. oci/database_management/perfhub_client.py +1 -1
  215. oci/database_management/sql_tuning_client.py +17 -17
  216. oci/database_migration/database_migration_client.py +42 -42
  217. oci/database_migration/models/migration_parameter_base.py +5 -5
  218. oci/database_tools/database_tools_client.py +23 -23
  219. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  220. oci/delegate_access_control/work_request_client.py +4 -4
  221. oci/demand_signal/occ_demand_signal_client.py +7 -7
  222. oci/desktops/desktop_service_client.py +21 -21
  223. oci/devops/devops_client.py +141 -141
  224. oci/devops/models/build_run_snapshot.py +5 -5
  225. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  226. oci/dns/dns_client.py +52 -52
  227. oci/dts/appliance_export_job_client.py +6 -6
  228. oci/dts/shipping_vendors_client.py +1 -1
  229. oci/dts/transfer_appliance_client.py +8 -8
  230. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  231. oci/dts/transfer_device_client.py +5 -5
  232. oci/dts/transfer_job_client.py +6 -6
  233. oci/dts/transfer_package_client.py +7 -7
  234. oci/em_warehouse/em_data_lake_client.py +13 -13
  235. oci/em_warehouse/em_warehouse_client.py +13 -13
  236. oci/email/email_client.py +31 -31
  237. oci/email_data_plane/email_dp_client.py +1 -1
  238. oci/events/events_client.py +6 -6
  239. oci/file_storage/file_storage_client.py +54 -54
  240. oci/fleet_apps_management/fleet_apps_management_admin_client.py +8 -8
  241. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  242. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  243. oci/fleet_apps_management/fleet_apps_management_operations_client.py +13 -13
  244. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +4 -4
  245. oci/fleet_apps_management/models/fleet_target.py +10 -10
  246. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  247. oci/functions/functions_invoke_client.py +1 -1
  248. oci/functions/functions_management_client.py +16 -16
  249. oci/fusion_apps/data_masking_activity_client.py +3 -3
  250. oci/fusion_apps/fusion_applications_client.py +41 -41
  251. oci/fusion_apps/fusion_environment_client.py +15 -15
  252. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  253. oci/fusion_apps/models/allow_rule.py +1 -1
  254. oci/fusion_apps/models/create_refresh_activity_details.py +31 -0
  255. oci/fusion_apps/models/maintenance_policy.py +10 -10
  256. oci/fusion_apps/models/refresh_activity.py +31 -0
  257. oci/fusion_apps/models/refresh_activity_summary.py +31 -0
  258. oci/fusion_apps/refresh_activity_client.py +4 -4
  259. oci/fusion_apps/scheduled_activity_client.py +2 -2
  260. oci/fusion_apps/service_attachment_client.py +2 -2
  261. oci/generative_ai/generative_ai_client.py +22 -22
  262. oci/generative_ai_agent/__init__.py +14 -0
  263. oci/generative_ai_agent/generative_ai_agent_client.py +4245 -0
  264. oci/generative_ai_agent/generative_ai_agent_client_composite_operations.py +774 -0
  265. oci/generative_ai_agent/models/__init__.py +118 -0
  266. oci/generative_ai_agent/models/agent.py +536 -0
  267. oci/generative_ai_agent/models/agent_collection.py +74 -0
  268. oci/generative_ai_agent/models/agent_endpoint.py +648 -0
  269. oci/generative_ai_agent/models/agent_endpoint_collection.py +74 -0
  270. oci/generative_ai_agent/models/agent_endpoint_summary.py +612 -0
  271. oci/generative_ai_agent/models/agent_summary.py +500 -0
  272. oci/generative_ai_agent/models/basic_auth_secret.py +88 -0
  273. oci/generative_ai_agent/models/change_agent_compartment_details.py +78 -0
  274. oci/generative_ai_agent/models/change_agent_endpoint_compartment_details.py +78 -0
  275. oci/generative_ai_agent/models/change_knowledge_base_compartment_details.py +78 -0
  276. oci/generative_ai_agent/models/content_moderation_config.py +103 -0
  277. oci/generative_ai_agent/models/create_agent_details.py +288 -0
  278. oci/generative_ai_agent/models/create_agent_endpoint_details.py +400 -0
  279. oci/generative_ai_agent/models/create_data_ingestion_job_details.py +257 -0
  280. oci/generative_ai_agent/models/create_data_source_details.py +284 -0
  281. oci/generative_ai_agent/models/create_knowledge_base_details.py +249 -0
  282. oci/generative_ai_agent/models/data_ingestion_job.py +536 -0
  283. oci/generative_ai_agent/models/data_ingestion_job_collection.py +74 -0
  284. oci/generative_ai_agent/models/data_ingestion_job_statistics.py +136 -0
  285. oci/generative_ai_agent/models/data_ingestion_job_summary.py +469 -0
  286. oci/generative_ai_agent/models/data_source.py +536 -0
  287. oci/generative_ai_agent/models/data_source_collection.py +74 -0
  288. oci/generative_ai_agent/models/data_source_config.py +107 -0
  289. oci/generative_ai_agent/models/data_source_summary.py +469 -0
  290. oci/generative_ai_agent/models/database_connection.py +107 -0
  291. oci/generative_ai_agent/models/database_function.py +74 -0
  292. oci/generative_ai_agent/models/database_tool_connection.py +88 -0
  293. oci/generative_ai_agent/models/default_index_config.py +84 -0
  294. oci/generative_ai_agent/models/idcs_secret.py +181 -0
  295. oci/generative_ai_agent/models/index.py +101 -0
  296. oci/generative_ai_agent/models/index_config.py +127 -0
  297. oci/generative_ai_agent/models/index_schema.py +167 -0
  298. oci/generative_ai_agent/models/knowledge_base.py +501 -0
  299. oci/generative_ai_agent/models/knowledge_base_collection.py +74 -0
  300. oci/generative_ai_agent/models/knowledge_base_summary.py +434 -0
  301. oci/generative_ai_agent/models/object_storage_prefix.py +136 -0
  302. oci/generative_ai_agent/models/oci_database_config.py +111 -0
  303. oci/generative_ai_agent/models/oci_object_storage_data_source_config.py +84 -0
  304. oci/generative_ai_agent/models/oci_open_search_index_config.py +146 -0
  305. oci/generative_ai_agent/models/secret_detail.py +117 -0
  306. oci/generative_ai_agent/models/session_config.py +74 -0
  307. oci/generative_ai_agent/models/update_agent_details.py +253 -0
  308. oci/generative_ai_agent/models/update_agent_endpoint_details.py +303 -0
  309. oci/generative_ai_agent/models/update_data_source_details.py +214 -0
  310. oci/generative_ai_agent/models/update_knowledge_base_details.py +214 -0
  311. oci/generative_ai_agent/models/work_request.py +505 -0
  312. oci/generative_ai_agent/models/work_request_error.py +148 -0
  313. oci/generative_ai_agent/models/work_request_error_collection.py +74 -0
  314. oci/generative_ai_agent/models/work_request_log_entry.py +111 -0
  315. oci/generative_ai_agent/models/work_request_log_entry_collection.py +74 -0
  316. oci/generative_ai_agent/models/work_request_resource.py +240 -0
  317. oci/generative_ai_agent/models/work_request_summary.py +503 -0
  318. oci/generative_ai_agent/models/work_request_summary_collection.py +74 -0
  319. oci/generative_ai_agent_runtime/__init__.py +14 -0
  320. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +689 -0
  321. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client_composite_operations.py +26 -0
  322. oci/generative_ai_agent_runtime/models/__init__.py +44 -0
  323. oci/generative_ai_agent_runtime/models/chat_details.py +134 -0
  324. oci/generative_ai_agent_runtime/models/chat_result.py +99 -0
  325. oci/generative_ai_agent_runtime/models/citation.py +99 -0
  326. oci/generative_ai_agent_runtime/models/create_session_details.py +103 -0
  327. oci/generative_ai_agent_runtime/models/error_trace.py +89 -0
  328. oci/generative_ai_agent_runtime/models/generation_trace.py +89 -0
  329. oci/generative_ai_agent_runtime/models/message.py +146 -0
  330. oci/generative_ai_agent_runtime/models/message_content.py +103 -0
  331. oci/generative_ai_agent_runtime/models/oci_database_source_location.py +148 -0
  332. oci/generative_ai_agent_runtime/models/oci_object_storage_source_location.py +82 -0
  333. oci/generative_ai_agent_runtime/models/oci_open_search_source_location.py +144 -0
  334. oci/generative_ai_agent_runtime/models/retrieval_trace.py +120 -0
  335. oci/generative_ai_agent_runtime/models/session.py +227 -0
  336. oci/generative_ai_agent_runtime/models/source_location.py +117 -0
  337. oci/generative_ai_agent_runtime/models/trace.py +148 -0
  338. oci/generative_ai_agent_runtime/models/update_session_details.py +103 -0
  339. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  340. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  341. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  342. oci/golden_gate/golden_gate_client.py +68 -68
  343. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  344. oci/governance_rules_control_plane/work_request_client.py +5 -5
  345. oci/healthchecks/health_checks_client.py +17 -17
  346. oci/identity/identity_client.py +145 -145
  347. oci/identity_data_plane/dataplane_client.py +2 -2
  348. oci/identity_domains/identity_domains_client.py +307 -307
  349. oci/integration/integration_instance_client.py +374 -18
  350. oci/integration/integration_instance_client_composite_operations.py +120 -0
  351. oci/integration/models/__init__.py +6 -0
  352. oci/integration/models/add_oracle_managed_custom_endpoint_details.py +146 -0
  353. oci/integration/models/create_integration_instance_details.py +31 -0
  354. oci/integration/models/cross_region_integration_instance_details.py +185 -0
  355. oci/integration/models/custom_endpoint_details.py +121 -0
  356. oci/integration/models/disaster_recovery_details.py +150 -0
  357. oci/integration/models/integration_instance.py +123 -7
  358. oci/integration/models/integration_instance_summary.py +96 -7
  359. oci/integration/models/work_request.py +15 -3
  360. oci/integration/models/work_request_summary.py +15 -3
  361. oci/jms/java_management_service_client.py +75 -75
  362. oci/jms_java_downloads/java_download_client.py +25 -25
  363. oci/key_management/ekm_client.py +5 -5
  364. oci/key_management/kms_crypto_client.py +6 -6
  365. oci/key_management/kms_hsm_cluster_client.py +12 -12
  366. oci/key_management/kms_management_client.py +21 -21
  367. oci/key_management/kms_vault_client.py +14 -14
  368. oci/license_manager/license_manager_client.py +18 -18
  369. oci/limits/limits_client.py +4 -4
  370. oci/limits/quotas_client.py +7 -7
  371. oci/load_balancer/load_balancer_client.py +61 -61
  372. oci/load_balancer/models/create_load_balancer_details.py +35 -0
  373. oci/load_balancer/models/load_balancer.py +35 -0
  374. oci/load_balancer/models/update_load_balancer_details.py +37 -2
  375. oci/lockbox/lockbox_client.py +24 -24
  376. oci/log_analytics/log_analytics_client.py +193 -193
  377. oci/log_analytics/models/chart_data_column.py +6 -3
  378. oci/log_analytics/models/function_field.py +4 -2
  379. oci/log_analytics/models/time_cluster_data_column.py +6 -3
  380. oci/log_analytics/models/time_stats_data_column.py +6 -3
  381. oci/logging/logging_management_client.py +30 -30
  382. oci/logging/models/unified_agent_monitoring_filter.py +5 -5
  383. oci/logging/models/unified_agent_tail_log_source.py +2 -1
  384. oci/logging/models/unified_agent_url_filter.py +2 -1
  385. oci/loggingingestion/logging_client.py +1 -1
  386. oci/loggingsearch/log_search_client.py +1 -1
  387. oci/management_agent/management_agent_client.py +28 -28
  388. oci/management_dashboard/dashx_apis_client.py +14 -14
  389. oci/marketplace/account_client.py +2 -2
  390. oci/marketplace/marketplace_client.py +30 -30
  391. oci/marketplace_private_offer/attachment_client.py +5 -5
  392. oci/marketplace_private_offer/offer_client.py +6 -6
  393. oci/marketplace_publisher/attachment_client.py +5 -5
  394. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  395. oci/marketplace_publisher/offer_client.py +6 -6
  396. oci/media_services/media_services_client.py +60 -60
  397. oci/media_services/media_stream_client.py +2 -2
  398. oci/monitoring/models/__init__.py +6 -0
  399. oci/monitoring/models/alarm_status_summary.py +2 -0
  400. oci/monitoring/models/alarm_suppression.py +94 -2
  401. oci/monitoring/models/alarm_suppression_alarm_target.py +1 -1
  402. oci/monitoring/models/alarm_suppression_collection.py +3 -3
  403. oci/monitoring/models/alarm_suppression_compartment_target.py +127 -0
  404. oci/monitoring/models/alarm_suppression_history_item.py +43 -2
  405. oci/monitoring/models/alarm_suppression_summary.py +78 -2
  406. oci/monitoring/models/alarm_suppression_target.py +11 -3
  407. oci/monitoring/models/create_alarm_suppression_details.py +86 -6
  408. oci/monitoring/models/recurrence.py +127 -0
  409. oci/monitoring/models/suppression.py +1 -0
  410. oci/monitoring/models/suppression_condition.py +101 -0
  411. oci/monitoring/monitoring_client.py +115 -33
  412. oci/mysql/channels_client.py +7 -7
  413. oci/mysql/db_backups_client.py +7 -7
  414. oci/mysql/db_system_client.py +17 -17
  415. oci/mysql/mysqlaas_client.py +7 -7
  416. oci/mysql/replicas_client.py +5 -5
  417. oci/mysql/work_requests_client.py +4 -4
  418. oci/network_firewall/network_firewall_client.py +86 -86
  419. oci/network_load_balancer/models/create_network_load_balancer_details.py +43 -2
  420. oci/network_load_balancer/models/network_load_balancer.py +41 -0
  421. oci/network_load_balancer/models/network_load_balancer_summary.py +41 -0
  422. oci/network_load_balancer/models/update_network_load_balancer_details.py +43 -2
  423. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  424. oci/nosql/nosql_client.py +24 -24
  425. oci/object_storage/object_storage_client.py +55 -55
  426. oci/oce/oce_instance_client.py +10 -10
  427. oci/oci_control_center/occ_metrics_client.py +3 -3
  428. oci/ocvp/cluster_client.py +5 -5
  429. oci/ocvp/esxi_host_client.py +8 -8
  430. oci/ocvp/sddc_client.py +14 -14
  431. oci/ocvp/work_request_client.py +4 -4
  432. oci/oda/management_client.py +59 -59
  433. oci/oda/models/bot.py +15 -15
  434. oci/oda/models/parameter.py +10 -10
  435. oci/oda/oda_client.py +17 -17
  436. oci/oda/odapackage_client.py +7 -7
  437. oci/onesubscription/billing_schedule_client.py +1 -1
  438. oci/onesubscription/commitment_client.py +2 -2
  439. oci/onesubscription/computed_usage_client.py +3 -3
  440. oci/onesubscription/invoice_summary_client.py +2 -2
  441. oci/onesubscription/organization_subscription_client.py +1 -1
  442. oci/onesubscription/ratecard_client.py +1 -1
  443. oci/onesubscription/subscribed_service_client.py +2 -2
  444. oci/onesubscription/subscription_client.py +1 -1
  445. oci/ons/notification_control_plane_client.py +6 -6
  446. oci/ons/notification_data_plane_client.py +10 -10
  447. oci/opa/opa_instance_client.py +13 -13
  448. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  449. oci/opensearch/opensearch_cluster_client.py +14 -14
  450. oci/operator_access_control/access_requests_client.py +10 -10
  451. oci/operator_access_control/operator_actions_client.py +2 -2
  452. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  453. oci/operator_access_control/operator_control_client.py +6 -6
  454. oci/opsi/models/__init__.py +50 -0
  455. oci/opsi/models/add_em_managed_external_exadata_insight_members_details.py +1 -1
  456. oci/opsi/models/add_exadata_insight_members_details.py +11 -3
  457. oci/opsi/models/add_macs_managed_cloud_exadata_insight_members_details.py +78 -0
  458. oci/opsi/models/add_pe_comanaged_exadata_insight_members_details.py +1 -1
  459. oci/opsi/models/autonomous_database_configuration_summary.py +1 -1
  460. oci/opsi/models/autonomous_database_insight.py +1 -1
  461. oci/opsi/models/autonomous_database_insight_summary.py +1 -1
  462. oci/opsi/models/awr_query_result.py +5 -5
  463. oci/opsi/models/change_macs_managed_cloud_database_insight_connection_details.py +130 -0
  464. oci/opsi/models/create_database_insight_details.py +11 -3
  465. oci/opsi/models/create_em_managed_external_database_insight_details.py +1 -1
  466. oci/opsi/models/create_em_managed_external_exadata_insight_details.py +1 -1
  467. oci/opsi/models/create_em_managed_external_host_insight_details.py +1 -1
  468. oci/opsi/models/create_exadata_insight_details.py +11 -3
  469. oci/opsi/models/create_host_insight_details.py +7 -3
  470. oci/opsi/models/create_macs_managed_cloud_database_insight_details.py +315 -0
  471. oci/opsi/models/create_macs_managed_cloud_exadata_cluster_details.py +171 -0
  472. oci/opsi/models/create_macs_managed_cloud_exadata_insight_details.py +134 -0
  473. oci/opsi/models/create_macs_managed_cloud_exadata_vmcluster_details.py +96 -0
  474. oci/opsi/models/create_macs_managed_cloud_host_insight_details.py +1 -1
  475. oci/opsi/models/create_macs_managed_external_host_insight_details.py +1 -1
  476. oci/opsi/models/create_mds_my_sql_database_insight_details.py +1 -1
  477. oci/opsi/models/create_pe_comanaged_database_insight_details.py +1 -1
  478. oci/opsi/models/create_pe_comanaged_exadata_insight_details.py +1 -1
  479. oci/opsi/models/database_configuration_metric_group.py +35 -3
  480. oci/opsi/models/database_configuration_summary.py +11 -3
  481. oci/opsi/models/database_insight.py +11 -3
  482. oci/opsi/models/database_insight_summary.py +11 -3
  483. oci/opsi/models/db_connection_status.py +58 -0
  484. oci/opsi/models/db_external_instance.py +1 -1
  485. oci/opsi/models/db_external_properties.py +1 -1
  486. oci/opsi/models/db_parameters.py +1 -1
  487. oci/opsi/models/dbos_config_instance.py +1 -1
  488. oci/opsi/models/em_managed_external_database_configuration_summary.py +127 -3
  489. oci/opsi/models/em_managed_external_database_insight.py +1 -1
  490. oci/opsi/models/em_managed_external_database_insight_summary.py +1 -1
  491. oci/opsi/models/em_managed_external_exadata_insight.py +2 -2
  492. oci/opsi/models/em_managed_external_exadata_insight_summary.py +2 -2
  493. oci/opsi/models/em_managed_external_host_configuration_summary.py +127 -3
  494. oci/opsi/models/em_managed_external_host_insight.py +1 -1
  495. oci/opsi/models/em_managed_external_host_insight_summary.py +1 -1
  496. oci/opsi/models/enable_database_insight_details.py +11 -3
  497. oci/opsi/models/enable_em_managed_external_database_insight_details.py +1 -1
  498. oci/opsi/models/enable_em_managed_external_exadata_insight_details.py +1 -1
  499. oci/opsi/models/enable_em_managed_external_host_insight_details.py +1 -1
  500. oci/opsi/models/enable_exadata_insight_details.py +11 -3
  501. oci/opsi/models/enable_host_insight_details.py +7 -3
  502. oci/opsi/models/enable_macs_managed_cloud_database_insight_details.py +274 -0
  503. oci/opsi/models/enable_macs_managed_cloud_exadata_insight_details.py +51 -0
  504. oci/opsi/models/enable_macs_managed_cloud_host_insight_details.py +1 -1
  505. oci/opsi/models/enable_macs_managed_external_host_insight_details.py +1 -1
  506. oci/opsi/models/enable_mds_my_sql_database_insight_details.py +1 -1
  507. oci/opsi/models/enable_pe_comanaged_database_insight_details.py +1 -1
  508. oci/opsi/models/enable_pe_comanaged_exadata_insight_details.py +1 -1
  509. oci/opsi/models/exadata_asm_entity.py +151 -0
  510. oci/opsi/models/exadata_cell_config.py +213 -0
  511. oci/opsi/models/exadata_configuration_summary.py +30 -6
  512. oci/opsi/models/exadata_database_machine_configuration_summary.py +128 -4
  513. oci/opsi/models/exadata_exacc_configuration_summary.py +186 -0
  514. oci/opsi/models/exadata_exacs_configuration_summary.py +2 -2
  515. oci/opsi/models/exadata_insight.py +30 -6
  516. oci/opsi/models/exadata_insight_summary.py +30 -6
  517. oci/opsi/models/exadata_member_collection.py +19 -3
  518. oci/opsi/models/host_allocation.py +120 -0
  519. oci/opsi/models/host_configuration_summary.py +11 -3
  520. oci/opsi/models/host_containers.py +2 -2
  521. oci/opsi/models/host_insight.py +11 -3
  522. oci/opsi/models/host_insight_summary.py +11 -3
  523. oci/opsi/models/macs_managed_cloud_database_configuration_summary.py +253 -0
  524. oci/opsi/models/macs_managed_cloud_database_host_insight.py +394 -0
  525. oci/opsi/models/macs_managed_cloud_database_host_insight_summary.py +339 -0
  526. oci/opsi/models/macs_managed_cloud_database_insight.py +469 -0
  527. oci/opsi/models/macs_managed_cloud_database_insight_summary.py +315 -0
  528. oci/opsi/models/macs_managed_cloud_db_host_configuration_summary.py +282 -0
  529. oci/opsi/models/macs_managed_cloud_exadata_insight.py +278 -0
  530. oci/opsi/models/macs_managed_cloud_exadata_insight_summary.py +271 -0
  531. oci/opsi/models/macs_managed_cloud_host_configuration_summary.py +1 -1
  532. oci/opsi/models/macs_managed_cloud_host_insight.py +1 -1
  533. oci/opsi/models/macs_managed_cloud_host_insight_summary.py +1 -1
  534. oci/opsi/models/macs_managed_external_database_configuration_summary.py +1 -1
  535. oci/opsi/models/macs_managed_external_database_insight.py +1 -1
  536. oci/opsi/models/macs_managed_external_database_insight_summary.py +1 -1
  537. oci/opsi/models/macs_managed_external_host_configuration_summary.py +1 -1
  538. oci/opsi/models/macs_managed_external_host_insight.py +1 -1
  539. oci/opsi/models/macs_managed_external_host_insight_summary.py +1 -1
  540. oci/opsi/models/mds_my_sql_database_insight.py +1 -1
  541. oci/opsi/models/mds_my_sql_database_insight_summary.py +1 -1
  542. oci/opsi/models/mds_mysql_database_configuration_summary.py +1 -1
  543. oci/opsi/models/pe_comanaged_database_insight.py +1 -1
  544. oci/opsi/models/pe_comanaged_database_insight_summary.py +1 -1
  545. oci/opsi/models/pe_comanaged_exadata_insight.py +9 -5
  546. oci/opsi/models/pe_comanaged_exadata_insight_summary.py +9 -5
  547. oci/opsi/models/pe_comanaged_host_configuration_summary.py +1 -1
  548. oci/opsi/models/pe_comanaged_host_insight.py +1 -1
  549. oci/opsi/models/pe_comanaged_host_insight_summary.py +1 -1
  550. oci/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py +1 -1
  551. oci/opsi/models/test_macs_managed_cloud_database_insight_connection_details.py +130 -0
  552. oci/opsi/models/update_autonomous_database_insight_details.py +1 -1
  553. oci/opsi/models/update_database_insight_details.py +11 -3
  554. oci/opsi/models/update_em_managed_external_database_insight_details.py +1 -1
  555. oci/opsi/models/update_em_managed_external_exadata_insight_details.py +1 -1
  556. oci/opsi/models/update_em_managed_external_host_insight_details.py +1 -1
  557. oci/opsi/models/update_exadata_insight_details.py +11 -3
  558. oci/opsi/models/update_host_insight_details.py +11 -3
  559. oci/opsi/models/update_macs_managed_cloud_database_host_insight_details.py +65 -0
  560. oci/opsi/models/update_macs_managed_cloud_database_insight_details.py +65 -0
  561. oci/opsi/models/update_macs_managed_cloud_exadata_insight_details.py +65 -0
  562. oci/opsi/models/update_macs_managed_cloud_host_insight_details.py +1 -1
  563. oci/opsi/models/update_macs_managed_external_database_insight_details.py +1 -1
  564. oci/opsi/models/update_macs_managed_external_host_insight_details.py +1 -1
  565. oci/opsi/models/update_mds_my_sql_database_insight.py +1 -1
  566. oci/opsi/models/update_pe_comanaged_database_insight_details.py +1 -1
  567. oci/opsi/models/update_pe_comanaged_exadata_insight_details.py +1 -1
  568. oci/opsi/models/update_pe_comanaged_host_insight_details.py +1 -1
  569. oci/opsi/models/work_request.py +11 -3
  570. oci/opsi/operations_insights_client.py +482 -214
  571. oci/opsi/operations_insights_client_composite_operations.py +81 -0
  572. oci/optimizer/optimizer_client.py +26 -26
  573. oci/os_management/event_client.py +8 -8
  574. oci/os_management/os_management_client.py +69 -69
  575. oci/os_management_hub/event_client.py +8 -8
  576. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  577. oci/os_management_hub/managed_instance_client.py +31 -31
  578. oci/os_management_hub/managed_instance_group_client.py +25 -25
  579. oci/os_management_hub/management_station_client.py +10 -10
  580. oci/os_management_hub/models/event_content.py +5 -5
  581. oci/os_management_hub/models/exploit_attempt_event_content.py +2 -1
  582. oci/os_management_hub/models/package_summary.py +10 -10
  583. oci/os_management_hub/onboarding_client.py +6 -6
  584. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  585. oci/os_management_hub/scheduled_job_client.py +7 -7
  586. oci/os_management_hub/software_source_client.py +27 -27
  587. oci/os_management_hub/work_request_client.py +4 -4
  588. oci/osp_gateway/address_rule_service_client.py +1 -1
  589. oci/osp_gateway/address_service_client.py +2 -2
  590. oci/osp_gateway/invoice_service_client.py +5 -5
  591. oci/osp_gateway/subscription_service_client.py +5 -5
  592. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  593. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  594. oci/osub_subscription/commitment_client.py +2 -2
  595. oci/osub_subscription/ratecard_client.py +1 -1
  596. oci/osub_subscription/subscription_client.py +1 -1
  597. oci/osub_usage/computed_usage_client.py +3 -3
  598. oci/psql/postgresql_client.py +33 -33
  599. oci/queue/queue_admin_client.py +11 -11
  600. oci/queue/queue_client.py +8 -8
  601. oci/recovery/database_recovery_client.py +26 -26
  602. oci/redis/redis_cluster_client.py +12 -12
  603. oci/regions_definitions.py +8 -0
  604. oci/resource_manager/resource_manager_client.py +52 -52
  605. oci/resource_scheduler/schedule_client.py +13 -13
  606. oci/resource_search/resource_search_client.py +3 -3
  607. oci/rover/rover_bundle_client.py +8 -8
  608. oci/rover/rover_cluster_client.py +8 -8
  609. oci/rover/rover_entitlement_client.py +6 -6
  610. oci/rover/rover_node_client.py +15 -15
  611. oci/rover/shape_client.py +1 -1
  612. oci/rover/work_requests_client.py +5 -5
  613. oci/sch/connector_plugins_client.py +2 -2
  614. oci/sch/service_connector_client.py +12 -12
  615. oci/secrets/secrets_client.py +3 -3
  616. oci/security_attribute/__init__.py +14 -0
  617. oci/security_attribute/models/__init__.py +54 -0
  618. oci/security_attribute/models/base_security_attribute_validator.py +122 -0
  619. oci/security_attribute/models/bulk_delete_security_attributes_details.py +72 -0
  620. oci/security_attribute/models/bulk_edit_resource.py +134 -0
  621. oci/security_attribute/models/bulk_edit_security_attribute_details.py +134 -0
  622. oci/security_attribute/models/bulk_edit_security_attribute_operation_details.py +147 -0
  623. oci/security_attribute/models/change_security_attribute_namespace_compartment_details.py +72 -0
  624. oci/security_attribute/models/create_security_attribute_details.py +132 -0
  625. oci/security_attribute/models/create_security_attribute_namespace_details.py +216 -0
  626. oci/security_attribute/models/default_security_attribute_validator.py +53 -0
  627. oci/security_attribute/models/enum_security_attribute_validator.py +85 -0
  628. oci/security_attribute/models/security_attribute.py +421 -0
  629. oci/security_attribute/models/security_attribute_namespace.py +446 -0
  630. oci/security_attribute/models/security_attribute_namespace_summary.py +410 -0
  631. oci/security_attribute/models/security_attribute_summary.py +361 -0
  632. oci/security_attribute/models/security_attribute_work_request.py +387 -0
  633. oci/security_attribute/models/security_attribute_work_request_error_summary.py +136 -0
  634. oci/security_attribute/models/security_attribute_work_request_log_summary.py +105 -0
  635. oci/security_attribute/models/security_attribute_work_request_summary.py +386 -0
  636. oci/security_attribute/models/update_security_attribute_details.py +136 -0
  637. oci/security_attribute/models/update_security_attribute_namespace_details.py +191 -0
  638. oci/security_attribute/models/work_request_resource.py +197 -0
  639. oci/security_attribute/security_attribute_client.py +2321 -0
  640. oci/security_attribute/security_attribute_client_composite_operations.py +265 -0
  641. oci/service_catalog/service_catalog_client.py +26 -26
  642. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  643. oci/service_mesh/models/traffic_rule_target.py +5 -5
  644. oci/service_mesh/service_mesh_client.py +48 -48
  645. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  646. oci/streaming/stream_admin_client.py +18 -18
  647. oci/streaming/stream_client.py +8 -8
  648. oci/tenant_manager_control_plane/domain_client.py +5 -5
  649. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  650. oci/tenant_manager_control_plane/governance_client.py +2 -2
  651. oci/tenant_manager_control_plane/link_client.py +3 -3
  652. oci/tenant_manager_control_plane/orders_client.py +2 -2
  653. oci/tenant_manager_control_plane/organization_client.py +10 -10
  654. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  655. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  656. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  657. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  658. oci/threat_intelligence/threatintel_client.py +5 -5
  659. oci/usage/resources_client.py +2 -2
  660. oci/usage/rewards_client.py +6 -6
  661. oci/usage/usagelimits_client.py +1 -1
  662. oci/usage_api/usageapi_client.py +33 -33
  663. oci/vault/vaults_client.py +13 -13
  664. oci/vbs_inst/vbs_instance_client.py +10 -10
  665. oci/version.py +1 -1
  666. oci/visual_builder/vb_instance_client.py +13 -13
  667. oci/vn_monitoring/models/topology.py +5 -5
  668. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  669. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  670. oci/waa/waa_client.py +13 -13
  671. oci/waa/work_request_client.py +4 -4
  672. oci/waas/redirect_client.py +6 -6
  673. oci/waas/waas_client.py +66 -66
  674. oci/waf/models/protection_rule.py +4 -2
  675. oci/waf/models/request_rate_limiting_rule.py +4 -2
  676. oci/waf/models/web_app_firewall_policy_rule.py +10 -10
  677. oci/waf/waf_client.py +24 -24
  678. oci/work_requests/work_request_client.py +4 -4
  679. oci/zpr/__init__.py +14 -0
  680. oci/zpr/models/__init__.py +42 -0
  681. oci/zpr/models/configuration.py +449 -0
  682. oci/zpr/models/create_configuration_details.py +189 -0
  683. oci/zpr/models/create_zpr_policy_details.py +251 -0
  684. oci/zpr/models/update_zpr_policy_details.py +185 -0
  685. oci/zpr/models/work_request.py +459 -0
  686. oci/zpr/models/work_request_error.py +146 -0
  687. oci/zpr/models/work_request_error_collection.py +72 -0
  688. oci/zpr/models/work_request_log_entry.py +109 -0
  689. oci/zpr/models/work_request_log_entry_collection.py +72 -0
  690. oci/zpr/models/work_request_resource.py +238 -0
  691. oci/zpr/models/work_request_summary.py +457 -0
  692. oci/zpr/models/work_request_summary_collection.py +72 -0
  693. oci/zpr/models/zpr_policy.py +505 -0
  694. oci/zpr/models/zpr_policy_collection.py +72 -0
  695. oci/zpr/models/zpr_policy_summary.py +463 -0
  696. oci/zpr/zpr_client.py +2124 -0
  697. oci/zpr/zpr_client_composite_operations.py +197 -0
  698. {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/METADATA +1 -1
  699. {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/RECORD +703 -542
  700. {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/LICENSE.txt +0 -0
  701. {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  702. {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/WHEEL +0 -0
  703. {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/top_level.txt +0 -0
oci/zpr/zpr_client.py ADDED
@@ -0,0 +1,2124 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240301
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 zpr_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class ZprClient(object):
24
+ """
25
+ Use the Zero Trust Packet Routing Control Plane API to manage ZPR configuration and policy. See the [Zero Trust Packet Routing](/iaas/Content/zero-trust-packet-routing/home.htm) documentation for more information.
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("zpr"):
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': '/20240301',
103
+ 'service_endpoint_template': 'https://{service}.{region}.oci.{secondLevelDomain}',
104
+ 'endpoint_service_name': '${endpoint-template-prefix}',
105
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
106
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
107
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
108
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
109
+ }
110
+ if 'timeout' in kwargs:
111
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
112
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
113
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
114
+ if 'allow_control_chars' in kwargs:
115
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
116
+ self.base_client = BaseClient("zpr", config, signer, zpr_type_mapping, **base_client_init_kwargs)
117
+ self.retry_strategy = kwargs.get('retry_strategy')
118
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
119
+
120
+ def create_configuration(self, create_configuration_details, **kwargs):
121
+ """
122
+ Initiates the process to onboard ZPR
123
+ in a root compartment (the root compartment is the tenancy). It creates an object of ZPR configuration as part of onboarding.
124
+
125
+
126
+ :param oci.zpr.models.CreateConfigurationDetails create_configuration_details: (required)
127
+ Details for ZPR configuration in the tenancy.
128
+
129
+ :param str opc_request_id: (optional)
130
+ Unique Oracle-assigned identifier for the request. If you need to contact
131
+ Oracle about a particular request, please provide the request ID.
132
+ The only valid characters for request IDs are letters, numbers,
133
+ underscore, and dash.
134
+
135
+ :param str opc_retry_token: (optional)
136
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
137
+ server error without risk of running that same action again. Retry tokens expire after 24
138
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
139
+ has been deleted and removed from the system, then a retry of the original creation request
140
+ might be rejected.
141
+
142
+ :param bool opc_dry_run: (optional)
143
+ Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the
144
+ configuration item details and is used only to perform validation on the submitted data.
145
+
146
+ :param obj retry_strategy: (optional)
147
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
148
+
149
+ 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.
150
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
151
+
152
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
153
+
154
+ :param bool allow_control_chars: (optional)
155
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
156
+ By default, the response will not allow control characters in strings
157
+
158
+ :return: A :class:`~oci.response.Response` object with data of type None
159
+ :rtype: :class:`~oci.response.Response`
160
+
161
+ :example:
162
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/create_configuration.py.html>`__ to see an example of how to use create_configuration API.
163
+ """
164
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
165
+ required_arguments = []
166
+ resource_path = "/configuration"
167
+ method = "POST"
168
+ operation_name = "create_configuration"
169
+ api_reference_link = ""
170
+
171
+ # Don't accept unknown kwargs
172
+ expected_kwargs = [
173
+ "allow_control_chars",
174
+ "retry_strategy",
175
+ "opc_request_id",
176
+ "opc_retry_token",
177
+ "opc_dry_run"
178
+ ]
179
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
180
+ if extra_kwargs:
181
+ raise ValueError(
182
+ f"create_configuration got unknown kwargs: {extra_kwargs!r}")
183
+
184
+ header_params = {
185
+ "accept": "application/json",
186
+ "content-type": "application/json",
187
+ "opc-request-id": kwargs.get("opc_request_id", missing),
188
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
189
+ "opc-dry-run": kwargs.get("opc_dry_run", missing)
190
+ }
191
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
192
+
193
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
194
+ operation_retry_strategy=kwargs.get('retry_strategy'),
195
+ client_retry_strategy=self.retry_strategy
196
+ )
197
+ if retry_strategy is None:
198
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
199
+
200
+ if retry_strategy:
201
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
202
+ self.base_client.add_opc_retry_token_if_needed(header_params)
203
+ self.base_client.add_opc_client_retries_header(header_params)
204
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
205
+ return retry_strategy.make_retrying_call(
206
+ self.base_client.call_api,
207
+ resource_path=resource_path,
208
+ method=method,
209
+ header_params=header_params,
210
+ body=create_configuration_details,
211
+ allow_control_chars=kwargs.get('allow_control_chars'),
212
+ operation_name=operation_name,
213
+ api_reference_link=api_reference_link,
214
+ required_arguments=required_arguments)
215
+ else:
216
+ return self.base_client.call_api(
217
+ resource_path=resource_path,
218
+ method=method,
219
+ header_params=header_params,
220
+ body=create_configuration_details,
221
+ allow_control_chars=kwargs.get('allow_control_chars'),
222
+ operation_name=operation_name,
223
+ api_reference_link=api_reference_link,
224
+ required_arguments=required_arguments)
225
+
226
+ def create_zpr_policy(self, create_zpr_policy_details, **kwargs):
227
+ """
228
+ Creates a ZprPolicy.
229
+
230
+
231
+ :param oci.zpr.models.CreateZprPolicyDetails create_zpr_policy_details: (required)
232
+ Details for the new ZprPolicy.
233
+
234
+ :param str opc_retry_token: (optional)
235
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
236
+ server error without risk of running that same action again. Retry tokens expire after 24
237
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
238
+ has been deleted and removed from the system, then a retry of the original creation request
239
+ might be rejected.
240
+
241
+ :param str opc_request_id: (optional)
242
+ Unique Oracle-assigned identifier for the request. If you need to contact
243
+ Oracle about a particular request, please provide the request ID.
244
+ The only valid characters for request IDs are letters, numbers,
245
+ underscore, and dash.
246
+
247
+ :param bool opc_dry_run: (optional)
248
+ Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the
249
+ configuration item details and is used only to perform validation on the submitted data.
250
+
251
+ :param obj retry_strategy: (optional)
252
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
253
+
254
+ 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.
255
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
256
+
257
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
258
+
259
+ :param bool allow_control_chars: (optional)
260
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
261
+ By default, the response will not allow control characters in strings
262
+
263
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.ZprPolicy`
264
+ :rtype: :class:`~oci.response.Response`
265
+
266
+ :example:
267
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/create_zpr_policy.py.html>`__ to see an example of how to use create_zpr_policy API.
268
+ """
269
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
270
+ required_arguments = []
271
+ resource_path = "/zprPolicies"
272
+ method = "POST"
273
+ operation_name = "create_zpr_policy"
274
+ api_reference_link = ""
275
+
276
+ # Don't accept unknown kwargs
277
+ expected_kwargs = [
278
+ "allow_control_chars",
279
+ "retry_strategy",
280
+ "opc_retry_token",
281
+ "opc_request_id",
282
+ "opc_dry_run"
283
+ ]
284
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
285
+ if extra_kwargs:
286
+ raise ValueError(
287
+ f"create_zpr_policy got unknown kwargs: {extra_kwargs!r}")
288
+
289
+ header_params = {
290
+ "accept": "application/json",
291
+ "content-type": "application/json",
292
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
293
+ "opc-request-id": kwargs.get("opc_request_id", missing),
294
+ "opc-dry-run": kwargs.get("opc_dry_run", missing)
295
+ }
296
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
297
+
298
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
299
+ operation_retry_strategy=kwargs.get('retry_strategy'),
300
+ client_retry_strategy=self.retry_strategy
301
+ )
302
+ if retry_strategy is None:
303
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
304
+
305
+ if retry_strategy:
306
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
307
+ self.base_client.add_opc_retry_token_if_needed(header_params)
308
+ self.base_client.add_opc_client_retries_header(header_params)
309
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
310
+ return retry_strategy.make_retrying_call(
311
+ self.base_client.call_api,
312
+ resource_path=resource_path,
313
+ method=method,
314
+ header_params=header_params,
315
+ body=create_zpr_policy_details,
316
+ response_type="ZprPolicy",
317
+ allow_control_chars=kwargs.get('allow_control_chars'),
318
+ operation_name=operation_name,
319
+ api_reference_link=api_reference_link,
320
+ required_arguments=required_arguments)
321
+ else:
322
+ return self.base_client.call_api(
323
+ resource_path=resource_path,
324
+ method=method,
325
+ header_params=header_params,
326
+ body=create_zpr_policy_details,
327
+ response_type="ZprPolicy",
328
+ allow_control_chars=kwargs.get('allow_control_chars'),
329
+ operation_name=operation_name,
330
+ api_reference_link=api_reference_link,
331
+ required_arguments=required_arguments)
332
+
333
+ def delete_zpr_policy(self, zpr_policy_id, **kwargs):
334
+ """
335
+ Deletes a ZprPolicy.
336
+
337
+
338
+ :param str zpr_policy_id: (required)
339
+ The `OCID`__ of the ZprPolicy.
340
+
341
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
342
+
343
+ :param str if_match: (optional)
344
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
345
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
346
+ that resource. The resource will be updated or deleted only if the etag you provide
347
+ matches the resource's current etag value.
348
+
349
+ :param str opc_request_id: (optional)
350
+ Unique Oracle-assigned identifier for the request. If you need to contact
351
+ Oracle about a particular request, please provide the request ID.
352
+ The only valid characters for request IDs are letters, numbers,
353
+ underscore, and dash.
354
+
355
+ :param bool opc_dry_run: (optional)
356
+ Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the
357
+ configuration item details and is used only to perform validation on the submitted data.
358
+
359
+ :param obj retry_strategy: (optional)
360
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
361
+
362
+ 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.
363
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
364
+
365
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
366
+
367
+ :param bool allow_control_chars: (optional)
368
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
369
+ By default, the response will not allow control characters in strings
370
+
371
+ :return: A :class:`~oci.response.Response` object with data of type None
372
+ :rtype: :class:`~oci.response.Response`
373
+
374
+ :example:
375
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/delete_zpr_policy.py.html>`__ to see an example of how to use delete_zpr_policy API.
376
+ """
377
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
378
+ required_arguments = ['zprPolicyId']
379
+ resource_path = "/zprPolicies/{zprPolicyId}"
380
+ method = "DELETE"
381
+ operation_name = "delete_zpr_policy"
382
+ api_reference_link = ""
383
+
384
+ # Don't accept unknown kwargs
385
+ expected_kwargs = [
386
+ "allow_control_chars",
387
+ "retry_strategy",
388
+ "if_match",
389
+ "opc_request_id",
390
+ "opc_dry_run"
391
+ ]
392
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
393
+ if extra_kwargs:
394
+ raise ValueError(
395
+ f"delete_zpr_policy got unknown kwargs: {extra_kwargs!r}")
396
+
397
+ path_params = {
398
+ "zprPolicyId": zpr_policy_id
399
+ }
400
+
401
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
402
+
403
+ for (k, v) in six.iteritems(path_params):
404
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
405
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
406
+
407
+ header_params = {
408
+ "accept": "application/json",
409
+ "content-type": "application/json",
410
+ "if-match": kwargs.get("if_match", missing),
411
+ "opc-request-id": kwargs.get("opc_request_id", missing),
412
+ "opc-dry-run": kwargs.get("opc_dry_run", missing)
413
+ }
414
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
415
+
416
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
417
+ operation_retry_strategy=kwargs.get('retry_strategy'),
418
+ client_retry_strategy=self.retry_strategy
419
+ )
420
+ if retry_strategy is None:
421
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
422
+
423
+ if retry_strategy:
424
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
425
+ self.base_client.add_opc_client_retries_header(header_params)
426
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
427
+ return retry_strategy.make_retrying_call(
428
+ self.base_client.call_api,
429
+ resource_path=resource_path,
430
+ method=method,
431
+ path_params=path_params,
432
+ header_params=header_params,
433
+ allow_control_chars=kwargs.get('allow_control_chars'),
434
+ operation_name=operation_name,
435
+ api_reference_link=api_reference_link,
436
+ required_arguments=required_arguments)
437
+ else:
438
+ return self.base_client.call_api(
439
+ resource_path=resource_path,
440
+ method=method,
441
+ path_params=path_params,
442
+ header_params=header_params,
443
+ allow_control_chars=kwargs.get('allow_control_chars'),
444
+ operation_name=operation_name,
445
+ api_reference_link=api_reference_link,
446
+ required_arguments=required_arguments)
447
+
448
+ def get_configuration(self, **kwargs):
449
+ """
450
+ Retrieves the ZPR configuration details for the root compartment (the root compartment is the tenancy).
451
+ Returns ZPR configuration for root compartment (the root compartment is the tenancy).
452
+
453
+
454
+ :param str compartment_id: (optional)
455
+ The `OCID`__ of the compartment in which to list resources.
456
+
457
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
458
+
459
+ :param str opc_request_id: (optional)
460
+ Unique Oracle-assigned identifier for the request. If you need to contact
461
+ Oracle about a particular request, please provide the request ID.
462
+ The only valid characters for request IDs are letters, numbers,
463
+ underscore, and dash.
464
+
465
+ :param obj retry_strategy: (optional)
466
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
467
+
468
+ 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.
469
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
470
+
471
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
472
+
473
+ :param bool allow_control_chars: (optional)
474
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
475
+ By default, the response will not allow control characters in strings
476
+
477
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.Configuration`
478
+ :rtype: :class:`~oci.response.Response`
479
+
480
+ :example:
481
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/get_configuration.py.html>`__ to see an example of how to use get_configuration API.
482
+ """
483
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
484
+ required_arguments = []
485
+ resource_path = "/configuration"
486
+ method = "GET"
487
+ operation_name = "get_configuration"
488
+ api_reference_link = ""
489
+
490
+ # Don't accept unknown kwargs
491
+ expected_kwargs = [
492
+ "allow_control_chars",
493
+ "retry_strategy",
494
+ "compartment_id",
495
+ "opc_request_id"
496
+ ]
497
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
498
+ if extra_kwargs:
499
+ raise ValueError(
500
+ f"get_configuration got unknown kwargs: {extra_kwargs!r}")
501
+
502
+ query_params = {
503
+ "compartmentId": kwargs.get("compartment_id", missing)
504
+ }
505
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
506
+
507
+ header_params = {
508
+ "accept": "application/json",
509
+ "content-type": "application/json",
510
+ "opc-request-id": kwargs.get("opc_request_id", missing)
511
+ }
512
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
513
+
514
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
515
+ operation_retry_strategy=kwargs.get('retry_strategy'),
516
+ client_retry_strategy=self.retry_strategy
517
+ )
518
+ if retry_strategy is None:
519
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
520
+
521
+ if retry_strategy:
522
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
523
+ self.base_client.add_opc_client_retries_header(header_params)
524
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
525
+ return retry_strategy.make_retrying_call(
526
+ self.base_client.call_api,
527
+ resource_path=resource_path,
528
+ method=method,
529
+ query_params=query_params,
530
+ header_params=header_params,
531
+ response_type="Configuration",
532
+ allow_control_chars=kwargs.get('allow_control_chars'),
533
+ operation_name=operation_name,
534
+ api_reference_link=api_reference_link,
535
+ required_arguments=required_arguments)
536
+ else:
537
+ return self.base_client.call_api(
538
+ resource_path=resource_path,
539
+ method=method,
540
+ query_params=query_params,
541
+ header_params=header_params,
542
+ response_type="Configuration",
543
+ allow_control_chars=kwargs.get('allow_control_chars'),
544
+ operation_name=operation_name,
545
+ api_reference_link=api_reference_link,
546
+ required_arguments=required_arguments)
547
+
548
+ def get_zpr_configuration_work_request(self, work_request_id, **kwargs):
549
+ """
550
+ Gets the details of a work request.
551
+
552
+
553
+ :param str work_request_id: (required)
554
+ The `OCID`__ of the asynchronous work request.
555
+
556
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
557
+
558
+ :param str opc_request_id: (optional)
559
+ Unique Oracle-assigned identifier for the request. If you need to contact
560
+ Oracle about a particular request, please provide the request ID.
561
+ The only valid characters for request IDs are letters, numbers,
562
+ underscore, and dash.
563
+
564
+ :param obj retry_strategy: (optional)
565
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
566
+
567
+ 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.
568
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
569
+
570
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
571
+
572
+ :param bool allow_control_chars: (optional)
573
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
574
+ By default, the response will not allow control characters in strings
575
+
576
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequest`
577
+ :rtype: :class:`~oci.response.Response`
578
+
579
+ :example:
580
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/get_zpr_configuration_work_request.py.html>`__ to see an example of how to use get_zpr_configuration_work_request API.
581
+ """
582
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
583
+ required_arguments = ['workRequestId']
584
+ resource_path = "/zprConfigurationWorkRequests/{workRequestId}"
585
+ method = "GET"
586
+ operation_name = "get_zpr_configuration_work_request"
587
+ api_reference_link = ""
588
+
589
+ # Don't accept unknown kwargs
590
+ expected_kwargs = [
591
+ "allow_control_chars",
592
+ "retry_strategy",
593
+ "opc_request_id"
594
+ ]
595
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
596
+ if extra_kwargs:
597
+ raise ValueError(
598
+ f"get_zpr_configuration_work_request got unknown kwargs: {extra_kwargs!r}")
599
+
600
+ path_params = {
601
+ "workRequestId": work_request_id
602
+ }
603
+
604
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
605
+
606
+ for (k, v) in six.iteritems(path_params):
607
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
608
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
609
+
610
+ header_params = {
611
+ "accept": "application/json",
612
+ "content-type": "application/json",
613
+ "opc-request-id": kwargs.get("opc_request_id", missing)
614
+ }
615
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
616
+
617
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
618
+ operation_retry_strategy=kwargs.get('retry_strategy'),
619
+ client_retry_strategy=self.retry_strategy
620
+ )
621
+ if retry_strategy is None:
622
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
623
+
624
+ if retry_strategy:
625
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
626
+ self.base_client.add_opc_client_retries_header(header_params)
627
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
628
+ return retry_strategy.make_retrying_call(
629
+ self.base_client.call_api,
630
+ resource_path=resource_path,
631
+ method=method,
632
+ path_params=path_params,
633
+ header_params=header_params,
634
+ response_type="WorkRequest",
635
+ allow_control_chars=kwargs.get('allow_control_chars'),
636
+ operation_name=operation_name,
637
+ api_reference_link=api_reference_link,
638
+ required_arguments=required_arguments)
639
+ else:
640
+ return self.base_client.call_api(
641
+ resource_path=resource_path,
642
+ method=method,
643
+ path_params=path_params,
644
+ header_params=header_params,
645
+ response_type="WorkRequest",
646
+ allow_control_chars=kwargs.get('allow_control_chars'),
647
+ operation_name=operation_name,
648
+ api_reference_link=api_reference_link,
649
+ required_arguments=required_arguments)
650
+
651
+ def get_zpr_policy(self, zpr_policy_id, **kwargs):
652
+ """
653
+ Gets information about a ZprPolicy.
654
+
655
+
656
+ :param str zpr_policy_id: (required)
657
+ The `OCID`__ of the ZprPolicy.
658
+
659
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
660
+
661
+ :param str opc_request_id: (optional)
662
+ Unique Oracle-assigned identifier for the request. If you need to contact
663
+ Oracle about a particular request, please provide the request ID.
664
+ The only valid characters for request IDs are letters, numbers,
665
+ underscore, and dash.
666
+
667
+ :param obj retry_strategy: (optional)
668
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
669
+
670
+ 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.
671
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
672
+
673
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
674
+
675
+ :param bool allow_control_chars: (optional)
676
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
677
+ By default, the response will not allow control characters in strings
678
+
679
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.ZprPolicy`
680
+ :rtype: :class:`~oci.response.Response`
681
+
682
+ :example:
683
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/get_zpr_policy.py.html>`__ to see an example of how to use get_zpr_policy API.
684
+ """
685
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
686
+ required_arguments = ['zprPolicyId']
687
+ resource_path = "/zprPolicies/{zprPolicyId}"
688
+ method = "GET"
689
+ operation_name = "get_zpr_policy"
690
+ api_reference_link = ""
691
+
692
+ # Don't accept unknown kwargs
693
+ expected_kwargs = [
694
+ "allow_control_chars",
695
+ "retry_strategy",
696
+ "opc_request_id"
697
+ ]
698
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
699
+ if extra_kwargs:
700
+ raise ValueError(
701
+ f"get_zpr_policy got unknown kwargs: {extra_kwargs!r}")
702
+
703
+ path_params = {
704
+ "zprPolicyId": zpr_policy_id
705
+ }
706
+
707
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
708
+
709
+ for (k, v) in six.iteritems(path_params):
710
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
711
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
712
+
713
+ header_params = {
714
+ "accept": "application/json",
715
+ "content-type": "application/json",
716
+ "opc-request-id": kwargs.get("opc_request_id", missing)
717
+ }
718
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
719
+
720
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
721
+ operation_retry_strategy=kwargs.get('retry_strategy'),
722
+ client_retry_strategy=self.retry_strategy
723
+ )
724
+ if retry_strategy is None:
725
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
726
+
727
+ if retry_strategy:
728
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
729
+ self.base_client.add_opc_client_retries_header(header_params)
730
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
731
+ return retry_strategy.make_retrying_call(
732
+ self.base_client.call_api,
733
+ resource_path=resource_path,
734
+ method=method,
735
+ path_params=path_params,
736
+ header_params=header_params,
737
+ response_type="ZprPolicy",
738
+ allow_control_chars=kwargs.get('allow_control_chars'),
739
+ operation_name=operation_name,
740
+ api_reference_link=api_reference_link,
741
+ required_arguments=required_arguments)
742
+ else:
743
+ return self.base_client.call_api(
744
+ resource_path=resource_path,
745
+ method=method,
746
+ path_params=path_params,
747
+ header_params=header_params,
748
+ response_type="ZprPolicy",
749
+ allow_control_chars=kwargs.get('allow_control_chars'),
750
+ operation_name=operation_name,
751
+ api_reference_link=api_reference_link,
752
+ required_arguments=required_arguments)
753
+
754
+ def get_zpr_policy_work_request(self, work_request_id, **kwargs):
755
+ """
756
+ Gets the details of a work request.
757
+
758
+
759
+ :param str work_request_id: (required)
760
+ The `OCID`__ of the asynchronous work request.
761
+
762
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
763
+
764
+ :param str opc_request_id: (optional)
765
+ Unique Oracle-assigned identifier for the request. If you need to contact
766
+ Oracle about a particular request, please provide the request ID.
767
+ The only valid characters for request IDs are letters, numbers,
768
+ underscore, and dash.
769
+
770
+ :param obj retry_strategy: (optional)
771
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
772
+
773
+ 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.
774
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
775
+
776
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
777
+
778
+ :param bool allow_control_chars: (optional)
779
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
780
+ By default, the response will not allow control characters in strings
781
+
782
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequest`
783
+ :rtype: :class:`~oci.response.Response`
784
+
785
+ :example:
786
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/get_zpr_policy_work_request.py.html>`__ to see an example of how to use get_zpr_policy_work_request API.
787
+ """
788
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
789
+ required_arguments = ['workRequestId']
790
+ resource_path = "/zprPolicyWorkRequests/{workRequestId}"
791
+ method = "GET"
792
+ operation_name = "get_zpr_policy_work_request"
793
+ api_reference_link = ""
794
+
795
+ # Don't accept unknown kwargs
796
+ expected_kwargs = [
797
+ "allow_control_chars",
798
+ "retry_strategy",
799
+ "opc_request_id"
800
+ ]
801
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
802
+ if extra_kwargs:
803
+ raise ValueError(
804
+ f"get_zpr_policy_work_request got unknown kwargs: {extra_kwargs!r}")
805
+
806
+ path_params = {
807
+ "workRequestId": work_request_id
808
+ }
809
+
810
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
811
+
812
+ for (k, v) in six.iteritems(path_params):
813
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
814
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
815
+
816
+ header_params = {
817
+ "accept": "application/json",
818
+ "content-type": "application/json",
819
+ "opc-request-id": kwargs.get("opc_request_id", missing)
820
+ }
821
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
822
+
823
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
824
+ operation_retry_strategy=kwargs.get('retry_strategy'),
825
+ client_retry_strategy=self.retry_strategy
826
+ )
827
+ if retry_strategy is None:
828
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
829
+
830
+ if retry_strategy:
831
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
832
+ self.base_client.add_opc_client_retries_header(header_params)
833
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
834
+ return retry_strategy.make_retrying_call(
835
+ self.base_client.call_api,
836
+ resource_path=resource_path,
837
+ method=method,
838
+ path_params=path_params,
839
+ header_params=header_params,
840
+ response_type="WorkRequest",
841
+ allow_control_chars=kwargs.get('allow_control_chars'),
842
+ operation_name=operation_name,
843
+ api_reference_link=api_reference_link,
844
+ required_arguments=required_arguments)
845
+ else:
846
+ return self.base_client.call_api(
847
+ resource_path=resource_path,
848
+ method=method,
849
+ path_params=path_params,
850
+ header_params=header_params,
851
+ response_type="WorkRequest",
852
+ allow_control_chars=kwargs.get('allow_control_chars'),
853
+ operation_name=operation_name,
854
+ api_reference_link=api_reference_link,
855
+ required_arguments=required_arguments)
856
+
857
+ def list_zpr_configuration_work_request_errors(self, work_request_id, **kwargs):
858
+ """
859
+ Lists the errors for a work request.
860
+
861
+
862
+ :param str work_request_id: (required)
863
+ The `OCID`__ of the asynchronous work request.
864
+
865
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
866
+
867
+ :param str opc_request_id: (optional)
868
+ Unique Oracle-assigned identifier for the request. If you need to contact
869
+ Oracle about a particular request, please provide the request ID.
870
+ The only valid characters for request IDs are letters, numbers,
871
+ underscore, and dash.
872
+
873
+ :param str page: (optional)
874
+ For list pagination. The value of the opc-next-page response header from the previous
875
+ \"List\" call. For important details about how pagination works, see
876
+ `List Pagination`__.
877
+
878
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
879
+
880
+ :param int limit: (optional)
881
+ For list pagination. The maximum number of results per page, or items to return in a
882
+ paginated \"List\" call. For important details about how pagination works, see
883
+ `List Pagination`__.
884
+
885
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
886
+
887
+ :param str sort_by: (optional)
888
+ The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
889
+
890
+ Allowed values are: "timestamp"
891
+
892
+ :param str sort_order: (optional)
893
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
894
+
895
+ Allowed values are: "ASC", "DESC"
896
+
897
+ :param obj retry_strategy: (optional)
898
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
899
+
900
+ 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.
901
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
902
+
903
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
904
+
905
+ :param bool allow_control_chars: (optional)
906
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
907
+ By default, the response will not allow control characters in strings
908
+
909
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequestErrorCollection`
910
+ :rtype: :class:`~oci.response.Response`
911
+
912
+ :example:
913
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/list_zpr_configuration_work_request_errors.py.html>`__ to see an example of how to use list_zpr_configuration_work_request_errors API.
914
+ """
915
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
916
+ required_arguments = ['workRequestId']
917
+ resource_path = "/zprConfigurationWorkRequests/{workRequestId}/errors"
918
+ method = "GET"
919
+ operation_name = "list_zpr_configuration_work_request_errors"
920
+ api_reference_link = ""
921
+
922
+ # Don't accept unknown kwargs
923
+ expected_kwargs = [
924
+ "allow_control_chars",
925
+ "retry_strategy",
926
+ "opc_request_id",
927
+ "page",
928
+ "limit",
929
+ "sort_by",
930
+ "sort_order"
931
+ ]
932
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
933
+ if extra_kwargs:
934
+ raise ValueError(
935
+ f"list_zpr_configuration_work_request_errors got unknown kwargs: {extra_kwargs!r}")
936
+
937
+ path_params = {
938
+ "workRequestId": work_request_id
939
+ }
940
+
941
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
942
+
943
+ for (k, v) in six.iteritems(path_params):
944
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
945
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
946
+
947
+ if 'sort_by' in kwargs:
948
+ sort_by_allowed_values = ["timestamp"]
949
+ if kwargs['sort_by'] not in sort_by_allowed_values:
950
+ raise ValueError(
951
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
952
+ )
953
+
954
+ if 'sort_order' in kwargs:
955
+ sort_order_allowed_values = ["ASC", "DESC"]
956
+ if kwargs['sort_order'] not in sort_order_allowed_values:
957
+ raise ValueError(
958
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
959
+ )
960
+
961
+ query_params = {
962
+ "page": kwargs.get("page", missing),
963
+ "limit": kwargs.get("limit", missing),
964
+ "sortBy": kwargs.get("sort_by", missing),
965
+ "sortOrder": kwargs.get("sort_order", missing)
966
+ }
967
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
968
+
969
+ header_params = {
970
+ "accept": "application/json",
971
+ "content-type": "application/json",
972
+ "opc-request-id": kwargs.get("opc_request_id", missing)
973
+ }
974
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
975
+
976
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
977
+ operation_retry_strategy=kwargs.get('retry_strategy'),
978
+ client_retry_strategy=self.retry_strategy
979
+ )
980
+ if retry_strategy is None:
981
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
982
+
983
+ if retry_strategy:
984
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
985
+ self.base_client.add_opc_client_retries_header(header_params)
986
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
987
+ return retry_strategy.make_retrying_call(
988
+ self.base_client.call_api,
989
+ resource_path=resource_path,
990
+ method=method,
991
+ path_params=path_params,
992
+ query_params=query_params,
993
+ header_params=header_params,
994
+ response_type="WorkRequestErrorCollection",
995
+ allow_control_chars=kwargs.get('allow_control_chars'),
996
+ operation_name=operation_name,
997
+ api_reference_link=api_reference_link,
998
+ required_arguments=required_arguments)
999
+ else:
1000
+ return self.base_client.call_api(
1001
+ resource_path=resource_path,
1002
+ method=method,
1003
+ path_params=path_params,
1004
+ query_params=query_params,
1005
+ header_params=header_params,
1006
+ response_type="WorkRequestErrorCollection",
1007
+ allow_control_chars=kwargs.get('allow_control_chars'),
1008
+ operation_name=operation_name,
1009
+ api_reference_link=api_reference_link,
1010
+ required_arguments=required_arguments)
1011
+
1012
+ def list_zpr_configuration_work_request_logs(self, work_request_id, **kwargs):
1013
+ """
1014
+ Lists the logs for a work request.
1015
+
1016
+
1017
+ :param str work_request_id: (required)
1018
+ The `OCID`__ of the asynchronous work request.
1019
+
1020
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1021
+
1022
+ :param str opc_request_id: (optional)
1023
+ Unique Oracle-assigned identifier for the request. If you need to contact
1024
+ Oracle about a particular request, please provide the request ID.
1025
+ The only valid characters for request IDs are letters, numbers,
1026
+ underscore, and dash.
1027
+
1028
+ :param str page: (optional)
1029
+ For list pagination. The value of the opc-next-page response header from the previous
1030
+ \"List\" call. For important details about how pagination works, see
1031
+ `List Pagination`__.
1032
+
1033
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1034
+
1035
+ :param int limit: (optional)
1036
+ For list pagination. The maximum number of results per page, or items to return in a
1037
+ paginated \"List\" call. For important details about how pagination works, see
1038
+ `List Pagination`__.
1039
+
1040
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1041
+
1042
+ :param str sort_by: (optional)
1043
+ The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
1044
+
1045
+ Allowed values are: "timestamp"
1046
+
1047
+ :param str sort_order: (optional)
1048
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1049
+
1050
+ Allowed values are: "ASC", "DESC"
1051
+
1052
+ :param obj retry_strategy: (optional)
1053
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1054
+
1055
+ 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.
1056
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1057
+
1058
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1059
+
1060
+ :param bool allow_control_chars: (optional)
1061
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1062
+ By default, the response will not allow control characters in strings
1063
+
1064
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequestLogEntryCollection`
1065
+ :rtype: :class:`~oci.response.Response`
1066
+
1067
+ :example:
1068
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/list_zpr_configuration_work_request_logs.py.html>`__ to see an example of how to use list_zpr_configuration_work_request_logs API.
1069
+ """
1070
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1071
+ required_arguments = ['workRequestId']
1072
+ resource_path = "/zprConfigurationWorkRequests/{workRequestId}/logs"
1073
+ method = "GET"
1074
+ operation_name = "list_zpr_configuration_work_request_logs"
1075
+ api_reference_link = ""
1076
+
1077
+ # Don't accept unknown kwargs
1078
+ expected_kwargs = [
1079
+ "allow_control_chars",
1080
+ "retry_strategy",
1081
+ "opc_request_id",
1082
+ "page",
1083
+ "limit",
1084
+ "sort_by",
1085
+ "sort_order"
1086
+ ]
1087
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1088
+ if extra_kwargs:
1089
+ raise ValueError(
1090
+ f"list_zpr_configuration_work_request_logs got unknown kwargs: {extra_kwargs!r}")
1091
+
1092
+ path_params = {
1093
+ "workRequestId": work_request_id
1094
+ }
1095
+
1096
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1097
+
1098
+ for (k, v) in six.iteritems(path_params):
1099
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1100
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1101
+
1102
+ if 'sort_by' in kwargs:
1103
+ sort_by_allowed_values = ["timestamp"]
1104
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1105
+ raise ValueError(
1106
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1107
+ )
1108
+
1109
+ if 'sort_order' in kwargs:
1110
+ sort_order_allowed_values = ["ASC", "DESC"]
1111
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1112
+ raise ValueError(
1113
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1114
+ )
1115
+
1116
+ query_params = {
1117
+ "page": kwargs.get("page", missing),
1118
+ "limit": kwargs.get("limit", missing),
1119
+ "sortBy": kwargs.get("sort_by", missing),
1120
+ "sortOrder": kwargs.get("sort_order", missing)
1121
+ }
1122
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1123
+
1124
+ header_params = {
1125
+ "accept": "application/json",
1126
+ "content-type": "application/json",
1127
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1128
+ }
1129
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1130
+
1131
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1132
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1133
+ client_retry_strategy=self.retry_strategy
1134
+ )
1135
+ if retry_strategy is None:
1136
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1137
+
1138
+ if retry_strategy:
1139
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1140
+ self.base_client.add_opc_client_retries_header(header_params)
1141
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1142
+ return retry_strategy.make_retrying_call(
1143
+ self.base_client.call_api,
1144
+ resource_path=resource_path,
1145
+ method=method,
1146
+ path_params=path_params,
1147
+ query_params=query_params,
1148
+ header_params=header_params,
1149
+ response_type="WorkRequestLogEntryCollection",
1150
+ allow_control_chars=kwargs.get('allow_control_chars'),
1151
+ operation_name=operation_name,
1152
+ api_reference_link=api_reference_link,
1153
+ required_arguments=required_arguments)
1154
+ else:
1155
+ return self.base_client.call_api(
1156
+ resource_path=resource_path,
1157
+ method=method,
1158
+ path_params=path_params,
1159
+ query_params=query_params,
1160
+ header_params=header_params,
1161
+ response_type="WorkRequestLogEntryCollection",
1162
+ allow_control_chars=kwargs.get('allow_control_chars'),
1163
+ operation_name=operation_name,
1164
+ api_reference_link=api_reference_link,
1165
+ required_arguments=required_arguments)
1166
+
1167
+ def list_zpr_configuration_work_requests(self, **kwargs):
1168
+ """
1169
+ Lists the work requests in a compartment.
1170
+
1171
+
1172
+ :param str compartment_id: (optional)
1173
+ The `OCID`__ of the compartment in which to list resources.
1174
+
1175
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1176
+
1177
+ :param str work_request_id: (optional)
1178
+ The `OCID`__ of the asynchronous work request.
1179
+
1180
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1181
+
1182
+ :param str status: (optional)
1183
+ A filter to return only the resources that match the given lifecycle state.
1184
+
1185
+ Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
1186
+
1187
+ :param str resource_id: (optional)
1188
+ The `OCID`__ of the resource affected by the work request.
1189
+
1190
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1191
+
1192
+ :param str opc_request_id: (optional)
1193
+ Unique Oracle-assigned identifier for the request. If you need to contact
1194
+ Oracle about a particular request, please provide the request ID.
1195
+ The only valid characters for request IDs are letters, numbers,
1196
+ underscore, and dash.
1197
+
1198
+ :param str page: (optional)
1199
+ For list pagination. The value of the opc-next-page response header from the previous
1200
+ \"List\" call. For important details about how pagination works, see
1201
+ `List Pagination`__.
1202
+
1203
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1204
+
1205
+ :param int limit: (optional)
1206
+ For list pagination. The maximum number of results per page, or items to return in a
1207
+ paginated \"List\" call. For important details about how pagination works, see
1208
+ `List Pagination`__.
1209
+
1210
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1211
+
1212
+ :param str sort_order: (optional)
1213
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1214
+
1215
+ Allowed values are: "ASC", "DESC"
1216
+
1217
+ :param str sort_by: (optional)
1218
+ The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending.
1219
+
1220
+ Allowed values are: "timeAccepted"
1221
+
1222
+ :param obj retry_strategy: (optional)
1223
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1224
+
1225
+ 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.
1226
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1227
+
1228
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1229
+
1230
+ :param bool allow_control_chars: (optional)
1231
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1232
+ By default, the response will not allow control characters in strings
1233
+
1234
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequestSummaryCollection`
1235
+ :rtype: :class:`~oci.response.Response`
1236
+
1237
+ :example:
1238
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/list_zpr_configuration_work_requests.py.html>`__ to see an example of how to use list_zpr_configuration_work_requests API.
1239
+ """
1240
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1241
+ required_arguments = []
1242
+ resource_path = "/zprConfigurationWorkRequests"
1243
+ method = "GET"
1244
+ operation_name = "list_zpr_configuration_work_requests"
1245
+ api_reference_link = ""
1246
+
1247
+ # Don't accept unknown kwargs
1248
+ expected_kwargs = [
1249
+ "allow_control_chars",
1250
+ "retry_strategy",
1251
+ "compartment_id",
1252
+ "work_request_id",
1253
+ "status",
1254
+ "resource_id",
1255
+ "opc_request_id",
1256
+ "page",
1257
+ "limit",
1258
+ "sort_order",
1259
+ "sort_by"
1260
+ ]
1261
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1262
+ if extra_kwargs:
1263
+ raise ValueError(
1264
+ f"list_zpr_configuration_work_requests got unknown kwargs: {extra_kwargs!r}")
1265
+
1266
+ if 'status' in kwargs:
1267
+ status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
1268
+ if kwargs['status'] not in status_allowed_values:
1269
+ raise ValueError(
1270
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
1271
+ )
1272
+
1273
+ if 'sort_order' in kwargs:
1274
+ sort_order_allowed_values = ["ASC", "DESC"]
1275
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1276
+ raise ValueError(
1277
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1278
+ )
1279
+
1280
+ if 'sort_by' in kwargs:
1281
+ sort_by_allowed_values = ["timeAccepted"]
1282
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1283
+ raise ValueError(
1284
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1285
+ )
1286
+
1287
+ query_params = {
1288
+ "compartmentId": kwargs.get("compartment_id", missing),
1289
+ "workRequestId": kwargs.get("work_request_id", missing),
1290
+ "status": kwargs.get("status", missing),
1291
+ "resourceId": kwargs.get("resource_id", missing),
1292
+ "page": kwargs.get("page", missing),
1293
+ "limit": kwargs.get("limit", missing),
1294
+ "sortOrder": kwargs.get("sort_order", missing),
1295
+ "sortBy": kwargs.get("sort_by", missing)
1296
+ }
1297
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1298
+
1299
+ header_params = {
1300
+ "accept": "application/json",
1301
+ "content-type": "application/json",
1302
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1303
+ }
1304
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1305
+
1306
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1307
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1308
+ client_retry_strategy=self.retry_strategy
1309
+ )
1310
+ if retry_strategy is None:
1311
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1312
+
1313
+ if retry_strategy:
1314
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1315
+ self.base_client.add_opc_client_retries_header(header_params)
1316
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1317
+ return retry_strategy.make_retrying_call(
1318
+ self.base_client.call_api,
1319
+ resource_path=resource_path,
1320
+ method=method,
1321
+ query_params=query_params,
1322
+ header_params=header_params,
1323
+ response_type="WorkRequestSummaryCollection",
1324
+ allow_control_chars=kwargs.get('allow_control_chars'),
1325
+ operation_name=operation_name,
1326
+ api_reference_link=api_reference_link,
1327
+ required_arguments=required_arguments)
1328
+ else:
1329
+ return self.base_client.call_api(
1330
+ resource_path=resource_path,
1331
+ method=method,
1332
+ query_params=query_params,
1333
+ header_params=header_params,
1334
+ response_type="WorkRequestSummaryCollection",
1335
+ allow_control_chars=kwargs.get('allow_control_chars'),
1336
+ operation_name=operation_name,
1337
+ api_reference_link=api_reference_link,
1338
+ required_arguments=required_arguments)
1339
+
1340
+ def list_zpr_policies(self, **kwargs):
1341
+ """
1342
+ Gets a list of ZprPolicies.
1343
+
1344
+
1345
+ :param str compartment_id: (optional)
1346
+ The `OCID`__ of the compartment in which to list resources.
1347
+
1348
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1349
+
1350
+ :param str lifecycle_state: (optional)
1351
+ A filter to return only resources that match the given lifecycle state. The
1352
+ state value is case-insensitive.
1353
+
1354
+ Allowed values are: "ACTIVE", "CREATING", "FAILED", "UPDATING", "DELETING", "DELETED", "NEEDS_ATTENTION"
1355
+
1356
+ :param str name: (optional)
1357
+ A filter to return only resources that match the entire display name given.
1358
+
1359
+ :param str id: (optional)
1360
+ The `OCID`__ of the ZprPolicy.
1361
+
1362
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1363
+
1364
+ :param int limit: (optional)
1365
+ For list pagination. The maximum number of results per page, or items to return in a
1366
+ paginated \"List\" call. For important details about how pagination works, see
1367
+ `List Pagination`__.
1368
+
1369
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1370
+
1371
+ :param str page: (optional)
1372
+ For list pagination. The value of the opc-next-page response header from the previous
1373
+ \"List\" call. For important details about how pagination works, see
1374
+ `List Pagination`__.
1375
+
1376
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1377
+
1378
+ :param str sort_order: (optional)
1379
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1380
+
1381
+ Allowed values are: "ASC", "DESC"
1382
+
1383
+ :param str sort_by: (optional)
1384
+ The field to sort by. You can provide only one sort order. Default order for `timeCreated`
1385
+ is descending. Default order for `name` is ascending.
1386
+
1387
+ Allowed values are: "timeCreated", "name"
1388
+
1389
+ :param str opc_request_id: (optional)
1390
+ Unique Oracle-assigned identifier for the request. If you need to contact
1391
+ Oracle about a particular request, please provide the request ID.
1392
+ The only valid characters for request IDs are letters, numbers,
1393
+ underscore, and dash.
1394
+
1395
+ :param obj retry_strategy: (optional)
1396
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1397
+
1398
+ 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.
1399
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1400
+
1401
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1402
+
1403
+ :param bool allow_control_chars: (optional)
1404
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1405
+ By default, the response will not allow control characters in strings
1406
+
1407
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.ZprPolicyCollection`
1408
+ :rtype: :class:`~oci.response.Response`
1409
+
1410
+ :example:
1411
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/list_zpr_policies.py.html>`__ to see an example of how to use list_zpr_policies API.
1412
+ """
1413
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1414
+ required_arguments = []
1415
+ resource_path = "/zprPolicies"
1416
+ method = "GET"
1417
+ operation_name = "list_zpr_policies"
1418
+ api_reference_link = ""
1419
+
1420
+ # Don't accept unknown kwargs
1421
+ expected_kwargs = [
1422
+ "allow_control_chars",
1423
+ "retry_strategy",
1424
+ "compartment_id",
1425
+ "lifecycle_state",
1426
+ "name",
1427
+ "id",
1428
+ "limit",
1429
+ "page",
1430
+ "sort_order",
1431
+ "sort_by",
1432
+ "opc_request_id"
1433
+ ]
1434
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1435
+ if extra_kwargs:
1436
+ raise ValueError(
1437
+ f"list_zpr_policies got unknown kwargs: {extra_kwargs!r}")
1438
+
1439
+ if 'lifecycle_state' in kwargs:
1440
+ lifecycle_state_allowed_values = ["ACTIVE", "CREATING", "FAILED", "UPDATING", "DELETING", "DELETED", "NEEDS_ATTENTION"]
1441
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1442
+ raise ValueError(
1443
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1444
+ )
1445
+
1446
+ if 'sort_order' in kwargs:
1447
+ sort_order_allowed_values = ["ASC", "DESC"]
1448
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1449
+ raise ValueError(
1450
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1451
+ )
1452
+
1453
+ if 'sort_by' in kwargs:
1454
+ sort_by_allowed_values = ["timeCreated", "name"]
1455
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1456
+ raise ValueError(
1457
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1458
+ )
1459
+
1460
+ query_params = {
1461
+ "compartmentId": kwargs.get("compartment_id", missing),
1462
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
1463
+ "name": kwargs.get("name", missing),
1464
+ "id": kwargs.get("id", missing),
1465
+ "limit": kwargs.get("limit", missing),
1466
+ "page": kwargs.get("page", missing),
1467
+ "sortOrder": kwargs.get("sort_order", missing),
1468
+ "sortBy": kwargs.get("sort_by", missing)
1469
+ }
1470
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1471
+
1472
+ header_params = {
1473
+ "accept": "application/json",
1474
+ "content-type": "application/json",
1475
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1476
+ }
1477
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1478
+
1479
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1480
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1481
+ client_retry_strategy=self.retry_strategy
1482
+ )
1483
+ if retry_strategy is None:
1484
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1485
+
1486
+ if retry_strategy:
1487
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1488
+ self.base_client.add_opc_client_retries_header(header_params)
1489
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1490
+ return retry_strategy.make_retrying_call(
1491
+ self.base_client.call_api,
1492
+ resource_path=resource_path,
1493
+ method=method,
1494
+ query_params=query_params,
1495
+ header_params=header_params,
1496
+ response_type="ZprPolicyCollection",
1497
+ allow_control_chars=kwargs.get('allow_control_chars'),
1498
+ operation_name=operation_name,
1499
+ api_reference_link=api_reference_link,
1500
+ required_arguments=required_arguments)
1501
+ else:
1502
+ return self.base_client.call_api(
1503
+ resource_path=resource_path,
1504
+ method=method,
1505
+ query_params=query_params,
1506
+ header_params=header_params,
1507
+ response_type="ZprPolicyCollection",
1508
+ allow_control_chars=kwargs.get('allow_control_chars'),
1509
+ operation_name=operation_name,
1510
+ api_reference_link=api_reference_link,
1511
+ required_arguments=required_arguments)
1512
+
1513
+ def list_zpr_policy_work_request_errors(self, work_request_id, **kwargs):
1514
+ """
1515
+ Lists the errors for a work request.
1516
+
1517
+
1518
+ :param str work_request_id: (required)
1519
+ The `OCID`__ of the asynchronous work request.
1520
+
1521
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1522
+
1523
+ :param str opc_request_id: (optional)
1524
+ Unique Oracle-assigned identifier for the request. If you need to contact
1525
+ Oracle about a particular request, please provide the request ID.
1526
+ The only valid characters for request IDs are letters, numbers,
1527
+ underscore, and dash.
1528
+
1529
+ :param str page: (optional)
1530
+ For list pagination. The value of the opc-next-page response header from the previous
1531
+ \"List\" call. For important details about how pagination works, see
1532
+ `List Pagination`__.
1533
+
1534
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1535
+
1536
+ :param int limit: (optional)
1537
+ For list pagination. The maximum number of results per page, or items to return in a
1538
+ paginated \"List\" call. For important details about how pagination works, see
1539
+ `List Pagination`__.
1540
+
1541
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1542
+
1543
+ :param str sort_by: (optional)
1544
+ The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
1545
+
1546
+ Allowed values are: "timestamp"
1547
+
1548
+ :param str sort_order: (optional)
1549
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1550
+
1551
+ Allowed values are: "ASC", "DESC"
1552
+
1553
+ :param obj retry_strategy: (optional)
1554
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1555
+
1556
+ 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.
1557
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1558
+
1559
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1560
+
1561
+ :param bool allow_control_chars: (optional)
1562
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1563
+ By default, the response will not allow control characters in strings
1564
+
1565
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequestErrorCollection`
1566
+ :rtype: :class:`~oci.response.Response`
1567
+
1568
+ :example:
1569
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/list_zpr_policy_work_request_errors.py.html>`__ to see an example of how to use list_zpr_policy_work_request_errors API.
1570
+ """
1571
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1572
+ required_arguments = ['workRequestId']
1573
+ resource_path = "/zprPolicyWorkRequests/{workRequestId}/errors"
1574
+ method = "GET"
1575
+ operation_name = "list_zpr_policy_work_request_errors"
1576
+ api_reference_link = ""
1577
+
1578
+ # Don't accept unknown kwargs
1579
+ expected_kwargs = [
1580
+ "allow_control_chars",
1581
+ "retry_strategy",
1582
+ "opc_request_id",
1583
+ "page",
1584
+ "limit",
1585
+ "sort_by",
1586
+ "sort_order"
1587
+ ]
1588
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1589
+ if extra_kwargs:
1590
+ raise ValueError(
1591
+ f"list_zpr_policy_work_request_errors got unknown kwargs: {extra_kwargs!r}")
1592
+
1593
+ path_params = {
1594
+ "workRequestId": work_request_id
1595
+ }
1596
+
1597
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1598
+
1599
+ for (k, v) in six.iteritems(path_params):
1600
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1601
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1602
+
1603
+ if 'sort_by' in kwargs:
1604
+ sort_by_allowed_values = ["timestamp"]
1605
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1606
+ raise ValueError(
1607
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1608
+ )
1609
+
1610
+ if 'sort_order' in kwargs:
1611
+ sort_order_allowed_values = ["ASC", "DESC"]
1612
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1613
+ raise ValueError(
1614
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1615
+ )
1616
+
1617
+ query_params = {
1618
+ "page": kwargs.get("page", missing),
1619
+ "limit": kwargs.get("limit", missing),
1620
+ "sortBy": kwargs.get("sort_by", missing),
1621
+ "sortOrder": kwargs.get("sort_order", missing)
1622
+ }
1623
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1624
+
1625
+ header_params = {
1626
+ "accept": "application/json",
1627
+ "content-type": "application/json",
1628
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1629
+ }
1630
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1631
+
1632
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1633
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1634
+ client_retry_strategy=self.retry_strategy
1635
+ )
1636
+ if retry_strategy is None:
1637
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1638
+
1639
+ if retry_strategy:
1640
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1641
+ self.base_client.add_opc_client_retries_header(header_params)
1642
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1643
+ return retry_strategy.make_retrying_call(
1644
+ self.base_client.call_api,
1645
+ resource_path=resource_path,
1646
+ method=method,
1647
+ path_params=path_params,
1648
+ query_params=query_params,
1649
+ header_params=header_params,
1650
+ response_type="WorkRequestErrorCollection",
1651
+ allow_control_chars=kwargs.get('allow_control_chars'),
1652
+ operation_name=operation_name,
1653
+ api_reference_link=api_reference_link,
1654
+ required_arguments=required_arguments)
1655
+ else:
1656
+ return self.base_client.call_api(
1657
+ resource_path=resource_path,
1658
+ method=method,
1659
+ path_params=path_params,
1660
+ query_params=query_params,
1661
+ header_params=header_params,
1662
+ response_type="WorkRequestErrorCollection",
1663
+ allow_control_chars=kwargs.get('allow_control_chars'),
1664
+ operation_name=operation_name,
1665
+ api_reference_link=api_reference_link,
1666
+ required_arguments=required_arguments)
1667
+
1668
+ def list_zpr_policy_work_request_logs(self, work_request_id, **kwargs):
1669
+ """
1670
+ Lists the logs for a work request.
1671
+
1672
+
1673
+ :param str work_request_id: (required)
1674
+ The `OCID`__ of the asynchronous work request.
1675
+
1676
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1677
+
1678
+ :param str opc_request_id: (optional)
1679
+ Unique Oracle-assigned identifier for the request. If you need to contact
1680
+ Oracle about a particular request, please provide the request ID.
1681
+ The only valid characters for request IDs are letters, numbers,
1682
+ underscore, and dash.
1683
+
1684
+ :param str page: (optional)
1685
+ For list pagination. The value of the opc-next-page response header from the previous
1686
+ \"List\" call. For important details about how pagination works, see
1687
+ `List Pagination`__.
1688
+
1689
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1690
+
1691
+ :param int limit: (optional)
1692
+ For list pagination. The maximum number of results per page, or items to return in a
1693
+ paginated \"List\" call. For important details about how pagination works, see
1694
+ `List Pagination`__.
1695
+
1696
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1697
+
1698
+ :param str sort_by: (optional)
1699
+ The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
1700
+
1701
+ Allowed values are: "timestamp"
1702
+
1703
+ :param str sort_order: (optional)
1704
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1705
+
1706
+ Allowed values are: "ASC", "DESC"
1707
+
1708
+ :param obj retry_strategy: (optional)
1709
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1710
+
1711
+ 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.
1712
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1713
+
1714
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1715
+
1716
+ :param bool allow_control_chars: (optional)
1717
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1718
+ By default, the response will not allow control characters in strings
1719
+
1720
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequestLogEntryCollection`
1721
+ :rtype: :class:`~oci.response.Response`
1722
+
1723
+ :example:
1724
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/list_zpr_policy_work_request_logs.py.html>`__ to see an example of how to use list_zpr_policy_work_request_logs API.
1725
+ """
1726
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1727
+ required_arguments = ['workRequestId']
1728
+ resource_path = "/zprPolicyWorkRequests/{workRequestId}/logs"
1729
+ method = "GET"
1730
+ operation_name = "list_zpr_policy_work_request_logs"
1731
+ api_reference_link = ""
1732
+
1733
+ # Don't accept unknown kwargs
1734
+ expected_kwargs = [
1735
+ "allow_control_chars",
1736
+ "retry_strategy",
1737
+ "opc_request_id",
1738
+ "page",
1739
+ "limit",
1740
+ "sort_by",
1741
+ "sort_order"
1742
+ ]
1743
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1744
+ if extra_kwargs:
1745
+ raise ValueError(
1746
+ f"list_zpr_policy_work_request_logs got unknown kwargs: {extra_kwargs!r}")
1747
+
1748
+ path_params = {
1749
+ "workRequestId": work_request_id
1750
+ }
1751
+
1752
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1753
+
1754
+ for (k, v) in six.iteritems(path_params):
1755
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1756
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1757
+
1758
+ if 'sort_by' in kwargs:
1759
+ sort_by_allowed_values = ["timestamp"]
1760
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1761
+ raise ValueError(
1762
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1763
+ )
1764
+
1765
+ if 'sort_order' in kwargs:
1766
+ sort_order_allowed_values = ["ASC", "DESC"]
1767
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1768
+ raise ValueError(
1769
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1770
+ )
1771
+
1772
+ query_params = {
1773
+ "page": kwargs.get("page", missing),
1774
+ "limit": kwargs.get("limit", missing),
1775
+ "sortBy": kwargs.get("sort_by", missing),
1776
+ "sortOrder": kwargs.get("sort_order", missing)
1777
+ }
1778
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1779
+
1780
+ header_params = {
1781
+ "accept": "application/json",
1782
+ "content-type": "application/json",
1783
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1784
+ }
1785
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1786
+
1787
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1788
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1789
+ client_retry_strategy=self.retry_strategy
1790
+ )
1791
+ if retry_strategy is None:
1792
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1793
+
1794
+ if retry_strategy:
1795
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1796
+ self.base_client.add_opc_client_retries_header(header_params)
1797
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1798
+ return retry_strategy.make_retrying_call(
1799
+ self.base_client.call_api,
1800
+ resource_path=resource_path,
1801
+ method=method,
1802
+ path_params=path_params,
1803
+ query_params=query_params,
1804
+ header_params=header_params,
1805
+ response_type="WorkRequestLogEntryCollection",
1806
+ allow_control_chars=kwargs.get('allow_control_chars'),
1807
+ operation_name=operation_name,
1808
+ api_reference_link=api_reference_link,
1809
+ required_arguments=required_arguments)
1810
+ else:
1811
+ return self.base_client.call_api(
1812
+ resource_path=resource_path,
1813
+ method=method,
1814
+ path_params=path_params,
1815
+ query_params=query_params,
1816
+ header_params=header_params,
1817
+ response_type="WorkRequestLogEntryCollection",
1818
+ allow_control_chars=kwargs.get('allow_control_chars'),
1819
+ operation_name=operation_name,
1820
+ api_reference_link=api_reference_link,
1821
+ required_arguments=required_arguments)
1822
+
1823
+ def list_zpr_policy_work_requests(self, **kwargs):
1824
+ """
1825
+ Lists the work requests in a compartment.
1826
+
1827
+
1828
+ :param str compartment_id: (optional)
1829
+ The `OCID`__ of the compartment in which to list resources.
1830
+
1831
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1832
+
1833
+ :param str work_request_id: (optional)
1834
+ The `OCID`__ of the asynchronous work request.
1835
+
1836
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1837
+
1838
+ :param str status: (optional)
1839
+ A filter to return only the resources that match the given lifecycle state.
1840
+
1841
+ Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
1842
+
1843
+ :param str resource_id: (optional)
1844
+ The `OCID`__ of the resource affected by the work request.
1845
+
1846
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1847
+
1848
+ :param str opc_request_id: (optional)
1849
+ Unique Oracle-assigned identifier for the request. If you need to contact
1850
+ Oracle about a particular request, please provide the request ID.
1851
+ The only valid characters for request IDs are letters, numbers,
1852
+ underscore, and dash.
1853
+
1854
+ :param str page: (optional)
1855
+ For list pagination. The value of the opc-next-page response header from the previous
1856
+ \"List\" call. For important details about how pagination works, see
1857
+ `List Pagination`__.
1858
+
1859
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1860
+
1861
+ :param int limit: (optional)
1862
+ For list pagination. The maximum number of results per page, or items to return in a
1863
+ paginated \"List\" call. For important details about how pagination works, see
1864
+ `List Pagination`__.
1865
+
1866
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1867
+
1868
+ :param str sort_order: (optional)
1869
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1870
+
1871
+ Allowed values are: "ASC", "DESC"
1872
+
1873
+ :param str sort_by: (optional)
1874
+ The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending.
1875
+
1876
+ Allowed values are: "timeAccepted"
1877
+
1878
+ :param obj retry_strategy: (optional)
1879
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1880
+
1881
+ 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.
1882
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1883
+
1884
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1885
+
1886
+ :param bool allow_control_chars: (optional)
1887
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1888
+ By default, the response will not allow control characters in strings
1889
+
1890
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.zpr.models.WorkRequestSummaryCollection`
1891
+ :rtype: :class:`~oci.response.Response`
1892
+
1893
+ :example:
1894
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/list_zpr_policy_work_requests.py.html>`__ to see an example of how to use list_zpr_policy_work_requests API.
1895
+ """
1896
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1897
+ required_arguments = []
1898
+ resource_path = "/zprPolicyWorkRequests"
1899
+ method = "GET"
1900
+ operation_name = "list_zpr_policy_work_requests"
1901
+ api_reference_link = ""
1902
+
1903
+ # Don't accept unknown kwargs
1904
+ expected_kwargs = [
1905
+ "allow_control_chars",
1906
+ "retry_strategy",
1907
+ "compartment_id",
1908
+ "work_request_id",
1909
+ "status",
1910
+ "resource_id",
1911
+ "opc_request_id",
1912
+ "page",
1913
+ "limit",
1914
+ "sort_order",
1915
+ "sort_by"
1916
+ ]
1917
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1918
+ if extra_kwargs:
1919
+ raise ValueError(
1920
+ f"list_zpr_policy_work_requests got unknown kwargs: {extra_kwargs!r}")
1921
+
1922
+ if 'status' in kwargs:
1923
+ status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
1924
+ if kwargs['status'] not in status_allowed_values:
1925
+ raise ValueError(
1926
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
1927
+ )
1928
+
1929
+ if 'sort_order' in kwargs:
1930
+ sort_order_allowed_values = ["ASC", "DESC"]
1931
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1932
+ raise ValueError(
1933
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1934
+ )
1935
+
1936
+ if 'sort_by' in kwargs:
1937
+ sort_by_allowed_values = ["timeAccepted"]
1938
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1939
+ raise ValueError(
1940
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1941
+ )
1942
+
1943
+ query_params = {
1944
+ "compartmentId": kwargs.get("compartment_id", missing),
1945
+ "workRequestId": kwargs.get("work_request_id", missing),
1946
+ "status": kwargs.get("status", missing),
1947
+ "resourceId": kwargs.get("resource_id", missing),
1948
+ "page": kwargs.get("page", missing),
1949
+ "limit": kwargs.get("limit", missing),
1950
+ "sortOrder": kwargs.get("sort_order", missing),
1951
+ "sortBy": kwargs.get("sort_by", missing)
1952
+ }
1953
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1954
+
1955
+ header_params = {
1956
+ "accept": "application/json",
1957
+ "content-type": "application/json",
1958
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1959
+ }
1960
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1961
+
1962
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1963
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1964
+ client_retry_strategy=self.retry_strategy
1965
+ )
1966
+ if retry_strategy is None:
1967
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1968
+
1969
+ if retry_strategy:
1970
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1971
+ self.base_client.add_opc_client_retries_header(header_params)
1972
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1973
+ return retry_strategy.make_retrying_call(
1974
+ self.base_client.call_api,
1975
+ resource_path=resource_path,
1976
+ method=method,
1977
+ query_params=query_params,
1978
+ header_params=header_params,
1979
+ response_type="WorkRequestSummaryCollection",
1980
+ allow_control_chars=kwargs.get('allow_control_chars'),
1981
+ operation_name=operation_name,
1982
+ api_reference_link=api_reference_link,
1983
+ required_arguments=required_arguments)
1984
+ else:
1985
+ return self.base_client.call_api(
1986
+ resource_path=resource_path,
1987
+ method=method,
1988
+ query_params=query_params,
1989
+ header_params=header_params,
1990
+ response_type="WorkRequestSummaryCollection",
1991
+ allow_control_chars=kwargs.get('allow_control_chars'),
1992
+ operation_name=operation_name,
1993
+ api_reference_link=api_reference_link,
1994
+ required_arguments=required_arguments)
1995
+
1996
+ def update_zpr_policy(self, zpr_policy_id, update_zpr_policy_details, **kwargs):
1997
+ """
1998
+ Updates a specific ZprPolicy. If updating on statements, the entire list of policy statements is required, which will replace the existing policy statements associated with the policy ID.
1999
+
2000
+
2001
+ :param str zpr_policy_id: (required)
2002
+ The `OCID`__ of the ZprPolicy.
2003
+
2004
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
2005
+
2006
+ :param oci.zpr.models.UpdateZprPolicyDetails update_zpr_policy_details: (required)
2007
+ The information to be updated.
2008
+
2009
+ :param str opc_retry_token: (optional)
2010
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
2011
+ server error without risk of running that same action again. Retry tokens expire after 24
2012
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2013
+ has been deleted and removed from the system, then a retry of the original creation request
2014
+ might be rejected.
2015
+
2016
+ :param str if_match: (optional)
2017
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
2018
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
2019
+ that resource. The resource will be updated or deleted only if the etag you provide
2020
+ matches the resource's current etag value.
2021
+
2022
+ :param str opc_request_id: (optional)
2023
+ Unique Oracle-assigned identifier for the request. If you need to contact
2024
+ Oracle about a particular request, please provide the request ID.
2025
+ The only valid characters for request IDs are letters, numbers,
2026
+ underscore, and dash.
2027
+
2028
+ :param bool opc_dry_run: (optional)
2029
+ Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the
2030
+ configuration item details and is used only to perform validation on the submitted data.
2031
+
2032
+ :param obj retry_strategy: (optional)
2033
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2034
+
2035
+ 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.
2036
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2037
+
2038
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2039
+
2040
+ :param bool allow_control_chars: (optional)
2041
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2042
+ By default, the response will not allow control characters in strings
2043
+
2044
+ :return: A :class:`~oci.response.Response` object with data of type None
2045
+ :rtype: :class:`~oci.response.Response`
2046
+
2047
+ :example:
2048
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/zpr/update_zpr_policy.py.html>`__ to see an example of how to use update_zpr_policy API.
2049
+ """
2050
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2051
+ required_arguments = ['zprPolicyId']
2052
+ resource_path = "/zprPolicies/{zprPolicyId}"
2053
+ method = "PUT"
2054
+ operation_name = "update_zpr_policy"
2055
+ api_reference_link = ""
2056
+
2057
+ # Don't accept unknown kwargs
2058
+ expected_kwargs = [
2059
+ "allow_control_chars",
2060
+ "retry_strategy",
2061
+ "opc_retry_token",
2062
+ "if_match",
2063
+ "opc_request_id",
2064
+ "opc_dry_run"
2065
+ ]
2066
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2067
+ if extra_kwargs:
2068
+ raise ValueError(
2069
+ f"update_zpr_policy got unknown kwargs: {extra_kwargs!r}")
2070
+
2071
+ path_params = {
2072
+ "zprPolicyId": zpr_policy_id
2073
+ }
2074
+
2075
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2076
+
2077
+ for (k, v) in six.iteritems(path_params):
2078
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2079
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2080
+
2081
+ header_params = {
2082
+ "accept": "application/json",
2083
+ "content-type": "application/json",
2084
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
2085
+ "if-match": kwargs.get("if_match", missing),
2086
+ "opc-request-id": kwargs.get("opc_request_id", missing),
2087
+ "opc-dry-run": kwargs.get("opc_dry_run", missing)
2088
+ }
2089
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2090
+
2091
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2092
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2093
+ client_retry_strategy=self.retry_strategy
2094
+ )
2095
+ if retry_strategy is None:
2096
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2097
+
2098
+ if retry_strategy:
2099
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2100
+ self.base_client.add_opc_retry_token_if_needed(header_params)
2101
+ self.base_client.add_opc_client_retries_header(header_params)
2102
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2103
+ return retry_strategy.make_retrying_call(
2104
+ self.base_client.call_api,
2105
+ resource_path=resource_path,
2106
+ method=method,
2107
+ path_params=path_params,
2108
+ header_params=header_params,
2109
+ body=update_zpr_policy_details,
2110
+ allow_control_chars=kwargs.get('allow_control_chars'),
2111
+ operation_name=operation_name,
2112
+ api_reference_link=api_reference_link,
2113
+ required_arguments=required_arguments)
2114
+ else:
2115
+ return self.base_client.call_api(
2116
+ resource_path=resource_path,
2117
+ method=method,
2118
+ path_params=path_params,
2119
+ header_params=header_params,
2120
+ body=update_zpr_policy_details,
2121
+ allow_control_chars=kwargs.get('allow_control_chars'),
2122
+ operation_name=operation_name,
2123
+ api_reference_link=api_reference_link,
2124
+ required_arguments=required_arguments)