oci 2.147.0__py3-none-any.whl → 2.148.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  2. oci/adm/application_dependency_management_client.py +36 -36
  3. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  4. oci/ai_document/ai_service_document_client.py +26 -26
  5. oci/ai_language/ai_service_language_client.py +44 -44
  6. oci/ai_speech/ai_service_speech_client.py +19 -19
  7. oci/ai_vision/ai_service_vision_client.py +28 -28
  8. oci/analytics/analytics_client.py +24 -24
  9. oci/announcements_service/announcement_client.py +5 -5
  10. oci/announcements_service/announcement_subscription_client.py +9 -9
  11. oci/announcements_service/announcements_preferences_client.py +4 -4
  12. oci/announcements_service/service_client.py +1 -1
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +9 -9
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +57 -57
  22. oci/apm_synthetics/models/ftp_monitor_configuration.py +2 -2
  23. oci/apm_traces/attributes_client.py +8 -8
  24. oci/apm_traces/query_client.py +2 -2
  25. oci/apm_traces/trace_client.py +4 -4
  26. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  27. oci/artifacts/artifacts_client.py +32 -32
  28. oci/audit/audit_client.py +3 -3
  29. oci/autoscaling/auto_scaling_client.py +11 -11
  30. oci/bastion/bastion_client.py +15 -15
  31. oci/bds/bds_client.py +84 -84
  32. oci/blockchain/blockchain_platform_client.py +27 -27
  33. oci/budget/budget_client.py +10 -10
  34. oci/capacity_management/capacity_management_client.py +32 -32
  35. oci/certificates/certificates_client.py +5 -5
  36. oci/certificates_management/certificates_management_client.py +32 -32
  37. oci/cims/incident_client.py +6 -6
  38. oci/cloud_bridge/common_client.py +5 -5
  39. oci/cloud_bridge/discovery_client.py +15 -15
  40. oci/cloud_bridge/inventory_client.py +16 -16
  41. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  42. oci/cloud_guard/cloud_guard_client.py +155 -155
  43. oci/cloud_migrations/migration_client.py +43 -43
  44. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  45. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  46. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  47. oci/compute_instance_agent/plugin_client.py +2 -2
  48. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  49. oci/container_engine/container_engine_client.py +44 -44
  50. oci/container_instances/container_instance_client.py +18 -18
  51. oci/core/blockstorage_client.py +60 -60
  52. oci/core/compute_client.py +102 -102
  53. oci/core/compute_management_client.py +32 -32
  54. oci/core/virtual_network_client.py +258 -258
  55. oci/dashboard_service/dashboard_client.py +6 -6
  56. oci/dashboard_service/dashboard_group_client.py +6 -6
  57. oci/data_catalog/data_catalog_client.py +149 -149
  58. oci/data_flow/data_flow_client.py +45 -45
  59. oci/data_integration/data_integration_client.py +163 -163
  60. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  61. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  62. oci/data_safe/data_safe_client.py +3343 -1855
  63. oci/data_safe/data_safe_client_composite_operations.py +217 -0
  64. oci/data_safe/models/__init__.py +28 -0
  65. oci/data_safe/models/change_sensitive_type_group_compartment_details.py +72 -0
  66. oci/data_safe/models/create_discovery_job_details.py +33 -0
  67. oci/data_safe/models/create_sensitive_data_model_details.py +33 -0
  68. oci/data_safe/models/create_sensitive_type_group_details.py +210 -0
  69. oci/data_safe/models/discovery_job.py +31 -0
  70. oci/data_safe/models/grouped_sensitive_type_collection.py +72 -0
  71. oci/data_safe/models/grouped_sensitive_type_summary.py +72 -0
  72. oci/data_safe/models/mask_data_details.py +53 -0
  73. oci/{opensearch/models/pipeline_validation_error_details.py → data_safe/models/masking_error_collection.py} +25 -21
  74. oci/data_safe/models/masking_error_summary.py +189 -0
  75. oci/data_safe/models/masking_report.py +111 -2
  76. oci/data_safe/models/masking_report_summary.py +111 -2
  77. oci/data_safe/models/patch_grouped_sensitive_types_details.py +72 -0
  78. oci/data_safe/models/report_definition.py +14 -6
  79. oci/data_safe/models/report_definition_summary.py +14 -6
  80. oci/data_safe/models/sensitive_column_analytics_collection.py +72 -0
  81. oci/data_safe/models/sensitive_column_analytics_dimensions.py +227 -0
  82. oci/data_safe/models/sensitive_column_analytics_summary.py +99 -0
  83. oci/data_safe/models/sensitive_data_model.py +31 -0
  84. oci/data_safe/models/sensitive_type_group.py +438 -0
  85. oci/data_safe/models/sensitive_type_group_collection.py +72 -0
  86. oci/data_safe/models/sensitive_type_group_summary.py +438 -0
  87. oci/data_safe/models/update_sensitive_data_model_details.py +31 -0
  88. oci/data_safe/models/update_sensitive_type_group_details.py +179 -0
  89. oci/data_science/data_science_client.py +1849 -409
  90. oci/data_science/data_science_client_composite_operations.py +44 -0
  91. oci/data_science/models/__init__.py +6 -0
  92. oci/data_science/models/metadata.py +74 -2
  93. oci/data_science/models/model.py +78 -0
  94. oci/data_science/models/model_artifact_reference_details.py +101 -0
  95. oci/data_science/models/model_summary.py +78 -0
  96. oci/data_science/models/model_version_set.py +47 -0
  97. oci/data_science/models/model_version_set_summary.py +47 -0
  98. oci/data_science/models/oss_model_artifact_reference_details.py +144 -0
  99. oci/data_science/models/register_model_artifact_reference_details.py +72 -0
  100. oci/data_science/models/work_request.py +7 -3
  101. oci/data_science/models/work_request_summary.py +7 -3
  102. oci/database/database_client.py +453 -418
  103. oci/database/models/application_vip.py +33 -2
  104. oci/database/models/application_vip_summary.py +33 -2
  105. oci/database/models/cloud_vm_cluster.py +141 -8
  106. oci/database/models/cloud_vm_cluster_summary.py +141 -8
  107. oci/database/models/create_application_vip_details.py +35 -4
  108. oci/database/models/create_cloud_vm_cluster_details.py +49 -2
  109. oci/database/models/create_vm_cluster_details.py +47 -0
  110. oci/database/models/db_node.py +90 -8
  111. oci/database/models/db_node_summary.py +90 -8
  112. oci/database/models/vm_cluster.py +47 -0
  113. oci/database/models/vm_cluster_summary.py +47 -0
  114. oci/database_management/db_management_client.py +228 -228
  115. oci/database_management/diagnosability_client.py +4 -4
  116. oci/database_management/managed_my_sql_databases_client.py +9 -9
  117. oci/database_management/perfhub_client.py +1 -1
  118. oci/database_management/sql_tuning_client.py +17 -17
  119. oci/database_migration/database_migration_client.py +42 -42
  120. oci/database_tools/database_tools_client.py +23 -23
  121. oci/dblm/db_life_cycle_management_client.py +12 -12
  122. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  123. oci/delegate_access_control/work_request_client.py +4 -4
  124. oci/demand_signal/occ_demand_signal_client.py +7 -7
  125. oci/desktops/desktop_service_client.py +21 -21
  126. oci/devops/devops_client.py +141 -141
  127. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  128. oci/dns/dns_client.py +54 -54
  129. oci/dts/appliance_export_job_client.py +6 -6
  130. oci/dts/shipping_vendors_client.py +1 -1
  131. oci/dts/transfer_appliance_client.py +8 -8
  132. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  133. oci/dts/transfer_device_client.py +5 -5
  134. oci/dts/transfer_job_client.py +6 -6
  135. oci/dts/transfer_package_client.py +7 -7
  136. oci/em_warehouse/em_warehouse_client.py +13 -13
  137. oci/email/email_client.py +31 -31
  138. oci/email_data_plane/email_dp_client.py +1 -1
  139. oci/events/events_client.py +6 -6
  140. oci/file_storage/file_storage_client.py +74 -74
  141. oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
  142. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  143. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  144. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  145. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
  146. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  147. oci/functions/functions_invoke_client.py +1 -1
  148. oci/functions/functions_management_client.py +16 -16
  149. oci/fusion_apps/fusion_applications_client.py +41 -41
  150. oci/generative_ai/generative_ai_client.py +22 -22
  151. oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
  152. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
  153. oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
  154. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  155. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  156. oci/golden_gate/golden_gate_client.py +84 -84
  157. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  158. oci/governance_rules_control_plane/work_request_client.py +5 -5
  159. oci/healthchecks/health_checks_client.py +17 -17
  160. oci/identity/identity_client.py +145 -145
  161. oci/identity_data_plane/dataplane_client.py +2 -2
  162. oci/identity_domains/identity_domains_client.py +311 -311
  163. oci/integration/integration_instance_client.py +19 -19
  164. oci/jms/java_management_service_client.py +79 -79
  165. oci/jms_java_downloads/java_download_client.py +25 -25
  166. oci/key_management/ekm_client.py +5 -5
  167. oci/key_management/kms_crypto_client.py +6 -6
  168. oci/key_management/kms_hsm_cluster_client.py +12 -12
  169. oci/key_management/kms_management_client.py +21 -21
  170. oci/key_management/kms_vault_client.py +14 -14
  171. oci/license_manager/license_manager_client.py +18 -18
  172. oci/limits/limits_client.py +4 -4
  173. oci/limits/quotas_client.py +7 -7
  174. oci/load_balancer/load_balancer_client.py +61 -61
  175. oci/lockbox/lockbox_client.py +24 -24
  176. oci/log_analytics/log_analytics_client.py +193 -193
  177. oci/logging/logging_management_client.py +30 -30
  178. oci/loggingingestion/logging_client.py +1 -1
  179. oci/loggingsearch/log_search_client.py +1 -1
  180. oci/management_agent/management_agent_client.py +28 -28
  181. oci/management_dashboard/dashx_apis_client.py +14 -14
  182. oci/marketplace/account_client.py +2 -2
  183. oci/marketplace/marketplace_client.py +30 -30
  184. oci/marketplace_private_offer/attachment_client.py +5 -5
  185. oci/marketplace_private_offer/offer_client.py +6 -6
  186. oci/marketplace_publisher/attachment_client.py +5 -5
  187. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  188. oci/marketplace_publisher/offer_client.py +6 -6
  189. oci/media_services/media_services_client.py +60 -60
  190. oci/media_services/media_stream_client.py +2 -2
  191. oci/monitoring/monitoring_client.py +18 -18
  192. oci/mysql/channels_client.py +7 -7
  193. oci/mysql/db_backups_client.py +7 -7
  194. oci/mysql/db_system_client.py +17 -17
  195. oci/mysql/models/__init__.py +2 -0
  196. oci/mysql/models/backup_policy.py +41 -0
  197. oci/mysql/models/copy_backup_details.py +35 -0
  198. oci/mysql/models/copy_policy.py +103 -0
  199. oci/mysql/models/create_backup_policy_details.py +41 -0
  200. oci/mysql/models/update_backup_policy_details.py +41 -0
  201. oci/mysql/mysqlaas_client.py +7 -7
  202. oci/mysql/replicas_client.py +5 -5
  203. oci/mysql/work_requests_client.py +4 -4
  204. oci/network_firewall/network_firewall_client.py +86 -86
  205. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  206. oci/nosql/nosql_client.py +24 -24
  207. oci/object_storage/object_storage_client.py +55 -55
  208. oci/oce/oce_instance_client.py +10 -10
  209. oci/oci_control_center/occ_metrics_client.py +3 -3
  210. oci/ocvp/cluster_client.py +5 -5
  211. oci/ocvp/esxi_host_client.py +8 -8
  212. oci/ocvp/sddc_client.py +14 -14
  213. oci/ocvp/work_request_client.py +4 -4
  214. oci/oda/management_client.py +59 -59
  215. oci/oda/oda_client.py +17 -17
  216. oci/oda/odapackage_client.py +7 -7
  217. oci/onesubscription/billing_schedule_client.py +1 -1
  218. oci/onesubscription/commitment_client.py +2 -2
  219. oci/onesubscription/computed_usage_client.py +3 -3
  220. oci/onesubscription/invoice_summary_client.py +2 -2
  221. oci/onesubscription/organization_subscription_client.py +1 -1
  222. oci/onesubscription/ratecard_client.py +1 -1
  223. oci/onesubscription/subscribed_service_client.py +2 -2
  224. oci/onesubscription/subscription_client.py +1 -1
  225. oci/ons/notification_control_plane_client.py +6 -6
  226. oci/ons/notification_data_plane_client.py +10 -10
  227. oci/opa/opa_instance_client.py +13 -13
  228. oci/opensearch/__init__.py +3 -1
  229. oci/opensearch/models/__init__.py +6 -6
  230. oci/opensearch/models/create_opensearch_cluster_pipeline_details.py +152 -123
  231. oci/opensearch/models/force_patch_pipeline_details.py +103 -0
  232. oci/opensearch/models/opensearch_cluster_pipeline.py +198 -89
  233. oci/opensearch/models/opensearch_cluster_pipeline_collection.py +1 -1
  234. oci/opensearch/models/opensearch_cluster_pipeline_summary.py +195 -102
  235. oci/opensearch/models/opensearch_pipeline_reverse_connection_endpoint.py +103 -0
  236. oci/opensearch/models/update_opensearch_cluster_pipeline_details.py +337 -85
  237. oci/opensearch/models/update_pipeline_status_details.py +103 -0
  238. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  239. oci/opensearch/opensearch_cluster_client.py +16 -16
  240. oci/opensearch/opensearch_cluster_pipeline_client.py +688 -0
  241. oci/opensearch/opensearch_cluster_pipeline_client_composite_operations.py +154 -0
  242. oci/operator_access_control/access_requests_client.py +10 -10
  243. oci/operator_access_control/operator_actions_client.py +2 -2
  244. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  245. oci/operator_access_control/operator_control_client.py +6 -6
  246. oci/opsi/operations_insights_client.py +181 -181
  247. oci/optimizer/optimizer_client.py +26 -26
  248. oci/os_management/event_client.py +8 -8
  249. oci/os_management/os_management_client.py +69 -69
  250. oci/os_management_hub/event_client.py +8 -8
  251. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  252. oci/os_management_hub/managed_instance_client.py +33 -33
  253. oci/os_management_hub/managed_instance_group_client.py +26 -26
  254. oci/os_management_hub/management_station_client.py +10 -10
  255. oci/os_management_hub/onboarding_client.py +13 -13
  256. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  257. oci/os_management_hub/scheduled_job_client.py +7 -7
  258. oci/os_management_hub/software_source_client.py +33 -33
  259. oci/os_management_hub/work_request_client.py +5 -5
  260. oci/osp_gateway/address_rule_service_client.py +1 -1
  261. oci/osp_gateway/address_service_client.py +2 -2
  262. oci/osp_gateway/invoice_service_client.py +5 -5
  263. oci/osp_gateway/subscription_service_client.py +5 -5
  264. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  265. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  266. oci/osub_subscription/commitment_client.py +2 -2
  267. oci/osub_subscription/ratecard_client.py +1 -1
  268. oci/osub_subscription/subscription_client.py +1 -1
  269. oci/osub_usage/computed_usage_client.py +3 -3
  270. oci/psql/postgresql_client.py +34 -34
  271. oci/queue/queue_admin_client.py +11 -11
  272. oci/queue/queue_client.py +8 -8
  273. oci/recovery/database_recovery_client.py +26 -26
  274. oci/redis/redis_cluster_client.py +12 -12
  275. oci/resource_manager/resource_manager_client.py +52 -52
  276. oci/resource_scheduler/schedule_client.py +13 -13
  277. oci/resource_search/resource_search_client.py +3 -3
  278. oci/rover/rover_bundle_client.py +8 -8
  279. oci/rover/rover_cluster_client.py +8 -8
  280. oci/rover/rover_entitlement_client.py +6 -6
  281. oci/rover/rover_node_client.py +15 -15
  282. oci/rover/shape_client.py +1 -1
  283. oci/rover/work_requests_client.py +5 -5
  284. oci/sch/connector_plugins_client.py +2 -2
  285. oci/sch/service_connector_client.py +12 -12
  286. oci/secrets/secrets_client.py +3 -3
  287. oci/security_attribute/security_attribute_client.py +24 -24
  288. oci/service_catalog/service_catalog_client.py +26 -26
  289. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  290. oci/service_mesh/service_mesh_client.py +48 -48
  291. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  292. oci/streaming/stream_admin_client.py +18 -18
  293. oci/streaming/stream_client.py +8 -8
  294. oci/tenant_manager_control_plane/domain_client.py +5 -5
  295. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  296. oci/tenant_manager_control_plane/governance_client.py +2 -2
  297. oci/tenant_manager_control_plane/link_client.py +3 -3
  298. oci/tenant_manager_control_plane/orders_client.py +2 -2
  299. oci/tenant_manager_control_plane/organization_client.py +10 -10
  300. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  301. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  302. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  303. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  304. oci/threat_intelligence/threatintel_client.py +5 -5
  305. oci/usage/resources_client.py +2 -2
  306. oci/usage/rewards_client.py +6 -6
  307. oci/usage/usagelimits_client.py +1 -1
  308. oci/usage_api/usageapi_client.py +33 -33
  309. oci/vault/vaults_client.py +13 -13
  310. oci/vbs_inst/vbs_instance_client.py +10 -10
  311. oci/version.py +1 -1
  312. oci/visual_builder/vb_instance_client.py +14 -14
  313. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  314. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  315. oci/waa/waa_client.py +13 -13
  316. oci/waa/work_request_client.py +4 -4
  317. oci/waas/redirect_client.py +6 -6
  318. oci/waas/waas_client.py +66 -66
  319. oci/waf/waf_client.py +24 -24
  320. oci/work_requests/work_request_client.py +4 -4
  321. oci/zpr/zpr_client.py +15 -15
  322. {oci-2.147.0.dist-info → oci-2.148.0.dist-info}/METADATA +1 -1
  323. {oci-2.147.0.dist-info → oci-2.148.0.dist-info}/RECORD +327 -307
  324. oci/opensearch/models/opensearch_pipeline_validation_response.py +0 -103
  325. oci/opensearch/models/validate_opensearch_pipeline_details.py +0 -103
  326. {oci-2.147.0.dist-info → oci-2.148.0.dist-info}/LICENSE.txt +0 -0
  327. {oci-2.147.0.dist-info → oci-2.148.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  328. {oci-2.147.0.dist-info → oci-2.148.0.dist-info}/WHEEL +0 -0
  329. {oci-2.147.0.dist-info → oci-2.148.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,688 @@
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: 20180828
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 opensearch_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class OpensearchClusterPipelineClient(object):
24
+ """
25
+ The OpenSearch service API provides access to OCI Search Service with OpenSearch.
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("opensearch"):
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': '/20180828',
103
+ 'service_endpoint_template': 'https://search-indexing.{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("opensearch_cluster_pipeline", config, signer, opensearch_type_mapping, **base_client_init_kwargs)
116
+ self.retry_strategy = kwargs.get('retry_strategy')
117
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
118
+
119
+ def create_opensearch_cluster_pipeline(self, create_opensearch_cluster_pipeline_details, **kwargs):
120
+ """
121
+ Creates a new OpensearchCluster Pipeline.
122
+
123
+
124
+ :param oci.opensearch.models.CreateOpensearchClusterPipelineDetails create_opensearch_cluster_pipeline_details: (required)
125
+ Details for the new OpensearchCluster Pipeline.
126
+
127
+ :param str opc_retry_token: (optional)
128
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
129
+ server error without risk of executing that same action again. Retry tokens expire after 24
130
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
131
+ has been deleted and purged from the system, then a retry of the original creation request
132
+ might be rejected.
133
+
134
+ :param str opc_request_id: (optional)
135
+ The client request ID for tracing.
136
+
137
+ :param bool opc_dry_run: (optional)
138
+ Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the
139
+ configuration item details and is used only to perform validation on the submitted data.
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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
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.148.0/opensearch/create_opensearch_cluster_pipeline.py.html>`__ to see an example of how to use create_opensearch_cluster_pipeline API.
158
+ """
159
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
160
+ required_arguments = []
161
+ resource_path = "/opensearchClusterPipelines"
162
+ method = "POST"
163
+ operation_name = "create_opensearch_cluster_pipeline"
164
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opensearch/20180828/OpensearchClusterPipeline/CreateOpensearchClusterPipeline"
165
+
166
+ # Don't accept unknown kwargs
167
+ expected_kwargs = [
168
+ "allow_control_chars",
169
+ "retry_strategy",
170
+ "opc_retry_token",
171
+ "opc_request_id",
172
+ "opc_dry_run"
173
+ ]
174
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
175
+ if extra_kwargs:
176
+ raise ValueError(
177
+ f"create_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}")
178
+
179
+ header_params = {
180
+ "accept": "application/json",
181
+ "content-type": "application/json",
182
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
183
+ "opc-request-id": kwargs.get("opc_request_id", missing),
184
+ "opc-dry-run": kwargs.get("opc_dry_run", missing)
185
+ }
186
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
187
+
188
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
189
+ operation_retry_strategy=kwargs.get('retry_strategy'),
190
+ client_retry_strategy=self.retry_strategy
191
+ )
192
+
193
+ if retry_strategy:
194
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
195
+ self.base_client.add_opc_retry_token_if_needed(header_params)
196
+ self.base_client.add_opc_client_retries_header(header_params)
197
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
198
+ return retry_strategy.make_retrying_call(
199
+ self.base_client.call_api,
200
+ resource_path=resource_path,
201
+ method=method,
202
+ header_params=header_params,
203
+ body=create_opensearch_cluster_pipeline_details,
204
+ allow_control_chars=kwargs.get('allow_control_chars'),
205
+ operation_name=operation_name,
206
+ api_reference_link=api_reference_link,
207
+ required_arguments=required_arguments)
208
+ else:
209
+ return self.base_client.call_api(
210
+ resource_path=resource_path,
211
+ method=method,
212
+ header_params=header_params,
213
+ body=create_opensearch_cluster_pipeline_details,
214
+ allow_control_chars=kwargs.get('allow_control_chars'),
215
+ operation_name=operation_name,
216
+ api_reference_link=api_reference_link,
217
+ required_arguments=required_arguments)
218
+
219
+ def delete_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **kwargs):
220
+ """
221
+ Deletes a OpensearchCluster Pipeline resource by identifier
222
+
223
+
224
+ :param str opensearch_cluster_pipeline_id: (required)
225
+ unique OpensearchClusterPipeline identifier
226
+
227
+ :param str if_match: (optional)
228
+ For optimistic concurrency control. In the PUT or DELETE call
229
+ for a resource, set the `if-match` parameter to the value of the
230
+ etag from a previous GET or POST response for that resource.
231
+ The resource will be updated or deleted only if the etag you
232
+ provide matches the resource's current etag value.
233
+
234
+ :param str opc_request_id: (optional)
235
+ The client request ID for tracing.
236
+
237
+ :param obj retry_strategy: (optional)
238
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
239
+
240
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
241
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
242
+
243
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
244
+
245
+ :param bool allow_control_chars: (optional)
246
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
247
+ By default, the response will not allow control characters in strings
248
+
249
+ :return: A :class:`~oci.response.Response` object with data of type None
250
+ :rtype: :class:`~oci.response.Response`
251
+
252
+ :example:
253
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/opensearch/delete_opensearch_cluster_pipeline.py.html>`__ to see an example of how to use delete_opensearch_cluster_pipeline API.
254
+ """
255
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
256
+ required_arguments = ['opensearchClusterPipelineId']
257
+ resource_path = "/opensearchClusterPipelines/{opensearchClusterPipelineId}"
258
+ method = "DELETE"
259
+ operation_name = "delete_opensearch_cluster_pipeline"
260
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opensearch/20180828/OpensearchClusterPipeline/DeleteOpensearchClusterPipeline"
261
+
262
+ # Don't accept unknown kwargs
263
+ expected_kwargs = [
264
+ "allow_control_chars",
265
+ "retry_strategy",
266
+ "if_match",
267
+ "opc_request_id"
268
+ ]
269
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
270
+ if extra_kwargs:
271
+ raise ValueError(
272
+ f"delete_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}")
273
+
274
+ path_params = {
275
+ "opensearchClusterPipelineId": opensearch_cluster_pipeline_id
276
+ }
277
+
278
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
279
+
280
+ for (k, v) in six.iteritems(path_params):
281
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
282
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
283
+
284
+ header_params = {
285
+ "accept": "application/json",
286
+ "content-type": "application/json",
287
+ "if-match": kwargs.get("if_match", missing),
288
+ "opc-request-id": kwargs.get("opc_request_id", missing)
289
+ }
290
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
291
+
292
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
293
+ operation_retry_strategy=kwargs.get('retry_strategy'),
294
+ client_retry_strategy=self.retry_strategy
295
+ )
296
+
297
+ if retry_strategy:
298
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
299
+ self.base_client.add_opc_client_retries_header(header_params)
300
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
301
+ return retry_strategy.make_retrying_call(
302
+ self.base_client.call_api,
303
+ resource_path=resource_path,
304
+ method=method,
305
+ path_params=path_params,
306
+ header_params=header_params,
307
+ allow_control_chars=kwargs.get('allow_control_chars'),
308
+ operation_name=operation_name,
309
+ api_reference_link=api_reference_link,
310
+ required_arguments=required_arguments)
311
+ else:
312
+ return self.base_client.call_api(
313
+ resource_path=resource_path,
314
+ method=method,
315
+ path_params=path_params,
316
+ header_params=header_params,
317
+ allow_control_chars=kwargs.get('allow_control_chars'),
318
+ operation_name=operation_name,
319
+ api_reference_link=api_reference_link,
320
+ required_arguments=required_arguments)
321
+
322
+ def get_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **kwargs):
323
+ """
324
+ Gets a OpensearchCluster Pipeline by identifier
325
+
326
+
327
+ :param str opensearch_cluster_pipeline_id: (required)
328
+ unique OpensearchClusterPipeline identifier
329
+
330
+ :param str opc_request_id: (optional)
331
+ The client request ID for tracing.
332
+
333
+ :param obj retry_strategy: (optional)
334
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
335
+
336
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
337
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
338
+
339
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
340
+
341
+ :param bool allow_control_chars: (optional)
342
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
343
+ By default, the response will not allow control characters in strings
344
+
345
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opensearch.models.OpensearchClusterPipeline`
346
+ :rtype: :class:`~oci.response.Response`
347
+
348
+ :example:
349
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/opensearch/get_opensearch_cluster_pipeline.py.html>`__ to see an example of how to use get_opensearch_cluster_pipeline API.
350
+ """
351
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
352
+ required_arguments = ['opensearchClusterPipelineId']
353
+ resource_path = "/opensearchClusterPipelines/{opensearchClusterPipelineId}"
354
+ method = "GET"
355
+ operation_name = "get_opensearch_cluster_pipeline"
356
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opensearch/20180828/OpensearchClusterPipeline/GetOpensearchClusterPipeline"
357
+
358
+ # Don't accept unknown kwargs
359
+ expected_kwargs = [
360
+ "allow_control_chars",
361
+ "retry_strategy",
362
+ "opc_request_id"
363
+ ]
364
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
365
+ if extra_kwargs:
366
+ raise ValueError(
367
+ f"get_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}")
368
+
369
+ path_params = {
370
+ "opensearchClusterPipelineId": opensearch_cluster_pipeline_id
371
+ }
372
+
373
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
374
+
375
+ for (k, v) in six.iteritems(path_params):
376
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
377
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
378
+
379
+ header_params = {
380
+ "accept": "application/json",
381
+ "content-type": "application/json",
382
+ "opc-request-id": kwargs.get("opc_request_id", missing)
383
+ }
384
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
385
+
386
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
387
+ operation_retry_strategy=kwargs.get('retry_strategy'),
388
+ client_retry_strategy=self.retry_strategy
389
+ )
390
+
391
+ if retry_strategy:
392
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
393
+ self.base_client.add_opc_client_retries_header(header_params)
394
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
395
+ return retry_strategy.make_retrying_call(
396
+ self.base_client.call_api,
397
+ resource_path=resource_path,
398
+ method=method,
399
+ path_params=path_params,
400
+ header_params=header_params,
401
+ response_type="OpensearchClusterPipeline",
402
+ allow_control_chars=kwargs.get('allow_control_chars'),
403
+ operation_name=operation_name,
404
+ api_reference_link=api_reference_link,
405
+ required_arguments=required_arguments)
406
+ else:
407
+ return self.base_client.call_api(
408
+ resource_path=resource_path,
409
+ method=method,
410
+ path_params=path_params,
411
+ header_params=header_params,
412
+ response_type="OpensearchClusterPipeline",
413
+ allow_control_chars=kwargs.get('allow_control_chars'),
414
+ operation_name=operation_name,
415
+ api_reference_link=api_reference_link,
416
+ required_arguments=required_arguments)
417
+
418
+ def list_opensearch_cluster_pipelines(self, compartment_id, **kwargs):
419
+ """
420
+ Returns a list of OpensearchClusterPipelines.
421
+
422
+
423
+ :param str compartment_id: (required)
424
+ The ID of the compartment in which to list resources.
425
+
426
+ :param str lifecycle_state: (optional)
427
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
428
+
429
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
430
+
431
+ :param str pipeline_component_id: (optional)
432
+ A filter to return pipelines whose any component has the given pipelineComponentId.
433
+
434
+ :param str display_name: (optional)
435
+ A filter to return only resources that match the entire display name given.
436
+
437
+ :param str id: (optional)
438
+ unique OpensearchClusterPipeline identifier
439
+
440
+ :param int limit: (optional)
441
+ The maximum number of items to return.
442
+
443
+ :param str page: (optional)
444
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
445
+
446
+ :param str sort_order: (optional)
447
+ The sort order to use, either 'asc' or 'desc'.
448
+
449
+ Allowed values are: "ASC", "DESC"
450
+
451
+ :param str sort_by: (optional)
452
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
453
+
454
+ Allowed values are: "timeCreated", "displayName"
455
+
456
+ :param str opc_request_id: (optional)
457
+ The client request ID for tracing.
458
+
459
+ :param obj retry_strategy: (optional)
460
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
461
+
462
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
463
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
464
+
465
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
466
+
467
+ :param bool allow_control_chars: (optional)
468
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
469
+ By default, the response will not allow control characters in strings
470
+
471
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opensearch.models.OpensearchClusterPipelineCollection`
472
+ :rtype: :class:`~oci.response.Response`
473
+
474
+ :example:
475
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/opensearch/list_opensearch_cluster_pipelines.py.html>`__ to see an example of how to use list_opensearch_cluster_pipelines API.
476
+ """
477
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
478
+ required_arguments = ['compartmentId']
479
+ resource_path = "/opensearchClusterPipelines"
480
+ method = "GET"
481
+ operation_name = "list_opensearch_cluster_pipelines"
482
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opensearch/20180828/OpensearchClusterPipelineCollection/ListOpensearchClusterPipelines"
483
+
484
+ # Don't accept unknown kwargs
485
+ expected_kwargs = [
486
+ "allow_control_chars",
487
+ "retry_strategy",
488
+ "lifecycle_state",
489
+ "pipeline_component_id",
490
+ "display_name",
491
+ "id",
492
+ "limit",
493
+ "page",
494
+ "sort_order",
495
+ "sort_by",
496
+ "opc_request_id"
497
+ ]
498
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
499
+ if extra_kwargs:
500
+ raise ValueError(
501
+ f"list_opensearch_cluster_pipelines got unknown kwargs: {extra_kwargs!r}")
502
+
503
+ if 'lifecycle_state' in kwargs:
504
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
505
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
506
+ raise ValueError(
507
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
508
+ )
509
+
510
+ if 'sort_order' in kwargs:
511
+ sort_order_allowed_values = ["ASC", "DESC"]
512
+ if kwargs['sort_order'] not in sort_order_allowed_values:
513
+ raise ValueError(
514
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
515
+ )
516
+
517
+ if 'sort_by' in kwargs:
518
+ sort_by_allowed_values = ["timeCreated", "displayName"]
519
+ if kwargs['sort_by'] not in sort_by_allowed_values:
520
+ raise ValueError(
521
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
522
+ )
523
+
524
+ query_params = {
525
+ "compartmentId": compartment_id,
526
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
527
+ "pipelineComponentId": kwargs.get("pipeline_component_id", missing),
528
+ "displayName": kwargs.get("display_name", missing),
529
+ "id": kwargs.get("id", missing),
530
+ "limit": kwargs.get("limit", missing),
531
+ "page": kwargs.get("page", missing),
532
+ "sortOrder": kwargs.get("sort_order", missing),
533
+ "sortBy": kwargs.get("sort_by", missing)
534
+ }
535
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
536
+
537
+ header_params = {
538
+ "accept": "application/json",
539
+ "content-type": "application/json",
540
+ "opc-request-id": kwargs.get("opc_request_id", missing)
541
+ }
542
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
543
+
544
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
545
+ operation_retry_strategy=kwargs.get('retry_strategy'),
546
+ client_retry_strategy=self.retry_strategy
547
+ )
548
+
549
+ if retry_strategy:
550
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
551
+ self.base_client.add_opc_client_retries_header(header_params)
552
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
553
+ return retry_strategy.make_retrying_call(
554
+ self.base_client.call_api,
555
+ resource_path=resource_path,
556
+ method=method,
557
+ query_params=query_params,
558
+ header_params=header_params,
559
+ response_type="OpensearchClusterPipelineCollection",
560
+ allow_control_chars=kwargs.get('allow_control_chars'),
561
+ operation_name=operation_name,
562
+ api_reference_link=api_reference_link,
563
+ required_arguments=required_arguments)
564
+ else:
565
+ return self.base_client.call_api(
566
+ resource_path=resource_path,
567
+ method=method,
568
+ query_params=query_params,
569
+ header_params=header_params,
570
+ response_type="OpensearchClusterPipelineCollection",
571
+ allow_control_chars=kwargs.get('allow_control_chars'),
572
+ operation_name=operation_name,
573
+ api_reference_link=api_reference_link,
574
+ required_arguments=required_arguments)
575
+
576
+ def update_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, update_opensearch_cluster_pipeline_details, **kwargs):
577
+ """
578
+ Updates the OpensearchCluster Pipeline
579
+
580
+
581
+ :param str opensearch_cluster_pipeline_id: (required)
582
+ unique OpensearchClusterPipeline identifier
583
+
584
+ :param oci.opensearch.models.UpdateOpensearchClusterPipelineDetails update_opensearch_cluster_pipeline_details: (required)
585
+ Update the opensearch cluster pipeline details.
586
+
587
+ :param str if_match: (optional)
588
+ For optimistic concurrency control. In the PUT or DELETE call
589
+ for a resource, set the `if-match` parameter to the value of the
590
+ etag from a previous GET or POST response for that resource.
591
+ The resource will be updated or deleted only if the etag you
592
+ provide matches the resource's current etag value.
593
+
594
+ :param str opc_request_id: (optional)
595
+ The client request ID for tracing.
596
+
597
+ :param bool opc_dry_run: (optional)
598
+ Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the
599
+ configuration item details and is used only to perform validation on the submitted data.
600
+
601
+ :param obj retry_strategy: (optional)
602
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
603
+
604
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
605
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
606
+
607
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
608
+
609
+ :param bool allow_control_chars: (optional)
610
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
611
+ By default, the response will not allow control characters in strings
612
+
613
+ :return: A :class:`~oci.response.Response` object with data of type None
614
+ :rtype: :class:`~oci.response.Response`
615
+
616
+ :example:
617
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/opensearch/update_opensearch_cluster_pipeline.py.html>`__ to see an example of how to use update_opensearch_cluster_pipeline API.
618
+ """
619
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
620
+ required_arguments = ['opensearchClusterPipelineId']
621
+ resource_path = "/opensearchClusterPipelines/{opensearchClusterPipelineId}"
622
+ method = "PUT"
623
+ operation_name = "update_opensearch_cluster_pipeline"
624
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opensearch/20180828/OpensearchClusterPipeline/UpdateOpensearchClusterPipeline"
625
+
626
+ # Don't accept unknown kwargs
627
+ expected_kwargs = [
628
+ "allow_control_chars",
629
+ "retry_strategy",
630
+ "if_match",
631
+ "opc_request_id",
632
+ "opc_dry_run"
633
+ ]
634
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
635
+ if extra_kwargs:
636
+ raise ValueError(
637
+ f"update_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}")
638
+
639
+ path_params = {
640
+ "opensearchClusterPipelineId": opensearch_cluster_pipeline_id
641
+ }
642
+
643
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
644
+
645
+ for (k, v) in six.iteritems(path_params):
646
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
647
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
648
+
649
+ header_params = {
650
+ "accept": "application/json",
651
+ "content-type": "application/json",
652
+ "if-match": kwargs.get("if_match", missing),
653
+ "opc-request-id": kwargs.get("opc_request_id", missing),
654
+ "opc-dry-run": kwargs.get("opc_dry_run", missing)
655
+ }
656
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
657
+
658
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
659
+ operation_retry_strategy=kwargs.get('retry_strategy'),
660
+ client_retry_strategy=self.retry_strategy
661
+ )
662
+
663
+ if retry_strategy:
664
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
665
+ self.base_client.add_opc_client_retries_header(header_params)
666
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
667
+ return retry_strategy.make_retrying_call(
668
+ self.base_client.call_api,
669
+ resource_path=resource_path,
670
+ method=method,
671
+ path_params=path_params,
672
+ header_params=header_params,
673
+ body=update_opensearch_cluster_pipeline_details,
674
+ allow_control_chars=kwargs.get('allow_control_chars'),
675
+ operation_name=operation_name,
676
+ api_reference_link=api_reference_link,
677
+ required_arguments=required_arguments)
678
+ else:
679
+ return self.base_client.call_api(
680
+ resource_path=resource_path,
681
+ method=method,
682
+ path_params=path_params,
683
+ header_params=header_params,
684
+ body=update_opensearch_cluster_pipeline_details,
685
+ allow_control_chars=kwargs.get('allow_control_chars'),
686
+ operation_name=operation_name,
687
+ api_reference_link=api_reference_link,
688
+ required_arguments=required_arguments)