oci 2.121.1__py3-none-any.whl → 2.123.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 +22 -22
- oci/ai_language/ai_service_language_client.py +68 -53
- oci/ai_language/models/__init__.py +0 -2
- oci/ai_language/models/batch_detect_dominant_language_details.py +101 -0
- oci/ai_language/models/batch_detect_language_key_phrases_details.py +31 -0
- oci/ai_language/models/batch_detect_language_pii_entities_details.py +31 -0
- oci/ai_language/models/batch_detect_language_sentiments_details.py +31 -0
- oci/ai_language/models/batch_language_translation_details.py +62 -48
- oci/ai_language/models/endpoint.py +4 -4
- oci/ai_language/models/endpoint_summary.py +4 -4
- oci/ai_language/models/model.py +6 -6
- oci/ai_language/models/model_details.py +0 -4
- oci/ai_language/models/model_summary.py +8 -8
- oci/ai_language/models/project.py +4 -4
- oci/ai_language/models/project_summary.py +4 -4
- oci/ai_language/models/translation_document_result.py +12 -100
- oci/ai_speech/ai_service_speech_client.py +9 -9
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- 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 +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +19 -19
- 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 +51 -51
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +19 -19
- 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 +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- 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 +31 -19
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +111 -101
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +14 -0
- oci/core/models/amd_vm_launch_instance_platform_config.py +45 -2
- oci/core/models/amd_vm_platform_config.py +45 -2
- oci/core/models/amd_vm_update_instance_platform_config.py +94 -0
- oci/core/models/attach_volume_details.py +6 -4
- oci/core/models/instance_configuration_amd_vm_launch_instance_platform_config.py +45 -2
- oci/core/models/instance_configuration_intel_vm_launch_instance_platform_config.py +45 -2
- oci/core/models/intel_vm_launch_instance_platform_config.py +45 -2
- oci/core/models/intel_vm_platform_config.py +45 -2
- oci/core/models/intel_vm_update_instance_platform_config.py +94 -0
- oci/core/models/launch_attach_i_scsi_volume_details.py +203 -0
- oci/core/models/launch_attach_volume_details.py +279 -0
- oci/core/models/launch_create_volume_details.py +101 -0
- oci/core/models/launch_create_volume_from_attributes.py +240 -0
- oci/core/models/launch_instance_details.py +31 -0
- oci/core/models/update_instance_details.py +29 -2
- oci/core/models/update_instance_platform_config.py +109 -0
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +287 -153
- oci/data_catalog/models/__init__.py +4 -0
- oci/data_catalog/models/asynchronous_export_data_asset_details.py +99 -0
- oci/data_catalog/models/asynchronous_export_data_asset_result.py +196 -0
- oci/data_catalog/models/create_job_definition_details.py +7 -3
- oci/data_catalog/models/create_job_execution_details.py +7 -3
- oci/data_catalog/models/job.py +7 -3
- oci/data_catalog/models/job_definition.py +7 -3
- oci/data_catalog/models/job_definition_summary.py +7 -3
- oci/data_catalog/models/job_execution.py +7 -3
- oci/data_catalog/models/job_execution_summary.py +7 -3
- oci/data_catalog/models/job_summary.py +7 -3
- 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 +272 -272
- oci/data_science/data_science_client.py +91 -91
- oci/data_science/models/__init__.py +4 -0
- oci/data_science/models/create_job_details.py +27 -0
- oci/data_science/models/create_job_run_details.py +27 -0
- oci/data_science/models/data_science_private_endpoint.py +33 -0
- oci/data_science/models/data_science_private_endpoint_summary.py +33 -0
- oci/data_science/models/job.py +27 -0
- oci/data_science/models/job_environment_configuration_details.py +101 -0
- oci/data_science/models/job_run.py +27 -0
- oci/data_science/models/model_version_set.py +35 -2
- oci/data_science/models/model_version_set_summary.py +35 -2
- oci/data_science/models/ocir_container_job_environment_configuration_details.py +234 -0
- oci/data_science/models/project.py +35 -2
- oci/data_science/models/project_summary.py +35 -2
- oci/database/database_client.py +351 -344
- oci/database/models/__init__.py +2 -2
- oci/database/models/autonomous_container_database.py +24 -30
- oci/database/models/autonomous_container_database_dataguard_association.py +37 -13
- oci/database/models/autonomous_container_database_resource_usage.py +6 -6
- oci/database/models/autonomous_container_database_summary.py +24 -30
- oci/database/models/autonomous_database.py +52 -71
- oci/database/models/autonomous_database_backup.py +6 -6
- oci/database/models/autonomous_database_backup_summary.py +6 -6
- oci/database/models/autonomous_database_dataguard_association.py +63 -11
- oci/database/models/autonomous_database_key_history_entry.py +4 -4
- oci/database/models/autonomous_database_summary.py +52 -71
- oci/database/models/autonomous_db_preview_version_summary.py +1 -1
- oci/database/models/autonomous_vm_cluster.py +14 -14
- oci/database/models/autonomous_vm_cluster_summary.py +14 -14
- oci/database/models/backup.py +6 -6
- oci/database/models/backup_summary.py +6 -6
- oci/database/models/cloud_autonomous_vm_cluster.py +16 -16
- oci/database/models/cloud_autonomous_vm_cluster_summary.py +16 -16
- oci/database/models/cloud_exadata_infrastructure.py +72 -0
- oci/database/models/cloud_exadata_infrastructure_summary.py +72 -0
- oci/database/models/cloud_vm_cluster.py +37 -0
- oci/database/models/cloud_vm_cluster_summary.py +37 -0
- oci/database/models/compute_performance_summary.py +2 -2
- oci/database/models/configure_autonomous_database_vault_key_details.py +2 -2
- oci/database/models/create_autonomous_container_database_dataguard_association_details.py +67 -1
- oci/database/models/create_autonomous_container_database_details.py +6 -6
- oci/database/models/create_autonomous_database_base.py +51 -68
- oci/database/models/create_autonomous_database_clone_details.py +0 -7
- oci/database/models/create_autonomous_database_details.py +0 -7
- oci/database/models/create_autonomous_database_from_backup_details.py +0 -7
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +0 -7
- oci/database/models/create_autonomous_vm_cluster_details.py +2 -2
- oci/database/models/create_cloud_autonomous_vm_cluster_details.py +6 -6
- oci/database/models/create_cloud_exadata_infrastructure_details.py +35 -0
- oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +0 -7
- oci/database/models/create_cross_region_disaster_recovery_details.py +0 -7
- oci/database/models/create_data_guard_association_with_new_db_system_details.py +4 -4
- oci/database/models/create_database_base.py +2 -2
- oci/database/models/create_database_details.py +4 -4
- oci/database/models/create_db_home_base.py +2 -2
- oci/database/models/create_refreshable_autonomous_database_clone_details.py +0 -7
- oci/database/models/database.py +6 -6
- oci/database/models/database_connection_credentials.py +4 -4
- oci/database/models/{database_connection_credentails_by_name.py → database_connection_credentials_by_name.py} +8 -8
- oci/database/models/database_summary.py +6 -6
- oci/database/models/key_store_type_from_oracle_key_vault_details.py +2 -2
- oci/database/models/launch_db_system_base.py +2 -2
- oci/database/models/migrate_vault_key_details.py +4 -4
- oci/database/models/update_autonomous_database_details.py +45 -66
- oci/database/models/update_autonomous_vm_cluster_details.py +6 -6
- oci/database/models/update_cloud_autonomous_vm_cluster_details.py +10 -10
- oci/database_management/db_management_client.py +832 -198
- oci/database_management/db_management_client_composite_operations.py +188 -0
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +6 -6
- oci/database_management/models/__init__.py +10 -0
- oci/database_management/models/child_database.py +80 -2
- oci/database_management/models/create_db_management_private_endpoint_details.py +80 -2
- oci/database_management/models/create_external_db_system_details.py +80 -2
- oci/database_management/models/create_external_db_system_discovery_details.py +80 -2
- oci/database_management/models/create_external_db_system_macs_connector_details.py +80 -2
- oci/database_management/models/create_external_exadata_infrastructure_details.py +80 -2
- oci/database_management/models/create_external_exadata_storage_connector_details.py +80 -2
- oci/database_management/models/create_managed_database_group_details.py +80 -2
- oci/database_management/models/create_named_credential_details.py +80 -2
- oci/database_management/models/create_sql_job_details.py +80 -2
- oci/database_management/models/db_management_private_endpoint.py +80 -2
- oci/database_management/models/db_management_private_endpoint_summary.py +80 -2
- oci/database_management/models/external_asm.py +80 -2
- oci/database_management/models/external_asm_instance.py +80 -2
- oci/database_management/models/external_asm_instance_summary.py +80 -2
- oci/database_management/models/external_asm_summary.py +80 -2
- oci/database_management/models/external_cluster.py +80 -2
- oci/database_management/models/external_cluster_instance.py +80 -2
- oci/database_management/models/external_cluster_instance_summary.py +80 -2
- oci/database_management/models/external_cluster_summary.py +80 -2
- oci/database_management/models/external_database_summary.py +80 -2
- oci/database_management/models/external_db_home.py +80 -2
- oci/database_management/models/external_db_home_summary.py +80 -2
- oci/database_management/models/external_db_node.py +80 -2
- oci/database_management/models/external_db_node_summary.py +80 -2
- oci/database_management/models/external_db_system.py +80 -2
- oci/database_management/models/external_db_system_connector_summary.py +80 -2
- oci/database_management/models/external_db_system_discovery.py +80 -2
- oci/database_management/models/external_db_system_discovery_summary.py +80 -2
- oci/database_management/models/external_db_system_macs_connector.py +80 -2
- oci/database_management/models/external_db_system_summary.py +80 -2
- oci/database_management/models/external_exadata_infrastructure.py +80 -2
- oci/database_management/models/external_exadata_infrastructure_summary.py +80 -2
- oci/database_management/models/external_exadata_storage_connector.py +80 -2
- oci/database_management/models/external_exadata_storage_connector_summary.py +80 -2
- oci/database_management/models/external_exadata_storage_grid.py +80 -2
- oci/database_management/models/external_exadata_storage_server.py +80 -2
- oci/database_management/models/external_exadata_storage_server_summary.py +80 -2
- oci/database_management/models/external_listener.py +80 -2
- oci/database_management/models/external_listener_summary.py +80 -2
- oci/database_management/models/job_summary.py +80 -2
- oci/database_management/models/managed_database.py +111 -2
- oci/database_management/models/managed_database_group.py +80 -2
- oci/database_management/models/managed_database_group_summary.py +80 -2
- oci/database_management/models/managed_database_summary.py +111 -2
- oci/database_management/models/named_credential.py +80 -2
- oci/database_management/models/named_credential_summary.py +80 -2
- oci/database_management/models/sql_job.py +80 -2
- oci/database_management/models/update_db_management_private_endpoint_details.py +80 -2
- oci/database_management/models/update_external_asm_details.py +80 -2
- oci/database_management/models/update_external_asm_instance_details.py +119 -0
- oci/database_management/models/update_external_cluster_details.py +80 -2
- oci/database_management/models/update_external_cluster_instance_details.py +80 -2
- oci/database_management/models/update_external_db_home_details.py +119 -0
- oci/database_management/models/update_external_db_node_details.py +80 -2
- oci/database_management/models/update_external_db_system_details.py +80 -2
- oci/database_management/models/update_external_db_system_discovery_details.py +80 -2
- oci/database_management/models/update_external_db_system_macs_connector_details.py +80 -2
- oci/database_management/models/update_external_exadata_infrastructure_details.py +80 -2
- oci/database_management/models/update_external_exadata_storage_connector_details.py +80 -2
- oci/database_management/models/update_external_exadata_storage_grid_details.py +119 -0
- oci/database_management/models/update_external_exadata_storage_server_details.py +119 -0
- oci/database_management/models/update_external_listener_details.py +80 -2
- oci/database_management/models/update_managed_database_details.py +119 -0
- oci/database_management/models/update_managed_database_group_details.py +80 -2
- oci/database_management/models/update_named_credential_details.py +80 -2
- oci/database_management/models/update_sql_job_details.py +80 -2
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +23 -23
- oci/desktops/__init__.py +14 -0
- oci/desktops/desktop_service_client.py +2649 -0
- oci/desktops/desktop_service_client_composite_operations.py +441 -0
- oci/desktops/models/__init__.py +68 -0
- oci/desktops/models/change_desktop_pool_compartment_details.py +72 -0
- oci/desktops/models/create_desktop_pool_details.py +694 -0
- oci/desktops/models/desktop.py +393 -0
- oci/desktops/models/desktop_availability_policy.py +95 -0
- oci/desktops/models/desktop_collection.py +72 -0
- oci/desktops/models/desktop_device_policy.py +348 -0
- oci/desktops/models/desktop_image.py +103 -0
- oci/desktops/models/desktop_network_configuration.py +103 -0
- oci/desktops/models/desktop_pool.py +823 -0
- oci/desktops/models/desktop_pool_collection.py +72 -0
- oci/desktops/models/desktop_pool_desktop_collection.py +72 -0
- oci/desktops/models/desktop_pool_desktop_summary.py +339 -0
- oci/desktops/models/desktop_pool_summary.py +403 -0
- oci/desktops/models/desktop_pool_volume_collection.py +72 -0
- oci/desktops/models/desktop_pool_volume_summary.py +319 -0
- oci/desktops/models/desktop_schedule.py +103 -0
- oci/desktops/models/desktop_summary.py +339 -0
- oci/desktops/models/hosting_options.py +99 -0
- oci/desktops/models/update_desktop_details.py +148 -0
- oci/desktops/models/update_desktop_pool_details.py +392 -0
- oci/desktops/models/work_request.py +420 -0
- oci/desktops/models/work_request_error.py +136 -0
- oci/desktops/models/work_request_error_collection.py +72 -0
- oci/desktops/models/work_request_log_entry.py +103 -0
- oci/desktops/models/work_request_log_entry_collection.py +72 -0
- oci/desktops/models/work_request_resource.py +203 -0
- oci/desktops/models/work_request_summary.py +420 -0
- oci/desktops/models/work_request_summary_collection.py +72 -0
- oci/devops/devops_client.py +89 -89
- 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 +25 -25
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- 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 +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- 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 +3 -3
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +29 -29
- oci/golden_gate/golden_gate_client.py +61 -61
- 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 +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- 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/key_management/models/__init__.py +2 -0
- oci/key_management/models/auto_key_rotation_details.py +247 -0
- oci/key_management/models/create_key_details.py +58 -0
- oci/key_management/models/import_key_details.py +58 -0
- oci/key_management/models/key.py +58 -0
- oci/key_management/models/key_summary.py +33 -2
- oci/key_management/models/key_version.py +33 -2
- oci/key_management/models/key_version_summary.py +33 -2
- oci/key_management/models/update_key_details.py +58 -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/lockbox/lockbox_client.py +23 -23
- 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_publisher/marketplace_publisher_client.py +71 -71
- 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 +6 -6
- 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 +80 -80
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- 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 +419 -56
- oci/oda/management_client_composite_operations.py +132 -0
- oci/oda/models/__init__.py +42 -0
- oci/oda/models/bot.py +31 -0
- oci/oda/models/bulk_create_skill_entities_details.py +72 -0
- oci/oda/models/clone_skill_details.py +7 -0
- oci/oda/models/composite_entity.py +154 -0
- oci/oda/models/create_new_skill_details.py +7 -0
- oci/oda/models/create_oda_instance_attachment_details.py +7 -3
- oci/oda/models/create_skill_composite_entity_details.py +147 -0
- oci/oda/models/create_skill_details.py +31 -0
- oci/oda/models/create_skill_entity_details.py +140 -0
- oci/oda/models/create_skill_value_list_entity_details.py +89 -0
- oci/oda/models/create_skill_version_details.py +7 -0
- oci/oda/models/digital_assistant.py +31 -0
- oci/oda/models/entity.py +171 -0
- oci/oda/models/entity_action.py +161 -0
- oci/oda/models/entity_action_argument.py +263 -0
- oci/oda/models/entity_action_argument_natural_language_mapping.py +72 -0
- oci/oda/models/entity_action_natural_language_mapping.py +72 -0
- oci/oda/models/entity_attribute.py +345 -0
- oci/oda/models/entity_attribute_natural_language_mapping.py +72 -0
- oci/oda/models/entity_natural_language_mapping.py +72 -0
- oci/oda/models/extend_skill_details.py +7 -0
- oci/oda/models/language_mapping.py +134 -0
- oci/oda/models/name_mapping.py +72 -0
- oci/oda/models/oda_instance_attachment.py +7 -3
- oci/oda/models/oda_instance_attachment_summary.py +7 -3
- oci/oda/models/skill.py +31 -0
- oci/oda/models/static_entity_value.py +99 -0
- oci/oda/models/static_entity_value_natural_language_mapping.py +72 -0
- oci/oda/models/train_skill_details.py +72 -0
- oci/oda/models/train_skill_parameter.py +101 -0
- oci/oda/models/train_skill_query_entity_parameter.py +51 -0
- oci/oda/models/value_list_entity.py +96 -0
- oci/oda/models/work_request.py +15 -3
- 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 +11 -11
- 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 +118 -9
- oci/operator_access_control/models/__init__.py +11 -1
- oci/operator_access_control/models/access_request.py +221 -0
- oci/operator_access_control/models/access_request_summary.py +35 -0
- oci/operator_access_control/models/approver_detail.py +235 -0
- oci/operator_access_control/models/assignment_validation_status.py +317 -0
- oci/operator_access_control/models/audit_log_report.py +193 -0
- oci/operator_access_control/models/create_operator_control_assignment_details.py +31 -0
- oci/operator_access_control/models/create_operator_control_details.py +31 -0
- oci/operator_access_control/models/operator_control.py +31 -0
- oci/operator_access_control/models/operator_control_assignment.py +62 -0
- oci/operator_access_control/models/operator_control_assignment_summary.py +93 -0
- oci/operator_access_control/models/operator_control_summary.py +31 -0
- oci/operator_access_control/models/status_detail.py +169 -0
- oci/operator_access_control/models/update_operator_control_assignment_details.py +31 -0
- oci/operator_access_control/models/update_operator_control_details.py +31 -0
- oci/operator_access_control/models/validate_operator_assignment_details.py +72 -0
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +224 -6
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +175 -175
- 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/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- 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 +23 -23
- oci/redis/redis_cluster_client.py +11 -11
- oci/regions_definitions.py +5 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- 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/__init__.py +3 -1
- oci/sch/connector_plugins_client.py +386 -0
- oci/sch/connector_plugins_client_composite_operations.py +26 -0
- oci/sch/models/__init__.py +16 -0
- oci/sch/models/change_service_connector_compartment_details.py +3 -3
- oci/sch/models/connector_plugin.py +355 -0
- oci/sch/models/connector_plugin_collection.py +72 -0
- oci/sch/models/connector_plugin_summary.py +322 -0
- oci/sch/models/create_service_connector_details.py +3 -3
- oci/sch/models/dimension_details.py +2 -2
- oci/sch/models/function_task_details.py +2 -2
- oci/sch/models/functions_target_details.py +98 -5
- oci/sch/models/latest_streaming_cursor.py +4 -2
- oci/sch/models/log_rule_task_details.py +5 -5
- oci/sch/models/log_source.py +4 -0
- oci/sch/models/logging_analytics_target_details.py +5 -5
- oci/sch/models/logging_source_details.py +3 -3
- oci/sch/models/monitoring_source.py +2 -2
- oci/sch/models/monitoring_source_details.py +5 -5
- oci/sch/models/monitoring_source_metric_details.py +2 -2
- oci/sch/models/monitoring_target_details.py +3 -3
- oci/sch/models/notifications_target_details.py +5 -5
- oci/sch/models/object_storage_target_details.py +9 -5
- oci/sch/models/plugin_source_details.py +123 -0
- oci/sch/models/service_connector.py +14 -14
- oci/sch/models/service_connector_collection.py +1 -1
- oci/sch/models/service_connector_summary.py +11 -11
- oci/sch/models/source_connector_plugin.py +132 -0
- oci/sch/models/source_connector_plugin_summary.py +125 -0
- oci/sch/models/source_details.py +19 -11
- oci/sch/models/streaming_cursor_details.py +7 -4
- oci/sch/models/streaming_source_details.py +5 -1
- oci/sch/models/streaming_target_details.py +3 -3
- oci/sch/models/target_connector_plugin.py +99 -0
- oci/sch/models/target_connector_plugin_summary.py +92 -0
- oci/sch/models/target_details.py +8 -8
- oci/sch/models/task_details.py +8 -8
- oci/sch/models/trim_horizon_streaming_cursor.py +4 -2
- oci/sch/models/update_service_connector_details.py +1 -1
- oci/sch/models/work_request.py +2 -2
- oci/sch/service_connector_client.py +138 -81
- oci/sch/service_connector_client_composite_operations.py +7 -7
- oci/secrets/secrets_client.py +3 -3
- 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 +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 +28 -28
- oci/vault/models/__init__.py +8 -0
- oci/vault/models/bytes_generation_context.py +107 -0
- oci/vault/models/create_secret_details.py +61 -3
- oci/vault/models/passphrase_generation_context.py +138 -0
- oci/vault/models/secret.py +60 -2
- oci/vault/models/secret_generation_context.py +152 -0
- oci/vault/models/secret_summary.py +60 -2
- oci/vault/models/secret_version.py +33 -2
- oci/vault/models/secret_version_summary.py +33 -2
- oci/vault/models/ssh_key_generation_context.py +111 -0
- oci/vault/models/update_secret_details.py +60 -2
- 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/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/METADATA +3 -3
- {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/RECORD +564 -475
- {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/THIRD_PARTY_LICENSES.txt +136 -2
- {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/WHEEL +0 -0
- {oci-2.121.1.dist-info → oci-2.123.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,441 @@
|
|
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: 20220618
|
6
|
+
|
7
|
+
import oci # noqa: F401
|
8
|
+
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
|
9
|
+
|
10
|
+
|
11
|
+
class DesktopServiceClientCompositeOperations(object):
|
12
|
+
"""
|
13
|
+
This class provides a wrapper around :py:class:`~oci.desktops.DesktopServiceClient` 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 DesktopServiceClientCompositeOperations object
|
22
|
+
|
23
|
+
:param DesktopServiceClient client:
|
24
|
+
The service client which will be wrapped by this object
|
25
|
+
"""
|
26
|
+
self.client = client
|
27
|
+
|
28
|
+
def change_desktop_pool_compartment_and_wait_for_state(self, desktop_pool_id, change_desktop_pool_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.change_desktop_pool_compartment` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
31
|
+
to enter the given state(s).
|
32
|
+
|
33
|
+
:param str desktop_pool_id: (required)
|
34
|
+
The OCID of the desktop pool.
|
35
|
+
|
36
|
+
:param oci.desktops.models.ChangeDesktopPoolCompartmentDetails change_desktop_pool_compartment_details: (required)
|
37
|
+
The details of the new compartment of the desktop pool.
|
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.desktops.models.WorkRequest.status`
|
41
|
+
|
42
|
+
:param dict operation_kwargs:
|
43
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.change_desktop_pool_compartment`
|
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.change_desktop_pool_compartment(desktop_pool_id, change_desktop_pool_compartment_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 create_desktop_pool_and_wait_for_state(self, create_desktop_pool_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
71
|
+
"""
|
72
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.create_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
73
|
+
to enter the given state(s).
|
74
|
+
|
75
|
+
:param oci.desktops.models.CreateDesktopPoolDetails create_desktop_pool_details: (required)
|
76
|
+
The details of the desktop pool to create.
|
77
|
+
|
78
|
+
:param list[str] wait_for_states:
|
79
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
80
|
+
|
81
|
+
:param dict operation_kwargs:
|
82
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.create_desktop_pool`
|
83
|
+
|
84
|
+
:param dict waiter_kwargs:
|
85
|
+
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``
|
86
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
87
|
+
"""
|
88
|
+
operation_result = self.client.create_desktop_pool(create_desktop_pool_details, **operation_kwargs)
|
89
|
+
if not wait_for_states:
|
90
|
+
return operation_result
|
91
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
92
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
93
|
+
return operation_result
|
94
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
95
|
+
|
96
|
+
try:
|
97
|
+
waiter_result = oci.wait_until(
|
98
|
+
self.client,
|
99
|
+
self.client.get_work_request(wait_for_resource_id),
|
100
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
101
|
+
**waiter_kwargs
|
102
|
+
)
|
103
|
+
result_to_return = waiter_result
|
104
|
+
|
105
|
+
return result_to_return
|
106
|
+
except Exception as e:
|
107
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
108
|
+
|
109
|
+
def delete_desktop_and_wait_for_state(self, desktop_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
110
|
+
"""
|
111
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
112
|
+
to enter the given state(s).
|
113
|
+
|
114
|
+
:param str desktop_id: (required)
|
115
|
+
The OCID of the desktop.
|
116
|
+
|
117
|
+
:param list[str] wait_for_states:
|
118
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
119
|
+
|
120
|
+
:param dict operation_kwargs:
|
121
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop`
|
122
|
+
|
123
|
+
:param dict waiter_kwargs:
|
124
|
+
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``
|
125
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
126
|
+
"""
|
127
|
+
operation_result = None
|
128
|
+
try:
|
129
|
+
operation_result = self.client.delete_desktop(desktop_id, **operation_kwargs)
|
130
|
+
except oci.exceptions.ServiceError as e:
|
131
|
+
if e.status == 404:
|
132
|
+
return WAIT_RESOURCE_NOT_FOUND
|
133
|
+
else:
|
134
|
+
raise e
|
135
|
+
|
136
|
+
if not wait_for_states:
|
137
|
+
return operation_result
|
138
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
139
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
140
|
+
return operation_result
|
141
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
142
|
+
|
143
|
+
try:
|
144
|
+
waiter_result = oci.wait_until(
|
145
|
+
self.client,
|
146
|
+
self.client.get_work_request(wait_for_resource_id),
|
147
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
148
|
+
**waiter_kwargs
|
149
|
+
)
|
150
|
+
result_to_return = waiter_result
|
151
|
+
|
152
|
+
return result_to_return
|
153
|
+
except Exception as e:
|
154
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
155
|
+
|
156
|
+
def delete_desktop_pool_and_wait_for_state(self, desktop_pool_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
157
|
+
"""
|
158
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
159
|
+
to enter the given state(s).
|
160
|
+
|
161
|
+
:param str desktop_pool_id: (required)
|
162
|
+
The OCID of the desktop pool.
|
163
|
+
|
164
|
+
:param list[str] wait_for_states:
|
165
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
166
|
+
|
167
|
+
:param dict operation_kwargs:
|
168
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.delete_desktop_pool`
|
169
|
+
|
170
|
+
:param dict waiter_kwargs:
|
171
|
+
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``
|
172
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
173
|
+
"""
|
174
|
+
operation_result = None
|
175
|
+
try:
|
176
|
+
operation_result = self.client.delete_desktop_pool(desktop_pool_id, **operation_kwargs)
|
177
|
+
except oci.exceptions.ServiceError as e:
|
178
|
+
if e.status == 404:
|
179
|
+
return WAIT_RESOURCE_NOT_FOUND
|
180
|
+
else:
|
181
|
+
raise e
|
182
|
+
|
183
|
+
if not wait_for_states:
|
184
|
+
return operation_result
|
185
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
186
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
187
|
+
return operation_result
|
188
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
189
|
+
|
190
|
+
try:
|
191
|
+
waiter_result = oci.wait_until(
|
192
|
+
self.client,
|
193
|
+
self.client.get_work_request(wait_for_resource_id),
|
194
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
195
|
+
**waiter_kwargs
|
196
|
+
)
|
197
|
+
result_to_return = waiter_result
|
198
|
+
|
199
|
+
return result_to_return
|
200
|
+
except Exception as e:
|
201
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
202
|
+
|
203
|
+
def start_desktop_and_wait_for_state(self, desktop_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
204
|
+
"""
|
205
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.start_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
206
|
+
to enter the given state(s).
|
207
|
+
|
208
|
+
:param str desktop_id: (required)
|
209
|
+
The OCID of the desktop.
|
210
|
+
|
211
|
+
:param list[str] wait_for_states:
|
212
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
213
|
+
|
214
|
+
:param dict operation_kwargs:
|
215
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.start_desktop`
|
216
|
+
|
217
|
+
:param dict waiter_kwargs:
|
218
|
+
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``
|
219
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
220
|
+
"""
|
221
|
+
operation_result = self.client.start_desktop(desktop_id, **operation_kwargs)
|
222
|
+
if not wait_for_states:
|
223
|
+
return operation_result
|
224
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
225
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
226
|
+
return operation_result
|
227
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
228
|
+
|
229
|
+
try:
|
230
|
+
waiter_result = oci.wait_until(
|
231
|
+
self.client,
|
232
|
+
self.client.get_work_request(wait_for_resource_id),
|
233
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
234
|
+
**waiter_kwargs
|
235
|
+
)
|
236
|
+
result_to_return = waiter_result
|
237
|
+
|
238
|
+
return result_to_return
|
239
|
+
except Exception as e:
|
240
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
241
|
+
|
242
|
+
def start_desktop_pool_and_wait_for_state(self, desktop_pool_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
243
|
+
"""
|
244
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.start_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
245
|
+
to enter the given state(s).
|
246
|
+
|
247
|
+
:param str desktop_pool_id: (required)
|
248
|
+
The OCID of the desktop pool.
|
249
|
+
|
250
|
+
:param list[str] wait_for_states:
|
251
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
252
|
+
|
253
|
+
:param dict operation_kwargs:
|
254
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.start_desktop_pool`
|
255
|
+
|
256
|
+
:param dict waiter_kwargs:
|
257
|
+
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``
|
258
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
259
|
+
"""
|
260
|
+
operation_result = self.client.start_desktop_pool(desktop_pool_id, **operation_kwargs)
|
261
|
+
if not wait_for_states:
|
262
|
+
return operation_result
|
263
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
264
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
265
|
+
return operation_result
|
266
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
267
|
+
|
268
|
+
try:
|
269
|
+
waiter_result = oci.wait_until(
|
270
|
+
self.client,
|
271
|
+
self.client.get_work_request(wait_for_resource_id),
|
272
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
273
|
+
**waiter_kwargs
|
274
|
+
)
|
275
|
+
result_to_return = waiter_result
|
276
|
+
|
277
|
+
return result_to_return
|
278
|
+
except Exception as e:
|
279
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
280
|
+
|
281
|
+
def stop_desktop_and_wait_for_state(self, desktop_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
282
|
+
"""
|
283
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
284
|
+
to enter the given state(s).
|
285
|
+
|
286
|
+
:param str desktop_id: (required)
|
287
|
+
The OCID of the desktop.
|
288
|
+
|
289
|
+
:param list[str] wait_for_states:
|
290
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
291
|
+
|
292
|
+
:param dict operation_kwargs:
|
293
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop`
|
294
|
+
|
295
|
+
:param dict waiter_kwargs:
|
296
|
+
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``
|
297
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
298
|
+
"""
|
299
|
+
operation_result = self.client.stop_desktop(desktop_id, **operation_kwargs)
|
300
|
+
if not wait_for_states:
|
301
|
+
return operation_result
|
302
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
303
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
304
|
+
return operation_result
|
305
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
306
|
+
|
307
|
+
try:
|
308
|
+
waiter_result = oci.wait_until(
|
309
|
+
self.client,
|
310
|
+
self.client.get_work_request(wait_for_resource_id),
|
311
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
312
|
+
**waiter_kwargs
|
313
|
+
)
|
314
|
+
result_to_return = waiter_result
|
315
|
+
|
316
|
+
return result_to_return
|
317
|
+
except Exception as e:
|
318
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
319
|
+
|
320
|
+
def stop_desktop_pool_and_wait_for_state(self, desktop_pool_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
321
|
+
"""
|
322
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
323
|
+
to enter the given state(s).
|
324
|
+
|
325
|
+
:param str desktop_pool_id: (required)
|
326
|
+
The OCID of the desktop pool.
|
327
|
+
|
328
|
+
:param list[str] wait_for_states:
|
329
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
330
|
+
|
331
|
+
:param dict operation_kwargs:
|
332
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.stop_desktop_pool`
|
333
|
+
|
334
|
+
:param dict waiter_kwargs:
|
335
|
+
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``
|
336
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
337
|
+
"""
|
338
|
+
operation_result = self.client.stop_desktop_pool(desktop_pool_id, **operation_kwargs)
|
339
|
+
if not wait_for_states:
|
340
|
+
return operation_result
|
341
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
342
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
343
|
+
return operation_result
|
344
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
345
|
+
|
346
|
+
try:
|
347
|
+
waiter_result = oci.wait_until(
|
348
|
+
self.client,
|
349
|
+
self.client.get_work_request(wait_for_resource_id),
|
350
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
351
|
+
**waiter_kwargs
|
352
|
+
)
|
353
|
+
result_to_return = waiter_result
|
354
|
+
|
355
|
+
return result_to_return
|
356
|
+
except Exception as e:
|
357
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
358
|
+
|
359
|
+
def update_desktop_and_wait_for_state(self, desktop_id, update_desktop_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
360
|
+
"""
|
361
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.update_desktop` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
362
|
+
to enter the given state(s).
|
363
|
+
|
364
|
+
:param str desktop_id: (required)
|
365
|
+
The OCID of the desktop.
|
366
|
+
|
367
|
+
:param oci.desktops.models.UpdateDesktopDetails update_desktop_details: (required)
|
368
|
+
The details of the update.
|
369
|
+
|
370
|
+
:param list[str] wait_for_states:
|
371
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
372
|
+
|
373
|
+
:param dict operation_kwargs:
|
374
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.update_desktop`
|
375
|
+
|
376
|
+
:param dict waiter_kwargs:
|
377
|
+
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``
|
378
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
379
|
+
"""
|
380
|
+
operation_result = self.client.update_desktop(desktop_id, update_desktop_details, **operation_kwargs)
|
381
|
+
if not wait_for_states:
|
382
|
+
return operation_result
|
383
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
384
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
385
|
+
return operation_result
|
386
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
387
|
+
|
388
|
+
try:
|
389
|
+
waiter_result = oci.wait_until(
|
390
|
+
self.client,
|
391
|
+
self.client.get_work_request(wait_for_resource_id),
|
392
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
393
|
+
**waiter_kwargs
|
394
|
+
)
|
395
|
+
result_to_return = waiter_result
|
396
|
+
|
397
|
+
return result_to_return
|
398
|
+
except Exception as e:
|
399
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
400
|
+
|
401
|
+
def update_desktop_pool_and_wait_for_state(self, desktop_pool_id, update_desktop_pool_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
402
|
+
"""
|
403
|
+
Calls :py:func:`~oci.desktops.DesktopServiceClient.update_desktop_pool` and waits for the :py:class:`~oci.desktops.models.WorkRequest`
|
404
|
+
to enter the given state(s).
|
405
|
+
|
406
|
+
:param str desktop_pool_id: (required)
|
407
|
+
The OCID of the desktop pool.
|
408
|
+
|
409
|
+
:param oci.desktops.models.UpdateDesktopPoolDetails update_desktop_pool_details: (required)
|
410
|
+
The details of the update.
|
411
|
+
|
412
|
+
:param list[str] wait_for_states:
|
413
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.desktops.models.WorkRequest.status`
|
414
|
+
|
415
|
+
:param dict operation_kwargs:
|
416
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.desktops.DesktopServiceClient.update_desktop_pool`
|
417
|
+
|
418
|
+
:param dict waiter_kwargs:
|
419
|
+
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``
|
420
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
421
|
+
"""
|
422
|
+
operation_result = self.client.update_desktop_pool(desktop_pool_id, update_desktop_pool_details, **operation_kwargs)
|
423
|
+
if not wait_for_states:
|
424
|
+
return operation_result
|
425
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
426
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
427
|
+
return operation_result
|
428
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
429
|
+
|
430
|
+
try:
|
431
|
+
waiter_result = oci.wait_until(
|
432
|
+
self.client,
|
433
|
+
self.client.get_work_request(wait_for_resource_id),
|
434
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
435
|
+
**waiter_kwargs
|
436
|
+
)
|
437
|
+
result_to_return = waiter_result
|
438
|
+
|
439
|
+
return result_to_return
|
440
|
+
except Exception as e:
|
441
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
@@ -0,0 +1,68 @@
|
|
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: 20220618
|
6
|
+
|
7
|
+
from __future__ import absolute_import
|
8
|
+
|
9
|
+
from .change_desktop_pool_compartment_details import ChangeDesktopPoolCompartmentDetails
|
10
|
+
from .create_desktop_pool_details import CreateDesktopPoolDetails
|
11
|
+
from .desktop import Desktop
|
12
|
+
from .desktop_availability_policy import DesktopAvailabilityPolicy
|
13
|
+
from .desktop_collection import DesktopCollection
|
14
|
+
from .desktop_device_policy import DesktopDevicePolicy
|
15
|
+
from .desktop_image import DesktopImage
|
16
|
+
from .desktop_network_configuration import DesktopNetworkConfiguration
|
17
|
+
from .desktop_pool import DesktopPool
|
18
|
+
from .desktop_pool_collection import DesktopPoolCollection
|
19
|
+
from .desktop_pool_desktop_collection import DesktopPoolDesktopCollection
|
20
|
+
from .desktop_pool_desktop_summary import DesktopPoolDesktopSummary
|
21
|
+
from .desktop_pool_summary import DesktopPoolSummary
|
22
|
+
from .desktop_pool_volume_collection import DesktopPoolVolumeCollection
|
23
|
+
from .desktop_pool_volume_summary import DesktopPoolVolumeSummary
|
24
|
+
from .desktop_schedule import DesktopSchedule
|
25
|
+
from .desktop_summary import DesktopSummary
|
26
|
+
from .hosting_options import HostingOptions
|
27
|
+
from .update_desktop_details import UpdateDesktopDetails
|
28
|
+
from .update_desktop_pool_details import UpdateDesktopPoolDetails
|
29
|
+
from .work_request import WorkRequest
|
30
|
+
from .work_request_error import WorkRequestError
|
31
|
+
from .work_request_error_collection import WorkRequestErrorCollection
|
32
|
+
from .work_request_log_entry import WorkRequestLogEntry
|
33
|
+
from .work_request_log_entry_collection import WorkRequestLogEntryCollection
|
34
|
+
from .work_request_resource import WorkRequestResource
|
35
|
+
from .work_request_summary import WorkRequestSummary
|
36
|
+
from .work_request_summary_collection import WorkRequestSummaryCollection
|
37
|
+
|
38
|
+
# Maps type names to classes for desktops services.
|
39
|
+
desktops_type_mapping = {
|
40
|
+
"ChangeDesktopPoolCompartmentDetails": ChangeDesktopPoolCompartmentDetails,
|
41
|
+
"CreateDesktopPoolDetails": CreateDesktopPoolDetails,
|
42
|
+
"Desktop": Desktop,
|
43
|
+
"DesktopAvailabilityPolicy": DesktopAvailabilityPolicy,
|
44
|
+
"DesktopCollection": DesktopCollection,
|
45
|
+
"DesktopDevicePolicy": DesktopDevicePolicy,
|
46
|
+
"DesktopImage": DesktopImage,
|
47
|
+
"DesktopNetworkConfiguration": DesktopNetworkConfiguration,
|
48
|
+
"DesktopPool": DesktopPool,
|
49
|
+
"DesktopPoolCollection": DesktopPoolCollection,
|
50
|
+
"DesktopPoolDesktopCollection": DesktopPoolDesktopCollection,
|
51
|
+
"DesktopPoolDesktopSummary": DesktopPoolDesktopSummary,
|
52
|
+
"DesktopPoolSummary": DesktopPoolSummary,
|
53
|
+
"DesktopPoolVolumeCollection": DesktopPoolVolumeCollection,
|
54
|
+
"DesktopPoolVolumeSummary": DesktopPoolVolumeSummary,
|
55
|
+
"DesktopSchedule": DesktopSchedule,
|
56
|
+
"DesktopSummary": DesktopSummary,
|
57
|
+
"HostingOptions": HostingOptions,
|
58
|
+
"UpdateDesktopDetails": UpdateDesktopDetails,
|
59
|
+
"UpdateDesktopPoolDetails": UpdateDesktopPoolDetails,
|
60
|
+
"WorkRequest": WorkRequest,
|
61
|
+
"WorkRequestError": WorkRequestError,
|
62
|
+
"WorkRequestErrorCollection": WorkRequestErrorCollection,
|
63
|
+
"WorkRequestLogEntry": WorkRequestLogEntry,
|
64
|
+
"WorkRequestLogEntryCollection": WorkRequestLogEntryCollection,
|
65
|
+
"WorkRequestResource": WorkRequestResource,
|
66
|
+
"WorkRequestSummary": WorkRequestSummary,
|
67
|
+
"WorkRequestSummaryCollection": WorkRequestSummaryCollection
|
68
|
+
}
|
@@ -0,0 +1,72 @@
|
|
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: 20220618
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class ChangeDesktopPoolCompartmentDetails(object):
|
14
|
+
"""
|
15
|
+
Provides the OCID of the new compartment that will contain the desktop pool.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new ChangeDesktopPoolCompartmentDetails object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param compartment_id:
|
24
|
+
The value to assign to the compartment_id property of this ChangeDesktopPoolCompartmentDetails.
|
25
|
+
:type compartment_id: str
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'compartment_id': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
self.attribute_map = {
|
33
|
+
'compartment_id': 'compartmentId'
|
34
|
+
}
|
35
|
+
|
36
|
+
self._compartment_id = None
|
37
|
+
|
38
|
+
@property
|
39
|
+
def compartment_id(self):
|
40
|
+
"""
|
41
|
+
**[Required]** Gets the compartment_id of this ChangeDesktopPoolCompartmentDetails.
|
42
|
+
The OCID of the compartment which will contain the desktop pool.
|
43
|
+
|
44
|
+
|
45
|
+
:return: The compartment_id of this ChangeDesktopPoolCompartmentDetails.
|
46
|
+
:rtype: str
|
47
|
+
"""
|
48
|
+
return self._compartment_id
|
49
|
+
|
50
|
+
@compartment_id.setter
|
51
|
+
def compartment_id(self, compartment_id):
|
52
|
+
"""
|
53
|
+
Sets the compartment_id of this ChangeDesktopPoolCompartmentDetails.
|
54
|
+
The OCID of the compartment which will contain the desktop pool.
|
55
|
+
|
56
|
+
|
57
|
+
:param compartment_id: The compartment_id of this ChangeDesktopPoolCompartmentDetails.
|
58
|
+
:type: str
|
59
|
+
"""
|
60
|
+
self._compartment_id = compartment_id
|
61
|
+
|
62
|
+
def __repr__(self):
|
63
|
+
return formatted_flat_dict(self)
|
64
|
+
|
65
|
+
def __eq__(self, other):
|
66
|
+
if other is None:
|
67
|
+
return False
|
68
|
+
|
69
|
+
return self.__dict__ == other.__dict__
|
70
|
+
|
71
|
+
def __ne__(self, other):
|
72
|
+
return not self == other
|