oci 2.154.1__py3-none-any.whl → 2.154.3__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.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/addons/adk/agent.py +82 -32
- oci/addons/adk/mcp/__init__.py +11 -0
- oci/addons/adk/mcp/mcp_client.py +420 -0
- oci/addons/adk/tool/function_tool.py +7 -4
- oci/addons/adk/tool/tool.py +11 -2
- oci/addons/adk/tool/toolkit.py +11 -2
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +72 -72
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apiaccesscontrol/__init__.py +20 -0
- oci/apiaccesscontrol/api_metadata_client.py +567 -0
- oci/apiaccesscontrol/api_metadata_client_composite_operations.py +26 -0
- oci/apiaccesscontrol/models/__init__.py +72 -0
- oci/apiaccesscontrol/models/api_metadata.py +596 -0
- oci/apiaccesscontrol/models/api_metadata_by_entity_type_collection.py +70 -0
- oci/apiaccesscontrol/models/api_metadata_by_entity_type_summary.py +218 -0
- oci/apiaccesscontrol/models/api_metadata_collection.py +70 -0
- oci/apiaccesscontrol/models/api_metadata_summary.py +486 -0
- oci/apiaccesscontrol/models/approve_privileged_api_request_details.py +105 -0
- oci/apiaccesscontrol/models/approver_detail.py +202 -0
- oci/apiaccesscontrol/models/change_privileged_api_control_compartment_details.py +74 -0
- oci/apiaccesscontrol/models/close_privileged_api_request_details.py +70 -0
- oci/apiaccesscontrol/models/create_privileged_api_control_details.py +404 -0
- oci/apiaccesscontrol/models/create_privileged_api_request_details.py +502 -0
- oci/apiaccesscontrol/models/privileged_api_control.py +761 -0
- oci/apiaccesscontrol/models/privileged_api_control_collection.py +70 -0
- oci/apiaccesscontrol/models/privileged_api_control_summary.py +494 -0
- oci/apiaccesscontrol/models/privileged_api_details.py +132 -0
- oci/apiaccesscontrol/models/privileged_api_request.py +1209 -0
- oci/apiaccesscontrol/models/privileged_api_request_collection.py +70 -0
- oci/apiaccesscontrol/models/privileged_api_request_operation_details.py +101 -0
- oci/apiaccesscontrol/models/privileged_api_request_summary.py +750 -0
- oci/apiaccesscontrol/models/reject_privileged_api_request_details.py +70 -0
- oci/apiaccesscontrol/models/revoke_privileged_api_request_details.py +70 -0
- oci/apiaccesscontrol/models/update_privileged_api_control_details.py +369 -0
- oci/apiaccesscontrol/models/work_request.py +525 -0
- oci/apiaccesscontrol/models/work_request_error.py +144 -0
- oci/apiaccesscontrol/models/work_request_error_collection.py +70 -0
- oci/apiaccesscontrol/models/work_request_log_entry.py +107 -0
- oci/apiaccesscontrol/models/work_request_log_entry_collection.py +70 -0
- oci/apiaccesscontrol/models/work_request_resource.py +236 -0
- oci/apiaccesscontrol/models/work_request_summary.py +523 -0
- oci/apiaccesscontrol/models/work_request_summary_collection.py +70 -0
- oci/apiaccesscontrol/privileged_api_control_client.py +865 -0
- oci/apiaccesscontrol/privileged_api_control_client_composite_operations.py +202 -0
- oci/apiaccesscontrol/privileged_api_requests_client.py +1012 -0
- oci/apiaccesscontrol/privileged_api_requests_client_composite_operations.py +233 -0
- oci/apiaccesscontrol/privileged_api_work_request_client.py +817 -0
- oci/apiaccesscontrol/privileged_api_work_request_client_composite_operations.py +26 -0
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +12 -12
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/base_client.py +3 -0
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +88 -88
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/capacity_management/demand_signal_client.py +13 -13
- oci/capacity_management/internal_demand_signal_client.py +12 -12
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/models/available_plugin_summary.py +9 -9
- oci/compute_instance_agent/models/instance_agent_command_content.py +37 -2
- oci/compute_instance_agent/models/instance_agent_plugin.py +33 -9
- oci/compute_instance_agent/models/instance_agent_plugin_summary.py +31 -7
- oci/compute_instance_agent/models/plugin.py +11 -11
- oci/compute_instance_agent/plugin_client.py +13 -8
- oci/compute_instance_agent/pluginconfig_client.py +14 -10
- oci/container_engine/container_engine_client.py +46 -46
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +125 -125
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +2 -0
- oci/core/models/capacity_bin.py +225 -0
- oci/core/models/compute_bare_metal_host_placement_constraint_details.py +4 -3
- oci/core/models/dedicated_vm_host.py +64 -2
- oci/core/models/host_group_placement_constraint_details.py +3 -3
- oci/core/models/placement_constraint_details.py +7 -3
- oci/core/virtual_network_client.py +258 -258
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +45 -45
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +317 -317
- oci/data_science/data_science_client.py +145 -145
- oci/database/database_client.py +417 -417
- oci/database/models/backup.py +7 -3
- oci/database/models/backup_destination_configuration_summary.py +7 -3
- oci/database/models/backup_destination_details.py +7 -3
- oci/database/models/backup_destination_details_summary.py +7 -3
- oci/database/models/backup_summary.py +7 -3
- oci/database/models/create_cloud_vm_cluster_details.py +17 -17
- oci/database/models/create_database_base.py +1 -1
- oci/database/models/create_vm_cluster_details.py +2 -2
- oci/database_management/db_management_client.py +229 -229
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +15 -15
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/db_life_cycle_management_client.py +14 -14
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/distributed_database/distributed_autonomous_db_service_client.py +18 -18
- oci/distributed_database/distributed_db_private_endpoint_service_client.py +7 -7
- oci/distributed_database/distributed_db_service_client.py +19 -19
- oci/distributed_database/distributed_db_work_request_service_client.py +4 -4
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +74 -74
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
- oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
- oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
- oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
- oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/fleet_software_update/models/__init__.py +12 -0
- oci/fleet_software_update/models/create_fsu_cycle_details.py +11 -3
- oci/fleet_software_update/models/create_patch_fsu_cycle.py +1 -1
- oci/fleet_software_update/models/create_upgrade_fsu_cycle.py +147 -0
- oci/fleet_software_update/models/fsu_cycle.py +11 -3
- oci/fleet_software_update/models/fsu_cycle_summary.py +7 -3
- oci/fleet_software_update/models/patch_fsu_cycle.py +1 -1
- oci/fleet_software_update/models/update_fsu_cycle_details.py +11 -3
- oci/fleet_software_update/models/update_patch_fsu_cycle.py +1 -1
- oci/fleet_software_update/models/update_upgrade_fsu_cycle.py +118 -0
- oci/fleet_software_update/models/upgrade_db_collection_details.py +142 -0
- oci/fleet_software_update/models/upgrade_details.py +107 -0
- oci/fleet_software_update/models/upgrade_fsu_cycle.py +241 -0
- oci/fleet_software_update/models/upgrade_gi_collection_details.py +111 -0
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +89 -89
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/load_balancer/models/backend.py +4 -4
- oci/load_balancer/models/backend_details.py +10 -4
- oci/load_balancer/models/backend_set.py +6 -4
- oci/load_balancer/models/backend_set_details.py +12 -4
- oci/load_balancer/models/create_backend_details.py +10 -4
- oci/load_balancer/models/create_backend_set_details.py +12 -4
- oci/load_balancer/models/create_listener_details.py +6 -4
- oci/load_balancer/models/create_load_balancer_details.py +39 -0
- oci/load_balancer/models/listener.py +6 -4
- oci/load_balancer/models/listener_details.py +6 -4
- oci/load_balancer/models/load_balancer.py +61 -2
- oci/load_balancer/models/reserved_ip.py +4 -0
- oci/load_balancer/models/update_backend_details.py +10 -4
- oci/load_balancer/models/update_backend_set_details.py +12 -4
- oci/load_balancer/models/update_listener_details.py +6 -4
- oci/load_balancer/models/update_load_balancer_details.py +59 -0
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +200 -200
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +18 -18
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- oci/model_deployment/model_deployment_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +8 -8
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +92 -92
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- oci/nosql/models/__init__.py +14 -0
- oci/nosql/models/configuration.py +109 -0
- oci/nosql/models/hosted_configuration.py +78 -0
- oci/nosql/models/kms_key.py +244 -0
- oci/nosql/models/multi_tenancy_configuration.py +49 -0
- oci/nosql/models/update_configuration_details.py +109 -0
- oci/nosql/models/update_hosted_configuration_details.py +78 -0
- oci/nosql/models/update_multi_tenancy_configuration_details.py +52 -0
- oci/nosql/models/work_request.py +7 -3
- oci/nosql/models/work_request_summary.py +7 -3
- oci/nosql/nosql_client.py +340 -25
- oci/nosql/nosql_client_composite_operations.py +81 -0
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +17 -17
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +181 -181
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +34 -34
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/__init__.py +5 -1
- oci/redis/models/__init__.py +30 -0
- oci/redis/models/attach_oci_cache_users_details.py +70 -0
- oci/redis/models/attached_oci_cache_cluster.py +70 -0
- oci/redis/models/attached_oci_cache_user.py +70 -0
- oci/redis/models/authentication_mode.py +107 -0
- oci/redis/models/change_oci_cache_user_compartment_details.py +70 -0
- oci/redis/models/create_identity_token_details.py +167 -0
- oci/redis/models/create_oci_cache_user_details.py +287 -0
- oci/redis/models/detach_oci_cache_users_details.py +70 -0
- oci/redis/models/iam_authentication_mode.py +49 -0
- oci/redis/models/identity_token_details_response.py +101 -0
- oci/redis/models/oci_cache_user.py +492 -0
- oci/redis/models/oci_cache_user_collection.py +70 -0
- oci/redis/models/oci_cache_user_summary.py +386 -0
- oci/redis/models/password_authentication_mode.py +80 -0
- oci/redis/models/update_oci_cache_user_details.py +225 -0
- oci/redis/models/work_request.py +27 -3
- oci/redis/models/work_request_summary.py +27 -3
- oci/redis/oci_cache_user_client.py +951 -0
- oci/redis/oci_cache_user_client_composite_operations.py +196 -0
- oci/redis/redis_cluster_client.py +410 -12
- oci/redis/redis_cluster_client_composite_operations.py +88 -0
- oci/redis/redis_identity_client.py +241 -0
- oci/redis/redis_identity_client_composite_operations.py +26 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +14 -14
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +96 -96
- oci/stack_monitoring/stack_monitoring_client.py +87 -87
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/wlms/__init__.py +16 -0
- oci/wlms/models/__init__.py +136 -0
- oci/wlms/models/agreement.py +132 -0
- oci/wlms/models/agreement_record.py +132 -0
- oci/wlms/models/agreement_record_collection.py +70 -0
- oci/wlms/models/agreement_record_summary.py +132 -0
- oci/wlms/models/applicable_patch_collection.py +70 -0
- oci/wlms/models/applicable_patch_summary.py +245 -0
- oci/wlms/models/backup.py +265 -0
- oci/wlms/models/backup_collection.py +70 -0
- oci/wlms/models/backup_content.py +99 -0
- oci/wlms/models/backup_summary.py +265 -0
- oci/wlms/models/backup_to_restore.py +121 -0
- oci/wlms/models/binary_backup_content.py +76 -0
- oci/wlms/models/change_wls_domain_compartment_details.py +74 -0
- oci/wlms/models/configuration.py +101 -0
- oci/wlms/models/create_agreement_record_details.py +101 -0
- oci/wlms/models/default_error.py +101 -0
- oci/wlms/models/install_latest_patches_on_wls_domain_details.py +101 -0
- oci/wlms/models/installed_patch_collection.py +70 -0
- oci/wlms/models/installed_patch_summary.py +140 -0
- oci/wlms/models/managed_instance.py +406 -0
- oci/wlms/models/managed_instance_collection.py +70 -0
- oci/wlms/models/managed_instance_configuration.py +101 -0
- oci/wlms/models/managed_instance_summary.py +311 -0
- oci/wlms/models/middleware_backup_patch.py +140 -0
- oci/wlms/models/middleware_binary_backup_content.py +101 -0
- oci/wlms/models/patch.py +245 -0
- oci/wlms/models/required_policy_collection.py +70 -0
- oci/wlms/models/required_policy_summary.py +132 -0
- oci/wlms/models/resource_inventory.py +262 -0
- oci/wlms/models/restart_wls_domain_details.py +70 -0
- oci/wlms/models/restore_wls_domain_details.py +132 -0
- oci/wlms/models/scan_result_collection.py +70 -0
- oci/wlms/models/scan_result_summary.py +288 -0
- oci/wlms/models/server.py +696 -0
- oci/wlms/models/server_collection.py +70 -0
- oci/wlms/models/server_summary.py +696 -0
- oci/wlms/models/server_to_restore.py +117 -0
- oci/wlms/models/set_restart_order_details.py +66 -0
- oci/wlms/models/set_restart_order_server_collection.py +70 -0
- oci/wlms/models/set_restart_order_server_summary.py +101 -0
- oci/wlms/models/stop_wls_domain_details.py +70 -0
- oci/wlms/models/update_configuration_details.py +101 -0
- oci/wlms/models/update_managed_instance_configuration_details.py +101 -0
- oci/wlms/models/update_managed_instance_details.py +66 -0
- oci/wlms/models/update_wls_domain_configuration_details.py +350 -0
- oci/wlms/models/update_wls_domain_credential_details.py +132 -0
- oci/wlms/models/update_wls_domain_details.py +148 -0
- oci/wlms/models/wls_domain.py +616 -0
- oci/wlms/models/wls_domain_collection.py +70 -0
- oci/wlms/models/wls_domain_configuration.py +350 -0
- oci/wlms/models/wls_domain_credential.py +183 -0
- oci/wlms/models/wls_domain_credential_collection.py +70 -0
- oci/wlms/models/wls_domain_credential_summary.py +101 -0
- oci/wlms/models/wls_domain_summary.py +516 -0
- oci/wlms/models/work_request.py +453 -0
- oci/wlms/models/work_request_error.py +142 -0
- oci/wlms/models/work_request_error_collection.py +70 -0
- oci/wlms/models/work_request_log_entry.py +105 -0
- oci/wlms/models/work_request_log_entry_collection.py +70 -0
- oci/wlms/models/work_request_resource.py +236 -0
- oci/wlms/models/work_request_summary.py +451 -0
- oci/wlms/models/work_request_summary_collection.py +70 -0
- oci/wlms/weblogic_management_service_client.py +5410 -0
- oci/wlms/weblogic_management_service_client_composite_operations.py +433 -0
- oci/wlms/weblogic_management_service_configuration_client.py +331 -0
- oci/wlms/weblogic_management_service_configuration_client_composite_operations.py +26 -0
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.154.1.dist-info → oci-2.154.3.dist-info}/METADATA +1 -1
- {oci-2.154.1.dist-info → oci-2.154.3.dist-info}/RECORD +473 -330
- {oci-2.154.1.dist-info → oci-2.154.3.dist-info}/LICENSE.txt +0 -0
- {oci-2.154.1.dist-info → oci-2.154.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.154.1.dist-info → oci-2.154.3.dist-info}/WHEEL +0 -0
- {oci-2.154.1.dist-info → oci-2.154.3.dist-info}/top_level.txt +0 -0
@@ -116,6 +116,128 @@ class RedisClusterClient(object):
|
|
116
116
|
self.retry_strategy = kwargs.get('retry_strategy')
|
117
117
|
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
118
118
|
|
119
|
+
def attach_oci_cache_users(self, redis_cluster_id, attach_oci_cache_users_details, **kwargs):
|
120
|
+
"""
|
121
|
+
Attach existing OCI cache users to a redis cluster.
|
122
|
+
|
123
|
+
|
124
|
+
:param str redis_cluster_id: (required)
|
125
|
+
The `OCID`__ of the cluster.
|
126
|
+
|
127
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle
|
128
|
+
|
129
|
+
:param oci.redis.models.AttachOciCacheUsersDetails attach_oci_cache_users_details: (required)
|
130
|
+
The parameter details to attach the OCI cache users to the redis cluster.
|
131
|
+
|
132
|
+
:param str if_match: (optional)
|
133
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
134
|
+
for a resource, set the `if-match` parameter to the value of the
|
135
|
+
etag from a previous GET or POST response for that resource.
|
136
|
+
The resource will be updated or deleted only if the etag you
|
137
|
+
provide matches the resource's current etag value.
|
138
|
+
|
139
|
+
:param str opc_retry_token: (optional)
|
140
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
141
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
142
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
143
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
144
|
+
might be rejected.
|
145
|
+
|
146
|
+
:param str opc_request_id: (optional)
|
147
|
+
The client request ID for tracing.
|
148
|
+
|
149
|
+
:param obj retry_strategy: (optional)
|
150
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
151
|
+
|
152
|
+
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.
|
153
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
154
|
+
|
155
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
156
|
+
|
157
|
+
:param bool allow_control_chars: (optional)
|
158
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
159
|
+
By default, the response will not allow control characters in strings
|
160
|
+
|
161
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
162
|
+
:rtype: :class:`~oci.response.Response`
|
163
|
+
|
164
|
+
:example:
|
165
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/attach_oci_cache_users.py.html>`__ to see an example of how to use attach_oci_cache_users API.
|
166
|
+
"""
|
167
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
168
|
+
required_arguments = ['redisClusterId']
|
169
|
+
resource_path = "/redisClusters/{redisClusterId}/actions/attachOciCacheUsers"
|
170
|
+
method = "POST"
|
171
|
+
operation_name = "attach_oci_cache_users"
|
172
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/AttachOciCacheUsers"
|
173
|
+
|
174
|
+
# Don't accept unknown kwargs
|
175
|
+
expected_kwargs = [
|
176
|
+
"allow_control_chars",
|
177
|
+
"retry_strategy",
|
178
|
+
"if_match",
|
179
|
+
"opc_retry_token",
|
180
|
+
"opc_request_id"
|
181
|
+
]
|
182
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
183
|
+
if extra_kwargs:
|
184
|
+
raise ValueError(
|
185
|
+
f"attach_oci_cache_users got unknown kwargs: {extra_kwargs!r}")
|
186
|
+
|
187
|
+
path_params = {
|
188
|
+
"redisClusterId": redis_cluster_id
|
189
|
+
}
|
190
|
+
|
191
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
192
|
+
|
193
|
+
for (k, v) in six.iteritems(path_params):
|
194
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
195
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
196
|
+
|
197
|
+
header_params = {
|
198
|
+
"accept": "application/json",
|
199
|
+
"content-type": "application/json",
|
200
|
+
"if-match": kwargs.get("if_match", missing),
|
201
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
202
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
203
|
+
}
|
204
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
205
|
+
|
206
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
207
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
208
|
+
client_retry_strategy=self.retry_strategy
|
209
|
+
)
|
210
|
+
if retry_strategy is None:
|
211
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
212
|
+
|
213
|
+
if retry_strategy:
|
214
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
215
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
216
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
217
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
218
|
+
return retry_strategy.make_retrying_call(
|
219
|
+
self.base_client.call_api,
|
220
|
+
resource_path=resource_path,
|
221
|
+
method=method,
|
222
|
+
path_params=path_params,
|
223
|
+
header_params=header_params,
|
224
|
+
body=attach_oci_cache_users_details,
|
225
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
226
|
+
operation_name=operation_name,
|
227
|
+
api_reference_link=api_reference_link,
|
228
|
+
required_arguments=required_arguments)
|
229
|
+
else:
|
230
|
+
return self.base_client.call_api(
|
231
|
+
resource_path=resource_path,
|
232
|
+
method=method,
|
233
|
+
path_params=path_params,
|
234
|
+
header_params=header_params,
|
235
|
+
body=attach_oci_cache_users_details,
|
236
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
237
|
+
operation_name=operation_name,
|
238
|
+
api_reference_link=api_reference_link,
|
239
|
+
required_arguments=required_arguments)
|
240
|
+
|
119
241
|
def cancel_work_request(self, work_request_id, **kwargs):
|
120
242
|
"""
|
121
243
|
Cancels the specified work request.
|
@@ -150,7 +272,7 @@ class RedisClusterClient(object):
|
|
150
272
|
:rtype: :class:`~oci.response.Response`
|
151
273
|
|
152
274
|
:example:
|
153
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
275
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
|
154
276
|
"""
|
155
277
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
156
278
|
required_arguments = ['workRequestId']
|
@@ -269,7 +391,7 @@ class RedisClusterClient(object):
|
|
269
391
|
:rtype: :class:`~oci.response.Response`
|
270
392
|
|
271
393
|
:example:
|
272
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
394
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/change_redis_cluster_compartment.py.html>`__ to see an example of how to use change_redis_cluster_compartment API.
|
273
395
|
"""
|
274
396
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
275
397
|
required_arguments = ['redisClusterId']
|
@@ -381,7 +503,7 @@ class RedisClusterClient(object):
|
|
381
503
|
:rtype: :class:`~oci.response.Response`
|
382
504
|
|
383
505
|
:example:
|
384
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
506
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/create_redis_cluster.py.html>`__ to see an example of how to use create_redis_cluster API.
|
385
507
|
"""
|
386
508
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
387
509
|
required_arguments = []
|
@@ -483,7 +605,7 @@ class RedisClusterClient(object):
|
|
483
605
|
:rtype: :class:`~oci.response.Response`
|
484
606
|
|
485
607
|
:example:
|
486
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
608
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/delete_redis_cluster.py.html>`__ to see an example of how to use delete_redis_cluster API.
|
487
609
|
"""
|
488
610
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
489
611
|
required_arguments = ['redisClusterId']
|
@@ -554,6 +676,128 @@ class RedisClusterClient(object):
|
|
554
676
|
api_reference_link=api_reference_link,
|
555
677
|
required_arguments=required_arguments)
|
556
678
|
|
679
|
+
def detach_oci_cache_users(self, redis_cluster_id, detach_oci_cache_users_details, **kwargs):
|
680
|
+
"""
|
681
|
+
Detach existing OCI cache users to a redis cluster.
|
682
|
+
|
683
|
+
|
684
|
+
:param str redis_cluster_id: (required)
|
685
|
+
The `OCID`__ of the cluster.
|
686
|
+
|
687
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle
|
688
|
+
|
689
|
+
:param oci.redis.models.DetachOciCacheUsersDetails detach_oci_cache_users_details: (required)
|
690
|
+
The parameter details to detach the OCI cache users to the redis cluster.
|
691
|
+
|
692
|
+
:param str if_match: (optional)
|
693
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
694
|
+
for a resource, set the `if-match` parameter to the value of the
|
695
|
+
etag from a previous GET or POST response for that resource.
|
696
|
+
The resource will be updated or deleted only if the etag you
|
697
|
+
provide matches the resource's current etag value.
|
698
|
+
|
699
|
+
:param str opc_retry_token: (optional)
|
700
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
701
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
702
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
703
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
704
|
+
might be rejected.
|
705
|
+
|
706
|
+
:param str opc_request_id: (optional)
|
707
|
+
The client request ID for tracing.
|
708
|
+
|
709
|
+
:param obj retry_strategy: (optional)
|
710
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
711
|
+
|
712
|
+
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.
|
713
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
714
|
+
|
715
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
716
|
+
|
717
|
+
:param bool allow_control_chars: (optional)
|
718
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
719
|
+
By default, the response will not allow control characters in strings
|
720
|
+
|
721
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
722
|
+
:rtype: :class:`~oci.response.Response`
|
723
|
+
|
724
|
+
:example:
|
725
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/detach_oci_cache_users.py.html>`__ to see an example of how to use detach_oci_cache_users API.
|
726
|
+
"""
|
727
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
728
|
+
required_arguments = ['redisClusterId']
|
729
|
+
resource_path = "/redisClusters/{redisClusterId}/actions/detachOciCacheUsers"
|
730
|
+
method = "POST"
|
731
|
+
operation_name = "detach_oci_cache_users"
|
732
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/DetachOciCacheUsers"
|
733
|
+
|
734
|
+
# Don't accept unknown kwargs
|
735
|
+
expected_kwargs = [
|
736
|
+
"allow_control_chars",
|
737
|
+
"retry_strategy",
|
738
|
+
"if_match",
|
739
|
+
"opc_retry_token",
|
740
|
+
"opc_request_id"
|
741
|
+
]
|
742
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
743
|
+
if extra_kwargs:
|
744
|
+
raise ValueError(
|
745
|
+
f"detach_oci_cache_users got unknown kwargs: {extra_kwargs!r}")
|
746
|
+
|
747
|
+
path_params = {
|
748
|
+
"redisClusterId": redis_cluster_id
|
749
|
+
}
|
750
|
+
|
751
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
752
|
+
|
753
|
+
for (k, v) in six.iteritems(path_params):
|
754
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
755
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
756
|
+
|
757
|
+
header_params = {
|
758
|
+
"accept": "application/json",
|
759
|
+
"content-type": "application/json",
|
760
|
+
"if-match": kwargs.get("if_match", missing),
|
761
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
762
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
763
|
+
}
|
764
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
765
|
+
|
766
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
767
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
768
|
+
client_retry_strategy=self.retry_strategy
|
769
|
+
)
|
770
|
+
if retry_strategy is None:
|
771
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
772
|
+
|
773
|
+
if retry_strategy:
|
774
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
775
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
776
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
777
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
778
|
+
return retry_strategy.make_retrying_call(
|
779
|
+
self.base_client.call_api,
|
780
|
+
resource_path=resource_path,
|
781
|
+
method=method,
|
782
|
+
path_params=path_params,
|
783
|
+
header_params=header_params,
|
784
|
+
body=detach_oci_cache_users_details,
|
785
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
786
|
+
operation_name=operation_name,
|
787
|
+
api_reference_link=api_reference_link,
|
788
|
+
required_arguments=required_arguments)
|
789
|
+
else:
|
790
|
+
return self.base_client.call_api(
|
791
|
+
resource_path=resource_path,
|
792
|
+
method=method,
|
793
|
+
path_params=path_params,
|
794
|
+
header_params=header_params,
|
795
|
+
body=detach_oci_cache_users_details,
|
796
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
797
|
+
operation_name=operation_name,
|
798
|
+
api_reference_link=api_reference_link,
|
799
|
+
required_arguments=required_arguments)
|
800
|
+
|
557
801
|
def get_redis_cluster(self, redis_cluster_id, **kwargs):
|
558
802
|
"""
|
559
803
|
Retrieves the specified OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see `OCI Cache`__.
|
@@ -585,7 +829,7 @@ class RedisClusterClient(object):
|
|
585
829
|
:rtype: :class:`~oci.response.Response`
|
586
830
|
|
587
831
|
:example:
|
588
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
832
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/get_redis_cluster.py.html>`__ to see an example of how to use get_redis_cluster API.
|
589
833
|
"""
|
590
834
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
591
835
|
required_arguments = ['redisClusterId']
|
@@ -683,7 +927,7 @@ class RedisClusterClient(object):
|
|
683
927
|
:rtype: :class:`~oci.response.Response`
|
684
928
|
|
685
929
|
:example:
|
686
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
930
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
687
931
|
"""
|
688
932
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
689
933
|
required_arguments = ['workRequestId']
|
@@ -754,6 +998,160 @@ class RedisClusterClient(object):
|
|
754
998
|
api_reference_link=api_reference_link,
|
755
999
|
required_arguments=required_arguments)
|
756
1000
|
|
1001
|
+
def list_attached_oci_cache_users(self, redis_cluster_id, **kwargs):
|
1002
|
+
"""
|
1003
|
+
Gets a list of associated OCI cache users for a redis cluster.
|
1004
|
+
|
1005
|
+
|
1006
|
+
:param str redis_cluster_id: (required)
|
1007
|
+
The `OCID`__ of the cluster.
|
1008
|
+
|
1009
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle
|
1010
|
+
|
1011
|
+
:param str compartment_id: (optional)
|
1012
|
+
The ID of the compartment in which to list resources.
|
1013
|
+
|
1014
|
+
:param str display_name: (optional)
|
1015
|
+
A filter to return only resources that match the entire display name given.
|
1016
|
+
|
1017
|
+
:param int limit: (optional)
|
1018
|
+
The maximum number of items to return.
|
1019
|
+
|
1020
|
+
:param str page: (optional)
|
1021
|
+
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.
|
1022
|
+
|
1023
|
+
:param str sort_order: (optional)
|
1024
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1025
|
+
|
1026
|
+
Allowed values are: "ASC", "DESC"
|
1027
|
+
|
1028
|
+
:param str sort_by: (optional)
|
1029
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
1030
|
+
|
1031
|
+
Allowed values are: "timeCreated", "displayName"
|
1032
|
+
|
1033
|
+
:param str opc_request_id: (optional)
|
1034
|
+
The client request ID for tracing.
|
1035
|
+
|
1036
|
+
:param obj retry_strategy: (optional)
|
1037
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1038
|
+
|
1039
|
+
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.
|
1040
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1041
|
+
|
1042
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1043
|
+
|
1044
|
+
:param bool allow_control_chars: (optional)
|
1045
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1046
|
+
By default, the response will not allow control characters in strings
|
1047
|
+
|
1048
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.redis.models.AttachedOciCacheUser`
|
1049
|
+
:rtype: :class:`~oci.response.Response`
|
1050
|
+
|
1051
|
+
:example:
|
1052
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/list_attached_oci_cache_users.py.html>`__ to see an example of how to use list_attached_oci_cache_users API.
|
1053
|
+
"""
|
1054
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1055
|
+
required_arguments = ['redisClusterId']
|
1056
|
+
resource_path = "/redisClusters/{redisClusterId}/actions/getOciCacheUsers"
|
1057
|
+
method = "POST"
|
1058
|
+
operation_name = "list_attached_oci_cache_users"
|
1059
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/AttachedOciCacheUser/ListAttachedOciCacheUsers"
|
1060
|
+
|
1061
|
+
# Don't accept unknown kwargs
|
1062
|
+
expected_kwargs = [
|
1063
|
+
"allow_control_chars",
|
1064
|
+
"retry_strategy",
|
1065
|
+
"compartment_id",
|
1066
|
+
"display_name",
|
1067
|
+
"limit",
|
1068
|
+
"page",
|
1069
|
+
"sort_order",
|
1070
|
+
"sort_by",
|
1071
|
+
"opc_request_id"
|
1072
|
+
]
|
1073
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1074
|
+
if extra_kwargs:
|
1075
|
+
raise ValueError(
|
1076
|
+
f"list_attached_oci_cache_users got unknown kwargs: {extra_kwargs!r}")
|
1077
|
+
|
1078
|
+
path_params = {
|
1079
|
+
"redisClusterId": redis_cluster_id
|
1080
|
+
}
|
1081
|
+
|
1082
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1083
|
+
|
1084
|
+
for (k, v) in six.iteritems(path_params):
|
1085
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1086
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1087
|
+
|
1088
|
+
if 'sort_order' in kwargs:
|
1089
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1090
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1091
|
+
raise ValueError(
|
1092
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1093
|
+
)
|
1094
|
+
|
1095
|
+
if 'sort_by' in kwargs:
|
1096
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1097
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1098
|
+
raise ValueError(
|
1099
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1100
|
+
)
|
1101
|
+
|
1102
|
+
query_params = {
|
1103
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1104
|
+
"displayName": kwargs.get("display_name", missing),
|
1105
|
+
"limit": kwargs.get("limit", missing),
|
1106
|
+
"page": kwargs.get("page", missing),
|
1107
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1108
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1109
|
+
}
|
1110
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1111
|
+
|
1112
|
+
header_params = {
|
1113
|
+
"accept": "application/json",
|
1114
|
+
"content-type": "application/json",
|
1115
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1116
|
+
}
|
1117
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1118
|
+
|
1119
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1120
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1121
|
+
client_retry_strategy=self.retry_strategy
|
1122
|
+
)
|
1123
|
+
if retry_strategy is None:
|
1124
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1125
|
+
|
1126
|
+
if retry_strategy:
|
1127
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1128
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1129
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1130
|
+
return retry_strategy.make_retrying_call(
|
1131
|
+
self.base_client.call_api,
|
1132
|
+
resource_path=resource_path,
|
1133
|
+
method=method,
|
1134
|
+
path_params=path_params,
|
1135
|
+
query_params=query_params,
|
1136
|
+
header_params=header_params,
|
1137
|
+
response_type="list[AttachedOciCacheUser]",
|
1138
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1139
|
+
operation_name=operation_name,
|
1140
|
+
api_reference_link=api_reference_link,
|
1141
|
+
required_arguments=required_arguments)
|
1142
|
+
else:
|
1143
|
+
return self.base_client.call_api(
|
1144
|
+
resource_path=resource_path,
|
1145
|
+
method=method,
|
1146
|
+
path_params=path_params,
|
1147
|
+
query_params=query_params,
|
1148
|
+
header_params=header_params,
|
1149
|
+
response_type="list[AttachedOciCacheUser]",
|
1150
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1151
|
+
operation_name=operation_name,
|
1152
|
+
api_reference_link=api_reference_link,
|
1153
|
+
required_arguments=required_arguments)
|
1154
|
+
|
757
1155
|
def list_redis_cluster_nodes(self, redis_cluster_id, **kwargs):
|
758
1156
|
"""
|
759
1157
|
Gets the list of all nodes in a cluster.
|
@@ -802,7 +1200,7 @@ class RedisClusterClient(object):
|
|
802
1200
|
:rtype: :class:`~oci.response.Response`
|
803
1201
|
|
804
1202
|
:example:
|
805
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
1203
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/list_redis_cluster_nodes.py.html>`__ to see an example of how to use list_redis_cluster_nodes API.
|
806
1204
|
"""
|
807
1205
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
808
1206
|
required_arguments = ['redisClusterId']
|
@@ -961,7 +1359,7 @@ class RedisClusterClient(object):
|
|
961
1359
|
:rtype: :class:`~oci.response.Response`
|
962
1360
|
|
963
1361
|
:example:
|
964
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
1362
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/list_redis_clusters.py.html>`__ to see an example of how to use list_redis_clusters API.
|
965
1363
|
"""
|
966
1364
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
967
1365
|
required_arguments = []
|
@@ -1106,7 +1504,7 @@ class RedisClusterClient(object):
|
|
1106
1504
|
:rtype: :class:`~oci.response.Response`
|
1107
1505
|
|
1108
1506
|
:example:
|
1109
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
1507
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
1110
1508
|
"""
|
1111
1509
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1112
1510
|
required_arguments = ['workRequestId']
|
@@ -1248,7 +1646,7 @@ class RedisClusterClient(object):
|
|
1248
1646
|
:rtype: :class:`~oci.response.Response`
|
1249
1647
|
|
1250
1648
|
:example:
|
1251
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
1649
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
1252
1650
|
"""
|
1253
1651
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1254
1652
|
required_arguments = ['workRequestId']
|
@@ -1403,7 +1801,7 @@ class RedisClusterClient(object):
|
|
1403
1801
|
:rtype: :class:`~oci.response.Response`
|
1404
1802
|
|
1405
1803
|
:example:
|
1406
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
1804
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
1407
1805
|
"""
|
1408
1806
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1409
1807
|
required_arguments = []
|
@@ -1546,7 +1944,7 @@ class RedisClusterClient(object):
|
|
1546
1944
|
:rtype: :class:`~oci.response.Response`
|
1547
1945
|
|
1548
1946
|
:example:
|
1549
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.
|
1947
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.3/redis/update_redis_cluster.py.html>`__ to see an example of how to use update_redis_cluster API.
|
1550
1948
|
"""
|
1551
1949
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1552
1950
|
required_arguments = ['redisClusterId']
|
@@ -25,6 +25,50 @@ class RedisClusterClientCompositeOperations(object):
|
|
25
25
|
"""
|
26
26
|
self.client = client
|
27
27
|
|
28
|
+
def attach_oci_cache_users_and_wait_for_state(self, redis_cluster_id, attach_oci_cache_users_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.redis.RedisClusterClient.attach_oci_cache_users` and waits for the :py:class:`~oci.redis.models.WorkRequest`
|
31
|
+
to enter the given state(s).
|
32
|
+
|
33
|
+
:param str redis_cluster_id: (required)
|
34
|
+
The `OCID`__ of the cluster.
|
35
|
+
|
36
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle
|
37
|
+
|
38
|
+
:param oci.redis.models.AttachOciCacheUsersDetails attach_oci_cache_users_details: (required)
|
39
|
+
The parameter details to attach the OCI cache users to the redis cluster.
|
40
|
+
|
41
|
+
:param list[str] wait_for_states:
|
42
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.redis.models.WorkRequest.status`
|
43
|
+
|
44
|
+
:param dict operation_kwargs:
|
45
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.redis.RedisClusterClient.attach_oci_cache_users`
|
46
|
+
|
47
|
+
:param dict waiter_kwargs:
|
48
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
49
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
50
|
+
"""
|
51
|
+
operation_result = self.client.attach_oci_cache_users(redis_cluster_id, attach_oci_cache_users_details, **operation_kwargs)
|
52
|
+
if not wait_for_states:
|
53
|
+
return operation_result
|
54
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
55
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
56
|
+
return operation_result
|
57
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
58
|
+
|
59
|
+
try:
|
60
|
+
waiter_result = oci.wait_until(
|
61
|
+
self.client,
|
62
|
+
self.client.get_work_request(wait_for_resource_id),
|
63
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
64
|
+
**waiter_kwargs
|
65
|
+
)
|
66
|
+
result_to_return = waiter_result
|
67
|
+
|
68
|
+
return result_to_return
|
69
|
+
except Exception as e:
|
70
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
71
|
+
|
28
72
|
def change_redis_cluster_compartment_and_wait_for_state(self, redis_cluster_id, change_redis_cluster_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
73
|
"""
|
30
74
|
Calls :py:func:`~oci.redis.RedisClusterClient.change_redis_cluster_compartment` and waits for the :py:class:`~oci.redis.models.WorkRequest`
|
@@ -157,6 +201,50 @@ class RedisClusterClientCompositeOperations(object):
|
|
157
201
|
except Exception as e:
|
158
202
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
159
203
|
|
204
|
+
def detach_oci_cache_users_and_wait_for_state(self, redis_cluster_id, detach_oci_cache_users_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
205
|
+
"""
|
206
|
+
Calls :py:func:`~oci.redis.RedisClusterClient.detach_oci_cache_users` and waits for the :py:class:`~oci.redis.models.WorkRequest`
|
207
|
+
to enter the given state(s).
|
208
|
+
|
209
|
+
:param str redis_cluster_id: (required)
|
210
|
+
The `OCID`__ of the cluster.
|
211
|
+
|
212
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle
|
213
|
+
|
214
|
+
:param oci.redis.models.DetachOciCacheUsersDetails detach_oci_cache_users_details: (required)
|
215
|
+
The parameter details to detach the OCI cache users to the redis cluster.
|
216
|
+
|
217
|
+
:param list[str] wait_for_states:
|
218
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.redis.models.WorkRequest.status`
|
219
|
+
|
220
|
+
:param dict operation_kwargs:
|
221
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.redis.RedisClusterClient.detach_oci_cache_users`
|
222
|
+
|
223
|
+
:param dict waiter_kwargs:
|
224
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
225
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
226
|
+
"""
|
227
|
+
operation_result = self.client.detach_oci_cache_users(redis_cluster_id, detach_oci_cache_users_details, **operation_kwargs)
|
228
|
+
if not wait_for_states:
|
229
|
+
return operation_result
|
230
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
231
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
232
|
+
return operation_result
|
233
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
234
|
+
|
235
|
+
try:
|
236
|
+
waiter_result = oci.wait_until(
|
237
|
+
self.client,
|
238
|
+
self.client.get_work_request(wait_for_resource_id),
|
239
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
240
|
+
**waiter_kwargs
|
241
|
+
)
|
242
|
+
result_to_return = waiter_result
|
243
|
+
|
244
|
+
return result_to_return
|
245
|
+
except Exception as e:
|
246
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
247
|
+
|
160
248
|
def update_redis_cluster_and_wait_for_state(self, redis_cluster_id, update_redis_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
161
249
|
"""
|
162
250
|
Calls :py:func:`~oci.redis.RedisClusterClient.update_redis_cluster` and waits for the :py:class:`~oci.redis.models.WorkRequest`
|