oci 2.154.0__py3-none-any.whl → 2.154.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 (417) 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/apiaccesscontrol/__init__.py +20 -0
  15. oci/apiaccesscontrol/api_metadata_client.py +567 -0
  16. oci/apiaccesscontrol/api_metadata_client_composite_operations.py +26 -0
  17. oci/apiaccesscontrol/models/__init__.py +72 -0
  18. oci/apiaccesscontrol/models/api_metadata.py +596 -0
  19. oci/apiaccesscontrol/models/api_metadata_by_entity_type_collection.py +70 -0
  20. oci/apiaccesscontrol/models/api_metadata_by_entity_type_summary.py +218 -0
  21. oci/apiaccesscontrol/models/api_metadata_collection.py +70 -0
  22. oci/apiaccesscontrol/models/api_metadata_summary.py +486 -0
  23. oci/apiaccesscontrol/models/approve_privileged_api_request_details.py +105 -0
  24. oci/apiaccesscontrol/models/approver_detail.py +202 -0
  25. oci/apiaccesscontrol/models/change_privileged_api_control_compartment_details.py +74 -0
  26. oci/apiaccesscontrol/models/close_privileged_api_request_details.py +70 -0
  27. oci/apiaccesscontrol/models/create_privileged_api_control_details.py +404 -0
  28. oci/apiaccesscontrol/models/create_privileged_api_request_details.py +502 -0
  29. oci/apiaccesscontrol/models/privileged_api_control.py +761 -0
  30. oci/apiaccesscontrol/models/privileged_api_control_collection.py +70 -0
  31. oci/apiaccesscontrol/models/privileged_api_control_summary.py +494 -0
  32. oci/apiaccesscontrol/models/privileged_api_details.py +132 -0
  33. oci/apiaccesscontrol/models/privileged_api_request.py +1209 -0
  34. oci/apiaccesscontrol/models/privileged_api_request_collection.py +70 -0
  35. oci/apiaccesscontrol/models/privileged_api_request_operation_details.py +101 -0
  36. oci/apiaccesscontrol/models/privileged_api_request_summary.py +750 -0
  37. oci/apiaccesscontrol/models/reject_privileged_api_request_details.py +70 -0
  38. oci/apiaccesscontrol/models/revoke_privileged_api_request_details.py +70 -0
  39. oci/apiaccesscontrol/models/update_privileged_api_control_details.py +369 -0
  40. oci/apiaccesscontrol/models/work_request.py +525 -0
  41. oci/apiaccesscontrol/models/work_request_error.py +144 -0
  42. oci/apiaccesscontrol/models/work_request_error_collection.py +70 -0
  43. oci/apiaccesscontrol/models/work_request_log_entry.py +107 -0
  44. oci/apiaccesscontrol/models/work_request_log_entry_collection.py +70 -0
  45. oci/apiaccesscontrol/models/work_request_resource.py +236 -0
  46. oci/apiaccesscontrol/models/work_request_summary.py +523 -0
  47. oci/apiaccesscontrol/models/work_request_summary_collection.py +70 -0
  48. oci/apiaccesscontrol/privileged_api_control_client.py +865 -0
  49. oci/apiaccesscontrol/privileged_api_control_client_composite_operations.py +202 -0
  50. oci/apiaccesscontrol/privileged_api_requests_client.py +1012 -0
  51. oci/apiaccesscontrol/privileged_api_requests_client_composite_operations.py +233 -0
  52. oci/apiaccesscontrol/privileged_api_work_request_client.py +817 -0
  53. oci/apiaccesscontrol/privileged_api_work_request_client_composite_operations.py +26 -0
  54. oci/apigateway/api_gateway_client.py +21 -21
  55. oci/apigateway/deployment_client.py +6 -6
  56. oci/apigateway/gateway_client.py +6 -6
  57. oci/apigateway/subscribers_client.py +6 -6
  58. oci/apigateway/usage_plans_client.py +6 -6
  59. oci/apigateway/work_requests_client.py +5 -5
  60. oci/apm_config/config_client.py +12 -12
  61. oci/apm_control_plane/apm_domain_client.py +14 -14
  62. oci/apm_synthetics/apm_synthetic_client.py +56 -56
  63. oci/apm_traces/attributes_client.py +8 -8
  64. oci/apm_traces/query_client.py +2 -2
  65. oci/apm_traces/trace_client.py +4 -4
  66. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  67. oci/artifacts/artifacts_client.py +32 -32
  68. oci/audit/audit_client.py +3 -3
  69. oci/autoscaling/auto_scaling_client.py +11 -11
  70. oci/bastion/bastion_client.py +15 -15
  71. oci/bds/bds_client.py +88 -88
  72. oci/blockchain/blockchain_platform_client.py +27 -27
  73. oci/budget/budget_client.py +10 -10
  74. oci/capacity_management/capacity_management_client.py +32 -32
  75. oci/capacity_management/demand_signal_client.py +13 -13
  76. oci/capacity_management/internal_demand_signal_client.py +12 -12
  77. oci/certificates/certificates_client.py +5 -5
  78. oci/certificates_management/certificates_management_client.py +32 -32
  79. oci/cims/incident_client.py +6 -6
  80. oci/cloud_bridge/common_client.py +5 -5
  81. oci/cloud_bridge/discovery_client.py +15 -15
  82. oci/cloud_bridge/inventory_client.py +16 -16
  83. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  84. oci/cloud_guard/cloud_guard_client.py +155 -155
  85. oci/cloud_migrations/migration_client.py +43 -43
  86. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  87. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  88. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  89. oci/compute_instance_agent/models/available_plugin_summary.py +9 -9
  90. oci/compute_instance_agent/models/instance_agent_command_content.py +37 -2
  91. oci/compute_instance_agent/models/instance_agent_plugin.py +33 -9
  92. oci/compute_instance_agent/models/instance_agent_plugin_summary.py +31 -7
  93. oci/compute_instance_agent/models/plugin.py +11 -11
  94. oci/compute_instance_agent/plugin_client.py +13 -8
  95. oci/compute_instance_agent/pluginconfig_client.py +14 -10
  96. oci/container_engine/container_engine_client.py +46 -46
  97. oci/container_instances/container_instance_client.py +18 -18
  98. oci/core/blockstorage_client.py +60 -60
  99. oci/core/compute_client.py +125 -125
  100. oci/core/compute_management_client.py +32 -32
  101. oci/core/models/__init__.py +2 -0
  102. oci/core/models/capacity_bin.py +225 -0
  103. oci/core/models/compute_bare_metal_host_placement_constraint_details.py +4 -3
  104. oci/core/models/dedicated_vm_host.py +64 -2
  105. oci/core/models/host_group_placement_constraint_details.py +3 -3
  106. oci/core/models/placement_constraint_details.py +7 -3
  107. oci/core/virtual_network_client.py +258 -258
  108. oci/dashboard_service/dashboard_client.py +6 -6
  109. oci/dashboard_service/dashboard_group_client.py +6 -6
  110. oci/data_catalog/data_catalog_client.py +149 -149
  111. oci/data_flow/data_flow_client.py +45 -45
  112. oci/data_integration/data_integration_client.py +163 -163
  113. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  114. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  115. oci/data_safe/data_safe_client.py +317 -317
  116. oci/data_science/data_science_client.py +145 -145
  117. oci/database/database_client.py +425 -419
  118. oci/database_management/db_management_client.py +229 -229
  119. oci/database_management/diagnosability_client.py +4 -4
  120. oci/database_management/managed_my_sql_databases_client.py +15 -15
  121. oci/database_management/perfhub_client.py +1 -1
  122. oci/database_management/sql_tuning_client.py +17 -17
  123. oci/database_migration/database_migration_client.py +42 -42
  124. oci/database_tools/database_tools_client.py +23 -23
  125. oci/dblm/db_life_cycle_management_client.py +14 -14
  126. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  127. oci/delegate_access_control/work_request_client.py +4 -4
  128. oci/demand_signal/occ_demand_signal_client.py +7 -7
  129. oci/desktops/desktop_service_client.py +21 -21
  130. oci/devops/devops_client.py +141 -141
  131. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  132. oci/distributed_database/distributed_autonomous_db_service_client.py +18 -18
  133. oci/distributed_database/distributed_db_private_endpoint_service_client.py +7 -7
  134. oci/distributed_database/distributed_db_service_client.py +19 -19
  135. oci/distributed_database/distributed_db_work_request_service_client.py +4 -4
  136. oci/dns/dns_client.py +54 -54
  137. oci/dts/appliance_export_job_client.py +6 -6
  138. oci/dts/shipping_vendors_client.py +1 -1
  139. oci/dts/transfer_appliance_client.py +8 -8
  140. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  141. oci/dts/transfer_device_client.py +5 -5
  142. oci/dts/transfer_job_client.py +6 -6
  143. oci/dts/transfer_package_client.py +7 -7
  144. oci/em_warehouse/em_warehouse_client.py +13 -13
  145. oci/email/email_client.py +31 -31
  146. oci/email_data_plane/email_dp_client.py +1 -1
  147. oci/events/events_client.py +6 -6
  148. oci/file_storage/file_storage_client.py +74 -74
  149. oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
  150. oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
  151. oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
  152. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  153. oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
  154. oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
  155. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
  156. oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
  157. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  158. oci/functions/functions_invoke_client.py +1 -1
  159. oci/functions/functions_management_client.py +16 -16
  160. oci/fusion_apps/fusion_applications_client.py +41 -41
  161. oci/generative_ai/generative_ai_client.py +22 -22
  162. oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
  163. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
  164. oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
  165. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  166. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  167. oci/golden_gate/golden_gate_client.py +89 -89
  168. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  169. oci/governance_rules_control_plane/work_request_client.py +5 -5
  170. oci/healthchecks/health_checks_client.py +17 -17
  171. oci/identity/identity_client.py +145 -145
  172. oci/identity_data_plane/dataplane_client.py +2 -2
  173. oci/identity_domains/identity_domains_client.py +311 -311
  174. oci/integration/integration_instance_client.py +19 -19
  175. oci/jms/java_management_service_client.py +79 -79
  176. oci/jms_java_downloads/java_download_client.py +25 -25
  177. oci/key_management/ekm_client.py +5 -5
  178. oci/key_management/kms_crypto_client.py +6 -6
  179. oci/key_management/kms_hsm_cluster_client.py +12 -12
  180. oci/key_management/kms_management_client.py +21 -21
  181. oci/key_management/kms_vault_client.py +14 -14
  182. oci/license_manager/license_manager_client.py +18 -18
  183. oci/limits/limits_client.py +4 -4
  184. oci/limits/quotas_client.py +7 -7
  185. oci/load_balancer/load_balancer_client.py +61 -61
  186. oci/lockbox/lockbox_client.py +24 -24
  187. oci/log_analytics/log_analytics_client.py +200 -200
  188. oci/logging/logging_management_client.py +30 -30
  189. oci/loggingingestion/logging_client.py +1 -1
  190. oci/loggingsearch/log_search_client.py +1 -1
  191. oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
  192. oci/management_agent/management_agent_client.py +28 -28
  193. oci/management_dashboard/dashx_apis_client.py +18 -18
  194. oci/marketplace/account_client.py +2 -2
  195. oci/marketplace/marketplace_client.py +30 -30
  196. oci/marketplace_private_offer/attachment_client.py +5 -5
  197. oci/marketplace_private_offer/offer_client.py +6 -6
  198. oci/marketplace_publisher/attachment_client.py +5 -5
  199. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  200. oci/marketplace_publisher/offer_client.py +6 -6
  201. oci/media_services/media_services_client.py +60 -60
  202. oci/media_services/media_stream_client.py +2 -2
  203. oci/mngdmac/mac_device_client.py +3 -3
  204. oci/mngdmac/mac_order_client.py +11 -11
  205. oci/model_deployment/model_deployment_client.py +2 -2
  206. oci/monitoring/monitoring_client.py +18 -18
  207. oci/mysql/channels_client.py +7 -7
  208. oci/mysql/db_backups_client.py +8 -8
  209. oci/mysql/db_system_client.py +17 -17
  210. oci/mysql/mysqlaas_client.py +7 -7
  211. oci/mysql/replicas_client.py +5 -5
  212. oci/mysql/work_requests_client.py +4 -4
  213. oci/network_firewall/network_firewall_client.py +92 -92
  214. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  215. oci/nosql/nosql_client.py +24 -24
  216. oci/object_storage/object_storage_client.py +55 -55
  217. oci/oce/oce_instance_client.py +10 -10
  218. oci/oci_control_center/occ_metrics_client.py +3 -3
  219. oci/ocvp/cluster_client.py +5 -5
  220. oci/ocvp/esxi_host_client.py +8 -8
  221. oci/ocvp/sddc_client.py +14 -14
  222. oci/ocvp/work_request_client.py +4 -4
  223. oci/oda/management_client.py +59 -59
  224. oci/oda/oda_client.py +17 -17
  225. oci/oda/odapackage_client.py +7 -7
  226. oci/onesubscription/billing_schedule_client.py +1 -1
  227. oci/onesubscription/commitment_client.py +2 -2
  228. oci/onesubscription/computed_usage_client.py +3 -3
  229. oci/onesubscription/invoice_summary_client.py +2 -2
  230. oci/onesubscription/organization_subscription_client.py +1 -1
  231. oci/onesubscription/ratecard_client.py +1 -1
  232. oci/onesubscription/subscribed_service_client.py +2 -2
  233. oci/onesubscription/subscription_client.py +1 -1
  234. oci/ons/notification_control_plane_client.py +6 -6
  235. oci/ons/notification_data_plane_client.py +10 -10
  236. oci/opa/opa_instance_client.py +13 -13
  237. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  238. oci/opensearch/opensearch_cluster_client.py +17 -17
  239. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  240. oci/operator_access_control/access_requests_client.py +10 -10
  241. oci/operator_access_control/operator_actions_client.py +2 -2
  242. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  243. oci/operator_access_control/operator_control_client.py +6 -6
  244. oci/opsi/operations_insights_client.py +181 -181
  245. oci/optimizer/optimizer_client.py +26 -26
  246. oci/os_management/event_client.py +8 -8
  247. oci/os_management/os_management_client.py +69 -69
  248. oci/os_management_hub/event_client.py +8 -8
  249. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  250. oci/os_management_hub/managed_instance_client.py +33 -33
  251. oci/os_management_hub/managed_instance_group_client.py +26 -26
  252. oci/os_management_hub/management_station_client.py +10 -10
  253. oci/os_management_hub/onboarding_client.py +13 -13
  254. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  255. oci/os_management_hub/scheduled_job_client.py +7 -7
  256. oci/os_management_hub/software_source_client.py +33 -33
  257. oci/os_management_hub/work_request_client.py +5 -5
  258. oci/osp_gateway/address_rule_service_client.py +1 -1
  259. oci/osp_gateway/address_service_client.py +2 -2
  260. oci/osp_gateway/invoice_service_client.py +5 -5
  261. oci/osp_gateway/subscription_service_client.py +5 -5
  262. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  263. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  264. oci/osub_subscription/commitment_client.py +2 -2
  265. oci/osub_subscription/ratecard_client.py +1 -1
  266. oci/osub_subscription/subscription_client.py +1 -1
  267. oci/osub_usage/computed_usage_client.py +3 -3
  268. oci/psql/postgresql_client.py +34 -34
  269. oci/queue/queue_admin_client.py +11 -11
  270. oci/queue/queue_client.py +8 -8
  271. oci/recovery/database_recovery_client.py +26 -26
  272. oci/redis/__init__.py +5 -1
  273. oci/redis/models/__init__.py +30 -0
  274. oci/redis/models/attach_oci_cache_users_details.py +70 -0
  275. oci/redis/models/attached_oci_cache_cluster.py +70 -0
  276. oci/redis/models/attached_oci_cache_user.py +70 -0
  277. oci/redis/models/authentication_mode.py +107 -0
  278. oci/redis/models/change_oci_cache_user_compartment_details.py +70 -0
  279. oci/redis/models/create_identity_token_details.py +167 -0
  280. oci/redis/models/create_oci_cache_user_details.py +287 -0
  281. oci/redis/models/detach_oci_cache_users_details.py +70 -0
  282. oci/redis/models/iam_authentication_mode.py +49 -0
  283. oci/redis/models/identity_token_details_response.py +101 -0
  284. oci/redis/models/oci_cache_user.py +492 -0
  285. oci/redis/models/oci_cache_user_collection.py +70 -0
  286. oci/redis/models/oci_cache_user_summary.py +386 -0
  287. oci/redis/models/password_authentication_mode.py +80 -0
  288. oci/redis/models/update_oci_cache_user_details.py +225 -0
  289. oci/redis/models/work_request.py +27 -3
  290. oci/redis/models/work_request_summary.py +27 -3
  291. oci/redis/oci_cache_user_client.py +951 -0
  292. oci/redis/oci_cache_user_client_composite_operations.py +196 -0
  293. oci/redis/redis_cluster_client.py +410 -12
  294. oci/redis/redis_cluster_client_composite_operations.py +88 -0
  295. oci/redis/redis_identity_client.py +241 -0
  296. oci/redis/redis_identity_client_composite_operations.py +26 -0
  297. oci/resource_manager/resource_manager_client.py +52 -52
  298. oci/resource_scheduler/schedule_client.py +14 -14
  299. oci/resource_search/resource_search_client.py +3 -3
  300. oci/rover/rover_bundle_client.py +8 -8
  301. oci/rover/rover_cluster_client.py +8 -8
  302. oci/rover/rover_entitlement_client.py +6 -6
  303. oci/rover/rover_node_client.py +15 -15
  304. oci/rover/shape_client.py +1 -1
  305. oci/rover/work_requests_client.py +5 -5
  306. oci/sch/connector_plugins_client.py +2 -2
  307. oci/sch/service_connector_client.py +12 -12
  308. oci/secrets/secrets_client.py +3 -3
  309. oci/security_attribute/security_attribute_client.py +18 -18
  310. oci/service_catalog/service_catalog_client.py +26 -26
  311. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  312. oci/service_mesh/service_mesh_client.py +48 -48
  313. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  314. oci/streaming/stream_admin_client.py +18 -18
  315. oci/streaming/stream_client.py +8 -8
  316. oci/tenant_manager_control_plane/domain_client.py +5 -5
  317. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  318. oci/tenant_manager_control_plane/governance_client.py +2 -2
  319. oci/tenant_manager_control_plane/link_client.py +3 -3
  320. oci/tenant_manager_control_plane/orders_client.py +2 -2
  321. oci/tenant_manager_control_plane/organization_client.py +10 -10
  322. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  323. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  324. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  325. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  326. oci/threat_intelligence/threatintel_client.py +5 -5
  327. oci/usage/resources_client.py +2 -2
  328. oci/usage/rewards_client.py +6 -6
  329. oci/usage/usagelimits_client.py +1 -1
  330. oci/usage_api/usageapi_client.py +33 -33
  331. oci/vault/vaults_client.py +13 -13
  332. oci/vbs_inst/vbs_instance_client.py +10 -10
  333. oci/version.py +1 -1
  334. oci/visual_builder/vb_instance_client.py +14 -14
  335. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  336. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  337. oci/waa/waa_client.py +13 -13
  338. oci/waa/work_request_client.py +4 -4
  339. oci/waas/redirect_client.py +6 -6
  340. oci/waas/waas_client.py +66 -66
  341. oci/waf/waf_client.py +24 -24
  342. oci/wlms/__init__.py +16 -0
  343. oci/wlms/models/__init__.py +136 -0
  344. oci/wlms/models/agreement.py +132 -0
  345. oci/wlms/models/agreement_record.py +132 -0
  346. oci/wlms/models/agreement_record_collection.py +70 -0
  347. oci/wlms/models/agreement_record_summary.py +132 -0
  348. oci/wlms/models/applicable_patch_collection.py +70 -0
  349. oci/wlms/models/applicable_patch_summary.py +245 -0
  350. oci/wlms/models/backup.py +265 -0
  351. oci/wlms/models/backup_collection.py +70 -0
  352. oci/wlms/models/backup_content.py +99 -0
  353. oci/wlms/models/backup_summary.py +265 -0
  354. oci/wlms/models/backup_to_restore.py +121 -0
  355. oci/wlms/models/binary_backup_content.py +76 -0
  356. oci/wlms/models/change_wls_domain_compartment_details.py +74 -0
  357. oci/wlms/models/configuration.py +101 -0
  358. oci/wlms/models/create_agreement_record_details.py +101 -0
  359. oci/wlms/models/default_error.py +101 -0
  360. oci/wlms/models/install_latest_patches_on_wls_domain_details.py +101 -0
  361. oci/wlms/models/installed_patch_collection.py +70 -0
  362. oci/wlms/models/installed_patch_summary.py +140 -0
  363. oci/wlms/models/managed_instance.py +406 -0
  364. oci/wlms/models/managed_instance_collection.py +70 -0
  365. oci/wlms/models/managed_instance_configuration.py +101 -0
  366. oci/wlms/models/managed_instance_summary.py +311 -0
  367. oci/wlms/models/middleware_backup_patch.py +140 -0
  368. oci/wlms/models/middleware_binary_backup_content.py +101 -0
  369. oci/wlms/models/patch.py +245 -0
  370. oci/wlms/models/required_policy_collection.py +70 -0
  371. oci/wlms/models/required_policy_summary.py +132 -0
  372. oci/wlms/models/resource_inventory.py +262 -0
  373. oci/wlms/models/restart_wls_domain_details.py +70 -0
  374. oci/wlms/models/restore_wls_domain_details.py +132 -0
  375. oci/wlms/models/scan_result_collection.py +70 -0
  376. oci/wlms/models/scan_result_summary.py +288 -0
  377. oci/wlms/models/server.py +696 -0
  378. oci/wlms/models/server_collection.py +70 -0
  379. oci/wlms/models/server_summary.py +696 -0
  380. oci/wlms/models/server_to_restore.py +117 -0
  381. oci/wlms/models/set_restart_order_details.py +66 -0
  382. oci/wlms/models/set_restart_order_server_collection.py +70 -0
  383. oci/wlms/models/set_restart_order_server_summary.py +101 -0
  384. oci/wlms/models/stop_wls_domain_details.py +70 -0
  385. oci/wlms/models/update_configuration_details.py +101 -0
  386. oci/wlms/models/update_managed_instance_configuration_details.py +101 -0
  387. oci/wlms/models/update_managed_instance_details.py +66 -0
  388. oci/wlms/models/update_wls_domain_configuration_details.py +350 -0
  389. oci/wlms/models/update_wls_domain_credential_details.py +132 -0
  390. oci/wlms/models/update_wls_domain_details.py +148 -0
  391. oci/wlms/models/wls_domain.py +616 -0
  392. oci/wlms/models/wls_domain_collection.py +70 -0
  393. oci/wlms/models/wls_domain_configuration.py +350 -0
  394. oci/wlms/models/wls_domain_credential.py +183 -0
  395. oci/wlms/models/wls_domain_credential_collection.py +70 -0
  396. oci/wlms/models/wls_domain_credential_summary.py +101 -0
  397. oci/wlms/models/wls_domain_summary.py +516 -0
  398. oci/wlms/models/work_request.py +453 -0
  399. oci/wlms/models/work_request_error.py +142 -0
  400. oci/wlms/models/work_request_error_collection.py +70 -0
  401. oci/wlms/models/work_request_log_entry.py +105 -0
  402. oci/wlms/models/work_request_log_entry_collection.py +70 -0
  403. oci/wlms/models/work_request_resource.py +236 -0
  404. oci/wlms/models/work_request_summary.py +451 -0
  405. oci/wlms/models/work_request_summary_collection.py +70 -0
  406. oci/wlms/weblogic_management_service_client.py +5410 -0
  407. oci/wlms/weblogic_management_service_client_composite_operations.py +433 -0
  408. oci/wlms/weblogic_management_service_configuration_client.py +331 -0
  409. oci/wlms/weblogic_management_service_configuration_client_composite_operations.py +26 -0
  410. oci/work_requests/work_request_client.py +4 -4
  411. oci/zpr/zpr_client.py +15 -15
  412. {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/METADATA +1 -1
  413. {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/RECORD +417 -289
  414. {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/LICENSE.txt +0 -0
  415. {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  416. {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/WHEEL +0 -0
  417. {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,951 @@
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: 20220315
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 redis_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class OciCacheUserClient(object):
24
+ """
25
+ Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/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("redis"):
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': '/20220315',
103
+ 'service_endpoint_template': 'https://redis.{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("oci_cache_user", config, signer, redis_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 change_oci_cache_user_compartment(self, oci_cache_user_id, change_oci_cache_user_compartment_details, **kwargs):
120
+ """
121
+ Moves an OCI Cache User from one compartment to another within the same tenancy.
122
+
123
+
124
+ :param str oci_cache_user_id: (required)
125
+ A filter to return only resources, that match with the given OCI cache user ID (OCID).
126
+
127
+ :param oci.redis.models.ChangeOciCacheUserCompartmentDetails change_oci_cache_user_compartment_details: (required)
128
+ The configuration details to move compartment operation for an OCI cache user.
129
+
130
+ :param str if_match: (optional)
131
+ For optimistic concurrency control. In the PUT or DELETE call
132
+ for a resource, set the `if-match` parameter to the value of the
133
+ etag from a previous GET or POST response for that resource.
134
+ The resource will be updated or deleted only if the etag you
135
+ provide matches the resource's current etag value.
136
+
137
+ :param str opc_retry_token: (optional)
138
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
139
+ server error without risk of executing that same action again. Retry tokens expire after 24
140
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
141
+ has been deleted and purged from the system, then a retry of the original creation request
142
+ might be rejected.
143
+
144
+ :param str opc_request_id: (optional)
145
+ The client request ID for tracing.
146
+
147
+ :param obj retry_strategy: (optional)
148
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
149
+
150
+ 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.
151
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
152
+
153
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
154
+
155
+ :param bool allow_control_chars: (optional)
156
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
157
+ By default, the response will not allow control characters in strings
158
+
159
+ :return: A :class:`~oci.response.Response` object with data of type None
160
+ :rtype: :class:`~oci.response.Response`
161
+
162
+ :example:
163
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/redis/change_oci_cache_user_compartment.py.html>`__ to see an example of how to use change_oci_cache_user_compartment API.
164
+ """
165
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
166
+ required_arguments = ['ociCacheUserId']
167
+ resource_path = "/ociCacheUsers/{ociCacheUserId}/actions/changeCompartment"
168
+ method = "POST"
169
+ operation_name = "change_oci_cache_user_compartment"
170
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheUser/ChangeOciCacheUserCompartment"
171
+
172
+ # Don't accept unknown kwargs
173
+ expected_kwargs = [
174
+ "allow_control_chars",
175
+ "retry_strategy",
176
+ "if_match",
177
+ "opc_retry_token",
178
+ "opc_request_id"
179
+ ]
180
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
181
+ if extra_kwargs:
182
+ raise ValueError(
183
+ f"change_oci_cache_user_compartment got unknown kwargs: {extra_kwargs!r}")
184
+
185
+ path_params = {
186
+ "ociCacheUserId": oci_cache_user_id
187
+ }
188
+
189
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
190
+
191
+ for (k, v) in six.iteritems(path_params):
192
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
193
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
194
+
195
+ header_params = {
196
+ "accept": "application/json",
197
+ "content-type": "application/json",
198
+ "if-match": kwargs.get("if_match", missing),
199
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
200
+ "opc-request-id": kwargs.get("opc_request_id", missing)
201
+ }
202
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
203
+
204
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
205
+ operation_retry_strategy=kwargs.get('retry_strategy'),
206
+ client_retry_strategy=self.retry_strategy
207
+ )
208
+ if retry_strategy is None:
209
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
210
+
211
+ if retry_strategy:
212
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
213
+ self.base_client.add_opc_retry_token_if_needed(header_params)
214
+ self.base_client.add_opc_client_retries_header(header_params)
215
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
216
+ return retry_strategy.make_retrying_call(
217
+ self.base_client.call_api,
218
+ resource_path=resource_path,
219
+ method=method,
220
+ path_params=path_params,
221
+ header_params=header_params,
222
+ body=change_oci_cache_user_compartment_details,
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
+ else:
228
+ return self.base_client.call_api(
229
+ resource_path=resource_path,
230
+ method=method,
231
+ path_params=path_params,
232
+ header_params=header_params,
233
+ body=change_oci_cache_user_compartment_details,
234
+ allow_control_chars=kwargs.get('allow_control_chars'),
235
+ operation_name=operation_name,
236
+ api_reference_link=api_reference_link,
237
+ required_arguments=required_arguments)
238
+
239
+ def create_oci_cache_user(self, create_oci_cache_user_details, **kwargs):
240
+ """
241
+ Creates a new OCI Cache user. OCI Cache user is required to authenticate to OCI Cache cluster.
242
+
243
+
244
+ :param oci.redis.models.CreateOciCacheUserDetails create_oci_cache_user_details: (required)
245
+ Details required to create a new OCI cache user.
246
+
247
+ :param str opc_retry_token: (optional)
248
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
249
+ server error without risk of executing that same action again. Retry tokens expire after 24
250
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
251
+ has been deleted and purged from the system, then a retry of the original creation request
252
+ might be rejected.
253
+
254
+ :param str opc_request_id: (optional)
255
+ The client request ID for tracing.
256
+
257
+ :param obj retry_strategy: (optional)
258
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
259
+
260
+ 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.
261
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
262
+
263
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
264
+
265
+ :param bool allow_control_chars: (optional)
266
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
267
+ By default, the response will not allow control characters in strings
268
+
269
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.redis.models.OciCacheUser`
270
+ :rtype: :class:`~oci.response.Response`
271
+
272
+ :example:
273
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/redis/create_oci_cache_user.py.html>`__ to see an example of how to use create_oci_cache_user API.
274
+ """
275
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
276
+ required_arguments = []
277
+ resource_path = "/ociCacheUsers"
278
+ method = "POST"
279
+ operation_name = "create_oci_cache_user"
280
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/CreateOciCacheUserDetails/CreateOciCacheUser"
281
+
282
+ # Don't accept unknown kwargs
283
+ expected_kwargs = [
284
+ "allow_control_chars",
285
+ "retry_strategy",
286
+ "opc_retry_token",
287
+ "opc_request_id"
288
+ ]
289
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
290
+ if extra_kwargs:
291
+ raise ValueError(
292
+ f"create_oci_cache_user got unknown kwargs: {extra_kwargs!r}")
293
+
294
+ header_params = {
295
+ "accept": "application/json",
296
+ "content-type": "application/json",
297
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
298
+ "opc-request-id": kwargs.get("opc_request_id", missing)
299
+ }
300
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
301
+
302
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
303
+ operation_retry_strategy=kwargs.get('retry_strategy'),
304
+ client_retry_strategy=self.retry_strategy
305
+ )
306
+ if retry_strategy is None:
307
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
308
+
309
+ if retry_strategy:
310
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
311
+ self.base_client.add_opc_retry_token_if_needed(header_params)
312
+ self.base_client.add_opc_client_retries_header(header_params)
313
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
314
+ return retry_strategy.make_retrying_call(
315
+ self.base_client.call_api,
316
+ resource_path=resource_path,
317
+ method=method,
318
+ header_params=header_params,
319
+ body=create_oci_cache_user_details,
320
+ response_type="OciCacheUser",
321
+ allow_control_chars=kwargs.get('allow_control_chars'),
322
+ operation_name=operation_name,
323
+ api_reference_link=api_reference_link,
324
+ required_arguments=required_arguments)
325
+ else:
326
+ return self.base_client.call_api(
327
+ resource_path=resource_path,
328
+ method=method,
329
+ header_params=header_params,
330
+ body=create_oci_cache_user_details,
331
+ response_type="OciCacheUser",
332
+ allow_control_chars=kwargs.get('allow_control_chars'),
333
+ operation_name=operation_name,
334
+ api_reference_link=api_reference_link,
335
+ required_arguments=required_arguments)
336
+
337
+ def delete_oci_cache_user(self, oci_cache_user_id, **kwargs):
338
+ """
339
+ Deletes an existing OCI Cache User based on the OCI cache user unique ID (OCID).
340
+
341
+
342
+ :param str oci_cache_user_id: (required)
343
+ A filter to return only resources, that match with the given OCI cache user ID (OCID).
344
+
345
+ :param str if_match: (optional)
346
+ For optimistic concurrency control. In the PUT or DELETE call
347
+ for a resource, set the `if-match` parameter to the value of the
348
+ etag from a previous GET or POST response for that resource.
349
+ The resource will be updated or deleted only if the etag you
350
+ provide matches the resource's current etag value.
351
+
352
+ :param str opc_request_id: (optional)
353
+ The client request ID for tracing.
354
+
355
+ :param obj retry_strategy: (optional)
356
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
357
+
358
+ 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.
359
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
360
+
361
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
362
+
363
+ :param bool allow_control_chars: (optional)
364
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
365
+ By default, the response will not allow control characters in strings
366
+
367
+ :return: A :class:`~oci.response.Response` object with data of type None
368
+ :rtype: :class:`~oci.response.Response`
369
+
370
+ :example:
371
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/redis/delete_oci_cache_user.py.html>`__ to see an example of how to use delete_oci_cache_user API.
372
+ """
373
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
374
+ required_arguments = ['ociCacheUserId']
375
+ resource_path = "/ociCacheUsers/{ociCacheUserId}"
376
+ method = "DELETE"
377
+ operation_name = "delete_oci_cache_user"
378
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheUser/DeleteOciCacheUser"
379
+
380
+ # Don't accept unknown kwargs
381
+ expected_kwargs = [
382
+ "allow_control_chars",
383
+ "retry_strategy",
384
+ "if_match",
385
+ "opc_request_id"
386
+ ]
387
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
388
+ if extra_kwargs:
389
+ raise ValueError(
390
+ f"delete_oci_cache_user got unknown kwargs: {extra_kwargs!r}")
391
+
392
+ path_params = {
393
+ "ociCacheUserId": oci_cache_user_id
394
+ }
395
+
396
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
397
+
398
+ for (k, v) in six.iteritems(path_params):
399
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
400
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
401
+
402
+ header_params = {
403
+ "accept": "application/json",
404
+ "content-type": "application/json",
405
+ "if-match": kwargs.get("if_match", missing),
406
+ "opc-request-id": kwargs.get("opc_request_id", missing)
407
+ }
408
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
409
+
410
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
411
+ operation_retry_strategy=kwargs.get('retry_strategy'),
412
+ client_retry_strategy=self.retry_strategy
413
+ )
414
+ if retry_strategy is None:
415
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
416
+
417
+ if retry_strategy:
418
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
419
+ self.base_client.add_opc_client_retries_header(header_params)
420
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
421
+ return retry_strategy.make_retrying_call(
422
+ self.base_client.call_api,
423
+ resource_path=resource_path,
424
+ method=method,
425
+ path_params=path_params,
426
+ header_params=header_params,
427
+ allow_control_chars=kwargs.get('allow_control_chars'),
428
+ operation_name=operation_name,
429
+ api_reference_link=api_reference_link,
430
+ required_arguments=required_arguments)
431
+ else:
432
+ return self.base_client.call_api(
433
+ resource_path=resource_path,
434
+ method=method,
435
+ path_params=path_params,
436
+ header_params=header_params,
437
+ allow_control_chars=kwargs.get('allow_control_chars'),
438
+ operation_name=operation_name,
439
+ api_reference_link=api_reference_link,
440
+ required_arguments=required_arguments)
441
+
442
+ def get_oci_cache_user(self, oci_cache_user_id, **kwargs):
443
+ """
444
+ Get an existing OCI Cache users based on the ID (OCID).
445
+
446
+
447
+ :param str oci_cache_user_id: (required)
448
+ A filter to return only resources, that match with the given OCI cache user ID (OCID).
449
+
450
+ :param str opc_request_id: (optional)
451
+ The client request ID for tracing.
452
+
453
+ :param obj retry_strategy: (optional)
454
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
455
+
456
+ 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.
457
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
458
+
459
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
460
+
461
+ :param bool allow_control_chars: (optional)
462
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
463
+ By default, the response will not allow control characters in strings
464
+
465
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.redis.models.OciCacheUser`
466
+ :rtype: :class:`~oci.response.Response`
467
+
468
+ :example:
469
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/redis/get_oci_cache_user.py.html>`__ to see an example of how to use get_oci_cache_user API.
470
+ """
471
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
472
+ required_arguments = ['ociCacheUserId']
473
+ resource_path = "/ociCacheUsers/{ociCacheUserId}"
474
+ method = "GET"
475
+ operation_name = "get_oci_cache_user"
476
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheUser/GetOciCacheUser"
477
+
478
+ # Don't accept unknown kwargs
479
+ expected_kwargs = [
480
+ "allow_control_chars",
481
+ "retry_strategy",
482
+ "opc_request_id"
483
+ ]
484
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
485
+ if extra_kwargs:
486
+ raise ValueError(
487
+ f"get_oci_cache_user got unknown kwargs: {extra_kwargs!r}")
488
+
489
+ path_params = {
490
+ "ociCacheUserId": oci_cache_user_id
491
+ }
492
+
493
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
494
+
495
+ for (k, v) in six.iteritems(path_params):
496
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
497
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
498
+
499
+ header_params = {
500
+ "accept": "application/json",
501
+ "content-type": "application/json",
502
+ "opc-request-id": kwargs.get("opc_request_id", missing)
503
+ }
504
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
505
+
506
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
507
+ operation_retry_strategy=kwargs.get('retry_strategy'),
508
+ client_retry_strategy=self.retry_strategy
509
+ )
510
+ if retry_strategy is None:
511
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
512
+
513
+ if retry_strategy:
514
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
515
+ self.base_client.add_opc_client_retries_header(header_params)
516
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
517
+ return retry_strategy.make_retrying_call(
518
+ self.base_client.call_api,
519
+ resource_path=resource_path,
520
+ method=method,
521
+ path_params=path_params,
522
+ header_params=header_params,
523
+ response_type="OciCacheUser",
524
+ allow_control_chars=kwargs.get('allow_control_chars'),
525
+ operation_name=operation_name,
526
+ api_reference_link=api_reference_link,
527
+ required_arguments=required_arguments)
528
+ else:
529
+ return self.base_client.call_api(
530
+ resource_path=resource_path,
531
+ method=method,
532
+ path_params=path_params,
533
+ header_params=header_params,
534
+ response_type="OciCacheUser",
535
+ allow_control_chars=kwargs.get('allow_control_chars'),
536
+ operation_name=operation_name,
537
+ api_reference_link=api_reference_link,
538
+ required_arguments=required_arguments)
539
+
540
+ def list_attached_redis_clusters(self, oci_cache_user_id, **kwargs):
541
+ """
542
+ Gets a list of associated redis cluster for an OCI cache user.
543
+
544
+
545
+ :param str oci_cache_user_id: (required)
546
+ A filter to return only resources, that match with the given OCI cache user ID (OCID).
547
+
548
+ :param str compartment_id: (optional)
549
+ The ID of the compartment in which to list resources.
550
+
551
+ :param str display_name: (optional)
552
+ A filter to return only resources that match the entire display name given.
553
+
554
+ :param int limit: (optional)
555
+ The maximum number of items to return.
556
+
557
+ :param str page: (optional)
558
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
559
+
560
+ :param str sort_order: (optional)
561
+ The sort order to use, either 'ASC' or 'DESC'.
562
+
563
+ Allowed values are: "ASC", "DESC"
564
+
565
+ :param str sort_by: (optional)
566
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
567
+
568
+ Allowed values are: "timeCreated", "displayName"
569
+
570
+ :param str opc_request_id: (optional)
571
+ The client request ID for tracing.
572
+
573
+ :param obj retry_strategy: (optional)
574
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
575
+
576
+ 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.
577
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
578
+
579
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
580
+
581
+ :param bool allow_control_chars: (optional)
582
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
583
+ By default, the response will not allow control characters in strings
584
+
585
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.redis.models.AttachedOciCacheCluster`
586
+ :rtype: :class:`~oci.response.Response`
587
+
588
+ :example:
589
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/redis/list_attached_redis_clusters.py.html>`__ to see an example of how to use list_attached_redis_clusters API.
590
+ """
591
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
592
+ required_arguments = ['ociCacheUserId']
593
+ resource_path = "/ociCacheUsers/{ociCacheUserId}/actions/getRedisClusters"
594
+ method = "POST"
595
+ operation_name = "list_attached_redis_clusters"
596
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/AttachedOciCacheCluster/ListAttachedRedisClusters"
597
+
598
+ # Don't accept unknown kwargs
599
+ expected_kwargs = [
600
+ "allow_control_chars",
601
+ "retry_strategy",
602
+ "compartment_id",
603
+ "display_name",
604
+ "limit",
605
+ "page",
606
+ "sort_order",
607
+ "sort_by",
608
+ "opc_request_id"
609
+ ]
610
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
611
+ if extra_kwargs:
612
+ raise ValueError(
613
+ f"list_attached_redis_clusters got unknown kwargs: {extra_kwargs!r}")
614
+
615
+ path_params = {
616
+ "ociCacheUserId": oci_cache_user_id
617
+ }
618
+
619
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
620
+
621
+ for (k, v) in six.iteritems(path_params):
622
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
623
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
624
+
625
+ if 'sort_order' in kwargs:
626
+ sort_order_allowed_values = ["ASC", "DESC"]
627
+ if kwargs['sort_order'] not in sort_order_allowed_values:
628
+ raise ValueError(
629
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
630
+ )
631
+
632
+ if 'sort_by' in kwargs:
633
+ sort_by_allowed_values = ["timeCreated", "displayName"]
634
+ if kwargs['sort_by'] not in sort_by_allowed_values:
635
+ raise ValueError(
636
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
637
+ )
638
+
639
+ query_params = {
640
+ "compartmentId": kwargs.get("compartment_id", missing),
641
+ "displayName": kwargs.get("display_name", missing),
642
+ "limit": kwargs.get("limit", missing),
643
+ "page": kwargs.get("page", missing),
644
+ "sortOrder": kwargs.get("sort_order", missing),
645
+ "sortBy": kwargs.get("sort_by", missing)
646
+ }
647
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
648
+
649
+ header_params = {
650
+ "accept": "application/json",
651
+ "content-type": "application/json",
652
+ "opc-request-id": kwargs.get("opc_request_id", missing)
653
+ }
654
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
655
+
656
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
657
+ operation_retry_strategy=kwargs.get('retry_strategy'),
658
+ client_retry_strategy=self.retry_strategy
659
+ )
660
+ if retry_strategy is None:
661
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
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
+ query_params=query_params,
673
+ header_params=header_params,
674
+ response_type="list[AttachedOciCacheCluster]",
675
+ allow_control_chars=kwargs.get('allow_control_chars'),
676
+ operation_name=operation_name,
677
+ api_reference_link=api_reference_link,
678
+ required_arguments=required_arguments)
679
+ else:
680
+ return self.base_client.call_api(
681
+ resource_path=resource_path,
682
+ method=method,
683
+ path_params=path_params,
684
+ query_params=query_params,
685
+ header_params=header_params,
686
+ response_type="list[AttachedOciCacheCluster]",
687
+ allow_control_chars=kwargs.get('allow_control_chars'),
688
+ operation_name=operation_name,
689
+ api_reference_link=api_reference_link,
690
+ required_arguments=required_arguments)
691
+
692
+ def list_oci_cache_users(self, **kwargs):
693
+ """
694
+ Lists the OCI Cache users based on the supplied parameters.
695
+
696
+
697
+ :param str compartment_id: (optional)
698
+ The ID of the compartment in which to list resources.
699
+
700
+ :param str name: (optional)
701
+ A filter to return the resources that match with the given OCI cache user name.
702
+
703
+ :param str lifecycle_state: (optional)
704
+ A filter to return the resources, whose lifecycleState matches with the given lifecycleState.
705
+
706
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
707
+
708
+ :param int limit: (optional)
709
+ The maximum number of items to return.
710
+
711
+ :param str page: (optional)
712
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
713
+
714
+ :param str sort_order: (optional)
715
+ The sort order to use, either 'ASC' or 'DESC'.
716
+
717
+ Allowed values are: "ASC", "DESC"
718
+
719
+ :param str sort_by: (optional)
720
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
721
+
722
+ Allowed values are: "timeCreated", "displayName"
723
+
724
+ :param str opc_request_id: (optional)
725
+ The client request ID for tracing.
726
+
727
+ :param obj retry_strategy: (optional)
728
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
729
+
730
+ 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.
731
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
732
+
733
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
734
+
735
+ :param bool allow_control_chars: (optional)
736
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
737
+ By default, the response will not allow control characters in strings
738
+
739
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.redis.models.OciCacheUserCollection`
740
+ :rtype: :class:`~oci.response.Response`
741
+
742
+ :example:
743
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/redis/list_oci_cache_users.py.html>`__ to see an example of how to use list_oci_cache_users API.
744
+ """
745
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
746
+ required_arguments = []
747
+ resource_path = "/ociCacheUsers"
748
+ method = "GET"
749
+ operation_name = "list_oci_cache_users"
750
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheUserSummary/ListOciCacheUsers"
751
+
752
+ # Don't accept unknown kwargs
753
+ expected_kwargs = [
754
+ "allow_control_chars",
755
+ "retry_strategy",
756
+ "compartment_id",
757
+ "name",
758
+ "lifecycle_state",
759
+ "limit",
760
+ "page",
761
+ "sort_order",
762
+ "sort_by",
763
+ "opc_request_id"
764
+ ]
765
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
766
+ if extra_kwargs:
767
+ raise ValueError(
768
+ f"list_oci_cache_users got unknown kwargs: {extra_kwargs!r}")
769
+
770
+ if 'lifecycle_state' in kwargs:
771
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
772
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
773
+ raise ValueError(
774
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
775
+ )
776
+
777
+ if 'sort_order' in kwargs:
778
+ sort_order_allowed_values = ["ASC", "DESC"]
779
+ if kwargs['sort_order'] not in sort_order_allowed_values:
780
+ raise ValueError(
781
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
782
+ )
783
+
784
+ if 'sort_by' in kwargs:
785
+ sort_by_allowed_values = ["timeCreated", "displayName"]
786
+ if kwargs['sort_by'] not in sort_by_allowed_values:
787
+ raise ValueError(
788
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
789
+ )
790
+
791
+ query_params = {
792
+ "compartmentId": kwargs.get("compartment_id", missing),
793
+ "name": kwargs.get("name", missing),
794
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
795
+ "limit": kwargs.get("limit", missing),
796
+ "page": kwargs.get("page", missing),
797
+ "sortOrder": kwargs.get("sort_order", missing),
798
+ "sortBy": kwargs.get("sort_by", missing)
799
+ }
800
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
801
+
802
+ header_params = {
803
+ "accept": "application/json",
804
+ "content-type": "application/json",
805
+ "opc-request-id": kwargs.get("opc_request_id", missing)
806
+ }
807
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
808
+
809
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
810
+ operation_retry_strategy=kwargs.get('retry_strategy'),
811
+ client_retry_strategy=self.retry_strategy
812
+ )
813
+ if retry_strategy is None:
814
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
815
+
816
+ if retry_strategy:
817
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
818
+ self.base_client.add_opc_client_retries_header(header_params)
819
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
820
+ return retry_strategy.make_retrying_call(
821
+ self.base_client.call_api,
822
+ resource_path=resource_path,
823
+ method=method,
824
+ query_params=query_params,
825
+ header_params=header_params,
826
+ response_type="OciCacheUserCollection",
827
+ allow_control_chars=kwargs.get('allow_control_chars'),
828
+ operation_name=operation_name,
829
+ api_reference_link=api_reference_link,
830
+ required_arguments=required_arguments)
831
+ else:
832
+ return self.base_client.call_api(
833
+ resource_path=resource_path,
834
+ method=method,
835
+ query_params=query_params,
836
+ header_params=header_params,
837
+ response_type="OciCacheUserCollection",
838
+ allow_control_chars=kwargs.get('allow_control_chars'),
839
+ operation_name=operation_name,
840
+ api_reference_link=api_reference_link,
841
+ required_arguments=required_arguments)
842
+
843
+ def update_oci_cache_user(self, oci_cache_user_id, update_oci_cache_user_details, **kwargs):
844
+ """
845
+ Update an existing OCI Cache User with new details.
846
+
847
+
848
+ :param str oci_cache_user_id: (required)
849
+ A filter to return only resources, that match with the given OCI cache user ID (OCID).
850
+
851
+ :param oci.redis.models.UpdateOciCacheUserDetails update_oci_cache_user_details: (required)
852
+ The information to be updated for an existing OCI Cache User.
853
+
854
+ :param str if_match: (optional)
855
+ For optimistic concurrency control. In the PUT or DELETE call
856
+ for a resource, set the `if-match` parameter to the value of the
857
+ etag from a previous GET or POST response for that resource.
858
+ The resource will be updated or deleted only if the etag you
859
+ provide matches the resource's current etag value.
860
+
861
+ :param str opc_request_id: (optional)
862
+ The client request ID for tracing.
863
+
864
+ :param obj retry_strategy: (optional)
865
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
866
+
867
+ 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.
868
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
869
+
870
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
871
+
872
+ :param bool allow_control_chars: (optional)
873
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
874
+ By default, the response will not allow control characters in strings
875
+
876
+ :return: A :class:`~oci.response.Response` object with data of type None
877
+ :rtype: :class:`~oci.response.Response`
878
+
879
+ :example:
880
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/redis/update_oci_cache_user.py.html>`__ to see an example of how to use update_oci_cache_user API.
881
+ """
882
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
883
+ required_arguments = ['ociCacheUserId']
884
+ resource_path = "/ociCacheUsers/{ociCacheUserId}"
885
+ method = "PUT"
886
+ operation_name = "update_oci_cache_user"
887
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheUser/UpdateOciCacheUser"
888
+
889
+ # Don't accept unknown kwargs
890
+ expected_kwargs = [
891
+ "allow_control_chars",
892
+ "retry_strategy",
893
+ "if_match",
894
+ "opc_request_id"
895
+ ]
896
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
897
+ if extra_kwargs:
898
+ raise ValueError(
899
+ f"update_oci_cache_user got unknown kwargs: {extra_kwargs!r}")
900
+
901
+ path_params = {
902
+ "ociCacheUserId": oci_cache_user_id
903
+ }
904
+
905
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
906
+
907
+ for (k, v) in six.iteritems(path_params):
908
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
909
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
910
+
911
+ header_params = {
912
+ "accept": "application/json",
913
+ "content-type": "application/json",
914
+ "if-match": kwargs.get("if_match", missing),
915
+ "opc-request-id": kwargs.get("opc_request_id", missing)
916
+ }
917
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
918
+
919
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
920
+ operation_retry_strategy=kwargs.get('retry_strategy'),
921
+ client_retry_strategy=self.retry_strategy
922
+ )
923
+ if retry_strategy is None:
924
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
925
+
926
+ if retry_strategy:
927
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
928
+ self.base_client.add_opc_client_retries_header(header_params)
929
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
930
+ return retry_strategy.make_retrying_call(
931
+ self.base_client.call_api,
932
+ resource_path=resource_path,
933
+ method=method,
934
+ path_params=path_params,
935
+ header_params=header_params,
936
+ body=update_oci_cache_user_details,
937
+ allow_control_chars=kwargs.get('allow_control_chars'),
938
+ operation_name=operation_name,
939
+ api_reference_link=api_reference_link,
940
+ required_arguments=required_arguments)
941
+ else:
942
+ return self.base_client.call_api(
943
+ resource_path=resource_path,
944
+ method=method,
945
+ path_params=path_params,
946
+ header_params=header_params,
947
+ body=update_oci_cache_user_details,
948
+ allow_control_chars=kwargs.get('allow_control_chars'),
949
+ operation_name=operation_name,
950
+ api_reference_link=api_reference_link,
951
+ required_arguments=required_arguments)