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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (523) hide show
  1. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  2. oci/adm/application_dependency_management_client.py +36 -36
  3. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  4. oci/ai_document/ai_service_document_client.py +26 -26
  5. oci/ai_language/ai_service_language_client.py +44 -44
  6. oci/ai_speech/ai_service_speech_client.py +19 -19
  7. oci/ai_vision/ai_service_vision_client.py +25 -25
  8. oci/analytics/analytics_client.py +24 -24
  9. oci/announcements_service/announcement_client.py +5 -5
  10. oci/announcements_service/announcement_subscription_client.py +9 -9
  11. oci/announcements_service/announcements_preferences_client.py +4 -4
  12. oci/announcements_service/service_client.py +1 -1
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +9 -9
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  22. oci/apm_traces/attributes_client.py +8 -8
  23. oci/apm_traces/query_client.py +2 -2
  24. oci/apm_traces/trace_client.py +4 -4
  25. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  26. oci/artifacts/artifacts_client.py +32 -32
  27. oci/audit/audit_client.py +3 -3
  28. oci/autoscaling/auto_scaling_client.py +11 -11
  29. oci/bastion/bastion_client.py +15 -15
  30. oci/bds/bds_client.py +72 -72
  31. oci/blockchain/blockchain_platform_client.py +27 -27
  32. oci/budget/budget_client.py +10 -10
  33. oci/capacity_management/capacity_management_client.py +32 -32
  34. oci/certificates/certificates_client.py +5 -5
  35. oci/certificates_management/certificates_management_client.py +32 -32
  36. oci/cims/incident_client.py +8 -8
  37. oci/cloud_bridge/common_client.py +5 -5
  38. oci/cloud_bridge/discovery_client.py +14 -14
  39. oci/cloud_bridge/inventory_client.py +16 -16
  40. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  41. oci/cloud_guard/cloud_guard_client.py +155 -155
  42. oci/cloud_migrations/migration_client.py +43 -43
  43. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  44. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  45. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  46. oci/compute_instance_agent/plugin_client.py +2 -2
  47. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  48. oci/container_engine/container_engine_client.py +98 -94
  49. oci/container_engine/models/__init__.py +4 -0
  50. oci/container_engine/models/cluster.py +39 -4
  51. oci/container_engine/models/cluster_create_options.py +56 -2
  52. oci/container_engine/models/cluster_summary.py +6 -2
  53. oci/container_engine/models/node.py +6 -2
  54. oci/container_engine/models/node_pool.py +6 -2
  55. oci/container_engine/models/node_pool_summary.py +6 -2
  56. oci/container_engine/models/open_id_connect_discovery.py +72 -0
  57. oci/container_engine/models/open_id_connect_token_authentication_config.py +370 -0
  58. oci/container_engine/models/start_credential_rotation_details.py +2 -2
  59. oci/container_engine/models/update_cluster_options_details.py +56 -2
  60. oci/container_engine/models/work_request.py +7 -3
  61. oci/container_engine/models/work_request_summary.py +7 -3
  62. oci/container_engine/models/workload_mapping.py +35 -2
  63. oci/container_engine/models/workload_mapping_summary.py +35 -2
  64. oci/container_instances/container_instance_client.py +18 -18
  65. oci/core/blockstorage_client.py +60 -60
  66. oci/core/compute_client.py +102 -102
  67. oci/core/compute_management_client.py +32 -32
  68. oci/core/models/__init__.py +6 -0
  69. oci/core/models/block_volume_replica.py +43 -2
  70. oci/core/models/block_volume_replica_details.py +45 -2
  71. oci/core/models/block_volume_replica_info.py +43 -2
  72. oci/core/models/boot_volume_replica.py +43 -2
  73. oci/core/models/boot_volume_replica_details.py +45 -2
  74. oci/core/models/boot_volume_replica_info.py +43 -2
  75. oci/core/models/boot_volume_source_details.py +4 -0
  76. oci/core/models/boot_volume_source_from_boot_volume_backup_delta_details.py +143 -0
  77. oci/core/models/create_boot_volume_details.py +45 -2
  78. oci/core/models/create_volume_backup_policy_assignment_details.py +45 -2
  79. oci/core/models/create_volume_details.py +45 -2
  80. oci/core/models/create_volume_group_details.py +45 -2
  81. oci/core/models/instance_configuration_create_volume_details.py +45 -2
  82. oci/core/models/launch_attach_paravirtualized_volume_details.py +123 -0
  83. oci/core/models/launch_attach_volume_details.py +4 -0
  84. oci/core/models/volume_backup_policy_assignment.py +45 -2
  85. oci/core/models/volume_group_replica_details.py +45 -2
  86. oci/core/models/volume_group_replica_info.py +43 -2
  87. oci/core/models/volume_source_details.py +4 -0
  88. oci/core/models/volume_source_from_volume_backup_delta_details.py +143 -0
  89. oci/core/virtual_network_client.py +247 -247
  90. oci/dashboard_service/dashboard_client.py +6 -6
  91. oci/dashboard_service/dashboard_group_client.py +6 -6
  92. oci/data_catalog/data_catalog_client.py +149 -149
  93. oci/data_flow/data_flow_client.py +42 -42
  94. oci/data_integration/data_integration_client.py +163 -163
  95. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  96. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  97. oci/data_safe/data_safe_client.py +292 -292
  98. oci/data_science/data_science_client.py +91 -91
  99. oci/database/database_client.py +396 -396
  100. oci/database/models/cloud_vm_cluster.py +29 -2
  101. oci/database/models/cloud_vm_cluster_summary.py +29 -2
  102. oci/database/models/create_cloud_vm_cluster_details.py +29 -2
  103. oci/database/models/create_vm_cluster_details.py +29 -2
  104. oci/database/models/update_cloud_vm_cluster_details.py +29 -2
  105. oci/database/models/update_vm_cluster_details.py +29 -2
  106. oci/database/models/vm_cluster.py +29 -2
  107. oci/database/models/vm_cluster_summary.py +29 -2
  108. oci/database_management/db_management_client.py +211 -211
  109. oci/database_management/diagnosability_client.py +4 -4
  110. oci/database_management/managed_my_sql_databases_client.py +7 -7
  111. oci/database_management/perfhub_client.py +1 -1
  112. oci/database_management/sql_tuning_client.py +17 -17
  113. oci/database_migration/database_migration_client.py +42 -42
  114. oci/database_tools/database_tools_client.py +23 -23
  115. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  116. oci/delegate_access_control/work_request_client.py +4 -4
  117. oci/demand_signal/occ_demand_signal_client.py +7 -7
  118. oci/desktops/desktop_service_client.py +33 -22
  119. oci/desktops/models/__init__.py +18 -0
  120. oci/desktops/models/create_desktop_pool_desktop_session_lifecycle_actions.py +95 -0
  121. oci/desktops/models/create_desktop_pool_details.py +136 -4
  122. oci/desktops/models/create_desktop_pool_private_access_details.py +142 -0
  123. oci/desktops/models/create_desktop_pool_shape_config_details.py +170 -0
  124. oci/desktops/models/desktop_image.py +33 -2
  125. oci/desktops/models/desktop_network_configuration.py +14 -4
  126. oci/desktops/models/desktop_pool.py +136 -4
  127. oci/desktops/models/desktop_pool_private_access_details.py +212 -0
  128. oci/desktops/models/desktop_pool_shape_config.py +170 -0
  129. oci/desktops/models/desktop_session_lifecycle_actions.py +95 -0
  130. oci/desktops/models/disconnect_config.py +121 -0
  131. oci/desktops/models/inactivity_config.py +121 -0
  132. oci/desktops/models/update_desktop_pool_desktop_session_lifecycle_actions.py +95 -0
  133. oci/desktops/models/update_desktop_pool_details.py +29 -2
  134. oci/devops/devops_client.py +141 -141
  135. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  136. oci/dns/dns_client.py +389 -54
  137. oci/dns/dns_client_composite_operations.py +886 -193
  138. oci/dns/models/__init__.py +13 -1
  139. oci/dns/models/create_zone_details.py +101 -2
  140. oci/dns/models/dnssec_config.py +105 -0
  141. oci/dns/models/dnssec_key_version_ds_data.py +121 -0
  142. oci/dns/models/ksk_dnssec_key_version.py +550 -0
  143. oci/dns/models/promote_zone_dnssec_key_version_details.py +72 -0
  144. oci/dns/models/stage_zone_dnssec_key_version_details.py +72 -0
  145. oci/dns/models/update_zone_details.py +99 -0
  146. oci/dns/models/zone.py +126 -0
  147. oci/dns/models/zone_summary.py +128 -2
  148. oci/dns/models/zsk_dnssec_key_version.py +517 -0
  149. oci/dts/appliance_export_job_client.py +6 -6
  150. oci/dts/shipping_vendors_client.py +1 -1
  151. oci/dts/transfer_appliance_client.py +8 -8
  152. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  153. oci/dts/transfer_device_client.py +5 -5
  154. oci/dts/transfer_job_client.py +6 -6
  155. oci/dts/transfer_package_client.py +7 -7
  156. oci/em_warehouse/em_warehouse_client.py +13 -13
  157. oci/email/email_client.py +31 -31
  158. oci/email_data_plane/email_dp_client.py +1 -1
  159. oci/events/events_client.py +6 -6
  160. oci/file_storage/file_storage_client.py +54 -54
  161. oci/fleet_apps_management/fleet_apps_management_admin_client.py +8 -8
  162. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  163. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  164. oci/fleet_apps_management/fleet_apps_management_operations_client.py +13 -13
  165. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +4 -4
  166. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  167. oci/functions/functions_invoke_client.py +1 -1
  168. oci/functions/functions_management_client.py +16 -16
  169. oci/fusion_apps/fusion_applications_client.py +42 -42
  170. oci/fusion_apps/models/create_fusion_environment_admin_user_details.py +1 -1
  171. oci/generative_ai/generative_ai_client.py +22 -22
  172. oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
  173. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
  174. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  175. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  176. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  177. oci/golden_gate/golden_gate_client.py +211 -70
  178. oci/golden_gate/models/__init__.py +8 -0
  179. oci/golden_gate/models/create_database_registration_details.py +4 -4
  180. oci/golden_gate/models/create_deployment_details.py +47 -0
  181. oci/golden_gate/models/create_ogg_deployment_details.py +29 -2
  182. oci/golden_gate/models/create_oracle_connection_details.py +4 -4
  183. oci/golden_gate/models/deployment.py +102 -0
  184. oci/{database_migration/models/agent_collection.py → golden_gate/models/deployment_environment_collection.py} +15 -15
  185. oci/golden_gate/models/deployment_environment_summary.py +389 -0
  186. oci/golden_gate/models/deployment_summary.py +103 -1
  187. oci/golden_gate/models/deployment_type_summary.py +3 -0
  188. oci/golden_gate/models/group_to_roles_mapping_details.py +197 -0
  189. oci/golden_gate/models/ogg_deployment.py +29 -2
  190. oci/golden_gate/models/test_connection_assignment_result.py +34 -2
  191. oci/golden_gate/models/update_database_registration_details.py +4 -4
  192. oci/golden_gate/models/update_deployment_details.py +47 -0
  193. oci/golden_gate/models/update_group_to_roles_mapping_details.py +197 -0
  194. oci/golden_gate/models/update_ogg_deployment_details.py +29 -2
  195. oci/golden_gate/models/update_oracle_connection_details.py +4 -4
  196. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  197. oci/governance_rules_control_plane/work_request_client.py +5 -5
  198. oci/healthchecks/health_checks_client.py +17 -17
  199. oci/identity/identity_client.py +145 -145
  200. oci/identity_data_plane/dataplane_client.py +2 -2
  201. oci/identity_domains/identity_domains_client.py +307 -307
  202. oci/integration/integration_instance_client.py +19 -19
  203. oci/jms/java_management_service_client.py +75 -75
  204. oci/jms_java_downloads/java_download_client.py +25 -25
  205. oci/key_management/ekm_client.py +5 -5
  206. oci/key_management/kms_crypto_client.py +6 -6
  207. oci/key_management/kms_hsm_cluster_client.py +12 -12
  208. oci/key_management/kms_management_client.py +21 -21
  209. oci/key_management/kms_vault_client.py +14 -14
  210. oci/license_manager/license_manager_client.py +18 -18
  211. oci/limits/limits_client.py +4 -4
  212. oci/limits/quotas_client.py +7 -7
  213. oci/load_balancer/load_balancer_client.py +61 -61
  214. oci/load_balancer/models/connection_configuration.py +47 -2
  215. oci/lockbox/lockbox_client.py +24 -24
  216. oci/log_analytics/log_analytics_client.py +193 -193
  217. oci/logging/logging_management_client.py +30 -30
  218. oci/loggingingestion/logging_client.py +1 -1
  219. oci/loggingsearch/log_search_client.py +1 -1
  220. oci/management_agent/management_agent_client.py +28 -28
  221. oci/management_dashboard/dashx_apis_client.py +14 -14
  222. oci/marketplace/account_client.py +2 -2
  223. oci/marketplace/marketplace_client.py +30 -30
  224. oci/marketplace_private_offer/attachment_client.py +5 -5
  225. oci/marketplace_private_offer/offer_client.py +6 -6
  226. oci/marketplace_publisher/attachment_client.py +5 -5
  227. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  228. oci/marketplace_publisher/offer_client.py +6 -6
  229. oci/media_services/media_services_client.py +60 -60
  230. oci/media_services/media_stream_client.py +2 -2
  231. oci/monitoring/monitoring_client.py +18 -18
  232. oci/mysql/channels_client.py +7 -7
  233. oci/mysql/db_backups_client.py +7 -7
  234. oci/mysql/db_system_client.py +17 -17
  235. oci/mysql/mysqlaas_client.py +7 -7
  236. oci/mysql/replicas_client.py +5 -5
  237. oci/mysql/work_requests_client.py +4 -4
  238. oci/network_firewall/network_firewall_client.py +86 -86
  239. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  240. oci/nosql/nosql_client.py +24 -24
  241. oci/object_storage/object_storage_client.py +55 -55
  242. oci/oce/oce_instance_client.py +10 -10
  243. oci/oci_control_center/occ_metrics_client.py +3 -3
  244. oci/ocvp/cluster_client.py +5 -5
  245. oci/ocvp/esxi_host_client.py +8 -8
  246. oci/ocvp/sddc_client.py +14 -14
  247. oci/ocvp/work_request_client.py +4 -4
  248. oci/oda/management_client.py +59 -59
  249. oci/oda/oda_client.py +17 -17
  250. oci/oda/odapackage_client.py +7 -7
  251. oci/onesubscription/billing_schedule_client.py +1 -1
  252. oci/onesubscription/commitment_client.py +2 -2
  253. oci/onesubscription/computed_usage_client.py +3 -3
  254. oci/onesubscription/invoice_summary_client.py +2 -2
  255. oci/onesubscription/organization_subscription_client.py +1 -1
  256. oci/onesubscription/ratecard_client.py +1 -1
  257. oci/onesubscription/subscribed_service_client.py +2 -2
  258. oci/onesubscription/subscription_client.py +1 -1
  259. oci/ons/notification_control_plane_client.py +6 -6
  260. oci/ons/notification_data_plane_client.py +10 -10
  261. oci/opa/opa_instance_client.py +13 -13
  262. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  263. oci/opensearch/opensearch_cluster_client.py +14 -14
  264. oci/operator_access_control/access_requests_client.py +10 -10
  265. oci/operator_access_control/operator_actions_client.py +2 -2
  266. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  267. oci/operator_access_control/operator_control_client.py +6 -6
  268. oci/opsi/models/__init__.py +6 -0
  269. oci/opsi/models/create_autonomous_database_insight_details.py +291 -0
  270. oci/opsi/models/create_database_insight_details.py +4 -0
  271. oci/opsi/models/credential_by_iam.py +58 -0
  272. oci/opsi/models/credential_by_vault.py +1 -1
  273. oci/opsi/models/credential_details.py +13 -5
  274. oci/opsi/models/credentials_by_source.py +1 -1
  275. oci/opsi/models/enable_autonomous_database_insight_details.py +301 -0
  276. oci/opsi/models/enable_database_insight_details.py +4 -0
  277. oci/opsi/operations_insights_client.py +179 -179
  278. oci/optimizer/optimizer_client.py +26 -26
  279. oci/os_management/event_client.py +8 -8
  280. oci/os_management/os_management_client.py +69 -69
  281. oci/os_management_hub/event_client.py +8 -8
  282. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  283. oci/os_management_hub/managed_instance_client.py +31 -31
  284. oci/os_management_hub/managed_instance_group_client.py +25 -25
  285. oci/os_management_hub/management_station_client.py +10 -10
  286. oci/os_management_hub/onboarding_client.py +6 -6
  287. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  288. oci/os_management_hub/scheduled_job_client.py +7 -7
  289. oci/os_management_hub/software_source_client.py +27 -27
  290. oci/os_management_hub/work_request_client.py +4 -4
  291. oci/osp_gateway/address_rule_service_client.py +1 -1
  292. oci/osp_gateway/address_service_client.py +2 -2
  293. oci/osp_gateway/invoice_service_client.py +5 -5
  294. oci/osp_gateway/subscription_service_client.py +5 -5
  295. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  296. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  297. oci/osub_subscription/commitment_client.py +2 -2
  298. oci/osub_subscription/ratecard_client.py +1 -1
  299. oci/osub_subscription/subscription_client.py +1 -1
  300. oci/osub_usage/computed_usage_client.py +3 -3
  301. oci/psql/postgresql_client.py +33 -33
  302. oci/queue/queue_admin_client.py +11 -11
  303. oci/queue/queue_client.py +8 -8
  304. oci/recovery/database_recovery_client.py +26 -26
  305. oci/redis/redis_cluster_client.py +12 -12
  306. oci/resource_manager/resource_manager_client.py +52 -52
  307. oci/resource_scheduler/schedule_client.py +13 -13
  308. oci/resource_search/resource_search_client.py +3 -3
  309. oci/rover/rover_bundle_client.py +8 -8
  310. oci/rover/rover_cluster_client.py +8 -8
  311. oci/rover/rover_entitlement_client.py +6 -6
  312. oci/rover/rover_node_client.py +15 -15
  313. oci/rover/shape_client.py +1 -1
  314. oci/rover/work_requests_client.py +5 -5
  315. oci/sch/connector_plugins_client.py +2 -2
  316. oci/sch/service_connector_client.py +12 -12
  317. oci/secrets/secrets_client.py +3 -3
  318. oci/security_attribute/security_attribute_client.py +36 -36
  319. oci/service_catalog/service_catalog_client.py +26 -26
  320. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  321. oci/service_mesh/service_mesh_client.py +48 -48
  322. oci/stack_monitoring/models/__init__.py +20 -0
  323. oci/stack_monitoring/models/create_maintenance_window_details.py +196 -0
  324. oci/stack_monitoring/models/create_maintenance_window_resource_details.py +111 -0
  325. oci/stack_monitoring/models/maintenance_window.py +439 -0
  326. oci/{database_migration/models/agent_image_collection.py → stack_monitoring/models/maintenance_window_collection.py} +15 -15
  327. oci/stack_monitoring/models/maintenance_window_schedule.py +109 -0
  328. oci/stack_monitoring/models/maintenance_window_summary.py +519 -0
  329. oci/stack_monitoring/models/monitored_resource_details.py +171 -0
  330. oci/stack_monitoring/models/one_time_maintenance_window_schedule.py +113 -0
  331. oci/stack_monitoring/models/recurrent_maintenance_window_schedule.py +191 -0
  332. oci/stack_monitoring/models/update_maintenance_window_details.py +130 -0
  333. oci/stack_monitoring/models/work_request.py +19 -3
  334. oci/stack_monitoring/models/work_request_summary.py +19 -3
  335. oci/stack_monitoring/stack_monitoring_client.py +921 -113
  336. oci/stack_monitoring/stack_monitoring_client_composite_operations.py +214 -0
  337. oci/streaming/stream_admin_client.py +18 -18
  338. oci/streaming/stream_client.py +8 -8
  339. oci/tenant_manager_control_plane/domain_client.py +5 -5
  340. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  341. oci/tenant_manager_control_plane/governance_client.py +2 -2
  342. oci/tenant_manager_control_plane/link_client.py +3 -3
  343. oci/tenant_manager_control_plane/orders_client.py +2 -2
  344. oci/tenant_manager_control_plane/organization_client.py +10 -10
  345. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  346. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  347. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  348. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  349. oci/threat_intelligence/threatintel_client.py +5 -5
  350. oci/usage/resources_client.py +2 -2
  351. oci/usage/rewards_client.py +6 -6
  352. oci/usage/usagelimits_client.py +1 -1
  353. oci/usage_api/usageapi_client.py +33 -33
  354. oci/util.py +2 -1
  355. oci/vault/vaults_client.py +13 -13
  356. oci/vbs_inst/vbs_instance_client.py +10 -10
  357. oci/version.py +1 -1
  358. oci/visual_builder/vb_instance_client.py +13 -13
  359. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  360. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  361. oci/waa/waa_client.py +13 -13
  362. oci/waa/work_request_client.py +4 -4
  363. oci/waas/redirect_client.py +6 -6
  364. oci/waas/waas_client.py +66 -66
  365. oci/waf/waf_client.py +24 -24
  366. oci/work_requests/work_request_client.py +4 -4
  367. oci/zpr/zpr_client.py +31 -32
  368. {oci-2.135.1.dist-info → oci-2.136.0.dist-info}/METADATA +2 -2
  369. {oci-2.135.1.dist-info → oci-2.136.0.dist-info}/RECORD +373 -488
  370. oci/ai_language/models/entity_document.py +0 -136
  371. oci/ai_language/models/key_phrase_document.py +0 -136
  372. oci/ai_language/models/pre_trained_phi_model_details.py +0 -91
  373. oci/ai_language/models/sentiments_document.py +0 -136
  374. oci/ai_language/models/text_classification_document.py +0 -136
  375. oci/capacity_management/models/occ_capacity_request_compute_details.py +0 -148
  376. oci/cims/user_client.py +0 -207
  377. oci/cims/user_client_composite_operations.py +0 -26
  378. oci/compute_instance_agent/models/instance_agent_command_content_info.py +0 -252
  379. oci/data_integration/models/connection_from_lakehouse.py +0 -140
  380. oci/data_integration/models/connection_from_lakehouse_details.py +0 -133
  381. oci/data_integration/models/connection_summary_from_lakehouse.py +0 -140
  382. oci/data_integration/models/create_connection_from_lakehouse.py +0 -112
  383. oci/data_integration/models/create_data_asset_from_lakehouse.py +0 -232
  384. oci/data_integration/models/data_asset_from_lakehouse_details.py +0 -260
  385. oci/data_integration/models/data_asset_summary_from_lakehouse.py +0 -253
  386. oci/data_integration/models/update_connection_from_lakehouse.py +0 -119
  387. oci/data_integration/models/update_data_asset_from_lakehouse.py +0 -239
  388. oci/database_migration/models/advisor_settings.py +0 -103
  389. oci/database_migration/models/agent.py +0 -486
  390. oci/database_migration/models/agent_image_summary.py +0 -103
  391. oci/database_migration/models/agent_summary.py +0 -455
  392. oci/database_migration/models/aws_s3_data_transfer_medium_details.py +0 -211
  393. oci/database_migration/models/aws_s3_details.py +0 -108
  394. oci/database_migration/models/change_agent_compartment_details.py +0 -72
  395. oci/database_migration/models/connect_descriptor.py +0 -165
  396. oci/database_migration/models/create_advisor_settings.py +0 -103
  397. oci/database_migration/models/create_agent_details.py +0 -260
  398. oci/database_migration/models/create_aws_s3_details.py +0 -174
  399. oci/database_migration/models/create_connect_descriptor.py +0 -174
  400. oci/database_migration/models/create_data_pump_settings.py +0 -251
  401. oci/database_migration/models/create_data_transfer_medium_details.py +0 -124
  402. oci/database_migration/models/create_database_link_details.py +0 -99
  403. oci/database_migration/models/create_dump_transfer_details.py +0 -126
  404. oci/database_migration/models/create_golden_gate_details.py +0 -95
  405. oci/database_migration/models/create_golden_gate_hub.py +0 -275
  406. oci/database_migration/models/create_golden_gate_service_details.py +0 -149
  407. oci/database_migration/models/create_golden_gate_settings.py +0 -126
  408. oci/database_migration/models/create_private_endpoint.py +0 -151
  409. oci/database_migration/models/create_ssh_details.py +0 -166
  410. oci/database_migration/models/create_vault_details.py +0 -134
  411. oci/database_migration/models/data_pump_settings.py +0 -251
  412. oci/database_migration/models/data_transfer_medium_details.py +0 -122
  413. oci/database_migration/models/data_transfer_medium_details_v2.py +0 -125
  414. oci/database_migration/models/database_credentials.py +0 -103
  415. oci/database_migration/models/database_link_details.py +0 -99
  416. oci/database_migration/models/database_object.py +0 -167
  417. oci/database_migration/models/db_link_data_transfer_medium_details.py +0 -109
  418. oci/database_migration/models/dump_transfer_details.py +0 -126
  419. oci/database_migration/models/generate_token.py +0 -70
  420. oci/database_migration/models/golden_gate_details.py +0 -95
  421. oci/database_migration/models/golden_gate_hub.py +0 -275
  422. oci/database_migration/models/golden_gate_service_details.py +0 -95
  423. oci/database_migration/models/golden_gate_settings.py +0 -126
  424. oci/database_migration/models/migration_object_summary.py +0 -214
  425. oci/database_migration/models/nfs_data_transfer_medium_details.py +0 -78
  426. oci/database_migration/models/object_storage_data_transfer_medium_details.py +0 -78
  427. oci/database_migration/models/par_link.py +0 -70
  428. oci/database_migration/models/private_endpoint_details.py +0 -185
  429. oci/database_migration/models/ssh_details.py +0 -134
  430. oci/database_migration/models/update_advisor_settings.py +0 -103
  431. oci/database_migration/models/update_agent_details.py +0 -231
  432. oci/database_migration/models/update_aws_s3_details.py +0 -174
  433. oci/database_migration/models/update_connect_descriptor.py +0 -173
  434. oci/database_migration/models/update_data_pump_settings.py +0 -253
  435. oci/database_migration/models/update_data_transfer_medium_details.py +0 -125
  436. oci/database_migration/models/update_database_link_details.py +0 -99
  437. oci/database_migration/models/update_dump_transfer_details.py +0 -126
  438. oci/database_migration/models/update_golden_gate_details.py +0 -95
  439. oci/database_migration/models/update_golden_gate_hub.py +0 -275
  440. oci/database_migration/models/update_golden_gate_service_details.py +0 -149
  441. oci/database_migration/models/update_golden_gate_settings.py +0 -127
  442. oci/database_migration/models/update_private_endpoint.py +0 -151
  443. oci/database_migration/models/update_ssh_details.py +0 -165
  444. oci/database_migration/models/update_vault_details.py +0 -134
  445. oci/database_migration/models/vault_details.py +0 -134
  446. oci/database_tools/models/database_tools_allowed_network_sources.py +0 -107
  447. oci/database_tools/models/database_tools_virtual_source.py +0 -107
  448. oci/devops/models/run_pipeline_deploy_stage_execution_progress.py +0 -98
  449. oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.py +0 -98
  450. oci/em_warehouse/em_data_lake_client.py +0 -1610
  451. oci/em_warehouse/em_data_lake_client_composite_operations.py +0 -190
  452. oci/fusion_apps/data_masking_activity_client.py +0 -456
  453. oci/fusion_apps/data_masking_activity_client_composite_operations.py +0 -65
  454. oci/fusion_apps/fusion_environment_client.py +0 -1772
  455. oci/fusion_apps/fusion_environment_client_composite_operations.py +0 -324
  456. oci/fusion_apps/fusion_environment_family_client.py +0 -943
  457. oci/fusion_apps/fusion_environment_family_client_composite_operations.py +0 -190
  458. oci/fusion_apps/models/attach_existing_instance_details.py +0 -194
  459. oci/fusion_apps/models/create_new_instance_details.py +0 -142
  460. oci/fusion_apps/models/create_oax_service_instance_details.py +0 -152
  461. oci/fusion_apps/models/create_oic_service_instance_details.py +0 -142
  462. oci/fusion_apps/models/create_service_instance_details.py +0 -170
  463. oci/fusion_apps/models/faw_admin_info_details.py +0 -132
  464. oci/fusion_apps/refresh_activity_client.py +0 -607
  465. oci/fusion_apps/refresh_activity_client_composite_operations.py +0 -65
  466. oci/fusion_apps/scheduled_activity_client.py +0 -380
  467. oci/fusion_apps/scheduled_activity_client_composite_operations.py +0 -24
  468. oci/fusion_apps/service_attachment_client.py +0 -370
  469. oci/fusion_apps/service_attachment_client_composite_operations.py +0 -24
  470. oci/jms/models/request_summarized_application_usage_details.py +0 -504
  471. oci/jms/models/request_summarized_installation_usage_details.py +0 -448
  472. oci/jms/models/request_summarized_jre_usage_details.py +0 -421
  473. oci/jms/models/request_summarized_managed_instance_usage_details.py +0 -480
  474. oci/log_analytics/models/agent_upload.py +0 -70
  475. oci/log_analytics/models/attribute.py +0 -602
  476. oci/log_analytics/models/create_namespace_details.py +0 -70
  477. oci/log_analytics/models/field_map.py +0 -101
  478. oci/log_analytics/models/generate_agent_object_name_details.py +0 -163
  479. oci/log_analytics/models/log_analytics.py +0 -370
  480. oci/log_analytics/models/log_analytics_collection_warning.py +0 -70
  481. oci/log_analytics/models/log_analytics_summary.py +0 -304
  482. oci/log_analytics/models/out_of_box_entity_type_details.py +0 -211
  483. oci/log_analytics/models/query.py +0 -70
  484. oci/log_analytics/models/query_work_request_resource.py +0 -70
  485. oci/log_analytics/models/register_entity_types_details.py +0 -70
  486. oci/log_analytics/models/service_tenancy.py +0 -70
  487. oci/log_analytics/models/string_list_details.py +0 -70
  488. oci/logging/models/log_included_search.py +0 -307
  489. oci/logging/models/log_included_search_summary.py +0 -165
  490. oci/logging/models/log_included_search_summary_collection.py +0 -70
  491. oci/media_services/models/media_workflow_job_fact.py +0 -198
  492. oci/media_services/models/media_workflow_job_fact_collection.py +0 -72
  493. oci/media_services/models/media_workflow_job_fact_summary.py +0 -165
  494. oci/mysql/models/add_analytics_cluster_details.py +0 -108
  495. oci/mysql/models/analytics_cluster.py +0 -338
  496. oci/mysql/models/analytics_cluster_memory_estimate.py +0 -241
  497. oci/mysql/models/analytics_cluster_node.py +0 -210
  498. oci/mysql/models/analytics_cluster_schema_memory_estimate.py +0 -107
  499. oci/mysql/models/analytics_cluster_summary.py +0 -209
  500. oci/mysql/models/analytics_cluster_table_memory_estimate.py +0 -239
  501. oci/mysql/models/update_analytics_cluster_details.py +0 -120
  502. oci/network_firewall/models/tcp_application.py +0 -112
  503. oci/network_firewall/models/udp_application.py +0 -112
  504. oci/oce/models/delete_oce_instance_details.py +0 -70
  505. oci/ocvp/models/datastore_summary.py +0 -154
  506. oci/ocvp/models/supported_sku_summary.py +0 -96
  507. oci/ocvp/models/supported_sku_summary_collection.py +0 -72
  508. oci/os_management/models/errata_id.py +0 -101
  509. oci/os_management/models/managed_instance_update_details.py +0 -101
  510. oci/os_management/models/updatable_package_summary.py +0 -287
  511. oci/osp_gateway/models/billing_address.py +0 -382
  512. oci/service_mesh/models/create_ingress_gateway_mutual_transport_layer_security_details.py +0 -76
  513. oci/service_mesh/models/create_mutual_transport_layer_security_details.py +0 -111
  514. oci/usage_api/models/create_schedule_report_details.py +0 -128
  515. oci/usage_api/models/saved_schedule_report.py +0 -145
  516. oci/usage_api/models/schedule_report.py +0 -159
  517. oci/usage_api/models/schedule_report_collection.py +0 -70
  518. oci/usage_api/models/schedule_report_summary.py +0 -97
  519. oci/usage_api/models/update_schedule_report_details.py +0 -66
  520. {oci-2.135.1.dist-info → oci-2.136.0.dist-info}/LICENSE.txt +0 -0
  521. {oci-2.135.1.dist-info → oci-2.136.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  522. {oci-2.135.1.dist-info → oci-2.136.0.dist-info}/WHEEL +0 -0
  523. {oci-2.135.1.dist-info → oci-2.136.0.dist-info}/top_level.txt +0 -0
@@ -1,1610 +0,0 @@
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
- from __future__ import absolute_import
6
-
7
- from oci._vendor import requests # noqa: F401
8
- from oci._vendor import six
9
-
10
- from oci import retry, circuit_breaker # noqa: F401
11
- from oci.base_client import BaseClient
12
- from oci.config import get_config_value_or_default, validate_config
13
- from oci.signer import Signer
14
- from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
15
- from .models import em_warehouse_type_mapping
16
- missing = Sentinel("Missing")
17
-
18
-
19
- class EmDataLakeClient(object):
20
- """
21
- A description of the EmdwControlPlane API
22
- """
23
-
24
- def __init__(self, config, **kwargs):
25
- """
26
- Creates a new service client
27
-
28
- :param dict config:
29
- Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
30
- 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
31
- the dict using :py:meth:`~oci.config.validate_config`
32
-
33
- :param str service_endpoint: (optional)
34
- The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
35
- 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
36
- need to specify a service endpoint.
37
-
38
- :param timeout: (optional)
39
- 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
40
- 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
41
- a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
42
- :type timeout: float or tuple(float, float)
43
-
44
- :param signer: (optional)
45
- 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
46
- provided in the config parameter.
47
-
48
- One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
49
- by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
50
- :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
51
-
52
- :param obj retry_strategy: (optional)
53
- 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.
54
- Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
55
- Any value provided at the operation level will override whatever is specified at the client level.
56
-
57
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
58
- 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>`__.
59
-
60
- :param obj circuit_breaker_strategy: (optional)
61
- A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
62
- This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
63
- The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
64
-
65
- :param function circuit_breaker_callback: (optional)
66
- Callback function to receive any exceptions triggerred by the circuit breaker.
67
-
68
- :param allow_control_chars: (optional)
69
- 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
70
- allow control characters to be in the response object.
71
- """
72
- validate_config(config, signer=kwargs.get('signer'))
73
- if 'signer' in kwargs:
74
- signer = kwargs['signer']
75
-
76
- elif AUTHENTICATION_TYPE_FIELD_NAME in config:
77
- signer = get_signer_from_authentication_type(config)
78
-
79
- else:
80
- signer = Signer(
81
- tenancy=config["tenancy"],
82
- user=config["user"],
83
- fingerprint=config["fingerprint"],
84
- private_key_file_location=config.get("key_file"),
85
- pass_phrase=get_config_value_or_default(config, "pass_phrase"),
86
- private_key_content=config.get("key_content")
87
- )
88
-
89
- base_client_init_kwargs = {
90
- 'regional_client': True,
91
- 'service_endpoint': kwargs.get('service_endpoint'),
92
- 'base_path': '/20180828',
93
- 'service_endpoint_template': 'https://operationsinsights.{region}.oci.{secondLevelDomain}',
94
- 'skip_deserialization': kwargs.get('skip_deserialization', False),
95
- 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY)
96
- }
97
- if 'timeout' in kwargs:
98
- base_client_init_kwargs['timeout'] = kwargs.get('timeout')
99
- if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
100
- base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
101
- if 'allow_control_chars' in kwargs:
102
- base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
103
- self.base_client = BaseClient("em_data_lake", config, signer, em_warehouse_type_mapping, **base_client_init_kwargs)
104
- self.retry_strategy = kwargs.get('retry_strategy')
105
- self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
106
-
107
- def cancel_work_request(self, work_request_id, **kwargs):
108
- """
109
- Cancels the work request with the given ID.
110
-
111
-
112
- :param str work_request_id: (required)
113
- The ID of the asynchronous request.
114
-
115
- :param str if_match: (optional)
116
- For optimistic concurrency control. In the PUT or DELETE call
117
- for a resource, set the `if-match` parameter to the value of the
118
- etag from a previous GET or POST response for that resource.
119
- The resource will be updated or deleted only if the etag you
120
- provide matches the resource's current etag value.
121
-
122
- :param str opc_request_id: (optional)
123
- The client request ID for tracing.
124
-
125
- :param obj retry_strategy: (optional)
126
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
127
-
128
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
129
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
130
-
131
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
132
-
133
- :param bool allow_control_chars: (optional)
134
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
135
- By default, the response will not allow control characters in strings
136
-
137
- :return: A :class:`~oci.response.Response` object with data of type None
138
- :rtype: :class:`~oci.response.Response`
139
-
140
- :example:
141
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
142
- """
143
- resource_path = "/workRequests/{workRequestId}"
144
- method = "DELETE"
145
- operation_name = "cancel_work_request"
146
- api_reference_link = ""
147
-
148
- # Don't accept unknown kwargs
149
- expected_kwargs = [
150
- "allow_control_chars",
151
- "retry_strategy",
152
- "if_match",
153
- "opc_request_id"
154
- ]
155
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
156
- if extra_kwargs:
157
- raise ValueError(
158
- "cancel_work_request got unknown kwargs: {!r}".format(extra_kwargs))
159
-
160
- path_params = {
161
- "workRequestId": work_request_id
162
- }
163
-
164
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
165
-
166
- for (k, v) in six.iteritems(path_params):
167
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
168
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
169
-
170
- header_params = {
171
- "accept": "application/json",
172
- "content-type": "application/json",
173
- "if-match": kwargs.get("if_match", missing),
174
- "opc-request-id": kwargs.get("opc_request_id", missing)
175
- }
176
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
177
-
178
- retry_strategy = self.base_client.get_preferred_retry_strategy(
179
- operation_retry_strategy=kwargs.get('retry_strategy'),
180
- client_retry_strategy=self.retry_strategy
181
- )
182
-
183
- if retry_strategy:
184
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
185
- self.base_client.add_opc_client_retries_header(header_params)
186
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
187
- return retry_strategy.make_retrying_call(
188
- self.base_client.call_api,
189
- resource_path=resource_path,
190
- method=method,
191
- path_params=path_params,
192
- header_params=header_params,
193
- allow_control_chars=kwargs.get('allow_control_chars'),
194
- operation_name=operation_name,
195
- api_reference_link=api_reference_link)
196
- else:
197
- return self.base_client.call_api(
198
- resource_path=resource_path,
199
- method=method,
200
- path_params=path_params,
201
- header_params=header_params,
202
- allow_control_chars=kwargs.get('allow_control_chars'),
203
- operation_name=operation_name,
204
- api_reference_link=api_reference_link)
205
-
206
- def change_em_warehouse_compartment(self, em_warehouse_id, change_em_warehouse_compartment_details, **kwargs):
207
- """
208
- Moves a EmWarehouse resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
209
-
210
-
211
- :param str em_warehouse_id: (required)
212
- unique EmWarehouse identifier
213
-
214
- :param oci.em_warehouse.models.ChangeEmWarehouseCompartmentDetails change_em_warehouse_compartment_details: (required)
215
- The information to be updated.
216
-
217
- :param str if_match: (optional)
218
- For optimistic concurrency control. In the PUT or DELETE call
219
- for a resource, set the `if-match` parameter to the value of the
220
- etag from a previous GET or POST response for that resource.
221
- The resource will be updated or deleted only if the etag you
222
- provide matches the resource's current etag value.
223
-
224
- :param str opc_request_id: (optional)
225
- The client request ID for tracing.
226
-
227
- :param str opc_retry_token: (optional)
228
- A token that uniquely identifies a request so it can be retried in case of a timeout or
229
- server error without risk of executing that same action again. Retry tokens expire after 24
230
- hours, but can be invalidated before then due to conflicting operations. For example, if a resource
231
- has been deleted and purged from the system, then a retry of the original creation request
232
- might be rejected.
233
-
234
- :param obj retry_strategy: (optional)
235
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
236
-
237
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
238
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
239
-
240
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
241
-
242
- :param bool allow_control_chars: (optional)
243
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
244
- By default, the response will not allow control characters in strings
245
-
246
- :return: A :class:`~oci.response.Response` object with data of type None
247
- :rtype: :class:`~oci.response.Response`
248
-
249
- :example:
250
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/change_em_warehouse_compartment.py.html>`__ to see an example of how to use change_em_warehouse_compartment API.
251
- """
252
- resource_path = "/emWarehouses/{emWarehouseId}/actions/changeCompartment"
253
- method = "POST"
254
- operation_name = "change_em_warehouse_compartment"
255
- api_reference_link = ""
256
-
257
- # Don't accept unknown kwargs
258
- expected_kwargs = [
259
- "allow_control_chars",
260
- "retry_strategy",
261
- "if_match",
262
- "opc_request_id",
263
- "opc_retry_token"
264
- ]
265
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
266
- if extra_kwargs:
267
- raise ValueError(
268
- "change_em_warehouse_compartment got unknown kwargs: {!r}".format(extra_kwargs))
269
-
270
- path_params = {
271
- "emWarehouseId": em_warehouse_id
272
- }
273
-
274
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
275
-
276
- for (k, v) in six.iteritems(path_params):
277
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
278
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
279
-
280
- header_params = {
281
- "accept": "application/json",
282
- "content-type": "application/json",
283
- "if-match": kwargs.get("if_match", missing),
284
- "opc-request-id": kwargs.get("opc_request_id", missing),
285
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
286
- }
287
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
288
-
289
- retry_strategy = self.base_client.get_preferred_retry_strategy(
290
- operation_retry_strategy=kwargs.get('retry_strategy'),
291
- client_retry_strategy=self.retry_strategy
292
- )
293
-
294
- if retry_strategy:
295
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
296
- self.base_client.add_opc_retry_token_if_needed(header_params)
297
- self.base_client.add_opc_client_retries_header(header_params)
298
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
299
- return retry_strategy.make_retrying_call(
300
- self.base_client.call_api,
301
- resource_path=resource_path,
302
- method=method,
303
- path_params=path_params,
304
- header_params=header_params,
305
- body=change_em_warehouse_compartment_details,
306
- allow_control_chars=kwargs.get('allow_control_chars'),
307
- operation_name=operation_name,
308
- api_reference_link=api_reference_link)
309
- else:
310
- return self.base_client.call_api(
311
- resource_path=resource_path,
312
- method=method,
313
- path_params=path_params,
314
- header_params=header_params,
315
- body=change_em_warehouse_compartment_details,
316
- allow_control_chars=kwargs.get('allow_control_chars'),
317
- operation_name=operation_name,
318
- api_reference_link=api_reference_link)
319
-
320
- def create_em_warehouse(self, create_em_warehouse_details, **kwargs):
321
- """
322
- Creates a new EmWarehouse.
323
-
324
-
325
- :param oci.em_warehouse.models.CreateEmWarehouseDetails create_em_warehouse_details: (required)
326
- Details for the new EmWarehouse.
327
-
328
- :param str opc_retry_token: (optional)
329
- A token that uniquely identifies a request so it can be retried in case of a timeout or
330
- server error without risk of executing that same action again. Retry tokens expire after 24
331
- hours, but can be invalidated before then due to conflicting operations. For example, if a resource
332
- has been deleted and purged from the system, then a retry of the original creation request
333
- might be rejected.
334
-
335
- :param str opc_request_id: (optional)
336
- The client request ID for tracing.
337
-
338
- :param obj retry_strategy: (optional)
339
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
340
-
341
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
342
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
343
-
344
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
345
-
346
- :param bool allow_control_chars: (optional)
347
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
348
- By default, the response will not allow control characters in strings
349
-
350
- :return: A :class:`~oci.response.Response` object with data of type None
351
- :rtype: :class:`~oci.response.Response`
352
-
353
- :example:
354
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/create_em_warehouse.py.html>`__ to see an example of how to use create_em_warehouse API.
355
- """
356
- resource_path = "/emWarehouses"
357
- method = "POST"
358
- operation_name = "create_em_warehouse"
359
- api_reference_link = ""
360
-
361
- # Don't accept unknown kwargs
362
- expected_kwargs = [
363
- "allow_control_chars",
364
- "retry_strategy",
365
- "opc_retry_token",
366
- "opc_request_id"
367
- ]
368
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
369
- if extra_kwargs:
370
- raise ValueError(
371
- "create_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs))
372
-
373
- header_params = {
374
- "accept": "application/json",
375
- "content-type": "application/json",
376
- "opc-retry-token": kwargs.get("opc_retry_token", missing),
377
- "opc-request-id": kwargs.get("opc_request_id", missing)
378
- }
379
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
380
-
381
- retry_strategy = self.base_client.get_preferred_retry_strategy(
382
- operation_retry_strategy=kwargs.get('retry_strategy'),
383
- client_retry_strategy=self.retry_strategy
384
- )
385
-
386
- if retry_strategy:
387
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
388
- self.base_client.add_opc_retry_token_if_needed(header_params)
389
- self.base_client.add_opc_client_retries_header(header_params)
390
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
391
- return retry_strategy.make_retrying_call(
392
- self.base_client.call_api,
393
- resource_path=resource_path,
394
- method=method,
395
- header_params=header_params,
396
- body=create_em_warehouse_details,
397
- allow_control_chars=kwargs.get('allow_control_chars'),
398
- operation_name=operation_name,
399
- api_reference_link=api_reference_link)
400
- else:
401
- return self.base_client.call_api(
402
- resource_path=resource_path,
403
- method=method,
404
- header_params=header_params,
405
- body=create_em_warehouse_details,
406
- allow_control_chars=kwargs.get('allow_control_chars'),
407
- operation_name=operation_name,
408
- api_reference_link=api_reference_link)
409
-
410
- def delete_em_warehouse(self, em_warehouse_id, **kwargs):
411
- """
412
- Deletes a EmWarehouse resource by identifier
413
-
414
-
415
- :param str em_warehouse_id: (required)
416
- unique EmWarehouse identifier
417
-
418
- :param str if_match: (optional)
419
- For optimistic concurrency control. In the PUT or DELETE call
420
- for a resource, set the `if-match` parameter to the value of the
421
- etag from a previous GET or POST response for that resource.
422
- The resource will be updated or deleted only if the etag you
423
- provide matches the resource's current etag value.
424
-
425
- :param str opc_request_id: (optional)
426
- The client request ID for tracing.
427
-
428
- :param obj retry_strategy: (optional)
429
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
430
-
431
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
432
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
433
-
434
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
435
-
436
- :param bool allow_control_chars: (optional)
437
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
438
- By default, the response will not allow control characters in strings
439
-
440
- :return: A :class:`~oci.response.Response` object with data of type None
441
- :rtype: :class:`~oci.response.Response`
442
-
443
- :example:
444
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/delete_em_warehouse.py.html>`__ to see an example of how to use delete_em_warehouse API.
445
- """
446
- resource_path = "/emWarehouses/{emWarehouseId}"
447
- method = "DELETE"
448
- operation_name = "delete_em_warehouse"
449
- api_reference_link = ""
450
-
451
- # Don't accept unknown kwargs
452
- expected_kwargs = [
453
- "allow_control_chars",
454
- "retry_strategy",
455
- "if_match",
456
- "opc_request_id"
457
- ]
458
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
459
- if extra_kwargs:
460
- raise ValueError(
461
- "delete_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs))
462
-
463
- path_params = {
464
- "emWarehouseId": em_warehouse_id
465
- }
466
-
467
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
468
-
469
- for (k, v) in six.iteritems(path_params):
470
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
471
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
472
-
473
- header_params = {
474
- "accept": "application/json",
475
- "content-type": "application/json",
476
- "if-match": kwargs.get("if_match", missing),
477
- "opc-request-id": kwargs.get("opc_request_id", missing)
478
- }
479
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
480
-
481
- retry_strategy = self.base_client.get_preferred_retry_strategy(
482
- operation_retry_strategy=kwargs.get('retry_strategy'),
483
- client_retry_strategy=self.retry_strategy
484
- )
485
-
486
- if retry_strategy:
487
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
488
- self.base_client.add_opc_client_retries_header(header_params)
489
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
490
- return retry_strategy.make_retrying_call(
491
- self.base_client.call_api,
492
- resource_path=resource_path,
493
- method=method,
494
- path_params=path_params,
495
- header_params=header_params,
496
- allow_control_chars=kwargs.get('allow_control_chars'),
497
- operation_name=operation_name,
498
- api_reference_link=api_reference_link)
499
- else:
500
- return self.base_client.call_api(
501
- resource_path=resource_path,
502
- method=method,
503
- path_params=path_params,
504
- header_params=header_params,
505
- allow_control_chars=kwargs.get('allow_control_chars'),
506
- operation_name=operation_name,
507
- api_reference_link=api_reference_link)
508
-
509
- def get_em_warehouse(self, em_warehouse_id, **kwargs):
510
- """
511
- Gets a EmWarehouse by identifier
512
-
513
-
514
- :param str em_warehouse_id: (required)
515
- unique EmWarehouse identifier
516
-
517
- :param str opc_request_id: (optional)
518
- The client request ID for tracing.
519
-
520
- :param obj retry_strategy: (optional)
521
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
522
-
523
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
524
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
525
-
526
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
527
-
528
- :param bool allow_control_chars: (optional)
529
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
530
- By default, the response will not allow control characters in strings
531
-
532
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.EmWarehouse`
533
- :rtype: :class:`~oci.response.Response`
534
-
535
- :example:
536
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/get_em_warehouse.py.html>`__ to see an example of how to use get_em_warehouse API.
537
- """
538
- resource_path = "/emWarehouses/{emWarehouseId}"
539
- method = "GET"
540
- operation_name = "get_em_warehouse"
541
- api_reference_link = ""
542
-
543
- # Don't accept unknown kwargs
544
- expected_kwargs = [
545
- "allow_control_chars",
546
- "retry_strategy",
547
- "opc_request_id"
548
- ]
549
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
550
- if extra_kwargs:
551
- raise ValueError(
552
- "get_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs))
553
-
554
- path_params = {
555
- "emWarehouseId": em_warehouse_id
556
- }
557
-
558
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
559
-
560
- for (k, v) in six.iteritems(path_params):
561
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
562
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
563
-
564
- header_params = {
565
- "accept": "application/json",
566
- "content-type": "application/json",
567
- "opc-request-id": kwargs.get("opc_request_id", missing)
568
- }
569
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
570
-
571
- retry_strategy = self.base_client.get_preferred_retry_strategy(
572
- operation_retry_strategy=kwargs.get('retry_strategy'),
573
- client_retry_strategy=self.retry_strategy
574
- )
575
-
576
- if retry_strategy:
577
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
578
- self.base_client.add_opc_client_retries_header(header_params)
579
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
580
- return retry_strategy.make_retrying_call(
581
- self.base_client.call_api,
582
- resource_path=resource_path,
583
- method=method,
584
- path_params=path_params,
585
- header_params=header_params,
586
- response_type="EmWarehouse",
587
- allow_control_chars=kwargs.get('allow_control_chars'),
588
- operation_name=operation_name,
589
- api_reference_link=api_reference_link)
590
- else:
591
- return self.base_client.call_api(
592
- resource_path=resource_path,
593
- method=method,
594
- path_params=path_params,
595
- header_params=header_params,
596
- response_type="EmWarehouse",
597
- allow_control_chars=kwargs.get('allow_control_chars'),
598
- operation_name=operation_name,
599
- api_reference_link=api_reference_link)
600
-
601
- def get_em_warehouse_resource_usage(self, em_warehouse_id, **kwargs):
602
- """
603
- Gets a EmWarehouseResourceUsage by identifier
604
-
605
-
606
- :param str em_warehouse_id: (required)
607
- unique EmWarehouse identifier
608
-
609
- :param str opc_request_id: (optional)
610
- The client request ID for tracing.
611
-
612
- :param obj retry_strategy: (optional)
613
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
614
-
615
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
616
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
617
-
618
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
619
-
620
- :param bool allow_control_chars: (optional)
621
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
622
- By default, the response will not allow control characters in strings
623
-
624
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.ResourceUsage`
625
- :rtype: :class:`~oci.response.Response`
626
-
627
- :example:
628
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/get_em_warehouse_resource_usage.py.html>`__ to see an example of how to use get_em_warehouse_resource_usage API.
629
- """
630
- resource_path = "/emWarehouses/{emWarehouseId}/resourceUsage"
631
- method = "GET"
632
- operation_name = "get_em_warehouse_resource_usage"
633
- api_reference_link = ""
634
-
635
- # Don't accept unknown kwargs
636
- expected_kwargs = [
637
- "allow_control_chars",
638
- "retry_strategy",
639
- "opc_request_id"
640
- ]
641
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
642
- if extra_kwargs:
643
- raise ValueError(
644
- "get_em_warehouse_resource_usage got unknown kwargs: {!r}".format(extra_kwargs))
645
-
646
- path_params = {
647
- "emWarehouseId": em_warehouse_id
648
- }
649
-
650
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
651
-
652
- for (k, v) in six.iteritems(path_params):
653
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
654
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
655
-
656
- header_params = {
657
- "accept": "application/json",
658
- "content-type": "application/json",
659
- "opc-request-id": kwargs.get("opc_request_id", missing)
660
- }
661
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
662
-
663
- retry_strategy = self.base_client.get_preferred_retry_strategy(
664
- operation_retry_strategy=kwargs.get('retry_strategy'),
665
- client_retry_strategy=self.retry_strategy
666
- )
667
-
668
- if retry_strategy:
669
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
670
- self.base_client.add_opc_client_retries_header(header_params)
671
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
672
- return retry_strategy.make_retrying_call(
673
- self.base_client.call_api,
674
- resource_path=resource_path,
675
- method=method,
676
- path_params=path_params,
677
- header_params=header_params,
678
- response_type="ResourceUsage",
679
- allow_control_chars=kwargs.get('allow_control_chars'),
680
- operation_name=operation_name,
681
- api_reference_link=api_reference_link)
682
- else:
683
- return self.base_client.call_api(
684
- resource_path=resource_path,
685
- method=method,
686
- path_params=path_params,
687
- header_params=header_params,
688
- response_type="ResourceUsage",
689
- allow_control_chars=kwargs.get('allow_control_chars'),
690
- operation_name=operation_name,
691
- api_reference_link=api_reference_link)
692
-
693
- def get_work_request(self, work_request_id, **kwargs):
694
- """
695
- Gets details of the work request with the given ID.
696
-
697
-
698
- :param str work_request_id: (required)
699
- The ID of the asynchronous request.
700
-
701
- :param str opc_request_id: (optional)
702
- The client request ID for tracing.
703
-
704
- :param obj retry_strategy: (optional)
705
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
706
-
707
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
708
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
709
-
710
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
711
-
712
- :param bool allow_control_chars: (optional)
713
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
714
- By default, the response will not allow control characters in strings
715
-
716
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequest`
717
- :rtype: :class:`~oci.response.Response`
718
-
719
- :example:
720
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
721
- """
722
- resource_path = "/workRequests/{workRequestId}"
723
- method = "GET"
724
- operation_name = "get_work_request"
725
- api_reference_link = ""
726
-
727
- # Don't accept unknown kwargs
728
- expected_kwargs = [
729
- "allow_control_chars",
730
- "retry_strategy",
731
- "opc_request_id"
732
- ]
733
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
734
- if extra_kwargs:
735
- raise ValueError(
736
- "get_work_request got unknown kwargs: {!r}".format(extra_kwargs))
737
-
738
- path_params = {
739
- "workRequestId": work_request_id
740
- }
741
-
742
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
743
-
744
- for (k, v) in six.iteritems(path_params):
745
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
746
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
747
-
748
- header_params = {
749
- "accept": "application/json",
750
- "content-type": "application/json",
751
- "opc-request-id": kwargs.get("opc_request_id", missing)
752
- }
753
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
754
-
755
- retry_strategy = self.base_client.get_preferred_retry_strategy(
756
- operation_retry_strategy=kwargs.get('retry_strategy'),
757
- client_retry_strategy=self.retry_strategy
758
- )
759
-
760
- if retry_strategy:
761
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
762
- self.base_client.add_opc_client_retries_header(header_params)
763
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
764
- return retry_strategy.make_retrying_call(
765
- self.base_client.call_api,
766
- resource_path=resource_path,
767
- method=method,
768
- path_params=path_params,
769
- header_params=header_params,
770
- response_type="WorkRequest",
771
- allow_control_chars=kwargs.get('allow_control_chars'),
772
- operation_name=operation_name,
773
- api_reference_link=api_reference_link)
774
- else:
775
- return self.base_client.call_api(
776
- resource_path=resource_path,
777
- method=method,
778
- path_params=path_params,
779
- header_params=header_params,
780
- response_type="WorkRequest",
781
- allow_control_chars=kwargs.get('allow_control_chars'),
782
- operation_name=operation_name,
783
- api_reference_link=api_reference_link)
784
-
785
- def list_em_warehouses(self, **kwargs):
786
- """
787
- Returns a list of EmWarehouses.
788
-
789
-
790
- :param str compartment_id: (optional)
791
- The ID of the compartment in which to list resources.
792
-
793
- :param str lifecycle_state: (optional)
794
- A filter to return only resources their lifecycleState matches the given lifecycleState.
795
-
796
- Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
797
-
798
- :param str display_name: (optional)
799
- A filter to return only resources that match the entire display name given.
800
-
801
- :param str operations_insights_warehouse_id: (optional)
802
- unique operationsInsightsWarehouseId identifier
803
-
804
- :param str id: (optional)
805
- unique EmWarehouse identifier
806
-
807
- :param int limit: (optional)
808
- The maximum number of items to return.
809
-
810
- :param str page: (optional)
811
- A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
812
-
813
- :param str sort_order: (optional)
814
- The sort order to use, either 'ASC' or 'DESC'.
815
-
816
- Allowed values are: "ASC", "DESC"
817
-
818
- :param str sort_by: (optional)
819
- The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
820
-
821
- Allowed values are: "timeCreated", "displayName"
822
-
823
- :param str opc_request_id: (optional)
824
- The client request ID for tracing.
825
-
826
- :param obj retry_strategy: (optional)
827
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
828
-
829
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
830
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
831
-
832
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
833
-
834
- :param bool allow_control_chars: (optional)
835
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
836
- By default, the response will not allow control characters in strings
837
-
838
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.EmWarehouseCollection`
839
- :rtype: :class:`~oci.response.Response`
840
-
841
- :example:
842
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/list_em_warehouses.py.html>`__ to see an example of how to use list_em_warehouses API.
843
- """
844
- resource_path = "/emWarehouses"
845
- method = "GET"
846
- operation_name = "list_em_warehouses"
847
- api_reference_link = ""
848
-
849
- # Don't accept unknown kwargs
850
- expected_kwargs = [
851
- "allow_control_chars",
852
- "retry_strategy",
853
- "compartment_id",
854
- "lifecycle_state",
855
- "display_name",
856
- "operations_insights_warehouse_id",
857
- "id",
858
- "limit",
859
- "page",
860
- "sort_order",
861
- "sort_by",
862
- "opc_request_id"
863
- ]
864
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
865
- if extra_kwargs:
866
- raise ValueError(
867
- "list_em_warehouses got unknown kwargs: {!r}".format(extra_kwargs))
868
-
869
- if 'lifecycle_state' in kwargs:
870
- lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
871
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
872
- raise ValueError(
873
- "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
874
- )
875
-
876
- if 'sort_order' in kwargs:
877
- sort_order_allowed_values = ["ASC", "DESC"]
878
- if kwargs['sort_order'] not in sort_order_allowed_values:
879
- raise ValueError(
880
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
881
- )
882
-
883
- if 'sort_by' in kwargs:
884
- sort_by_allowed_values = ["timeCreated", "displayName"]
885
- if kwargs['sort_by'] not in sort_by_allowed_values:
886
- raise ValueError(
887
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
888
- )
889
-
890
- query_params = {
891
- "compartmentId": kwargs.get("compartment_id", missing),
892
- "lifecycleState": kwargs.get("lifecycle_state", missing),
893
- "displayName": kwargs.get("display_name", missing),
894
- "operationsInsightsWarehouseId": kwargs.get("operations_insights_warehouse_id", missing),
895
- "id": kwargs.get("id", missing),
896
- "limit": kwargs.get("limit", missing),
897
- "page": kwargs.get("page", missing),
898
- "sortOrder": kwargs.get("sort_order", missing),
899
- "sortBy": kwargs.get("sort_by", missing)
900
- }
901
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
902
-
903
- header_params = {
904
- "accept": "application/json",
905
- "content-type": "application/json",
906
- "opc-request-id": kwargs.get("opc_request_id", missing)
907
- }
908
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
909
-
910
- retry_strategy = self.base_client.get_preferred_retry_strategy(
911
- operation_retry_strategy=kwargs.get('retry_strategy'),
912
- client_retry_strategy=self.retry_strategy
913
- )
914
-
915
- if retry_strategy:
916
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
917
- self.base_client.add_opc_client_retries_header(header_params)
918
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
919
- return retry_strategy.make_retrying_call(
920
- self.base_client.call_api,
921
- resource_path=resource_path,
922
- method=method,
923
- query_params=query_params,
924
- header_params=header_params,
925
- response_type="EmWarehouseCollection",
926
- allow_control_chars=kwargs.get('allow_control_chars'),
927
- operation_name=operation_name,
928
- api_reference_link=api_reference_link)
929
- else:
930
- return self.base_client.call_api(
931
- resource_path=resource_path,
932
- method=method,
933
- query_params=query_params,
934
- header_params=header_params,
935
- response_type="EmWarehouseCollection",
936
- allow_control_chars=kwargs.get('allow_control_chars'),
937
- operation_name=operation_name,
938
- api_reference_link=api_reference_link)
939
-
940
- def list_etl_runs(self, em_warehouse_id, **kwargs):
941
- """
942
- Gets a list of runs of an EmWarehouseResource by identifier
943
-
944
-
945
- :param str em_warehouse_id: (required)
946
- unique EmWarehouse identifier
947
-
948
- :param str compartment_id: (optional)
949
- The ID of the compartment in which to list resources.
950
-
951
- :param str display_name: (optional)
952
- A filter to return only resources that match the entire display name given.
953
-
954
- :param int limit: (optional)
955
- The maximum number of items to return.
956
-
957
- :param str page: (optional)
958
- A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
959
-
960
- :param str sort_order: (optional)
961
- The sort order to use, either 'ASC' or 'DESC'.
962
-
963
- Allowed values are: "ASC", "DESC"
964
-
965
- :param str sort_by: (optional)
966
- The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
967
-
968
- Allowed values are: "timeCreated", "displayName"
969
-
970
- :param str opc_request_id: (optional)
971
- The client request ID for tracing.
972
-
973
- :param obj retry_strategy: (optional)
974
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
975
-
976
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
977
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
978
-
979
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
980
-
981
- :param bool allow_control_chars: (optional)
982
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
983
- By default, the response will not allow control characters in strings
984
-
985
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.EtlRunCollection`
986
- :rtype: :class:`~oci.response.Response`
987
-
988
- :example:
989
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/list_etl_runs.py.html>`__ to see an example of how to use list_etl_runs API.
990
- """
991
- resource_path = "/emWarehouses/{emWarehouseId}/etlRuns"
992
- method = "GET"
993
- operation_name = "list_etl_runs"
994
- api_reference_link = ""
995
-
996
- # Don't accept unknown kwargs
997
- expected_kwargs = [
998
- "allow_control_chars",
999
- "retry_strategy",
1000
- "compartment_id",
1001
- "display_name",
1002
- "limit",
1003
- "page",
1004
- "sort_order",
1005
- "sort_by",
1006
- "opc_request_id"
1007
- ]
1008
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1009
- if extra_kwargs:
1010
- raise ValueError(
1011
- "list_etl_runs got unknown kwargs: {!r}".format(extra_kwargs))
1012
-
1013
- path_params = {
1014
- "emWarehouseId": em_warehouse_id
1015
- }
1016
-
1017
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1018
-
1019
- for (k, v) in six.iteritems(path_params):
1020
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1021
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
1022
-
1023
- if 'sort_order' in kwargs:
1024
- sort_order_allowed_values = ["ASC", "DESC"]
1025
- if kwargs['sort_order'] not in sort_order_allowed_values:
1026
- raise ValueError(
1027
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
1028
- )
1029
-
1030
- if 'sort_by' in kwargs:
1031
- sort_by_allowed_values = ["timeCreated", "displayName"]
1032
- if kwargs['sort_by'] not in sort_by_allowed_values:
1033
- raise ValueError(
1034
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
1035
- )
1036
-
1037
- query_params = {
1038
- "compartmentId": kwargs.get("compartment_id", missing),
1039
- "displayName": kwargs.get("display_name", missing),
1040
- "limit": kwargs.get("limit", missing),
1041
- "page": kwargs.get("page", missing),
1042
- "sortOrder": kwargs.get("sort_order", missing),
1043
- "sortBy": kwargs.get("sort_by", missing)
1044
- }
1045
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1046
-
1047
- header_params = {
1048
- "accept": "application/json",
1049
- "content-type": "application/json",
1050
- "opc-request-id": kwargs.get("opc_request_id", missing)
1051
- }
1052
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1053
-
1054
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1055
- operation_retry_strategy=kwargs.get('retry_strategy'),
1056
- client_retry_strategy=self.retry_strategy
1057
- )
1058
-
1059
- if retry_strategy:
1060
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1061
- self.base_client.add_opc_client_retries_header(header_params)
1062
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1063
- return retry_strategy.make_retrying_call(
1064
- self.base_client.call_api,
1065
- resource_path=resource_path,
1066
- method=method,
1067
- path_params=path_params,
1068
- query_params=query_params,
1069
- header_params=header_params,
1070
- response_type="EtlRunCollection",
1071
- allow_control_chars=kwargs.get('allow_control_chars'),
1072
- operation_name=operation_name,
1073
- api_reference_link=api_reference_link)
1074
- else:
1075
- return self.base_client.call_api(
1076
- resource_path=resource_path,
1077
- method=method,
1078
- path_params=path_params,
1079
- query_params=query_params,
1080
- header_params=header_params,
1081
- response_type="EtlRunCollection",
1082
- allow_control_chars=kwargs.get('allow_control_chars'),
1083
- operation_name=operation_name,
1084
- api_reference_link=api_reference_link)
1085
-
1086
- def list_work_request_errors(self, work_request_id, **kwargs):
1087
- """
1088
- Returns a (paginated) list of errors for the work request with the given ID.
1089
-
1090
-
1091
- :param str work_request_id: (required)
1092
- The ID of the asynchronous request.
1093
-
1094
- :param str opc_request_id: (optional)
1095
- The client request ID for tracing.
1096
-
1097
- :param str page: (optional)
1098
- A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1099
-
1100
- :param int limit: (optional)
1101
- The maximum number of items to return.
1102
-
1103
- :param str sort_by: (optional)
1104
- The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
1105
-
1106
- Allowed values are: "timeAccepted"
1107
-
1108
- :param str sort_order: (optional)
1109
- The sort order to use, either 'ASC' or 'DESC'.
1110
-
1111
- Allowed values are: "ASC", "DESC"
1112
-
1113
- :param obj retry_strategy: (optional)
1114
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1115
-
1116
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1117
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1118
-
1119
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1120
-
1121
- :param bool allow_control_chars: (optional)
1122
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1123
- By default, the response will not allow control characters in strings
1124
-
1125
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequestErrorCollection`
1126
- :rtype: :class:`~oci.response.Response`
1127
-
1128
- :example:
1129
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
1130
- """
1131
- resource_path = "/workRequests/{workRequestId}/errors"
1132
- method = "GET"
1133
- operation_name = "list_work_request_errors"
1134
- api_reference_link = ""
1135
-
1136
- # Don't accept unknown kwargs
1137
- expected_kwargs = [
1138
- "allow_control_chars",
1139
- "retry_strategy",
1140
- "opc_request_id",
1141
- "page",
1142
- "limit",
1143
- "sort_by",
1144
- "sort_order"
1145
- ]
1146
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1147
- if extra_kwargs:
1148
- raise ValueError(
1149
- "list_work_request_errors got unknown kwargs: {!r}".format(extra_kwargs))
1150
-
1151
- path_params = {
1152
- "workRequestId": work_request_id
1153
- }
1154
-
1155
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1156
-
1157
- for (k, v) in six.iteritems(path_params):
1158
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1159
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
1160
-
1161
- if 'sort_by' in kwargs:
1162
- sort_by_allowed_values = ["timeAccepted"]
1163
- if kwargs['sort_by'] not in sort_by_allowed_values:
1164
- raise ValueError(
1165
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
1166
- )
1167
-
1168
- if 'sort_order' in kwargs:
1169
- sort_order_allowed_values = ["ASC", "DESC"]
1170
- if kwargs['sort_order'] not in sort_order_allowed_values:
1171
- raise ValueError(
1172
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
1173
- )
1174
-
1175
- query_params = {
1176
- "page": kwargs.get("page", missing),
1177
- "limit": kwargs.get("limit", missing),
1178
- "sortBy": kwargs.get("sort_by", missing),
1179
- "sortOrder": kwargs.get("sort_order", missing)
1180
- }
1181
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1182
-
1183
- header_params = {
1184
- "accept": "application/json",
1185
- "content-type": "application/json",
1186
- "opc-request-id": kwargs.get("opc_request_id", missing)
1187
- }
1188
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1189
-
1190
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1191
- operation_retry_strategy=kwargs.get('retry_strategy'),
1192
- client_retry_strategy=self.retry_strategy
1193
- )
1194
-
1195
- if retry_strategy:
1196
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1197
- self.base_client.add_opc_client_retries_header(header_params)
1198
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1199
- return retry_strategy.make_retrying_call(
1200
- self.base_client.call_api,
1201
- resource_path=resource_path,
1202
- method=method,
1203
- path_params=path_params,
1204
- query_params=query_params,
1205
- header_params=header_params,
1206
- response_type="WorkRequestErrorCollection",
1207
- allow_control_chars=kwargs.get('allow_control_chars'),
1208
- operation_name=operation_name,
1209
- api_reference_link=api_reference_link)
1210
- else:
1211
- return self.base_client.call_api(
1212
- resource_path=resource_path,
1213
- method=method,
1214
- path_params=path_params,
1215
- query_params=query_params,
1216
- header_params=header_params,
1217
- response_type="WorkRequestErrorCollection",
1218
- allow_control_chars=kwargs.get('allow_control_chars'),
1219
- operation_name=operation_name,
1220
- api_reference_link=api_reference_link)
1221
-
1222
- def list_work_request_logs(self, work_request_id, **kwargs):
1223
- """
1224
- Returns a (paginated) list of logs for the work request with the given ID.
1225
-
1226
-
1227
- :param str work_request_id: (required)
1228
- The ID of the asynchronous request.
1229
-
1230
- :param str opc_request_id: (optional)
1231
- The client request ID for tracing.
1232
-
1233
- :param str page: (optional)
1234
- A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1235
-
1236
- :param int limit: (optional)
1237
- The maximum number of items to return.
1238
-
1239
- :param str sort_by: (optional)
1240
- The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
1241
-
1242
- Allowed values are: "timeAccepted"
1243
-
1244
- :param str sort_order: (optional)
1245
- The sort order to use, either 'ASC' or 'DESC'.
1246
-
1247
- Allowed values are: "ASC", "DESC"
1248
-
1249
- :param obj retry_strategy: (optional)
1250
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1251
-
1252
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1253
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1254
-
1255
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1256
-
1257
- :param bool allow_control_chars: (optional)
1258
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1259
- By default, the response will not allow control characters in strings
1260
-
1261
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequestLogEntryCollection`
1262
- :rtype: :class:`~oci.response.Response`
1263
-
1264
- :example:
1265
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
1266
- """
1267
- resource_path = "/workRequests/{workRequestId}/logs"
1268
- method = "GET"
1269
- operation_name = "list_work_request_logs"
1270
- api_reference_link = ""
1271
-
1272
- # Don't accept unknown kwargs
1273
- expected_kwargs = [
1274
- "allow_control_chars",
1275
- "retry_strategy",
1276
- "opc_request_id",
1277
- "page",
1278
- "limit",
1279
- "sort_by",
1280
- "sort_order"
1281
- ]
1282
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1283
- if extra_kwargs:
1284
- raise ValueError(
1285
- "list_work_request_logs got unknown kwargs: {!r}".format(extra_kwargs))
1286
-
1287
- path_params = {
1288
- "workRequestId": work_request_id
1289
- }
1290
-
1291
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1292
-
1293
- for (k, v) in six.iteritems(path_params):
1294
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1295
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
1296
-
1297
- if 'sort_by' in kwargs:
1298
- sort_by_allowed_values = ["timeAccepted"]
1299
- if kwargs['sort_by'] not in sort_by_allowed_values:
1300
- raise ValueError(
1301
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
1302
- )
1303
-
1304
- if 'sort_order' in kwargs:
1305
- sort_order_allowed_values = ["ASC", "DESC"]
1306
- if kwargs['sort_order'] not in sort_order_allowed_values:
1307
- raise ValueError(
1308
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
1309
- )
1310
-
1311
- query_params = {
1312
- "page": kwargs.get("page", missing),
1313
- "limit": kwargs.get("limit", missing),
1314
- "sortBy": kwargs.get("sort_by", missing),
1315
- "sortOrder": kwargs.get("sort_order", missing)
1316
- }
1317
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1318
-
1319
- header_params = {
1320
- "accept": "application/json",
1321
- "content-type": "application/json",
1322
- "opc-request-id": kwargs.get("opc_request_id", missing)
1323
- }
1324
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1325
-
1326
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1327
- operation_retry_strategy=kwargs.get('retry_strategy'),
1328
- client_retry_strategy=self.retry_strategy
1329
- )
1330
-
1331
- if retry_strategy:
1332
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1333
- self.base_client.add_opc_client_retries_header(header_params)
1334
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1335
- return retry_strategy.make_retrying_call(
1336
- self.base_client.call_api,
1337
- resource_path=resource_path,
1338
- method=method,
1339
- path_params=path_params,
1340
- query_params=query_params,
1341
- header_params=header_params,
1342
- response_type="WorkRequestLogEntryCollection",
1343
- allow_control_chars=kwargs.get('allow_control_chars'),
1344
- operation_name=operation_name,
1345
- api_reference_link=api_reference_link)
1346
- else:
1347
- return self.base_client.call_api(
1348
- resource_path=resource_path,
1349
- method=method,
1350
- path_params=path_params,
1351
- query_params=query_params,
1352
- header_params=header_params,
1353
- response_type="WorkRequestLogEntryCollection",
1354
- allow_control_chars=kwargs.get('allow_control_chars'),
1355
- operation_name=operation_name,
1356
- api_reference_link=api_reference_link)
1357
-
1358
- def list_work_requests(self, **kwargs):
1359
- """
1360
- Lists the work requests in a compartment.
1361
-
1362
-
1363
- :param str compartment_id: (optional)
1364
- The ID of the compartment in which to list resources.
1365
-
1366
- :param str work_request_id: (optional)
1367
- The ID of the asynchronous work request.
1368
-
1369
- :param str status: (optional)
1370
- A filter to return only resources their lifecycleState matches the given OperationStatus.
1371
-
1372
- Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
1373
-
1374
- :param str resource_id: (optional)
1375
- The ID of the resource affected by the work request.
1376
-
1377
- :param str opc_request_id: (optional)
1378
- The client request ID for tracing.
1379
-
1380
- :param str page: (optional)
1381
- A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1382
-
1383
- :param int limit: (optional)
1384
- The maximum number of items to return.
1385
-
1386
- :param str sort_order: (optional)
1387
- The sort order to use, either 'ASC' or 'DESC'.
1388
-
1389
- Allowed values are: "ASC", "DESC"
1390
-
1391
- :param str sort_by: (optional)
1392
- The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
1393
-
1394
- Allowed values are: "timeAccepted"
1395
-
1396
- :param obj retry_strategy: (optional)
1397
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1398
-
1399
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1400
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1401
-
1402
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1403
-
1404
- :param bool allow_control_chars: (optional)
1405
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1406
- By default, the response will not allow control characters in strings
1407
-
1408
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequestSummaryCollection`
1409
- :rtype: :class:`~oci.response.Response`
1410
-
1411
- :example:
1412
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
1413
- """
1414
- resource_path = "/workRequests"
1415
- method = "GET"
1416
- operation_name = "list_work_requests"
1417
- api_reference_link = ""
1418
-
1419
- # Don't accept unknown kwargs
1420
- expected_kwargs = [
1421
- "allow_control_chars",
1422
- "retry_strategy",
1423
- "compartment_id",
1424
- "work_request_id",
1425
- "status",
1426
- "resource_id",
1427
- "opc_request_id",
1428
- "page",
1429
- "limit",
1430
- "sort_order",
1431
- "sort_by"
1432
- ]
1433
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1434
- if extra_kwargs:
1435
- raise ValueError(
1436
- "list_work_requests got unknown kwargs: {!r}".format(extra_kwargs))
1437
-
1438
- if 'status' in kwargs:
1439
- status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
1440
- if kwargs['status'] not in status_allowed_values:
1441
- raise ValueError(
1442
- "Invalid value for `status`, must be one of {0}".format(status_allowed_values)
1443
- )
1444
-
1445
- if 'sort_order' in kwargs:
1446
- sort_order_allowed_values = ["ASC", "DESC"]
1447
- if kwargs['sort_order'] not in sort_order_allowed_values:
1448
- raise ValueError(
1449
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
1450
- )
1451
-
1452
- if 'sort_by' in kwargs:
1453
- sort_by_allowed_values = ["timeAccepted"]
1454
- if kwargs['sort_by'] not in sort_by_allowed_values:
1455
- raise ValueError(
1456
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
1457
- )
1458
-
1459
- query_params = {
1460
- "compartmentId": kwargs.get("compartment_id", missing),
1461
- "workRequestId": kwargs.get("work_request_id", missing),
1462
- "status": kwargs.get("status", missing),
1463
- "resourceId": kwargs.get("resource_id", missing),
1464
- "page": kwargs.get("page", missing),
1465
- "limit": kwargs.get("limit", missing),
1466
- "sortOrder": kwargs.get("sort_order", missing),
1467
- "sortBy": kwargs.get("sort_by", missing)
1468
- }
1469
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1470
-
1471
- header_params = {
1472
- "accept": "application/json",
1473
- "content-type": "application/json",
1474
- "opc-request-id": kwargs.get("opc_request_id", missing)
1475
- }
1476
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1477
-
1478
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1479
- operation_retry_strategy=kwargs.get('retry_strategy'),
1480
- client_retry_strategy=self.retry_strategy
1481
- )
1482
-
1483
- if retry_strategy:
1484
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1485
- self.base_client.add_opc_client_retries_header(header_params)
1486
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1487
- return retry_strategy.make_retrying_call(
1488
- self.base_client.call_api,
1489
- resource_path=resource_path,
1490
- method=method,
1491
- query_params=query_params,
1492
- header_params=header_params,
1493
- response_type="WorkRequestSummaryCollection",
1494
- allow_control_chars=kwargs.get('allow_control_chars'),
1495
- operation_name=operation_name,
1496
- api_reference_link=api_reference_link)
1497
- else:
1498
- return self.base_client.call_api(
1499
- resource_path=resource_path,
1500
- method=method,
1501
- query_params=query_params,
1502
- header_params=header_params,
1503
- response_type="WorkRequestSummaryCollection",
1504
- allow_control_chars=kwargs.get('allow_control_chars'),
1505
- operation_name=operation_name,
1506
- api_reference_link=api_reference_link)
1507
-
1508
- def update_em_warehouse(self, em_warehouse_id, update_em_warehouse_details, **kwargs):
1509
- """
1510
- Updates the EmWarehouse
1511
-
1512
-
1513
- :param str em_warehouse_id: (required)
1514
- unique EmWarehouse identifier
1515
-
1516
- :param oci.em_warehouse.models.UpdateEmWarehouseDetails update_em_warehouse_details: (required)
1517
- The information to be updated.
1518
-
1519
- :param str if_match: (optional)
1520
- For optimistic concurrency control. In the PUT or DELETE call
1521
- for a resource, set the `if-match` parameter to the value of the
1522
- etag from a previous GET or POST response for that resource.
1523
- The resource will be updated or deleted only if the etag you
1524
- provide matches the resource's current etag value.
1525
-
1526
- :param str opc_request_id: (optional)
1527
- The client request ID for tracing.
1528
-
1529
- :param obj retry_strategy: (optional)
1530
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1531
-
1532
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1533
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1534
-
1535
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1536
-
1537
- :param bool allow_control_chars: (optional)
1538
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1539
- By default, the response will not allow control characters in strings
1540
-
1541
- :return: A :class:`~oci.response.Response` object with data of type None
1542
- :rtype: :class:`~oci.response.Response`
1543
-
1544
- :example:
1545
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.1/emwarehouse/update_em_warehouse.py.html>`__ to see an example of how to use update_em_warehouse API.
1546
- """
1547
- resource_path = "/emWarehouses/{emWarehouseId}"
1548
- method = "PUT"
1549
- operation_name = "update_em_warehouse"
1550
- api_reference_link = ""
1551
-
1552
- # Don't accept unknown kwargs
1553
- expected_kwargs = [
1554
- "allow_control_chars",
1555
- "retry_strategy",
1556
- "if_match",
1557
- "opc_request_id"
1558
- ]
1559
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1560
- if extra_kwargs:
1561
- raise ValueError(
1562
- "update_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs))
1563
-
1564
- path_params = {
1565
- "emWarehouseId": em_warehouse_id
1566
- }
1567
-
1568
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1569
-
1570
- for (k, v) in six.iteritems(path_params):
1571
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1572
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
1573
-
1574
- header_params = {
1575
- "accept": "application/json",
1576
- "content-type": "application/json",
1577
- "if-match": kwargs.get("if_match", missing),
1578
- "opc-request-id": kwargs.get("opc_request_id", missing)
1579
- }
1580
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1581
-
1582
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1583
- operation_retry_strategy=kwargs.get('retry_strategy'),
1584
- client_retry_strategy=self.retry_strategy
1585
- )
1586
-
1587
- if retry_strategy:
1588
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1589
- self.base_client.add_opc_client_retries_header(header_params)
1590
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1591
- return retry_strategy.make_retrying_call(
1592
- self.base_client.call_api,
1593
- resource_path=resource_path,
1594
- method=method,
1595
- path_params=path_params,
1596
- header_params=header_params,
1597
- body=update_em_warehouse_details,
1598
- allow_control_chars=kwargs.get('allow_control_chars'),
1599
- operation_name=operation_name,
1600
- api_reference_link=api_reference_link)
1601
- else:
1602
- return self.base_client.call_api(
1603
- resource_path=resource_path,
1604
- method=method,
1605
- path_params=path_params,
1606
- header_params=header_params,
1607
- body=update_em_warehouse_details,
1608
- allow_control_chars=kwargs.get('allow_control_chars'),
1609
- operation_name=operation_name,
1610
- api_reference_link=api_reference_link)