oci 2.132.0__py3-none-any.whl → 2.133.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +626 -28
- oci/ai_document/ai_service_document_client_composite_operations.py +180 -0
- oci/ai_document/models/__init__.py +10 -0
- oci/ai_document/models/add_model_lock_details.py +150 -0
- oci/ai_document/models/add_project_lock_details.py +150 -0
- oci/ai_document/models/analyze_document_details.py +5 -5
- oci/ai_document/models/detected_document_type.py +0 -35
- oci/ai_document/models/document_classification_feature.py +2 -33
- oci/ai_document/models/document_key_value_extraction_feature.py +2 -33
- oci/ai_document/models/general_processor_config.py +5 -5
- oci/ai_document/models/model.py +33 -2
- oci/ai_document/models/model_summary.py +33 -2
- oci/ai_document/models/output_location.py +1 -1
- oci/ai_document/models/project.py +33 -2
- oci/ai_document/models/remove_model_lock_details.py +88 -0
- oci/ai_document/models/remove_project_lock_details.py +88 -0
- oci/ai_document/models/resource_lock.py +216 -0
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +17 -17
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/__init__.py +3 -1
- oci/announcements_service/announcement_client.py +103 -6
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/models/__init__.py +12 -0
- oci/announcements_service/models/announcement.py +1 -1
- oci/announcements_service/models/announcement_compartment.py +72 -0
- oci/announcements_service/models/announcement_summary.py +1 -1
- oci/announcements_service/models/base_announcement.py +7 -3
- oci/announcements_service/models/base_service.py +498 -0
- oci/announcements_service/models/notifications_summary.py +130 -0
- oci/announcements_service/models/service.py +130 -0
- oci/announcements_service/models/service_summary.py +133 -0
- oci/announcements_service/models/services_collection.py +72 -0
- oci/announcements_service/service_client.py +275 -0
- oci/announcements_service/service_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 +9 -9
- 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/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +22 -22
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- 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/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- 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 +42 -42
- 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 +287 -287
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +13862 -9467
- oci/database/database_client_composite_operations.py +1868 -232
- oci/database/models/__init__.py +80 -0
- oci/database/models/action_member.py +134 -0
- oci/database/models/action_order_details.py +107 -0
- oci/database/models/action_param_values_collection.py +72 -0
- oci/database/models/action_param_values_summary.py +216 -0
- oci/database/models/autonomous_database.py +33 -6
- oci/database/models/autonomous_database_standby_summary.py +33 -2
- oci/database/models/autonomous_database_summary.py +33 -6
- oci/database/models/cancel_execution_window_details.py +134 -0
- oci/database/models/change_scheduling_plan_compartment_details.py +76 -0
- oci/database/models/change_scheduling_policy_compartment_details.py +76 -0
- oci/database/models/cloud_exadata_infrastructure.py +33 -2
- oci/database/models/cloud_exadata_infrastructure_summary.py +33 -2
- oci/database/models/create_autonomous_database_base.py +2 -6
- oci/database/models/create_data_guard_association_with_new_db_system_details.py +35 -0
- oci/database/models/create_exadb_vm_cluster_details.py +12 -2
- oci/database/models/create_execution_action_details.py +304 -0
- oci/database/models/create_execution_window_details.py +282 -0
- oci/database/models/create_pluggable_database_creation_type_details.py +0 -2
- oci/database/models/create_scheduled_action_details.py +339 -0
- oci/database/models/create_scheduling_plan_details.py +306 -0
- oci/database/models/create_scheduling_policy_details.py +267 -0
- oci/database/models/create_scheduling_window_details.py +181 -0
- oci/database/models/exadata_infrastructure.py +33 -2
- oci/database/models/exadata_infrastructure_summary.py +33 -2
- oci/database/models/exadb_vm_cluster.py +12 -2
- oci/database/models/exadb_vm_cluster_summary.py +12 -2
- oci/database/models/execution_action.py +715 -0
- oci/database/models/execution_action_member.py +216 -0
- oci/database/models/execution_action_summary.py +715 -0
- oci/database/models/execution_window.py +783 -0
- oci/database/models/execution_window_summary.py +783 -0
- oci/database/models/granular_maintenance_history_details.py +99 -0
- oci/database/models/maintenance_run.py +62 -0
- oci/database/models/maintenance_run_history.py +64 -2
- oci/database/models/maintenance_run_history_summary.py +64 -2
- oci/database/models/maintenance_run_summary.py +62 -0
- oci/database/models/move_execution_action_member_details.py +220 -0
- oci/database/models/recommended_scheduled_action_summary.py +280 -0
- oci/database/models/recommended_scheduled_actions_collection.py +72 -0
- oci/database/models/reorder_execution_action_details.py +152 -0
- oci/database/models/reorder_scheduled_actions_details.py +109 -0
- oci/database/models/scheduled_action.py +633 -0
- oci/database/models/scheduled_action_collection.py +72 -0
- oci/database/models/scheduled_action_summary.py +633 -0
- oci/database/models/scheduling_plan.py +643 -0
- oci/database/models/scheduling_plan_collection.py +72 -0
- oci/database/models/scheduling_plan_summary.py +643 -0
- oci/database/models/scheduling_policy.py +493 -0
- oci/database/models/scheduling_policy_summary.py +493 -0
- oci/database/models/scheduling_window.py +469 -0
- oci/database/models/scheduling_window_summary.py +469 -0
- oci/database/models/update_autonomous_database_details.py +2 -6
- oci/database/models/update_exadb_vm_cluster_details.py +12 -2
- oci/database/models/update_execution_action_details.py +218 -0
- oci/database/models/update_execution_window_details.py +212 -0
- oci/database/models/update_scheduled_action_details.py +140 -0
- oci/database/models/update_scheduling_policy_details.py +232 -0
- oci/database/models/update_scheduling_window_details.py +146 -0
- oci/database/models/window_preference_detail.py +231 -0
- oci/database_management/db_management_client.py +580 -208
- oci/database_management/db_management_client_composite_operations.py +132 -0
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/__init__.py +14 -0
- oci/database_management/models/autonomous_database_diagnostics_and_management_feature_details.py +65 -0
- oci/database_management/models/autonomous_database_feature_details.py +167 -0
- oci/database_management/models/autonomous_database_sql_watch_feature_details.py +65 -0
- oci/database_management/models/connector_details.py +15 -3
- oci/database_management/models/create_db_management_private_endpoint_details.py +31 -0
- oci/database_management/models/db_management_private_endpoint.py +31 -0
- oci/database_management/models/direct_connector_details.py +51 -0
- oci/database_management/models/disable_autonomous_database_management_feature_details.py +92 -0
- oci/database_management/models/enable_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/external_connector_details.py +1 -1
- oci/database_management/models/macs_connector_details.py +1 -1
- oci/database_management/models/modify_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/optimizer_statistics_collection_operation.py +7 -3
- oci/database_management/models/optimizer_statistics_collection_operation_summary.py +7 -3
- oci/database_management/models/private_end_point_connector_details.py +1 -1
- 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/delegate_access_control/__init__.py +16 -0
- oci/delegate_access_control/delegate_access_control_client.py +3324 -0
- oci/delegate_access_control/delegate_access_control_client_composite_operations.py +492 -0
- oci/delegate_access_control/models/__init__.py +96 -0
- oci/delegate_access_control/models/approve_delegated_resource_access_request_details.py +138 -0
- oci/delegate_access_control/models/change_delegation_control_compartment_details.py +72 -0
- oci/delegate_access_control/models/change_delegation_subscription_compartment_details.py +72 -0
- oci/delegate_access_control/models/create_delegation_control_details.py +548 -0
- oci/delegate_access_control/models/create_delegation_subscription_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request.py +1373 -0
- oci/delegate_access_control/models/delegated_resource_access_request_approval_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request_audit_log_report.py +193 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_collection.py +72 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_summary.py +300 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary.py +981 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control.py +833 -0
- oci/delegate_access_control/models/delegation_control_resource_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control_resource_summary.py +147 -0
- oci/delegate_access_control/models/delegation_control_summary.py +465 -0
- oci/delegate_access_control/models/delegation_control_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_subscription.py +524 -0
- oci/delegate_access_control/models/delegation_subscription_summary.py +461 -0
- oci/delegate_access_control/models/delegation_subscription_summary_collection.py +72 -0
- oci/delegate_access_control/models/reject_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/revoke_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider.py +583 -0
- oci/delegate_access_control/models/service_provider_action.py +371 -0
- oci/delegate_access_control/models/service_provider_action_properties.py +103 -0
- oci/delegate_access_control/models/service_provider_action_summary.py +323 -0
- oci/delegate_access_control/models/service_provider_action_summary_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_summary.py +247 -0
- oci/delegate_access_control/models/service_provider_summary.py +508 -0
- oci/delegate_access_control/models/service_provider_summary_collection.py +72 -0
- oci/delegate_access_control/models/update_delegation_control_details.py +404 -0
- oci/delegate_access_control/models/update_delegation_subscription_details.py +154 -0
- oci/delegate_access_control/models/work_request.py +438 -0
- oci/delegate_access_control/models/work_request_error.py +136 -0
- oci/delegate_access_control/models/work_request_error_collection.py +72 -0
- oci/delegate_access_control/models/work_request_log_entry.py +103 -0
- oci/delegate_access_control/models/work_request_log_entry_collection.py +72 -0
- oci/delegate_access_control/models/work_request_resource.py +234 -0
- oci/delegate_access_control/models/work_request_summary.py +438 -0
- oci/delegate_access_control/models/work_request_summary_collection.py +72 -0
- oci/delegate_access_control/work_request_client.py +660 -0
- oci/delegate_access_control/work_request_client_composite_operations.py +26 -0
- 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 +29 -29
- oci/dns/dns_client.py +52 -52
- 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_data_lake_client.py +13 -13
- 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 +393 -59
- oci/file_storage/file_storage_client_composite_operations.py +138 -0
- oci/file_storage/models/__init__.py +4 -0
- oci/file_storage/models/create_mount_target_details.py +39 -26
- oci/file_storage/models/mount_target.py +153 -3
- oci/file_storage/models/mount_target_summary.py +155 -3
- oci/file_storage/models/schedule_downgrade_shape_mount_target_details.py +78 -0
- oci/file_storage/models/upgrade_shape_mount_target_details.py +78 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +8 -8
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +13 -13
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +4 -4
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/models/fusion_environment_family.py +33 -2
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- 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 +68 -68
- 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 +307 -307
- oci/integration/integration_instance_client.py +16 -16
- oci/jms/java_management_service_client.py +75 -75
- 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 +25 -25
- oci/key_management/kms_hsm_cluster_client_composite_operations.py +3 -3
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/key_management/models/auto_key_rotation_details.py +10 -10
- oci/key_management/models/change_hsm_cluster_compartment_details.py +3 -3
- oci/key_management/models/create_hsm_cluster_details.py +5 -5
- oci/key_management/models/hsm_cluster.py +4 -4
- oci/key_management/models/hsm_cluster_collection.py +2 -2
- oci/key_management/models/hsm_cluster_summary.py +3 -3
- oci/key_management/models/hsm_partition.py +29 -9
- oci/key_management/models/hsm_partition_collection.py +1 -1
- oci/key_management/models/hsm_partition_summary.py +11 -7
- oci/key_management/models/port_information.py +5 -5
- oci/key_management/models/pre_co_user_credentials.py +2 -2
- oci/key_management/models/upload_partition_certificates_details.py +5 -5
- oci/key_management/models/vault.py +31 -0
- 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 -0
- oci/load_balancer/models/backend_details.py +4 -0
- oci/load_balancer/models/backend_set.py +6 -2
- oci/load_balancer/models/backend_set_details.py +6 -2
- oci/load_balancer/models/create_backend_details.py +4 -0
- oci/load_balancer/models/create_backend_set_details.py +6 -2
- oci/load_balancer/models/create_load_balancer_details.py +116 -0
- oci/load_balancer/models/ip_max_connections.py +8 -2
- oci/load_balancer/models/load_balancer.py +100 -0
- oci/load_balancer/models/update_backend_details.py +4 -0
- oci/load_balancer/models/update_backend_set_details.py +6 -2
- oci/load_balancer/models/update_load_balancer_details.py +112 -0
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- 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/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +2 -0
- oci/mysql/models/create_db_system_details.py +37 -2
- oci/mysql/models/customer_contact.py +72 -0
- oci/mysql/models/db_system.py +37 -2
- oci/mysql/models/update_db_system_details.py +37 -2
- 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 +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/models/__init__.py +14 -0
- oci/object_storage/models/access_target_details.py +136 -0
- oci/object_storage/models/create_private_endpoint_details.py +389 -0
- oci/object_storage/models/fqdns.py +99 -0
- oci/object_storage/models/prefix_fqdns.py +134 -0
- oci/object_storage/models/private_endpoint.py +685 -0
- oci/object_storage/models/private_endpoint_summary.py +369 -0
- oci/object_storage/models/update_private_endpoint_details.py +216 -0
- oci/object_storage/models/work_request.py +15 -3
- oci/object_storage/models/work_request_summary.py +15 -3
- oci/object_storage/object_storage_client.py +686 -71
- oci/object_storage/object_storage_client_composite_operations.py +139 -0
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +8 -8
- oci/ocvp/cluster_client_composite_operations.py +2 -2
- oci/ocvp/esxi_host_client.py +9 -9
- oci/ocvp/models/cluster.py +35 -2
- oci/ocvp/models/cluster_summary.py +35 -2
- oci/ocvp/models/datastore_details.py +1 -1
- oci/ocvp/models/esxi_host.py +35 -2
- oci/ocvp/models/esxi_host_summary.py +35 -2
- oci/ocvp/models/sddc.py +35 -2
- oci/ocvp/models/sddc_summary.py +35 -2
- oci/ocvp/models/supported_host_shape_summary.py +55 -3
- oci/ocvp/models/work_request.py +55 -3
- oci/ocvp/sddc_client.py +21 -16
- 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 +14 -14
- 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 +177 -177
- 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 +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- 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 +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- 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 +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +135 -25
- oci/recovery/database_recovery_client_composite_operations.py +42 -0
- oci/recovery/models/__init__.py +2 -0
- oci/recovery/models/change_protected_database_subscription_details.py +103 -0
- oci/recovery/models/create_protected_database_details.py +33 -0
- oci/recovery/models/create_protection_policy_details.py +39 -0
- oci/recovery/models/protected_database.py +31 -0
- oci/recovery/models/protected_database_summary.py +31 -0
- oci/recovery/models/protection_policy.py +31 -0
- oci/recovery/models/protection_policy_summary.py +31 -0
- oci/redis/redis_cluster_client.py +12 -12
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- 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/service_catalog/service_catalog_client.py +26 -26
- oci/service_endpoints.py +1 -0
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- 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 +13 -13
- 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/models/__init__.py +2 -0
- oci/waf/models/dynamic_http_response_body.py +104 -0
- oci/waf/models/http_response_body.py +11 -3
- oci/waf/models/static_text_http_response_body.py +1 -1
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/METADATA +1 -1
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/RECORD +489 -369
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/WHEEL +0 -0
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,492 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230801
|
6
|
+
|
7
|
+
import oci # noqa: F401
|
8
|
+
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
|
9
|
+
|
10
|
+
|
11
|
+
class DelegateAccessControlClientCompositeOperations(object):
|
12
|
+
"""
|
13
|
+
This class provides a wrapper around :py:class:`~oci.delegate_access_control.DelegateAccessControlClient` and offers convenience methods
|
14
|
+
for operations that would otherwise need to be chained together. For example, instead of performing an action
|
15
|
+
on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
16
|
+
to enter a given state, you can call a single method in this class to accomplish the same functionality
|
17
|
+
"""
|
18
|
+
|
19
|
+
def __init__(self, client, **kwargs):
|
20
|
+
"""
|
21
|
+
Creates a new DelegateAccessControlClientCompositeOperations object
|
22
|
+
|
23
|
+
:param DelegateAccessControlClient client:
|
24
|
+
The service client which will be wrapped by this object
|
25
|
+
"""
|
26
|
+
self.client = client
|
27
|
+
|
28
|
+
def approve_delegated_resource_access_request_and_wait_for_state(self, delegated_resource_access_request_id, approve_delegated_resource_access_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.approve_delegated_resource_access_request` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
31
|
+
to enter the given state(s).
|
32
|
+
|
33
|
+
:param str delegated_resource_access_request_id: (required)
|
34
|
+
Unique Delegated Resource Access Request identifier
|
35
|
+
|
36
|
+
:param oci.delegate_access_control.models.ApproveDelegatedResourceAccessRequestDetails approve_delegated_resource_access_request_details: (required)
|
37
|
+
Details regarding the approval of a Delegated Resource Access Request created by the support operator.
|
38
|
+
|
39
|
+
:param list[str] wait_for_states:
|
40
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
41
|
+
|
42
|
+
:param dict operation_kwargs:
|
43
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.approve_delegated_resource_access_request`
|
44
|
+
|
45
|
+
:param dict waiter_kwargs:
|
46
|
+
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``
|
47
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
48
|
+
"""
|
49
|
+
operation_result = self.client.approve_delegated_resource_access_request(delegated_resource_access_request_id, approve_delegated_resource_access_request_details, **operation_kwargs)
|
50
|
+
if not wait_for_states:
|
51
|
+
return operation_result
|
52
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
53
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
54
|
+
return operation_result
|
55
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
56
|
+
|
57
|
+
try:
|
58
|
+
waiter_result = oci.wait_until(
|
59
|
+
self.client,
|
60
|
+
self.client.get_work_request(wait_for_resource_id),
|
61
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
62
|
+
**waiter_kwargs
|
63
|
+
)
|
64
|
+
result_to_return = waiter_result
|
65
|
+
|
66
|
+
return result_to_return
|
67
|
+
except Exception as e:
|
68
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
69
|
+
|
70
|
+
def change_delegation_control_compartment_and_wait_for_state(self, delegation_control_id, change_delegation_control_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
71
|
+
"""
|
72
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.change_delegation_control_compartment` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
73
|
+
to enter the given state(s).
|
74
|
+
|
75
|
+
:param str delegation_control_id: (required)
|
76
|
+
unique Delegation Control identifier
|
77
|
+
|
78
|
+
:param oci.delegate_access_control.models.ChangeDelegationControlCompartmentDetails change_delegation_control_compartment_details: (required)
|
79
|
+
Moves the Delegation Control resource into a different compartment.
|
80
|
+
|
81
|
+
:param list[str] wait_for_states:
|
82
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
83
|
+
|
84
|
+
:param dict operation_kwargs:
|
85
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.change_delegation_control_compartment`
|
86
|
+
|
87
|
+
:param dict waiter_kwargs:
|
88
|
+
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``
|
89
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
90
|
+
"""
|
91
|
+
operation_result = self.client.change_delegation_control_compartment(delegation_control_id, change_delegation_control_compartment_details, **operation_kwargs)
|
92
|
+
if not wait_for_states:
|
93
|
+
return operation_result
|
94
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
95
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
96
|
+
return operation_result
|
97
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
98
|
+
|
99
|
+
try:
|
100
|
+
waiter_result = oci.wait_until(
|
101
|
+
self.client,
|
102
|
+
self.client.get_work_request(wait_for_resource_id),
|
103
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
104
|
+
**waiter_kwargs
|
105
|
+
)
|
106
|
+
result_to_return = waiter_result
|
107
|
+
|
108
|
+
return result_to_return
|
109
|
+
except Exception as e:
|
110
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
111
|
+
|
112
|
+
def change_delegation_subscription_compartment_and_wait_for_state(self, delegation_subscription_id, change_delegation_subscription_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
113
|
+
"""
|
114
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.change_delegation_subscription_compartment` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
115
|
+
to enter the given state(s).
|
116
|
+
|
117
|
+
:param str delegation_subscription_id: (required)
|
118
|
+
unique Delegation Subscription identifier
|
119
|
+
|
120
|
+
:param oci.delegate_access_control.models.ChangeDelegationSubscriptionCompartmentDetails change_delegation_subscription_compartment_details: (required)
|
121
|
+
Moves the Delegation Subscription resource into a different compartment.
|
122
|
+
|
123
|
+
:param list[str] wait_for_states:
|
124
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
125
|
+
|
126
|
+
:param dict operation_kwargs:
|
127
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.change_delegation_subscription_compartment`
|
128
|
+
|
129
|
+
:param dict waiter_kwargs:
|
130
|
+
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``
|
131
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
132
|
+
"""
|
133
|
+
operation_result = self.client.change_delegation_subscription_compartment(delegation_subscription_id, change_delegation_subscription_compartment_details, **operation_kwargs)
|
134
|
+
if not wait_for_states:
|
135
|
+
return operation_result
|
136
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
137
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
138
|
+
return operation_result
|
139
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
140
|
+
|
141
|
+
try:
|
142
|
+
waiter_result = oci.wait_until(
|
143
|
+
self.client,
|
144
|
+
self.client.get_work_request(wait_for_resource_id),
|
145
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
146
|
+
**waiter_kwargs
|
147
|
+
)
|
148
|
+
result_to_return = waiter_result
|
149
|
+
|
150
|
+
return result_to_return
|
151
|
+
except Exception as e:
|
152
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
153
|
+
|
154
|
+
def create_delegation_control_and_wait_for_state(self, create_delegation_control_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
155
|
+
"""
|
156
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.create_delegation_control` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
157
|
+
to enter the given state(s).
|
158
|
+
|
159
|
+
:param oci.delegate_access_control.models.CreateDelegationControlDetails create_delegation_control_details: (required)
|
160
|
+
Details for the new Delegation Control.
|
161
|
+
|
162
|
+
:param list[str] wait_for_states:
|
163
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
164
|
+
|
165
|
+
:param dict operation_kwargs:
|
166
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.create_delegation_control`
|
167
|
+
|
168
|
+
:param dict waiter_kwargs:
|
169
|
+
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``
|
170
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
171
|
+
"""
|
172
|
+
operation_result = self.client.create_delegation_control(create_delegation_control_details, **operation_kwargs)
|
173
|
+
if not wait_for_states:
|
174
|
+
return operation_result
|
175
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
176
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
177
|
+
return operation_result
|
178
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
179
|
+
|
180
|
+
try:
|
181
|
+
waiter_result = oci.wait_until(
|
182
|
+
self.client,
|
183
|
+
self.client.get_work_request(wait_for_resource_id),
|
184
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
185
|
+
**waiter_kwargs
|
186
|
+
)
|
187
|
+
result_to_return = waiter_result
|
188
|
+
|
189
|
+
return result_to_return
|
190
|
+
except Exception as e:
|
191
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
192
|
+
|
193
|
+
def create_delegation_subscription_and_wait_for_state(self, create_delegation_subscription_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
194
|
+
"""
|
195
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.create_delegation_subscription` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
196
|
+
to enter the given state(s).
|
197
|
+
|
198
|
+
:param oci.delegate_access_control.models.CreateDelegationSubscriptionDetails create_delegation_subscription_details: (required)
|
199
|
+
Details for creating Delegation Subscription in Delegation Control.
|
200
|
+
|
201
|
+
:param list[str] wait_for_states:
|
202
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
203
|
+
|
204
|
+
:param dict operation_kwargs:
|
205
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.create_delegation_subscription`
|
206
|
+
|
207
|
+
:param dict waiter_kwargs:
|
208
|
+
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``
|
209
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
210
|
+
"""
|
211
|
+
operation_result = self.client.create_delegation_subscription(create_delegation_subscription_details, **operation_kwargs)
|
212
|
+
if not wait_for_states:
|
213
|
+
return operation_result
|
214
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
215
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
216
|
+
return operation_result
|
217
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
218
|
+
|
219
|
+
try:
|
220
|
+
waiter_result = oci.wait_until(
|
221
|
+
self.client,
|
222
|
+
self.client.get_work_request(wait_for_resource_id),
|
223
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
224
|
+
**waiter_kwargs
|
225
|
+
)
|
226
|
+
result_to_return = waiter_result
|
227
|
+
|
228
|
+
return result_to_return
|
229
|
+
except Exception as e:
|
230
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
231
|
+
|
232
|
+
def delete_delegation_control_and_wait_for_state(self, delegation_control_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
233
|
+
"""
|
234
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.delete_delegation_control` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
235
|
+
to enter the given state(s).
|
236
|
+
|
237
|
+
:param str delegation_control_id: (required)
|
238
|
+
unique Delegation Control identifier
|
239
|
+
|
240
|
+
:param list[str] wait_for_states:
|
241
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
242
|
+
|
243
|
+
:param dict operation_kwargs:
|
244
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.delete_delegation_control`
|
245
|
+
|
246
|
+
:param dict waiter_kwargs:
|
247
|
+
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``
|
248
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
249
|
+
"""
|
250
|
+
operation_result = None
|
251
|
+
try:
|
252
|
+
operation_result = self.client.delete_delegation_control(delegation_control_id, **operation_kwargs)
|
253
|
+
except oci.exceptions.ServiceError as e:
|
254
|
+
if e.status == 404:
|
255
|
+
return WAIT_RESOURCE_NOT_FOUND
|
256
|
+
else:
|
257
|
+
raise e
|
258
|
+
|
259
|
+
if not wait_for_states:
|
260
|
+
return operation_result
|
261
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
262
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
263
|
+
return operation_result
|
264
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
265
|
+
|
266
|
+
try:
|
267
|
+
waiter_result = oci.wait_until(
|
268
|
+
self.client,
|
269
|
+
self.client.get_work_request(wait_for_resource_id),
|
270
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
271
|
+
**waiter_kwargs
|
272
|
+
)
|
273
|
+
result_to_return = waiter_result
|
274
|
+
|
275
|
+
return result_to_return
|
276
|
+
except Exception as e:
|
277
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
278
|
+
|
279
|
+
def delete_delegation_subscription_and_wait_for_state(self, delegation_subscription_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
280
|
+
"""
|
281
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.delete_delegation_subscription` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
282
|
+
to enter the given state(s).
|
283
|
+
|
284
|
+
:param str delegation_subscription_id: (required)
|
285
|
+
unique Delegation Subscription identifier
|
286
|
+
|
287
|
+
:param list[str] wait_for_states:
|
288
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
289
|
+
|
290
|
+
:param dict operation_kwargs:
|
291
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.delete_delegation_subscription`
|
292
|
+
|
293
|
+
:param dict waiter_kwargs:
|
294
|
+
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``
|
295
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
296
|
+
"""
|
297
|
+
operation_result = None
|
298
|
+
try:
|
299
|
+
operation_result = self.client.delete_delegation_subscription(delegation_subscription_id, **operation_kwargs)
|
300
|
+
except oci.exceptions.ServiceError as e:
|
301
|
+
if e.status == 404:
|
302
|
+
return WAIT_RESOURCE_NOT_FOUND
|
303
|
+
else:
|
304
|
+
raise e
|
305
|
+
|
306
|
+
if not wait_for_states:
|
307
|
+
return operation_result
|
308
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
309
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
310
|
+
return operation_result
|
311
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
312
|
+
|
313
|
+
try:
|
314
|
+
waiter_result = oci.wait_until(
|
315
|
+
self.client,
|
316
|
+
self.client.get_work_request(wait_for_resource_id),
|
317
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
318
|
+
**waiter_kwargs
|
319
|
+
)
|
320
|
+
result_to_return = waiter_result
|
321
|
+
|
322
|
+
return result_to_return
|
323
|
+
except Exception as e:
|
324
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
325
|
+
|
326
|
+
def reject_delegated_resource_access_request_and_wait_for_state(self, delegated_resource_access_request_id, reject_delegated_resource_access_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
327
|
+
"""
|
328
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.reject_delegated_resource_access_request` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
329
|
+
to enter the given state(s).
|
330
|
+
|
331
|
+
:param str delegated_resource_access_request_id: (required)
|
332
|
+
Unique Delegated Resource Access Request identifier
|
333
|
+
|
334
|
+
:param oci.delegate_access_control.models.RejectDelegatedResourceAccessRequestDetails reject_delegated_resource_access_request_details: (required)
|
335
|
+
Details regarding the rejection of a Delegated Resource Access Request created by the support operator.
|
336
|
+
|
337
|
+
:param list[str] wait_for_states:
|
338
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
339
|
+
|
340
|
+
:param dict operation_kwargs:
|
341
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.reject_delegated_resource_access_request`
|
342
|
+
|
343
|
+
:param dict waiter_kwargs:
|
344
|
+
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``
|
345
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
346
|
+
"""
|
347
|
+
operation_result = self.client.reject_delegated_resource_access_request(delegated_resource_access_request_id, reject_delegated_resource_access_request_details, **operation_kwargs)
|
348
|
+
if not wait_for_states:
|
349
|
+
return operation_result
|
350
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
351
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
352
|
+
return operation_result
|
353
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
354
|
+
|
355
|
+
try:
|
356
|
+
waiter_result = oci.wait_until(
|
357
|
+
self.client,
|
358
|
+
self.client.get_work_request(wait_for_resource_id),
|
359
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
360
|
+
**waiter_kwargs
|
361
|
+
)
|
362
|
+
result_to_return = waiter_result
|
363
|
+
|
364
|
+
return result_to_return
|
365
|
+
except Exception as e:
|
366
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
367
|
+
|
368
|
+
def revoke_delegated_resource_access_request_and_wait_for_state(self, delegated_resource_access_request_id, revoke_delegated_resource_access_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
369
|
+
"""
|
370
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.revoke_delegated_resource_access_request` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
371
|
+
to enter the given state(s).
|
372
|
+
|
373
|
+
:param str delegated_resource_access_request_id: (required)
|
374
|
+
Unique Delegated Resource Access Request identifier
|
375
|
+
|
376
|
+
:param oci.delegate_access_control.models.RevokeDelegatedResourceAccessRequestDetails revoke_delegated_resource_access_request_details: (required)
|
377
|
+
Details regarding the revocation of a Delegated Resource Access Request created by the support operator.
|
378
|
+
|
379
|
+
:param list[str] wait_for_states:
|
380
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
381
|
+
|
382
|
+
:param dict operation_kwargs:
|
383
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.revoke_delegated_resource_access_request`
|
384
|
+
|
385
|
+
:param dict waiter_kwargs:
|
386
|
+
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``
|
387
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
388
|
+
"""
|
389
|
+
operation_result = self.client.revoke_delegated_resource_access_request(delegated_resource_access_request_id, revoke_delegated_resource_access_request_details, **operation_kwargs)
|
390
|
+
if not wait_for_states:
|
391
|
+
return operation_result
|
392
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
393
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
394
|
+
return operation_result
|
395
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
396
|
+
|
397
|
+
try:
|
398
|
+
waiter_result = oci.wait_until(
|
399
|
+
self.client,
|
400
|
+
self.client.get_work_request(wait_for_resource_id),
|
401
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
402
|
+
**waiter_kwargs
|
403
|
+
)
|
404
|
+
result_to_return = waiter_result
|
405
|
+
|
406
|
+
return result_to_return
|
407
|
+
except Exception as e:
|
408
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
409
|
+
|
410
|
+
def update_delegation_control_and_wait_for_state(self, delegation_control_id, update_delegation_control_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
411
|
+
"""
|
412
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.update_delegation_control` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
413
|
+
to enter the given state(s).
|
414
|
+
|
415
|
+
:param str delegation_control_id: (required)
|
416
|
+
unique Delegation Control identifier
|
417
|
+
|
418
|
+
:param oci.delegate_access_control.models.UpdateDelegationControlDetails update_delegation_control_details: (required)
|
419
|
+
Details for the new DelegationControl.
|
420
|
+
|
421
|
+
:param list[str] wait_for_states:
|
422
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
423
|
+
|
424
|
+
:param dict operation_kwargs:
|
425
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.update_delegation_control`
|
426
|
+
|
427
|
+
:param dict waiter_kwargs:
|
428
|
+
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``
|
429
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
430
|
+
"""
|
431
|
+
operation_result = self.client.update_delegation_control(delegation_control_id, update_delegation_control_details, **operation_kwargs)
|
432
|
+
if not wait_for_states:
|
433
|
+
return operation_result
|
434
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
435
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
436
|
+
return operation_result
|
437
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
438
|
+
|
439
|
+
try:
|
440
|
+
waiter_result = oci.wait_until(
|
441
|
+
self.client,
|
442
|
+
self.client.get_work_request(wait_for_resource_id),
|
443
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
444
|
+
**waiter_kwargs
|
445
|
+
)
|
446
|
+
result_to_return = waiter_result
|
447
|
+
|
448
|
+
return result_to_return
|
449
|
+
except Exception as e:
|
450
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
451
|
+
|
452
|
+
def update_delegation_subscription_and_wait_for_state(self, delegation_subscription_id, update_delegation_subscription_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
453
|
+
"""
|
454
|
+
Calls :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.update_delegation_subscription` and waits for the :py:class:`~oci.delegate_access_control.models.WorkRequest`
|
455
|
+
to enter the given state(s).
|
456
|
+
|
457
|
+
:param str delegation_subscription_id: (required)
|
458
|
+
unique Delegation Subscription identifier
|
459
|
+
|
460
|
+
:param oci.delegate_access_control.models.UpdateDelegationSubscriptionDetails update_delegation_subscription_details: (required)
|
461
|
+
Details for the DelegationSubscription to be updated.
|
462
|
+
|
463
|
+
:param list[str] wait_for_states:
|
464
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.delegate_access_control.models.WorkRequest.status`
|
465
|
+
|
466
|
+
:param dict operation_kwargs:
|
467
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.delegate_access_control.DelegateAccessControlClient.update_delegation_subscription`
|
468
|
+
|
469
|
+
:param dict waiter_kwargs:
|
470
|
+
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``
|
471
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
472
|
+
"""
|
473
|
+
operation_result = self.client.update_delegation_subscription(delegation_subscription_id, update_delegation_subscription_details, **operation_kwargs)
|
474
|
+
if not wait_for_states:
|
475
|
+
return operation_result
|
476
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
477
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
478
|
+
return operation_result
|
479
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
480
|
+
|
481
|
+
try:
|
482
|
+
waiter_result = oci.wait_until(
|
483
|
+
self.client,
|
484
|
+
self.client.get_work_request(wait_for_resource_id),
|
485
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
486
|
+
**waiter_kwargs
|
487
|
+
)
|
488
|
+
result_to_return = waiter_result
|
489
|
+
|
490
|
+
return result_to_return
|
491
|
+
except Exception as e:
|
492
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230801
|
6
|
+
|
7
|
+
from __future__ import absolute_import
|
8
|
+
|
9
|
+
from .approve_delegated_resource_access_request_details import ApproveDelegatedResourceAccessRequestDetails
|
10
|
+
from .change_delegation_control_compartment_details import ChangeDelegationControlCompartmentDetails
|
11
|
+
from .change_delegation_subscription_compartment_details import ChangeDelegationSubscriptionCompartmentDetails
|
12
|
+
from .create_delegation_control_details import CreateDelegationControlDetails
|
13
|
+
from .create_delegation_subscription_details import CreateDelegationSubscriptionDetails
|
14
|
+
from .delegated_resource_access_request import DelegatedResourceAccessRequest
|
15
|
+
from .delegated_resource_access_request_approval_details import DelegatedResourceAccessRequestApprovalDetails
|
16
|
+
from .delegated_resource_access_request_audit_log_report import DelegatedResourceAccessRequestAuditLogReport
|
17
|
+
from .delegated_resource_access_request_history_collection import DelegatedResourceAccessRequestHistoryCollection
|
18
|
+
from .delegated_resource_access_request_history_summary import DelegatedResourceAccessRequestHistorySummary
|
19
|
+
from .delegated_resource_access_request_summary import DelegatedResourceAccessRequestSummary
|
20
|
+
from .delegated_resource_access_request_summary_collection import DelegatedResourceAccessRequestSummaryCollection
|
21
|
+
from .delegation_control import DelegationControl
|
22
|
+
from .delegation_control_resource_collection import DelegationControlResourceCollection
|
23
|
+
from .delegation_control_resource_summary import DelegationControlResourceSummary
|
24
|
+
from .delegation_control_summary import DelegationControlSummary
|
25
|
+
from .delegation_control_summary_collection import DelegationControlSummaryCollection
|
26
|
+
from .delegation_subscription import DelegationSubscription
|
27
|
+
from .delegation_subscription_summary import DelegationSubscriptionSummary
|
28
|
+
from .delegation_subscription_summary_collection import DelegationSubscriptionSummaryCollection
|
29
|
+
from .reject_delegated_resource_access_request_details import RejectDelegatedResourceAccessRequestDetails
|
30
|
+
from .revoke_delegated_resource_access_request_details import RevokeDelegatedResourceAccessRequestDetails
|
31
|
+
from .service_provider import ServiceProvider
|
32
|
+
from .service_provider_action import ServiceProviderAction
|
33
|
+
from .service_provider_action_properties import ServiceProviderActionProperties
|
34
|
+
from .service_provider_action_summary import ServiceProviderActionSummary
|
35
|
+
from .service_provider_action_summary_collection import ServiceProviderActionSummaryCollection
|
36
|
+
from .service_provider_interaction_collection import ServiceProviderInteractionCollection
|
37
|
+
from .service_provider_interaction_request_details import ServiceProviderInteractionRequestDetails
|
38
|
+
from .service_provider_interaction_summary import ServiceProviderInteractionSummary
|
39
|
+
from .service_provider_summary import ServiceProviderSummary
|
40
|
+
from .service_provider_summary_collection import ServiceProviderSummaryCollection
|
41
|
+
from .update_delegation_control_details import UpdateDelegationControlDetails
|
42
|
+
from .update_delegation_subscription_details import UpdateDelegationSubscriptionDetails
|
43
|
+
from .work_request import WorkRequest
|
44
|
+
from .work_request_error import WorkRequestError
|
45
|
+
from .work_request_error_collection import WorkRequestErrorCollection
|
46
|
+
from .work_request_log_entry import WorkRequestLogEntry
|
47
|
+
from .work_request_log_entry_collection import WorkRequestLogEntryCollection
|
48
|
+
from .work_request_resource import WorkRequestResource
|
49
|
+
from .work_request_summary import WorkRequestSummary
|
50
|
+
from .work_request_summary_collection import WorkRequestSummaryCollection
|
51
|
+
|
52
|
+
# Maps type names to classes for delegate_access_control services.
|
53
|
+
delegate_access_control_type_mapping = {
|
54
|
+
"ApproveDelegatedResourceAccessRequestDetails": ApproveDelegatedResourceAccessRequestDetails,
|
55
|
+
"ChangeDelegationControlCompartmentDetails": ChangeDelegationControlCompartmentDetails,
|
56
|
+
"ChangeDelegationSubscriptionCompartmentDetails": ChangeDelegationSubscriptionCompartmentDetails,
|
57
|
+
"CreateDelegationControlDetails": CreateDelegationControlDetails,
|
58
|
+
"CreateDelegationSubscriptionDetails": CreateDelegationSubscriptionDetails,
|
59
|
+
"DelegatedResourceAccessRequest": DelegatedResourceAccessRequest,
|
60
|
+
"DelegatedResourceAccessRequestApprovalDetails": DelegatedResourceAccessRequestApprovalDetails,
|
61
|
+
"DelegatedResourceAccessRequestAuditLogReport": DelegatedResourceAccessRequestAuditLogReport,
|
62
|
+
"DelegatedResourceAccessRequestHistoryCollection": DelegatedResourceAccessRequestHistoryCollection,
|
63
|
+
"DelegatedResourceAccessRequestHistorySummary": DelegatedResourceAccessRequestHistorySummary,
|
64
|
+
"DelegatedResourceAccessRequestSummary": DelegatedResourceAccessRequestSummary,
|
65
|
+
"DelegatedResourceAccessRequestSummaryCollection": DelegatedResourceAccessRequestSummaryCollection,
|
66
|
+
"DelegationControl": DelegationControl,
|
67
|
+
"DelegationControlResourceCollection": DelegationControlResourceCollection,
|
68
|
+
"DelegationControlResourceSummary": DelegationControlResourceSummary,
|
69
|
+
"DelegationControlSummary": DelegationControlSummary,
|
70
|
+
"DelegationControlSummaryCollection": DelegationControlSummaryCollection,
|
71
|
+
"DelegationSubscription": DelegationSubscription,
|
72
|
+
"DelegationSubscriptionSummary": DelegationSubscriptionSummary,
|
73
|
+
"DelegationSubscriptionSummaryCollection": DelegationSubscriptionSummaryCollection,
|
74
|
+
"RejectDelegatedResourceAccessRequestDetails": RejectDelegatedResourceAccessRequestDetails,
|
75
|
+
"RevokeDelegatedResourceAccessRequestDetails": RevokeDelegatedResourceAccessRequestDetails,
|
76
|
+
"ServiceProvider": ServiceProvider,
|
77
|
+
"ServiceProviderAction": ServiceProviderAction,
|
78
|
+
"ServiceProviderActionProperties": ServiceProviderActionProperties,
|
79
|
+
"ServiceProviderActionSummary": ServiceProviderActionSummary,
|
80
|
+
"ServiceProviderActionSummaryCollection": ServiceProviderActionSummaryCollection,
|
81
|
+
"ServiceProviderInteractionCollection": ServiceProviderInteractionCollection,
|
82
|
+
"ServiceProviderInteractionRequestDetails": ServiceProviderInteractionRequestDetails,
|
83
|
+
"ServiceProviderInteractionSummary": ServiceProviderInteractionSummary,
|
84
|
+
"ServiceProviderSummary": ServiceProviderSummary,
|
85
|
+
"ServiceProviderSummaryCollection": ServiceProviderSummaryCollection,
|
86
|
+
"UpdateDelegationControlDetails": UpdateDelegationControlDetails,
|
87
|
+
"UpdateDelegationSubscriptionDetails": UpdateDelegationSubscriptionDetails,
|
88
|
+
"WorkRequest": WorkRequest,
|
89
|
+
"WorkRequestError": WorkRequestError,
|
90
|
+
"WorkRequestErrorCollection": WorkRequestErrorCollection,
|
91
|
+
"WorkRequestLogEntry": WorkRequestLogEntry,
|
92
|
+
"WorkRequestLogEntryCollection": WorkRequestLogEntryCollection,
|
93
|
+
"WorkRequestResource": WorkRequestResource,
|
94
|
+
"WorkRequestSummary": WorkRequestSummary,
|
95
|
+
"WorkRequestSummaryCollection": WorkRequestSummaryCollection
|
96
|
+
}
|