oci 2.149.0__py3-none-any.whl → 2.149.2__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 (498) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/adm/application_dependency_management_client.py +36 -36
  4. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  5. oci/ai_document/ai_service_document_client.py +26 -26
  6. oci/ai_language/ai_service_language_client.py +44 -44
  7. oci/ai_speech/ai_service_speech_client.py +19 -19
  8. oci/ai_vision/ai_service_vision_client.py +28 -28
  9. oci/analytics/analytics_client.py +24 -24
  10. oci/announcements_service/announcement_client.py +5 -5
  11. oci/announcements_service/announcement_subscription_client.py +9 -9
  12. oci/announcements_service/announcements_preferences_client.py +4 -4
  13. oci/announcements_service/service_client.py +1 -1
  14. oci/apigateway/api_gateway_client.py +21 -21
  15. oci/apigateway/deployment_client.py +6 -6
  16. oci/apigateway/gateway_client.py +6 -6
  17. oci/apigateway/subscribers_client.py +6 -6
  18. oci/apigateway/usage_plans_client.py +6 -6
  19. oci/apigateway/work_requests_client.py +5 -5
  20. oci/apm_config/config_client.py +340 -9
  21. oci/apm_config/models/__init__.py +22 -0
  22. oci/apm_config/models/apdex_rules_summary.py +7 -0
  23. oci/apm_config/models/config_summary.py +35 -2
  24. oci/apm_config/models/copy_configuration_details.py +86 -0
  25. oci/apm_config/models/export_configuration_details.py +76 -0
  26. oci/apm_config/models/export_configuration_response_details.py +70 -0
  27. oci/apm_config/models/export_import_apdex_rules_summary.py +128 -0
  28. oci/apm_config/models/export_import_config_summary.py +226 -0
  29. oci/apm_config/models/export_import_metric_group_summary.py +232 -0
  30. oci/apm_config/models/export_import_options_summary.py +194 -0
  31. oci/apm_config/models/export_import_span_filter_summary.py +163 -0
  32. oci/apm_config/models/import_configuration_details.py +113 -0
  33. oci/apm_config/models/import_configuration_failed_item_summary.py +193 -0
  34. oci/apm_config/models/import_configuration_failed_items_collection.py +70 -0
  35. oci/apm_config/models/metric_group_summary.py +7 -0
  36. oci/apm_config/models/options_summary.py +7 -0
  37. oci/apm_config/models/span_filter_summary.py +7 -0
  38. oci/apm_control_plane/apm_domain_client.py +14 -14
  39. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  40. oci/apm_traces/attributes_client.py +8 -8
  41. oci/apm_traces/query_client.py +2 -2
  42. oci/apm_traces/trace_client.py +4 -4
  43. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  44. oci/artifacts/artifacts_client.py +32 -32
  45. oci/audit/audit_client.py +3 -3
  46. oci/autoscaling/auto_scaling_client.py +11 -11
  47. oci/bastion/bastion_client.py +15 -15
  48. oci/bds/bds_client.py +84 -84
  49. oci/blockchain/blockchain_platform_client.py +27 -27
  50. oci/budget/budget_client.py +10 -10
  51. oci/capacity_management/capacity_management_client.py +32 -32
  52. oci/certificates/certificates_client.py +5 -5
  53. oci/certificates_management/certificates_management_client.py +32 -32
  54. oci/cims/incident_client.py +6 -6
  55. oci/cloud_bridge/common_client.py +5 -5
  56. oci/cloud_bridge/discovery_client.py +15 -15
  57. oci/cloud_bridge/inventory_client.py +16 -16
  58. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  59. oci/cloud_guard/cloud_guard_client.py +155 -155
  60. oci/cloud_migrations/migration_client.py +43 -43
  61. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  62. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  63. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  64. oci/compute_instance_agent/plugin_client.py +2 -2
  65. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  66. oci/container_engine/container_engine_client.py +44 -44
  67. oci/container_instances/container_instance_client.py +18 -18
  68. oci/core/blockstorage_client.py +60 -60
  69. oci/core/compute_client.py +633 -113
  70. oci/core/compute_client_composite_operations.py +82 -0
  71. oci/core/compute_management_client.py +32 -32
  72. oci/core/models/__init__.py +10 -0
  73. oci/core/models/change_compute_host_compartment_details.py +76 -0
  74. oci/core/models/compute_host.py +826 -0
  75. oci/core/models/compute_host_collection.py +70 -0
  76. oci/core/models/compute_host_summary.py +720 -0
  77. oci/core/models/update_compute_host_details.py +154 -0
  78. oci/core/virtual_network_client.py +258 -258
  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 +45 -45
  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 +317 -317
  87. oci/data_science/data_science_client.py +7469 -3597
  88. oci/data_science/data_science_client_composite_operations.py +981 -105
  89. oci/data_science/models/__init__.py +118 -0
  90. oci/data_science/models/application_component.py +193 -0
  91. oci/data_science/models/auth_configuration.py +115 -0
  92. oci/data_science/models/change_ml_application_compartment_details.py +76 -0
  93. oci/data_science/models/change_ml_application_implementation_compartment_details.py +70 -0
  94. oci/data_science/models/change_ml_application_instance_compartment_details.py +76 -0
  95. oci/data_science/models/change_ml_application_instance_view_compartment_details.py +76 -0
  96. oci/data_science/models/configuration_property.py +101 -0
  97. oci/data_science/models/configuration_property_schema.py +276 -0
  98. oci/data_science/models/create_auth_configuration_details.py +95 -0
  99. oci/data_science/models/create_iam_auth_configuration_create_details.py +48 -0
  100. oci/data_science/models/create_idcs_auth_configuration_details.py +79 -0
  101. oci/data_science/models/create_idcs_custom_service_auth_configuration_details.py +203 -0
  102. oci/data_science/models/create_ml_application_details.py +206 -0
  103. oci/data_science/models/create_ml_application_implementation_details.py +264 -0
  104. oci/data_science/models/create_ml_application_instance_details.py +326 -0
  105. oci/data_science/models/data_flow_application_application_component.py +94 -0
  106. oci/data_science/models/data_science_job_application_component.py +94 -0
  107. oci/data_science/models/data_science_model_application_component.py +94 -0
  108. oci/data_science/models/data_science_model_deployment_instance_component.py +125 -0
  109. oci/data_science/models/data_science_pipeline_application_component.py +94 -0
  110. oci/data_science/models/data_science_schedule_instance_component.py +94 -0
  111. oci/data_science/models/disable_ml_application_instance_view_trigger_details.py +70 -0
  112. oci/data_science/models/enable_ml_application_instance_view_trigger_details.py +70 -0
  113. oci/data_science/models/generic_oci_resource_application_component.py +125 -0
  114. oci/data_science/models/generic_oci_resource_instance_component.py +125 -0
  115. oci/data_science/models/iam_auth_configuration.py +49 -0
  116. oci/data_science/models/idcs_auth_configuration.py +111 -0
  117. oci/data_science/models/idcs_custom_service_auth_configuration.py +204 -0
  118. oci/data_science/models/implementation_log_details.py +140 -0
  119. oci/data_science/models/implementation_logging.py +120 -0
  120. oci/data_science/models/instance_component.py +201 -0
  121. oci/data_science/models/ml_application.py +410 -0
  122. oci/data_science/models/ml_application_collection.py +70 -0
  123. oci/data_science/models/ml_application_implementation.py +666 -0
  124. oci/data_science/models/ml_application_implementation_collection.py +70 -0
  125. oci/data_science/models/ml_application_implementation_summary.py +487 -0
  126. oci/data_science/models/ml_application_implementation_version.py +600 -0
  127. oci/data_science/models/ml_application_implementation_version_collection.py +70 -0
  128. oci/data_science/models/ml_application_implementation_version_summary.py +487 -0
  129. oci/data_science/models/ml_application_instance.py +736 -0
  130. oci/data_science/models/ml_application_instance_collection.py +70 -0
  131. oci/data_science/models/ml_application_instance_internal_trigger.py +125 -0
  132. oci/data_science/models/ml_application_instance_summary.py +456 -0
  133. oci/data_science/models/ml_application_instance_view.py +829 -0
  134. oci/data_science/models/ml_application_instance_view_collection.py +70 -0
  135. oci/data_science/models/ml_application_instance_view_summary.py +580 -0
  136. oci/data_science/models/ml_application_package_argument_details.py +210 -0
  137. oci/data_science/models/ml_application_package_arguments.py +70 -0
  138. oci/data_science/models/ml_application_summary.py +332 -0
  139. oci/data_science/models/object_storage_bucket_instance_component.py +125 -0
  140. oci/data_science/models/object_storage_object_instance_component.py +156 -0
  141. oci/data_science/models/prediction_endpoint_details.py +101 -0
  142. oci/data_science/models/prediction_uri.py +101 -0
  143. oci/data_science/models/trigger_ml_application_instance_flow_details.py +70 -0
  144. oci/data_science/models/update_ml_application_details.py +144 -0
  145. oci/data_science/models/update_ml_application_implementation_details.py +171 -0
  146. oci/data_science/models/update_ml_application_implementation_version_details.py +113 -0
  147. oci/data_science/models/update_ml_application_instance_details.py +206 -0
  148. oci/data_science/models/update_ml_application_instance_view_details.py +113 -0
  149. oci/data_science/models/work_request.py +59 -3
  150. oci/data_science/models/work_request_summary.py +59 -3
  151. oci/database/database_client.py +414 -414
  152. oci/database_management/db_management_client.py +228 -228
  153. oci/database_management/diagnosability_client.py +4 -4
  154. oci/database_management/managed_my_sql_databases_client.py +9 -9
  155. oci/database_management/perfhub_client.py +1 -1
  156. oci/database_management/sql_tuning_client.py +17 -17
  157. oci/database_migration/database_migration_client.py +42 -42
  158. oci/database_tools/database_tools_client.py +23 -23
  159. oci/dblm/db_life_cycle_management_client.py +12 -12
  160. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  161. oci/delegate_access_control/work_request_client.py +4 -4
  162. oci/demand_signal/occ_demand_signal_client.py +7 -7
  163. oci/desktops/desktop_service_client.py +21 -21
  164. oci/devops/devops_client.py +141 -141
  165. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  166. oci/dns/dns_client.py +54 -54
  167. oci/dts/appliance_export_job_client.py +6 -6
  168. oci/dts/shipping_vendors_client.py +1 -1
  169. oci/dts/transfer_appliance_client.py +8 -8
  170. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  171. oci/dts/transfer_device_client.py +5 -5
  172. oci/dts/transfer_job_client.py +6 -6
  173. oci/dts/transfer_package_client.py +7 -7
  174. oci/em_warehouse/em_warehouse_client.py +13 -13
  175. oci/email/email_client.py +31 -31
  176. oci/email_data_plane/email_dp_client.py +1 -1
  177. oci/events/events_client.py +6 -6
  178. oci/file_storage/file_storage_client.py +74 -74
  179. oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
  180. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  181. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  182. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  183. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
  184. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  185. oci/functions/functions_invoke_client.py +1 -1
  186. oci/functions/functions_management_client.py +16 -16
  187. oci/fusion_apps/fusion_applications_client.py +41 -41
  188. oci/generative_ai/generative_ai_client.py +22 -22
  189. oci/generative_ai_agent/generative_ai_agent_client.py +711 -111
  190. oci/generative_ai_agent/generative_ai_agent_client_composite_operations.py +132 -0
  191. oci/generative_ai_agent/models/__init__.py +66 -0
  192. oci/generative_ai_agent/models/agent.py +29 -2
  193. oci/generative_ai_agent/models/agent_endpoint.py +143 -0
  194. oci/generative_ai_agent/models/agent_endpoint_summary.py +143 -0
  195. oci/generative_ai_agent/models/agent_summary.py +29 -2
  196. oci/generative_ai_agent/models/api_schema_inline_input_location.py +80 -0
  197. oci/generative_ai_agent/models/api_schema_input_location.py +113 -0
  198. oci/generative_ai_agent/models/api_schema_object_storage_input_location.py +142 -0
  199. oci/generative_ai_agent/models/content_moderation_guardrail_config.py +141 -0
  200. oci/generative_ai_agent/models/create_agent_details.py +29 -2
  201. oci/generative_ai_agent/models/create_agent_endpoint_details.py +143 -0
  202. oci/generative_ai_agent/models/create_data_source_details.py +31 -0
  203. oci/generative_ai_agent/models/create_tool_details.py +307 -0
  204. oci/generative_ai_agent/models/data_source.py +31 -0
  205. oci/generative_ai_agent/models/function.py +134 -0
  206. oci/generative_ai_agent/models/function_calling_tool_config.py +76 -0
  207. oci/generative_ai_agent/models/guardrail_config.py +120 -0
  208. oci/generative_ai_agent/models/http_endpoint_auth_config.py +137 -0
  209. oci/generative_ai_agent/models/http_endpoint_delegated_bearer_auth_config.py +50 -0
  210. oci/generative_ai_agent/models/http_endpoint_idcs_auth_config.py +76 -0
  211. oci/generative_ai_agent/models/http_endpoint_no_auth_config.py +49 -0
  212. oci/generative_ai_agent/models/http_endpoint_oci_resource_principal_auth_config.py +49 -0
  213. oci/generative_ai_agent/models/http_endpoint_tool_config.py +134 -0
  214. oci/generative_ai_agent/models/human_input_config.py +70 -0
  215. oci/generative_ai_agent/models/idcs_secret.py +2 -1
  216. oci/generative_ai_agent/models/inline_input_location.py +80 -0
  217. oci/generative_ai_agent/models/input_location.py +113 -0
  218. oci/generative_ai_agent/models/knowledge_base_config.py +74 -0
  219. oci/generative_ai_agent/models/llm_config.py +66 -0
  220. oci/generative_ai_agent/models/llm_customization.py +70 -0
  221. oci/generative_ai_agent/models/object_storage_input_location.py +142 -0
  222. oci/generative_ai_agent/models/object_storage_prefix.py +2 -2
  223. oci/generative_ai_agent/models/object_storage_prefix_output_location.py +142 -0
  224. oci/generative_ai_agent/models/output_config.py +97 -0
  225. oci/generative_ai_agent/models/output_location.py +99 -0
  226. oci/generative_ai_agent/models/personally_identifiable_information_guardrail_config.py +141 -0
  227. oci/generative_ai_agent/models/prompt_injection_guardrail_config.py +90 -0
  228. oci/generative_ai_agent/models/rag_tool_config.py +107 -0
  229. oci/generative_ai_agent/models/sql_tool_config.py +341 -0
  230. oci/generative_ai_agent/models/tool.py +522 -0
  231. oci/generative_ai_agent/models/tool_collection.py +70 -0
  232. oci/generative_ai_agent/models/tool_config.py +133 -0
  233. oci/generative_ai_agent/models/tool_summary.py +486 -0
  234. oci/generative_ai_agent/models/update_agent_details.py +29 -2
  235. oci/generative_ai_agent/models/update_agent_endpoint_details.py +143 -0
  236. oci/generative_ai_agent/models/update_data_source_details.py +31 -0
  237. oci/generative_ai_agent/models/update_tool_details.py +241 -0
  238. oci/generative_ai_agent/models/work_request.py +19 -3
  239. oci/generative_ai_agent/models/work_request_summary.py +19 -3
  240. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +128 -6
  241. oci/generative_ai_agent_runtime/models/__init__.py +24 -0
  242. oci/generative_ai_agent_runtime/models/chat_details.py +65 -3
  243. oci/generative_ai_agent_runtime/models/chat_result.py +95 -2
  244. oci/generative_ai_agent_runtime/models/citation.py +34 -3
  245. oci/generative_ai_agent_runtime/models/function_call.py +101 -0
  246. oci/generative_ai_agent_runtime/models/function_calling_performed_action.py +87 -0
  247. oci/generative_ai_agent_runtime/models/function_calling_required_action.py +83 -0
  248. oci/generative_ai_agent_runtime/models/human_approval_performed_action.py +103 -0
  249. oci/generative_ai_agent_runtime/models/knowledge_base_metadata_summary.py +262 -0
  250. oci/generative_ai_agent_runtime/models/knowledge_base_metadata_value.py +101 -0
  251. oci/generative_ai_agent_runtime/models/message_content.py +33 -2
  252. oci/generative_ai_agent_runtime/models/metadata_filter.py +101 -0
  253. oci/generative_ai_agent_runtime/models/paragraph.py +132 -0
  254. oci/generative_ai_agent_runtime/models/paragraph_citation.py +97 -0
  255. oci/generative_ai_agent_runtime/models/performed_action.py +138 -0
  256. oci/generative_ai_agent_runtime/models/required_action.py +134 -0
  257. oci/generative_ai_agent_runtime/models/retrieve_metadata_details.py +70 -0
  258. oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
  259. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  260. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  261. oci/golden_gate/golden_gate_client.py +84 -84
  262. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  263. oci/governance_rules_control_plane/work_request_client.py +5 -5
  264. oci/healthchecks/health_checks_client.py +17 -17
  265. oci/identity/identity_client.py +145 -145
  266. oci/identity_data_plane/dataplane_client.py +2 -2
  267. oci/identity_domains/identity_domains_client.py +311 -311
  268. oci/integration/integration_instance_client.py +19 -19
  269. oci/jms/java_management_service_client.py +79 -79
  270. oci/jms_java_downloads/java_download_client.py +25 -25
  271. oci/key_management/ekm_client.py +5 -5
  272. oci/key_management/kms_crypto_client.py +6 -6
  273. oci/key_management/kms_hsm_cluster_client.py +12 -12
  274. oci/key_management/kms_management_client.py +21 -21
  275. oci/key_management/kms_vault_client.py +14 -14
  276. oci/license_manager/license_manager_client.py +18 -18
  277. oci/limits/limits_client.py +4 -4
  278. oci/limits/quotas_client.py +7 -7
  279. oci/load_balancer/load_balancer_client.py +61 -61
  280. oci/lockbox/lockbox_client.py +24 -24
  281. oci/log_analytics/log_analytics_client.py +193 -193
  282. oci/logging/logging_management_client.py +30 -30
  283. oci/loggingingestion/logging_client.py +1 -1
  284. oci/loggingsearch/log_search_client.py +1 -1
  285. oci/lustre_file_storage/__init__.py +14 -0
  286. oci/lustre_file_storage/lustre_file_storage_client.py +1536 -0
  287. oci/lustre_file_storage/lustre_file_storage_client_composite_operations.py +202 -0
  288. oci/lustre_file_storage/models/__init__.py +44 -0
  289. oci/lustre_file_storage/models/change_lustre_file_system_compartment_details.py +74 -0
  290. oci/lustre_file_storage/models/create_lustre_file_system_details.py +559 -0
  291. oci/lustre_file_storage/models/lustre_file_system.py +986 -0
  292. oci/lustre_file_storage/models/lustre_file_system_collection.py +70 -0
  293. oci/lustre_file_storage/models/lustre_file_system_summary.py +921 -0
  294. oci/lustre_file_storage/models/maintenance_window.py +141 -0
  295. oci/lustre_file_storage/models/root_squash_configuration.py +193 -0
  296. oci/lustre_file_storage/models/update_lustre_file_system_details.py +327 -0
  297. oci/lustre_file_storage/models/work_request.py +449 -0
  298. oci/lustre_file_storage/models/work_request_error.py +144 -0
  299. oci/lustre_file_storage/models/work_request_error_collection.py +70 -0
  300. oci/lustre_file_storage/models/work_request_log_entry.py +107 -0
  301. oci/lustre_file_storage/models/work_request_log_entry_collection.py +70 -0
  302. oci/lustre_file_storage/models/work_request_resource.py +205 -0
  303. oci/lustre_file_storage/models/work_request_summary.py +447 -0
  304. oci/lustre_file_storage/models/work_request_summary_collection.py +70 -0
  305. oci/management_agent/management_agent_client.py +28 -28
  306. oci/management_dashboard/dashx_apis_client.py +14 -14
  307. oci/marketplace/account_client.py +2 -2
  308. oci/marketplace/marketplace_client.py +30 -30
  309. oci/marketplace_private_offer/attachment_client.py +5 -5
  310. oci/marketplace_private_offer/offer_client.py +6 -6
  311. oci/marketplace_publisher/attachment_client.py +5 -5
  312. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  313. oci/marketplace_publisher/offer_client.py +6 -6
  314. oci/media_services/media_services_client.py +60 -60
  315. oci/media_services/media_stream_client.py +2 -2
  316. oci/mngdmac/mac_device_client.py +6 -6
  317. oci/mngdmac/mac_order_client.py +22 -22
  318. oci/monitoring/monitoring_client.py +18 -18
  319. oci/mysql/channels_client.py +7 -7
  320. oci/mysql/db_backups_client.py +7 -7
  321. oci/mysql/db_system_client.py +17 -17
  322. oci/mysql/mysqlaas_client.py +7 -7
  323. oci/mysql/replicas_client.py +5 -5
  324. oci/mysql/work_requests_client.py +4 -4
  325. oci/network_firewall/network_firewall_client.py +86 -86
  326. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  327. oci/nosql/nosql_client.py +24 -24
  328. oci/object_storage/object_storage_client.py +55 -55
  329. oci/oce/oce_instance_client.py +10 -10
  330. oci/oci_control_center/occ_metrics_client.py +3 -3
  331. oci/ocvp/cluster_client.py +5 -5
  332. oci/ocvp/esxi_host_client.py +8 -8
  333. oci/ocvp/sddc_client.py +14 -14
  334. oci/ocvp/work_request_client.py +4 -4
  335. oci/oda/management_client.py +59 -59
  336. oci/oda/oda_client.py +17 -17
  337. oci/oda/odapackage_client.py +7 -7
  338. oci/onesubscription/billing_schedule_client.py +1 -1
  339. oci/onesubscription/commitment_client.py +2 -2
  340. oci/onesubscription/computed_usage_client.py +3 -3
  341. oci/onesubscription/invoice_summary_client.py +2 -2
  342. oci/onesubscription/organization_subscription_client.py +1 -1
  343. oci/onesubscription/ratecard_client.py +1 -1
  344. oci/onesubscription/subscribed_service_client.py +2 -2
  345. oci/onesubscription/subscription_client.py +1 -1
  346. oci/ons/notification_control_plane_client.py +6 -6
  347. oci/ons/notification_data_plane_client.py +10 -10
  348. oci/opa/opa_instance_client.py +13 -13
  349. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  350. oci/opensearch/opensearch_cluster_client.py +16 -16
  351. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  352. oci/operator_access_control/access_requests_client.py +10 -10
  353. oci/operator_access_control/operator_actions_client.py +2 -2
  354. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  355. oci/operator_access_control/operator_control_client.py +6 -6
  356. oci/opsi/models/create_operations_insights_warehouse_details.py +33 -2
  357. oci/opsi/models/operations_insights_warehouse.py +49 -2
  358. oci/opsi/models/operations_insights_warehouse_summary.py +33 -2
  359. oci/opsi/models/sql_plan_line.py +66 -0
  360. oci/opsi/models/update_operations_insights_warehouse_details.py +33 -2
  361. oci/opsi/operations_insights_client.py +181 -181
  362. oci/optimizer/optimizer_client.py +26 -26
  363. oci/os_management/event_client.py +8 -8
  364. oci/os_management/os_management_client.py +69 -69
  365. oci/os_management_hub/event_client.py +8 -8
  366. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  367. oci/os_management_hub/managed_instance_client.py +33 -33
  368. oci/os_management_hub/managed_instance_group_client.py +26 -26
  369. oci/os_management_hub/management_station_client.py +10 -10
  370. oci/os_management_hub/onboarding_client.py +13 -13
  371. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  372. oci/os_management_hub/scheduled_job_client.py +7 -7
  373. oci/os_management_hub/software_source_client.py +33 -33
  374. oci/os_management_hub/work_request_client.py +5 -5
  375. oci/osp_gateway/address_rule_service_client.py +1 -1
  376. oci/osp_gateway/address_service_client.py +2 -2
  377. oci/osp_gateway/invoice_service_client.py +5 -5
  378. oci/osp_gateway/subscription_service_client.py +5 -5
  379. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  380. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  381. oci/osub_subscription/commitment_client.py +2 -2
  382. oci/osub_subscription/ratecard_client.py +1 -1
  383. oci/osub_subscription/subscription_client.py +1 -1
  384. oci/osub_usage/computed_usage_client.py +3 -3
  385. oci/psql/postgresql_client.py +34 -34
  386. oci/queue/queue_admin_client.py +11 -11
  387. oci/queue/queue_client.py +8 -8
  388. oci/recovery/database_recovery_client.py +26 -26
  389. oci/redis/redis_cluster_client.py +12 -12
  390. oci/resource_manager/resource_manager_client.py +52 -52
  391. oci/resource_scheduler/schedule_client.py +13 -13
  392. oci/resource_search/resource_search_client.py +3 -3
  393. oci/rover/rover_bundle_client.py +8 -8
  394. oci/rover/rover_cluster_client.py +8 -8
  395. oci/rover/rover_entitlement_client.py +6 -6
  396. oci/rover/rover_node_client.py +15 -15
  397. oci/rover/shape_client.py +1 -1
  398. oci/rover/work_requests_client.py +5 -5
  399. oci/sch/connector_plugins_client.py +2 -2
  400. oci/sch/models/functions_target_details.py +4 -0
  401. oci/sch/models/log_source.py +4 -6
  402. oci/sch/models/monitoring_target_details.py +0 -4
  403. oci/sch/models/notifications_target_details.py +0 -2
  404. oci/sch/models/plugin_source_details.py +4 -4
  405. oci/sch/models/service_connector.py +37 -0
  406. oci/sch/service_connector_client.py +12 -12
  407. oci/secrets/secrets_client.py +3 -3
  408. oci/security_attribute/security_attribute_client.py +18 -18
  409. oci/service_catalog/service_catalog_client.py +26 -26
  410. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  411. oci/service_mesh/service_mesh_client.py +48 -48
  412. oci/stack_monitoring/models/__init__.py +44 -0
  413. oci/stack_monitoring/models/additional_configuration_details.py +70 -0
  414. oci/stack_monitoring/models/agent_extension_handler_configuration.py +277 -0
  415. oci/stack_monitoring/models/agent_extension_handler_configuration_property.py +101 -0
  416. oci/stack_monitoring/models/agent_extension_handler_metric_mapping_details.py +165 -0
  417. oci/stack_monitoring/models/agent_receiver_properties.py +70 -0
  418. oci/stack_monitoring/models/associated_monitored_resource.py +14 -6
  419. oci/stack_monitoring/models/associated_resources_summary.py +14 -6
  420. oci/stack_monitoring/models/auto_promote_config_details.py +1 -1
  421. oci/stack_monitoring/models/availability_metrics_details.py +101 -0
  422. oci/stack_monitoring/models/collectd_resource_name_configuration_details.py +132 -0
  423. oci/stack_monitoring/models/compute_auto_activate_plugin_config_details.py +146 -0
  424. oci/stack_monitoring/models/compute_auto_activate_plugin_config_summary.py +142 -0
  425. oci/stack_monitoring/models/config.py +19 -3
  426. oci/stack_monitoring/models/config_summary.py +8 -0
  427. oci/stack_monitoring/models/create_compute_auto_activate_plugin_config_details.py +107 -0
  428. oci/stack_monitoring/models/create_config_details.py +8 -0
  429. oci/stack_monitoring/models/create_maintenance_window_details.py +68 -2
  430. oci/stack_monitoring/models/create_monitored_resource_type_details.py +9 -5
  431. oci/stack_monitoring/models/create_onboard_config_details.py +259 -0
  432. oci/stack_monitoring/models/dynamic_group_details.py +148 -0
  433. oci/stack_monitoring/models/group_details.py +132 -0
  434. oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.py +18 -6
  435. oci/stack_monitoring/models/license_auto_assign_config_details.py +1 -1
  436. oci/stack_monitoring/models/license_enterprise_extensibility_config_details.py +1 -1
  437. oci/stack_monitoring/models/maintenance_window.py +108 -5
  438. oci/stack_monitoring/models/maintenance_window_summary.py +7 -3
  439. oci/stack_monitoring/models/metric_name_configuration_details.py +101 -0
  440. oci/stack_monitoring/models/monitored_resource.py +14 -6
  441. oci/stack_monitoring/models/monitored_resource_member_summary.py +14 -6
  442. oci/stack_monitoring/models/monitored_resource_summary.py +14 -6
  443. oci/stack_monitoring/models/monitored_resource_task.py +31 -0
  444. oci/stack_monitoring/models/monitored_resource_task_details.py +19 -3
  445. oci/stack_monitoring/models/monitored_resource_task_summary.py +31 -0
  446. oci/stack_monitoring/models/monitored_resource_type.py +129 -5
  447. oci/stack_monitoring/models/monitored_resource_type_summary.py +94 -5
  448. oci/stack_monitoring/models/onboard_config_details.py +296 -0
  449. oci/stack_monitoring/models/onboard_config_summary.py +174 -0
  450. oci/stack_monitoring/models/resource_type_config_details.py +124 -0
  451. oci/stack_monitoring/models/search_monitored_resources_details.py +14 -6
  452. oci/stack_monitoring/models/telegraf_resource_name_configuration_details.py +132 -0
  453. oci/stack_monitoring/models/update_agent_receiver_task_details.py +190 -0
  454. oci/stack_monitoring/models/update_compute_auto_activate_plugin_config_details.py +100 -0
  455. oci/stack_monitoring/models/update_config_details.py +8 -0
  456. oci/stack_monitoring/models/update_maintenance_window_details.py +68 -2
  457. oci/stack_monitoring/models/update_monitored_resource_type_details.py +7 -3
  458. oci/stack_monitoring/models/update_onboard_config_details.py +252 -0
  459. oci/stack_monitoring/models/update_resource_type_config_task_details.py +133 -0
  460. oci/stack_monitoring/models/work_request.py +11 -3
  461. oci/stack_monitoring/models/work_request_summary.py +11 -3
  462. oci/stack_monitoring/stack_monitoring_client.py +121 -93
  463. oci/streaming/stream_admin_client.py +18 -18
  464. oci/streaming/stream_client.py +8 -8
  465. oci/tenant_manager_control_plane/domain_client.py +5 -5
  466. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  467. oci/tenant_manager_control_plane/governance_client.py +2 -2
  468. oci/tenant_manager_control_plane/link_client.py +3 -3
  469. oci/tenant_manager_control_plane/orders_client.py +2 -2
  470. oci/tenant_manager_control_plane/organization_client.py +10 -10
  471. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  472. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  473. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  474. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  475. oci/threat_intelligence/threatintel_client.py +5 -5
  476. oci/usage/resources_client.py +2 -2
  477. oci/usage/rewards_client.py +6 -6
  478. oci/usage/usagelimits_client.py +1 -1
  479. oci/usage_api/usageapi_client.py +33 -33
  480. oci/vault/vaults_client.py +13 -13
  481. oci/vbs_inst/vbs_instance_client.py +10 -10
  482. oci/version.py +1 -1
  483. oci/visual_builder/vb_instance_client.py +14 -14
  484. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  485. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  486. oci/waa/waa_client.py +13 -13
  487. oci/waa/work_request_client.py +4 -4
  488. oci/waas/redirect_client.py +6 -6
  489. oci/waas/waas_client.py +66 -66
  490. oci/waf/waf_client.py +24 -24
  491. oci/work_requests/work_request_client.py +4 -4
  492. oci/zpr/zpr_client.py +15 -15
  493. {oci-2.149.0.dist-info → oci-2.149.2.dist-info}/METADATA +1 -1
  494. {oci-2.149.0.dist-info → oci-2.149.2.dist-info}/RECORD +498 -336
  495. {oci-2.149.0.dist-info → oci-2.149.2.dist-info}/LICENSE.txt +0 -0
  496. {oci-2.149.0.dist-info → oci-2.149.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  497. {oci-2.149.0.dist-info → oci-2.149.2.dist-info}/WHEEL +0 -0
  498. {oci-2.149.0.dist-info → oci-2.149.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1536 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20250228
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from oci._vendor import requests # noqa: F401
10
+ from oci._vendor import six
11
+
12
+ from oci import retry, circuit_breaker # noqa: F401
13
+ from oci.base_client import BaseClient
14
+ from oci.config import get_config_value_or_default, validate_config
15
+ from oci.signer import Signer
16
+ from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
17
+ from oci.exceptions import InvalidAlloyConfig
18
+ from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
19
+ from .models import lustre_file_storage_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class LustreFileStorageClient(object):
24
+ """
25
+ Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see [File Storage with Lustre](/iaas/Content/lustre/home.htm).
26
+ """
27
+
28
+ def __init__(self, config, **kwargs):
29
+ """
30
+ Creates a new service client
31
+
32
+ :param dict config:
33
+ Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
34
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
35
+ the dict using :py:meth:`~oci.config.validate_config`
36
+
37
+ :param str service_endpoint: (optional)
38
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
39
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
40
+ need to specify a service endpoint.
41
+
42
+ :param timeout: (optional)
43
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
44
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
45
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
46
+ :type timeout: float or tuple(float, float)
47
+
48
+ :param signer: (optional)
49
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
50
+ provided in the config parameter.
51
+
52
+ One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
53
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
54
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
55
+
56
+ :param obj retry_strategy: (optional)
57
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
58
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
59
+ Any value provided at the operation level will override whatever is specified at the client level.
60
+
61
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
62
+ is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
63
+
64
+ :param obj circuit_breaker_strategy: (optional)
65
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
66
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
67
+ The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
68
+
69
+ :param function circuit_breaker_callback: (optional)
70
+ Callback function to receive any exceptions triggerred by the circuit breaker.
71
+
72
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
73
+ A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
74
+
75
+ :param allow_control_chars: (optional)
76
+ allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
77
+ allow control characters to be in the response object.
78
+ """
79
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("lustre_file_storage"):
80
+ raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
81
+
82
+ validate_config(config, signer=kwargs.get('signer'))
83
+ if 'signer' in kwargs:
84
+ signer = kwargs['signer']
85
+
86
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
87
+ signer = get_signer_from_authentication_type(config)
88
+
89
+ else:
90
+ signer = Signer(
91
+ tenancy=config["tenancy"],
92
+ user=config["user"],
93
+ fingerprint=config["fingerprint"],
94
+ private_key_file_location=config.get("key_file"),
95
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
96
+ private_key_content=config.get("key_content")
97
+ )
98
+
99
+ base_client_init_kwargs = {
100
+ 'regional_client': True,
101
+ 'service_endpoint': kwargs.get('service_endpoint'),
102
+ 'base_path': '/20250228',
103
+ 'service_endpoint_template': 'https://lustre-file-storage.{region}.oci.{secondLevelDomain}',
104
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
105
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
106
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
107
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
108
+ }
109
+ if 'timeout' in kwargs:
110
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
111
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
112
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
113
+ if 'allow_control_chars' in kwargs:
114
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
115
+ self.base_client = BaseClient("lustre_file_storage", config, signer, lustre_file_storage_type_mapping, **base_client_init_kwargs)
116
+ self.retry_strategy = kwargs.get('retry_strategy')
117
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
118
+
119
+ def cancel_work_request(self, work_request_id, **kwargs):
120
+ """
121
+ Cancels a work request.
122
+
123
+
124
+ :param str work_request_id: (required)
125
+ The `OCID`__ of the asynchronous work request.
126
+
127
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
128
+
129
+ :param str if_match: (optional)
130
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
131
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
132
+ that resource. The resource will be updated or deleted only if the etag you provide
133
+ matches the resource's current etag value.
134
+
135
+ :param str opc_request_id: (optional)
136
+ Unique Oracle-assigned identifier for the request. If you need to contact
137
+ Oracle about a particular request, please provide the request ID.
138
+ The only valid characters for request IDs are letters, numbers,
139
+ underscore, and dash.
140
+
141
+ :param obj retry_strategy: (optional)
142
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
143
+
144
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
145
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
146
+
147
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
148
+
149
+ :param bool allow_control_chars: (optional)
150
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
151
+ By default, the response will not allow control characters in strings
152
+
153
+ :return: A :class:`~oci.response.Response` object with data of type None
154
+ :rtype: :class:`~oci.response.Response`
155
+
156
+ :example:
157
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
158
+ """
159
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
160
+ required_arguments = ['workRequestId']
161
+ resource_path = "/workRequests/{workRequestId}"
162
+ method = "DELETE"
163
+ operation_name = "cancel_work_request"
164
+ api_reference_link = ""
165
+
166
+ # Don't accept unknown kwargs
167
+ expected_kwargs = [
168
+ "allow_control_chars",
169
+ "retry_strategy",
170
+ "if_match",
171
+ "opc_request_id"
172
+ ]
173
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
174
+ if extra_kwargs:
175
+ raise ValueError(
176
+ f"cancel_work_request got unknown kwargs: {extra_kwargs!r}")
177
+
178
+ path_params = {
179
+ "workRequestId": work_request_id
180
+ }
181
+
182
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
183
+
184
+ for (k, v) in six.iteritems(path_params):
185
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
186
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
187
+
188
+ header_params = {
189
+ "accept": "application/json",
190
+ "content-type": "application/json",
191
+ "if-match": kwargs.get("if_match", missing),
192
+ "opc-request-id": kwargs.get("opc_request_id", missing)
193
+ }
194
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
195
+
196
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
197
+ operation_retry_strategy=kwargs.get('retry_strategy'),
198
+ client_retry_strategy=self.retry_strategy
199
+ )
200
+ if retry_strategy is None:
201
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
202
+
203
+ if retry_strategy:
204
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
205
+ self.base_client.add_opc_client_retries_header(header_params)
206
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
207
+ return retry_strategy.make_retrying_call(
208
+ self.base_client.call_api,
209
+ resource_path=resource_path,
210
+ method=method,
211
+ path_params=path_params,
212
+ header_params=header_params,
213
+ allow_control_chars=kwargs.get('allow_control_chars'),
214
+ operation_name=operation_name,
215
+ api_reference_link=api_reference_link,
216
+ required_arguments=required_arguments)
217
+ else:
218
+ return self.base_client.call_api(
219
+ resource_path=resource_path,
220
+ method=method,
221
+ path_params=path_params,
222
+ header_params=header_params,
223
+ allow_control_chars=kwargs.get('allow_control_chars'),
224
+ operation_name=operation_name,
225
+ api_reference_link=api_reference_link,
226
+ required_arguments=required_arguments)
227
+
228
+ def change_lustre_file_system_compartment(self, lustre_file_system_id, change_lustre_file_system_compartment_details, **kwargs):
229
+ """
230
+ Moves a Lustre file system into a different compartment within the same tenancy. For information about moving resources between
231
+ compartments, see `Moving Resources to a Different Compartment`__.
232
+
233
+ __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
234
+
235
+
236
+ :param str lustre_file_system_id: (required)
237
+ The `OCID`__ of the Lustre file system.
238
+
239
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
240
+
241
+ :param oci.lustre_file_storage.models.ChangeLustreFileSystemCompartmentDetails change_lustre_file_system_compartment_details: (required)
242
+ The information to be updated.
243
+
244
+ :param str if_match: (optional)
245
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
246
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
247
+ that resource. The resource will be updated or deleted only if the etag you provide
248
+ matches the resource's current etag value.
249
+
250
+ :param str opc_request_id: (optional)
251
+ Unique Oracle-assigned identifier for the request. If you need to contact
252
+ Oracle about a particular request, please provide the request ID.
253
+ The only valid characters for request IDs are letters, numbers,
254
+ underscore, and dash.
255
+
256
+ :param obj retry_strategy: (optional)
257
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
258
+
259
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
260
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
261
+
262
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
263
+
264
+ :param bool allow_control_chars: (optional)
265
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
266
+ By default, the response will not allow control characters in strings
267
+
268
+ :return: A :class:`~oci.response.Response` object with data of type None
269
+ :rtype: :class:`~oci.response.Response`
270
+
271
+ :example:
272
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/change_lustre_file_system_compartment.py.html>`__ to see an example of how to use change_lustre_file_system_compartment API.
273
+ """
274
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
275
+ required_arguments = ['lustreFileSystemId']
276
+ resource_path = "/lustreFileSystems/{lustreFileSystemId}/actions/changeCompartment"
277
+ method = "POST"
278
+ operation_name = "change_lustre_file_system_compartment"
279
+ api_reference_link = ""
280
+
281
+ # Don't accept unknown kwargs
282
+ expected_kwargs = [
283
+ "allow_control_chars",
284
+ "retry_strategy",
285
+ "if_match",
286
+ "opc_request_id"
287
+ ]
288
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
289
+ if extra_kwargs:
290
+ raise ValueError(
291
+ f"change_lustre_file_system_compartment got unknown kwargs: {extra_kwargs!r}")
292
+
293
+ path_params = {
294
+ "lustreFileSystemId": lustre_file_system_id
295
+ }
296
+
297
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
298
+
299
+ for (k, v) in six.iteritems(path_params):
300
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
301
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
302
+
303
+ header_params = {
304
+ "accept": "application/json",
305
+ "content-type": "application/json",
306
+ "if-match": kwargs.get("if_match", missing),
307
+ "opc-request-id": kwargs.get("opc_request_id", missing)
308
+ }
309
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
310
+
311
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
312
+ operation_retry_strategy=kwargs.get('retry_strategy'),
313
+ client_retry_strategy=self.retry_strategy
314
+ )
315
+ if retry_strategy is None:
316
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
317
+
318
+ if retry_strategy:
319
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
320
+ self.base_client.add_opc_client_retries_header(header_params)
321
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
322
+ return retry_strategy.make_retrying_call(
323
+ self.base_client.call_api,
324
+ resource_path=resource_path,
325
+ method=method,
326
+ path_params=path_params,
327
+ header_params=header_params,
328
+ body=change_lustre_file_system_compartment_details,
329
+ allow_control_chars=kwargs.get('allow_control_chars'),
330
+ operation_name=operation_name,
331
+ api_reference_link=api_reference_link,
332
+ required_arguments=required_arguments)
333
+ else:
334
+ return self.base_client.call_api(
335
+ resource_path=resource_path,
336
+ method=method,
337
+ path_params=path_params,
338
+ header_params=header_params,
339
+ body=change_lustre_file_system_compartment_details,
340
+ allow_control_chars=kwargs.get('allow_control_chars'),
341
+ operation_name=operation_name,
342
+ api_reference_link=api_reference_link,
343
+ required_arguments=required_arguments)
344
+
345
+ def create_lustre_file_system(self, create_lustre_file_system_details, **kwargs):
346
+ """
347
+ Creates a Lustre file system.
348
+
349
+
350
+ :param oci.lustre_file_storage.models.CreateLustreFileSystemDetails create_lustre_file_system_details: (required)
351
+ Details for the new Lustre file system.
352
+
353
+ :param str opc_retry_token: (optional)
354
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
355
+ server error without risk of running that same action again. Retry tokens expire after 24
356
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
357
+ has been deleted and removed from the system, then a retry of the original creation request
358
+ might be rejected.
359
+
360
+ :param str opc_request_id: (optional)
361
+ Unique Oracle-assigned identifier for the request. If you need to contact
362
+ Oracle about a particular request, please provide the request ID.
363
+ The only valid characters for request IDs are letters, numbers,
364
+ underscore, and dash.
365
+
366
+ :param obj retry_strategy: (optional)
367
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
368
+
369
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
370
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
371
+
372
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
373
+
374
+ :param bool allow_control_chars: (optional)
375
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
376
+ By default, the response will not allow control characters in strings
377
+
378
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.lustre_file_storage.models.LustreFileSystem`
379
+ :rtype: :class:`~oci.response.Response`
380
+
381
+ :example:
382
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/create_lustre_file_system.py.html>`__ to see an example of how to use create_lustre_file_system API.
383
+ """
384
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
385
+ required_arguments = []
386
+ resource_path = "/lustreFileSystems"
387
+ method = "POST"
388
+ operation_name = "create_lustre_file_system"
389
+ api_reference_link = ""
390
+
391
+ # Don't accept unknown kwargs
392
+ expected_kwargs = [
393
+ "allow_control_chars",
394
+ "retry_strategy",
395
+ "opc_retry_token",
396
+ "opc_request_id"
397
+ ]
398
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
399
+ if extra_kwargs:
400
+ raise ValueError(
401
+ f"create_lustre_file_system got unknown kwargs: {extra_kwargs!r}")
402
+
403
+ header_params = {
404
+ "accept": "application/json",
405
+ "content-type": "application/json",
406
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
407
+ "opc-request-id": kwargs.get("opc_request_id", missing)
408
+ }
409
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
410
+
411
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
412
+ operation_retry_strategy=kwargs.get('retry_strategy'),
413
+ client_retry_strategy=self.retry_strategy
414
+ )
415
+ if retry_strategy is None:
416
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
417
+
418
+ if retry_strategy:
419
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
420
+ self.base_client.add_opc_retry_token_if_needed(header_params)
421
+ self.base_client.add_opc_client_retries_header(header_params)
422
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
423
+ return retry_strategy.make_retrying_call(
424
+ self.base_client.call_api,
425
+ resource_path=resource_path,
426
+ method=method,
427
+ header_params=header_params,
428
+ body=create_lustre_file_system_details,
429
+ response_type="LustreFileSystem",
430
+ allow_control_chars=kwargs.get('allow_control_chars'),
431
+ operation_name=operation_name,
432
+ api_reference_link=api_reference_link,
433
+ required_arguments=required_arguments)
434
+ else:
435
+ return self.base_client.call_api(
436
+ resource_path=resource_path,
437
+ method=method,
438
+ header_params=header_params,
439
+ body=create_lustre_file_system_details,
440
+ response_type="LustreFileSystem",
441
+ allow_control_chars=kwargs.get('allow_control_chars'),
442
+ operation_name=operation_name,
443
+ api_reference_link=api_reference_link,
444
+ required_arguments=required_arguments)
445
+
446
+ def delete_lustre_file_system(self, lustre_file_system_id, **kwargs):
447
+ """
448
+ Deletes a Lustre file system.
449
+
450
+
451
+ :param str lustre_file_system_id: (required)
452
+ The `OCID`__ of the Lustre file system.
453
+
454
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
455
+
456
+ :param str if_match: (optional)
457
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
458
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
459
+ that resource. The resource will be updated or deleted only if the etag you provide
460
+ matches the resource's current etag value.
461
+
462
+ :param str opc_request_id: (optional)
463
+ Unique Oracle-assigned identifier for the request. If you need to contact
464
+ Oracle about a particular request, please provide the request ID.
465
+ The only valid characters for request IDs are letters, numbers,
466
+ underscore, and dash.
467
+
468
+ :param obj retry_strategy: (optional)
469
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
470
+
471
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
472
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
473
+
474
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
475
+
476
+ :param bool allow_control_chars: (optional)
477
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
478
+ By default, the response will not allow control characters in strings
479
+
480
+ :return: A :class:`~oci.response.Response` object with data of type None
481
+ :rtype: :class:`~oci.response.Response`
482
+
483
+ :example:
484
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/delete_lustre_file_system.py.html>`__ to see an example of how to use delete_lustre_file_system API.
485
+ """
486
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
487
+ required_arguments = ['lustreFileSystemId']
488
+ resource_path = "/lustreFileSystems/{lustreFileSystemId}"
489
+ method = "DELETE"
490
+ operation_name = "delete_lustre_file_system"
491
+ api_reference_link = ""
492
+
493
+ # Don't accept unknown kwargs
494
+ expected_kwargs = [
495
+ "allow_control_chars",
496
+ "retry_strategy",
497
+ "if_match",
498
+ "opc_request_id"
499
+ ]
500
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
501
+ if extra_kwargs:
502
+ raise ValueError(
503
+ f"delete_lustre_file_system got unknown kwargs: {extra_kwargs!r}")
504
+
505
+ path_params = {
506
+ "lustreFileSystemId": lustre_file_system_id
507
+ }
508
+
509
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
510
+
511
+ for (k, v) in six.iteritems(path_params):
512
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
513
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
514
+
515
+ header_params = {
516
+ "accept": "application/json",
517
+ "content-type": "application/json",
518
+ "if-match": kwargs.get("if_match", missing),
519
+ "opc-request-id": kwargs.get("opc_request_id", missing)
520
+ }
521
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
522
+
523
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
524
+ operation_retry_strategy=kwargs.get('retry_strategy'),
525
+ client_retry_strategy=self.retry_strategy
526
+ )
527
+ if retry_strategy is None:
528
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
529
+
530
+ if retry_strategy:
531
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
532
+ self.base_client.add_opc_client_retries_header(header_params)
533
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
534
+ return retry_strategy.make_retrying_call(
535
+ self.base_client.call_api,
536
+ resource_path=resource_path,
537
+ method=method,
538
+ path_params=path_params,
539
+ header_params=header_params,
540
+ allow_control_chars=kwargs.get('allow_control_chars'),
541
+ operation_name=operation_name,
542
+ api_reference_link=api_reference_link,
543
+ required_arguments=required_arguments)
544
+ else:
545
+ return self.base_client.call_api(
546
+ resource_path=resource_path,
547
+ method=method,
548
+ path_params=path_params,
549
+ header_params=header_params,
550
+ allow_control_chars=kwargs.get('allow_control_chars'),
551
+ operation_name=operation_name,
552
+ api_reference_link=api_reference_link,
553
+ required_arguments=required_arguments)
554
+
555
+ def get_lustre_file_system(self, lustre_file_system_id, **kwargs):
556
+ """
557
+ Gets information about a Lustre file system.
558
+
559
+
560
+ :param str lustre_file_system_id: (required)
561
+ The `OCID`__ of the Lustre file system.
562
+
563
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
564
+
565
+ :param str opc_request_id: (optional)
566
+ Unique Oracle-assigned identifier for the request. If you need to contact
567
+ Oracle about a particular request, please provide the request ID.
568
+ The only valid characters for request IDs are letters, numbers,
569
+ underscore, and dash.
570
+
571
+ :param obj retry_strategy: (optional)
572
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
573
+
574
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
575
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
576
+
577
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
578
+
579
+ :param bool allow_control_chars: (optional)
580
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
581
+ By default, the response will not allow control characters in strings
582
+
583
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.lustre_file_storage.models.LustreFileSystem`
584
+ :rtype: :class:`~oci.response.Response`
585
+
586
+ :example:
587
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/get_lustre_file_system.py.html>`__ to see an example of how to use get_lustre_file_system API.
588
+ """
589
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
590
+ required_arguments = ['lustreFileSystemId']
591
+ resource_path = "/lustreFileSystems/{lustreFileSystemId}"
592
+ method = "GET"
593
+ operation_name = "get_lustre_file_system"
594
+ api_reference_link = ""
595
+
596
+ # Don't accept unknown kwargs
597
+ expected_kwargs = [
598
+ "allow_control_chars",
599
+ "retry_strategy",
600
+ "opc_request_id"
601
+ ]
602
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
603
+ if extra_kwargs:
604
+ raise ValueError(
605
+ f"get_lustre_file_system got unknown kwargs: {extra_kwargs!r}")
606
+
607
+ path_params = {
608
+ "lustreFileSystemId": lustre_file_system_id
609
+ }
610
+
611
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
612
+
613
+ for (k, v) in six.iteritems(path_params):
614
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
615
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
616
+
617
+ header_params = {
618
+ "accept": "application/json",
619
+ "content-type": "application/json",
620
+ "opc-request-id": kwargs.get("opc_request_id", missing)
621
+ }
622
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
623
+
624
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
625
+ operation_retry_strategy=kwargs.get('retry_strategy'),
626
+ client_retry_strategy=self.retry_strategy
627
+ )
628
+ if retry_strategy is None:
629
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
630
+
631
+ if retry_strategy:
632
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
633
+ self.base_client.add_opc_client_retries_header(header_params)
634
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
635
+ return retry_strategy.make_retrying_call(
636
+ self.base_client.call_api,
637
+ resource_path=resource_path,
638
+ method=method,
639
+ path_params=path_params,
640
+ header_params=header_params,
641
+ response_type="LustreFileSystem",
642
+ allow_control_chars=kwargs.get('allow_control_chars'),
643
+ operation_name=operation_name,
644
+ api_reference_link=api_reference_link,
645
+ required_arguments=required_arguments)
646
+ else:
647
+ return self.base_client.call_api(
648
+ resource_path=resource_path,
649
+ method=method,
650
+ path_params=path_params,
651
+ header_params=header_params,
652
+ response_type="LustreFileSystem",
653
+ allow_control_chars=kwargs.get('allow_control_chars'),
654
+ operation_name=operation_name,
655
+ api_reference_link=api_reference_link,
656
+ required_arguments=required_arguments)
657
+
658
+ def get_work_request(self, work_request_id, **kwargs):
659
+ """
660
+ Gets the details of a work request.
661
+
662
+
663
+ :param str work_request_id: (required)
664
+ The `OCID`__ of the asynchronous work request.
665
+
666
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
667
+
668
+ :param str opc_request_id: (optional)
669
+ Unique Oracle-assigned identifier for the request. If you need to contact
670
+ Oracle about a particular request, please provide the request ID.
671
+ The only valid characters for request IDs are letters, numbers,
672
+ underscore, and dash.
673
+
674
+ :param obj retry_strategy: (optional)
675
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
676
+
677
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
678
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
679
+
680
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
681
+
682
+ :param bool allow_control_chars: (optional)
683
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
684
+ By default, the response will not allow control characters in strings
685
+
686
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.lustre_file_storage.models.WorkRequest`
687
+ :rtype: :class:`~oci.response.Response`
688
+
689
+ :example:
690
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
691
+ """
692
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
693
+ required_arguments = ['workRequestId']
694
+ resource_path = "/workRequests/{workRequestId}"
695
+ method = "GET"
696
+ operation_name = "get_work_request"
697
+ api_reference_link = ""
698
+
699
+ # Don't accept unknown kwargs
700
+ expected_kwargs = [
701
+ "allow_control_chars",
702
+ "retry_strategy",
703
+ "opc_request_id"
704
+ ]
705
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
706
+ if extra_kwargs:
707
+ raise ValueError(
708
+ f"get_work_request got unknown kwargs: {extra_kwargs!r}")
709
+
710
+ path_params = {
711
+ "workRequestId": work_request_id
712
+ }
713
+
714
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
715
+
716
+ for (k, v) in six.iteritems(path_params):
717
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
718
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
719
+
720
+ header_params = {
721
+ "accept": "application/json",
722
+ "content-type": "application/json",
723
+ "opc-request-id": kwargs.get("opc_request_id", missing)
724
+ }
725
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
726
+
727
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
728
+ operation_retry_strategy=kwargs.get('retry_strategy'),
729
+ client_retry_strategy=self.retry_strategy
730
+ )
731
+ if retry_strategy is None:
732
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
733
+
734
+ if retry_strategy:
735
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
736
+ self.base_client.add_opc_client_retries_header(header_params)
737
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
738
+ return retry_strategy.make_retrying_call(
739
+ self.base_client.call_api,
740
+ resource_path=resource_path,
741
+ method=method,
742
+ path_params=path_params,
743
+ header_params=header_params,
744
+ response_type="WorkRequest",
745
+ allow_control_chars=kwargs.get('allow_control_chars'),
746
+ operation_name=operation_name,
747
+ api_reference_link=api_reference_link,
748
+ required_arguments=required_arguments)
749
+ else:
750
+ return self.base_client.call_api(
751
+ resource_path=resource_path,
752
+ method=method,
753
+ path_params=path_params,
754
+ header_params=header_params,
755
+ response_type="WorkRequest",
756
+ allow_control_chars=kwargs.get('allow_control_chars'),
757
+ operation_name=operation_name,
758
+ api_reference_link=api_reference_link,
759
+ required_arguments=required_arguments)
760
+
761
+ def list_lustre_file_systems(self, **kwargs):
762
+ """
763
+ Gets a list of Lustre file systems.
764
+
765
+
766
+ :param str compartment_id: (optional)
767
+ The `OCID`__ of the compartment in which to list resources.
768
+
769
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
770
+
771
+ :param str availability_domain: (optional)
772
+ The name of the availability domain.
773
+
774
+ Example: `Uocm:PHX-AD-1`
775
+
776
+ :param str lifecycle_state: (optional)
777
+ A filter to return only resources that match the given lifecycle state. The
778
+ state value is case-insensitive.
779
+
780
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
781
+
782
+ :param str display_name: (optional)
783
+ A filter to return only resources that match the given display name exactly.
784
+
785
+ :param str id: (optional)
786
+ The `OCID`__ of the Lustre file system.
787
+
788
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
789
+
790
+ :param int limit: (optional)
791
+ For list pagination. The maximum number of results per page, or items to return in a
792
+ paginated \"List\" call. For important details about how pagination works, see
793
+ `List Pagination`__.
794
+
795
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
796
+
797
+ :param str page: (optional)
798
+ For list pagination. The value of the opc-next-page response header from the previous
799
+ \"List\" call. For important details about how pagination works, see
800
+ `List Pagination`__.
801
+
802
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
803
+
804
+ :param str sort_order: (optional)
805
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
806
+
807
+ Allowed values are: "ASC", "DESC"
808
+
809
+ :param str sort_by: (optional)
810
+ The field to sort by. You can provide only one sort order. Default order for `timeCreated`
811
+ is descending. Default order for `displayName` is ascending.
812
+
813
+ Allowed values are: "timeCreated", "displayName"
814
+
815
+ :param str opc_request_id: (optional)
816
+ Unique Oracle-assigned identifier for the request. If you need to contact
817
+ Oracle about a particular request, please provide the request ID.
818
+ The only valid characters for request IDs are letters, numbers,
819
+ underscore, and dash.
820
+
821
+ :param obj retry_strategy: (optional)
822
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
823
+
824
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
825
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
826
+
827
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
828
+
829
+ :param bool allow_control_chars: (optional)
830
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
831
+ By default, the response will not allow control characters in strings
832
+
833
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.lustre_file_storage.models.LustreFileSystemCollection`
834
+ :rtype: :class:`~oci.response.Response`
835
+
836
+ :example:
837
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/list_lustre_file_systems.py.html>`__ to see an example of how to use list_lustre_file_systems API.
838
+ """
839
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
840
+ required_arguments = []
841
+ resource_path = "/lustreFileSystems"
842
+ method = "GET"
843
+ operation_name = "list_lustre_file_systems"
844
+ api_reference_link = ""
845
+
846
+ # Don't accept unknown kwargs
847
+ expected_kwargs = [
848
+ "allow_control_chars",
849
+ "retry_strategy",
850
+ "compartment_id",
851
+ "availability_domain",
852
+ "lifecycle_state",
853
+ "display_name",
854
+ "id",
855
+ "limit",
856
+ "page",
857
+ "sort_order",
858
+ "sort_by",
859
+ "opc_request_id"
860
+ ]
861
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
862
+ if extra_kwargs:
863
+ raise ValueError(
864
+ f"list_lustre_file_systems got unknown kwargs: {extra_kwargs!r}")
865
+
866
+ if 'lifecycle_state' in kwargs:
867
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
868
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
869
+ raise ValueError(
870
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
871
+ )
872
+
873
+ if 'sort_order' in kwargs:
874
+ sort_order_allowed_values = ["ASC", "DESC"]
875
+ if kwargs['sort_order'] not in sort_order_allowed_values:
876
+ raise ValueError(
877
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
878
+ )
879
+
880
+ if 'sort_by' in kwargs:
881
+ sort_by_allowed_values = ["timeCreated", "displayName"]
882
+ if kwargs['sort_by'] not in sort_by_allowed_values:
883
+ raise ValueError(
884
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
885
+ )
886
+
887
+ query_params = {
888
+ "compartmentId": kwargs.get("compartment_id", missing),
889
+ "availabilityDomain": kwargs.get("availability_domain", missing),
890
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
891
+ "displayName": kwargs.get("display_name", missing),
892
+ "id": kwargs.get("id", missing),
893
+ "limit": kwargs.get("limit", missing),
894
+ "page": kwargs.get("page", missing),
895
+ "sortOrder": kwargs.get("sort_order", missing),
896
+ "sortBy": kwargs.get("sort_by", missing)
897
+ }
898
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
899
+
900
+ header_params = {
901
+ "accept": "application/json",
902
+ "content-type": "application/json",
903
+ "opc-request-id": kwargs.get("opc_request_id", missing)
904
+ }
905
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
906
+
907
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
908
+ operation_retry_strategy=kwargs.get('retry_strategy'),
909
+ client_retry_strategy=self.retry_strategy
910
+ )
911
+ if retry_strategy is None:
912
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
913
+
914
+ if retry_strategy:
915
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
916
+ self.base_client.add_opc_client_retries_header(header_params)
917
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
918
+ return retry_strategy.make_retrying_call(
919
+ self.base_client.call_api,
920
+ resource_path=resource_path,
921
+ method=method,
922
+ query_params=query_params,
923
+ header_params=header_params,
924
+ response_type="LustreFileSystemCollection",
925
+ allow_control_chars=kwargs.get('allow_control_chars'),
926
+ operation_name=operation_name,
927
+ api_reference_link=api_reference_link,
928
+ required_arguments=required_arguments)
929
+ else:
930
+ return self.base_client.call_api(
931
+ resource_path=resource_path,
932
+ method=method,
933
+ query_params=query_params,
934
+ header_params=header_params,
935
+ response_type="LustreFileSystemCollection",
936
+ allow_control_chars=kwargs.get('allow_control_chars'),
937
+ operation_name=operation_name,
938
+ api_reference_link=api_reference_link,
939
+ required_arguments=required_arguments)
940
+
941
+ def list_work_request_errors(self, work_request_id, **kwargs):
942
+ """
943
+ Lists the errors for a work request.
944
+
945
+
946
+ :param str work_request_id: (required)
947
+ The `OCID`__ of the asynchronous work request.
948
+
949
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
950
+
951
+ :param str opc_request_id: (optional)
952
+ Unique Oracle-assigned identifier for the request. If you need to contact
953
+ Oracle about a particular request, please provide the request ID.
954
+ The only valid characters for request IDs are letters, numbers,
955
+ underscore, and dash.
956
+
957
+ :param str page: (optional)
958
+ For list pagination. The value of the opc-next-page response header from the previous
959
+ \"List\" call. For important details about how pagination works, see
960
+ `List Pagination`__.
961
+
962
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
963
+
964
+ :param int limit: (optional)
965
+ For list pagination. The maximum number of results per page, or items to return in a
966
+ paginated \"List\" call. For important details about how pagination works, see
967
+ `List Pagination`__.
968
+
969
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
970
+
971
+ :param str sort_by: (optional)
972
+ The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
973
+
974
+ Allowed values are: "timestamp"
975
+
976
+ :param str sort_order: (optional)
977
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
978
+
979
+ Allowed values are: "ASC", "DESC"
980
+
981
+ :param obj retry_strategy: (optional)
982
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
983
+
984
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
985
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
986
+
987
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
988
+
989
+ :param bool allow_control_chars: (optional)
990
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
991
+ By default, the response will not allow control characters in strings
992
+
993
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.lustre_file_storage.models.WorkRequestErrorCollection`
994
+ :rtype: :class:`~oci.response.Response`
995
+
996
+ :example:
997
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
998
+ """
999
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1000
+ required_arguments = ['workRequestId']
1001
+ resource_path = "/workRequests/{workRequestId}/errors"
1002
+ method = "GET"
1003
+ operation_name = "list_work_request_errors"
1004
+ api_reference_link = ""
1005
+
1006
+ # Don't accept unknown kwargs
1007
+ expected_kwargs = [
1008
+ "allow_control_chars",
1009
+ "retry_strategy",
1010
+ "opc_request_id",
1011
+ "page",
1012
+ "limit",
1013
+ "sort_by",
1014
+ "sort_order"
1015
+ ]
1016
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1017
+ if extra_kwargs:
1018
+ raise ValueError(
1019
+ f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}")
1020
+
1021
+ path_params = {
1022
+ "workRequestId": work_request_id
1023
+ }
1024
+
1025
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1026
+
1027
+ for (k, v) in six.iteritems(path_params):
1028
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1029
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1030
+
1031
+ if 'sort_by' in kwargs:
1032
+ sort_by_allowed_values = ["timestamp"]
1033
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1034
+ raise ValueError(
1035
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1036
+ )
1037
+
1038
+ if 'sort_order' in kwargs:
1039
+ sort_order_allowed_values = ["ASC", "DESC"]
1040
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1041
+ raise ValueError(
1042
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1043
+ )
1044
+
1045
+ query_params = {
1046
+ "page": kwargs.get("page", missing),
1047
+ "limit": kwargs.get("limit", missing),
1048
+ "sortBy": kwargs.get("sort_by", missing),
1049
+ "sortOrder": kwargs.get("sort_order", missing)
1050
+ }
1051
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1052
+
1053
+ header_params = {
1054
+ "accept": "application/json",
1055
+ "content-type": "application/json",
1056
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1057
+ }
1058
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1059
+
1060
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1061
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1062
+ client_retry_strategy=self.retry_strategy
1063
+ )
1064
+ if retry_strategy is None:
1065
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1066
+
1067
+ if retry_strategy:
1068
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1069
+ self.base_client.add_opc_client_retries_header(header_params)
1070
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1071
+ return retry_strategy.make_retrying_call(
1072
+ self.base_client.call_api,
1073
+ resource_path=resource_path,
1074
+ method=method,
1075
+ path_params=path_params,
1076
+ query_params=query_params,
1077
+ header_params=header_params,
1078
+ response_type="WorkRequestErrorCollection",
1079
+ allow_control_chars=kwargs.get('allow_control_chars'),
1080
+ operation_name=operation_name,
1081
+ api_reference_link=api_reference_link,
1082
+ required_arguments=required_arguments)
1083
+ else:
1084
+ return self.base_client.call_api(
1085
+ resource_path=resource_path,
1086
+ method=method,
1087
+ path_params=path_params,
1088
+ query_params=query_params,
1089
+ header_params=header_params,
1090
+ response_type="WorkRequestErrorCollection",
1091
+ allow_control_chars=kwargs.get('allow_control_chars'),
1092
+ operation_name=operation_name,
1093
+ api_reference_link=api_reference_link,
1094
+ required_arguments=required_arguments)
1095
+
1096
+ def list_work_request_logs(self, work_request_id, **kwargs):
1097
+ """
1098
+ Lists the logs for a work request.
1099
+
1100
+
1101
+ :param str work_request_id: (required)
1102
+ The `OCID`__ of the asynchronous work request.
1103
+
1104
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1105
+
1106
+ :param str opc_request_id: (optional)
1107
+ Unique Oracle-assigned identifier for the request. If you need to contact
1108
+ Oracle about a particular request, please provide the request ID.
1109
+ The only valid characters for request IDs are letters, numbers,
1110
+ underscore, and dash.
1111
+
1112
+ :param str page: (optional)
1113
+ For list pagination. The value of the opc-next-page response header from the previous
1114
+ \"List\" call. For important details about how pagination works, see
1115
+ `List Pagination`__.
1116
+
1117
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1118
+
1119
+ :param int limit: (optional)
1120
+ For list pagination. The maximum number of results per page, or items to return in a
1121
+ paginated \"List\" call. For important details about how pagination works, see
1122
+ `List Pagination`__.
1123
+
1124
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1125
+
1126
+ :param str sort_by: (optional)
1127
+ The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
1128
+
1129
+ Allowed values are: "timestamp"
1130
+
1131
+ :param str sort_order: (optional)
1132
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1133
+
1134
+ Allowed values are: "ASC", "DESC"
1135
+
1136
+ :param obj retry_strategy: (optional)
1137
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1138
+
1139
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1140
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1141
+
1142
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1143
+
1144
+ :param bool allow_control_chars: (optional)
1145
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1146
+ By default, the response will not allow control characters in strings
1147
+
1148
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.lustre_file_storage.models.WorkRequestLogEntryCollection`
1149
+ :rtype: :class:`~oci.response.Response`
1150
+
1151
+ :example:
1152
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
1153
+ """
1154
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1155
+ required_arguments = ['workRequestId']
1156
+ resource_path = "/workRequests/{workRequestId}/logs"
1157
+ method = "GET"
1158
+ operation_name = "list_work_request_logs"
1159
+ api_reference_link = ""
1160
+
1161
+ # Don't accept unknown kwargs
1162
+ expected_kwargs = [
1163
+ "allow_control_chars",
1164
+ "retry_strategy",
1165
+ "opc_request_id",
1166
+ "page",
1167
+ "limit",
1168
+ "sort_by",
1169
+ "sort_order"
1170
+ ]
1171
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1172
+ if extra_kwargs:
1173
+ raise ValueError(
1174
+ f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}")
1175
+
1176
+ path_params = {
1177
+ "workRequestId": work_request_id
1178
+ }
1179
+
1180
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1181
+
1182
+ for (k, v) in six.iteritems(path_params):
1183
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1184
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1185
+
1186
+ if 'sort_by' in kwargs:
1187
+ sort_by_allowed_values = ["timestamp"]
1188
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1189
+ raise ValueError(
1190
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1191
+ )
1192
+
1193
+ if 'sort_order' in kwargs:
1194
+ sort_order_allowed_values = ["ASC", "DESC"]
1195
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1196
+ raise ValueError(
1197
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1198
+ )
1199
+
1200
+ query_params = {
1201
+ "page": kwargs.get("page", missing),
1202
+ "limit": kwargs.get("limit", missing),
1203
+ "sortBy": kwargs.get("sort_by", missing),
1204
+ "sortOrder": kwargs.get("sort_order", missing)
1205
+ }
1206
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1207
+
1208
+ header_params = {
1209
+ "accept": "application/json",
1210
+ "content-type": "application/json",
1211
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1212
+ }
1213
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1214
+
1215
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1216
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1217
+ client_retry_strategy=self.retry_strategy
1218
+ )
1219
+ if retry_strategy is None:
1220
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1221
+
1222
+ if retry_strategy:
1223
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1224
+ self.base_client.add_opc_client_retries_header(header_params)
1225
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1226
+ return retry_strategy.make_retrying_call(
1227
+ self.base_client.call_api,
1228
+ resource_path=resource_path,
1229
+ method=method,
1230
+ path_params=path_params,
1231
+ query_params=query_params,
1232
+ header_params=header_params,
1233
+ response_type="WorkRequestLogEntryCollection",
1234
+ allow_control_chars=kwargs.get('allow_control_chars'),
1235
+ operation_name=operation_name,
1236
+ api_reference_link=api_reference_link,
1237
+ required_arguments=required_arguments)
1238
+ else:
1239
+ return self.base_client.call_api(
1240
+ resource_path=resource_path,
1241
+ method=method,
1242
+ path_params=path_params,
1243
+ query_params=query_params,
1244
+ header_params=header_params,
1245
+ response_type="WorkRequestLogEntryCollection",
1246
+ allow_control_chars=kwargs.get('allow_control_chars'),
1247
+ operation_name=operation_name,
1248
+ api_reference_link=api_reference_link,
1249
+ required_arguments=required_arguments)
1250
+
1251
+ def list_work_requests(self, **kwargs):
1252
+ """
1253
+ Lists the work requests in a compartment.
1254
+
1255
+
1256
+ :param str compartment_id: (optional)
1257
+ The `OCID`__ of the compartment in which to list resources.
1258
+
1259
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1260
+
1261
+ :param str work_request_id: (optional)
1262
+ The `OCID`__ of the asynchronous work request.
1263
+
1264
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1265
+
1266
+ :param str status: (optional)
1267
+ A filter to return only the resources that match the given lifecycle state.
1268
+
1269
+ Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
1270
+
1271
+ :param str resource_id: (optional)
1272
+ The `OCID`__ of the resource affected by the work request.
1273
+
1274
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1275
+
1276
+ :param str opc_request_id: (optional)
1277
+ Unique Oracle-assigned identifier for the request. If you need to contact
1278
+ Oracle about a particular request, please provide the request ID.
1279
+ The only valid characters for request IDs are letters, numbers,
1280
+ underscore, and dash.
1281
+
1282
+ :param str page: (optional)
1283
+ For list pagination. The value of the opc-next-page response header from the previous
1284
+ \"List\" call. For important details about how pagination works, see
1285
+ `List Pagination`__.
1286
+
1287
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1288
+
1289
+ :param int limit: (optional)
1290
+ For list pagination. The maximum number of results per page, or items to return in a
1291
+ paginated \"List\" call. For important details about how pagination works, see
1292
+ `List Pagination`__.
1293
+
1294
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1295
+
1296
+ :param str sort_order: (optional)
1297
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1298
+
1299
+ Allowed values are: "ASC", "DESC"
1300
+
1301
+ :param str sort_by: (optional)
1302
+ The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending.
1303
+
1304
+ Allowed values are: "timeAccepted"
1305
+
1306
+ :param obj retry_strategy: (optional)
1307
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1308
+
1309
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1310
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1311
+
1312
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1313
+
1314
+ :param bool allow_control_chars: (optional)
1315
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1316
+ By default, the response will not allow control characters in strings
1317
+
1318
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.lustre_file_storage.models.WorkRequestSummaryCollection`
1319
+ :rtype: :class:`~oci.response.Response`
1320
+
1321
+ :example:
1322
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
1323
+ """
1324
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1325
+ required_arguments = []
1326
+ resource_path = "/workRequests"
1327
+ method = "GET"
1328
+ operation_name = "list_work_requests"
1329
+ api_reference_link = ""
1330
+
1331
+ # Don't accept unknown kwargs
1332
+ expected_kwargs = [
1333
+ "allow_control_chars",
1334
+ "retry_strategy",
1335
+ "compartment_id",
1336
+ "work_request_id",
1337
+ "status",
1338
+ "resource_id",
1339
+ "opc_request_id",
1340
+ "page",
1341
+ "limit",
1342
+ "sort_order",
1343
+ "sort_by"
1344
+ ]
1345
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1346
+ if extra_kwargs:
1347
+ raise ValueError(
1348
+ f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
1349
+
1350
+ if 'status' in kwargs:
1351
+ status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
1352
+ if kwargs['status'] not in status_allowed_values:
1353
+ raise ValueError(
1354
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
1355
+ )
1356
+
1357
+ if 'sort_order' in kwargs:
1358
+ sort_order_allowed_values = ["ASC", "DESC"]
1359
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1360
+ raise ValueError(
1361
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1362
+ )
1363
+
1364
+ if 'sort_by' in kwargs:
1365
+ sort_by_allowed_values = ["timeAccepted"]
1366
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1367
+ raise ValueError(
1368
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1369
+ )
1370
+
1371
+ query_params = {
1372
+ "compartmentId": kwargs.get("compartment_id", missing),
1373
+ "workRequestId": kwargs.get("work_request_id", missing),
1374
+ "status": kwargs.get("status", missing),
1375
+ "resourceId": kwargs.get("resource_id", missing),
1376
+ "page": kwargs.get("page", missing),
1377
+ "limit": kwargs.get("limit", missing),
1378
+ "sortOrder": kwargs.get("sort_order", missing),
1379
+ "sortBy": kwargs.get("sort_by", missing)
1380
+ }
1381
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1382
+
1383
+ header_params = {
1384
+ "accept": "application/json",
1385
+ "content-type": "application/json",
1386
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1387
+ }
1388
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1389
+
1390
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1391
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1392
+ client_retry_strategy=self.retry_strategy
1393
+ )
1394
+ if retry_strategy is None:
1395
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1396
+
1397
+ if retry_strategy:
1398
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1399
+ self.base_client.add_opc_client_retries_header(header_params)
1400
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1401
+ return retry_strategy.make_retrying_call(
1402
+ self.base_client.call_api,
1403
+ resource_path=resource_path,
1404
+ method=method,
1405
+ query_params=query_params,
1406
+ header_params=header_params,
1407
+ response_type="WorkRequestSummaryCollection",
1408
+ allow_control_chars=kwargs.get('allow_control_chars'),
1409
+ operation_name=operation_name,
1410
+ api_reference_link=api_reference_link,
1411
+ required_arguments=required_arguments)
1412
+ else:
1413
+ return self.base_client.call_api(
1414
+ resource_path=resource_path,
1415
+ method=method,
1416
+ query_params=query_params,
1417
+ header_params=header_params,
1418
+ response_type="WorkRequestSummaryCollection",
1419
+ allow_control_chars=kwargs.get('allow_control_chars'),
1420
+ operation_name=operation_name,
1421
+ api_reference_link=api_reference_link,
1422
+ required_arguments=required_arguments)
1423
+
1424
+ def update_lustre_file_system(self, lustre_file_system_id, update_lustre_file_system_details, **kwargs):
1425
+ """
1426
+ Updates a Lustre file system.
1427
+
1428
+
1429
+ :param str lustre_file_system_id: (required)
1430
+ The `OCID`__ of the Lustre file system.
1431
+
1432
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1433
+
1434
+ :param oci.lustre_file_storage.models.UpdateLustreFileSystemDetails update_lustre_file_system_details: (required)
1435
+ The information to be updated.
1436
+
1437
+ :param str if_match: (optional)
1438
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
1439
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
1440
+ that resource. The resource will be updated or deleted only if the etag you provide
1441
+ matches the resource's current etag value.
1442
+
1443
+ :param str opc_request_id: (optional)
1444
+ Unique Oracle-assigned identifier for the request. If you need to contact
1445
+ Oracle about a particular request, please provide the request ID.
1446
+ The only valid characters for request IDs are letters, numbers,
1447
+ underscore, and dash.
1448
+
1449
+ :param obj retry_strategy: (optional)
1450
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1451
+
1452
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1453
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1454
+
1455
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1456
+
1457
+ :param bool allow_control_chars: (optional)
1458
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1459
+ By default, the response will not allow control characters in strings
1460
+
1461
+ :return: A :class:`~oci.response.Response` object with data of type None
1462
+ :rtype: :class:`~oci.response.Response`
1463
+
1464
+ :example:
1465
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.149.2/lustrefilestorage/update_lustre_file_system.py.html>`__ to see an example of how to use update_lustre_file_system API.
1466
+ """
1467
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1468
+ required_arguments = ['lustreFileSystemId']
1469
+ resource_path = "/lustreFileSystems/{lustreFileSystemId}"
1470
+ method = "PUT"
1471
+ operation_name = "update_lustre_file_system"
1472
+ api_reference_link = ""
1473
+
1474
+ # Don't accept unknown kwargs
1475
+ expected_kwargs = [
1476
+ "allow_control_chars",
1477
+ "retry_strategy",
1478
+ "if_match",
1479
+ "opc_request_id"
1480
+ ]
1481
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1482
+ if extra_kwargs:
1483
+ raise ValueError(
1484
+ f"update_lustre_file_system got unknown kwargs: {extra_kwargs!r}")
1485
+
1486
+ path_params = {
1487
+ "lustreFileSystemId": lustre_file_system_id
1488
+ }
1489
+
1490
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1491
+
1492
+ for (k, v) in six.iteritems(path_params):
1493
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1494
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1495
+
1496
+ header_params = {
1497
+ "accept": "application/json",
1498
+ "content-type": "application/json",
1499
+ "if-match": kwargs.get("if_match", missing),
1500
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1501
+ }
1502
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1503
+
1504
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1505
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1506
+ client_retry_strategy=self.retry_strategy
1507
+ )
1508
+ if retry_strategy is None:
1509
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1510
+
1511
+ if retry_strategy:
1512
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1513
+ self.base_client.add_opc_client_retries_header(header_params)
1514
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1515
+ return retry_strategy.make_retrying_call(
1516
+ self.base_client.call_api,
1517
+ resource_path=resource_path,
1518
+ method=method,
1519
+ path_params=path_params,
1520
+ header_params=header_params,
1521
+ body=update_lustre_file_system_details,
1522
+ allow_control_chars=kwargs.get('allow_control_chars'),
1523
+ operation_name=operation_name,
1524
+ api_reference_link=api_reference_link,
1525
+ required_arguments=required_arguments)
1526
+ else:
1527
+ return self.base_client.call_api(
1528
+ resource_path=resource_path,
1529
+ method=method,
1530
+ path_params=path_params,
1531
+ header_params=header_params,
1532
+ body=update_lustre_file_system_details,
1533
+ allow_control_chars=kwargs.get('allow_control_chars'),
1534
+ operation_name=operation_name,
1535
+ api_reference_link=api_reference_link,
1536
+ required_arguments=required_arguments)