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