oci 2.149.1__py3-none-any.whl → 2.149.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/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 +340 -9
- oci/apm_config/models/__init__.py +22 -0
- oci/apm_config/models/apdex_rules_summary.py +7 -0
- oci/apm_config/models/config_summary.py +35 -2
- oci/apm_config/models/copy_configuration_details.py +86 -0
- oci/apm_config/models/export_configuration_details.py +76 -0
- oci/apm_config/models/export_configuration_response_details.py +70 -0
- oci/apm_config/models/export_import_apdex_rules_summary.py +128 -0
- oci/apm_config/models/export_import_config_summary.py +226 -0
- oci/apm_config/models/export_import_metric_group_summary.py +232 -0
- oci/apm_config/models/export_import_options_summary.py +194 -0
- oci/apm_config/models/export_import_span_filter_summary.py +163 -0
- oci/apm_config/models/import_configuration_details.py +113 -0
- oci/apm_config/models/import_configuration_failed_item_summary.py +193 -0
- oci/apm_config/models/import_configuration_failed_items_collection.py +70 -0
- oci/apm_config/models/metric_group_summary.py +7 -0
- oci/apm_config/models/options_summary.py +7 -0
- oci/apm_config/models/span_filter_summary.py +7 -0
- 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 +84 -84
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/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 +117 -117
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +258 -258
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +45 -45
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +317 -317
- oci/data_science/data_science_client.py +7469 -3597
- oci/data_science/data_science_client_composite_operations.py +981 -105
- oci/data_science/models/__init__.py +118 -0
- oci/data_science/models/application_component.py +193 -0
- oci/data_science/models/auth_configuration.py +115 -0
- oci/data_science/models/change_ml_application_compartment_details.py +76 -0
- oci/data_science/models/change_ml_application_implementation_compartment_details.py +70 -0
- oci/data_science/models/change_ml_application_instance_compartment_details.py +76 -0
- oci/data_science/models/change_ml_application_instance_view_compartment_details.py +76 -0
- oci/data_science/models/configuration_property.py +101 -0
- oci/data_science/models/configuration_property_schema.py +276 -0
- oci/data_science/models/create_auth_configuration_details.py +95 -0
- oci/data_science/models/create_iam_auth_configuration_create_details.py +48 -0
- oci/data_science/models/create_idcs_auth_configuration_details.py +79 -0
- oci/data_science/models/create_idcs_custom_service_auth_configuration_details.py +203 -0
- oci/data_science/models/create_ml_application_details.py +206 -0
- oci/data_science/models/create_ml_application_implementation_details.py +264 -0
- oci/data_science/models/create_ml_application_instance_details.py +326 -0
- oci/data_science/models/data_flow_application_application_component.py +94 -0
- oci/data_science/models/data_science_job_application_component.py +94 -0
- oci/data_science/models/data_science_model_application_component.py +94 -0
- oci/data_science/models/data_science_model_deployment_instance_component.py +125 -0
- oci/data_science/models/data_science_pipeline_application_component.py +94 -0
- oci/data_science/models/data_science_schedule_instance_component.py +94 -0
- oci/data_science/models/disable_ml_application_instance_view_trigger_details.py +70 -0
- oci/data_science/models/enable_ml_application_instance_view_trigger_details.py +70 -0
- oci/data_science/models/generic_oci_resource_application_component.py +125 -0
- oci/data_science/models/generic_oci_resource_instance_component.py +125 -0
- oci/data_science/models/iam_auth_configuration.py +49 -0
- oci/data_science/models/idcs_auth_configuration.py +111 -0
- oci/data_science/models/idcs_custom_service_auth_configuration.py +204 -0
- oci/data_science/models/implementation_log_details.py +140 -0
- oci/data_science/models/implementation_logging.py +120 -0
- oci/data_science/models/instance_component.py +201 -0
- oci/data_science/models/ml_application.py +410 -0
- oci/data_science/models/ml_application_collection.py +70 -0
- oci/data_science/models/ml_application_implementation.py +666 -0
- oci/data_science/models/ml_application_implementation_collection.py +70 -0
- oci/data_science/models/ml_application_implementation_summary.py +487 -0
- oci/data_science/models/ml_application_implementation_version.py +600 -0
- oci/data_science/models/ml_application_implementation_version_collection.py +70 -0
- oci/data_science/models/ml_application_implementation_version_summary.py +487 -0
- oci/data_science/models/ml_application_instance.py +736 -0
- oci/data_science/models/ml_application_instance_collection.py +70 -0
- oci/data_science/models/ml_application_instance_internal_trigger.py +125 -0
- oci/data_science/models/ml_application_instance_summary.py +456 -0
- oci/data_science/models/ml_application_instance_view.py +829 -0
- oci/data_science/models/ml_application_instance_view_collection.py +70 -0
- oci/data_science/models/ml_application_instance_view_summary.py +580 -0
- oci/data_science/models/ml_application_package_argument_details.py +210 -0
- oci/data_science/models/ml_application_package_arguments.py +70 -0
- oci/data_science/models/ml_application_summary.py +332 -0
- oci/data_science/models/object_storage_bucket_instance_component.py +125 -0
- oci/data_science/models/object_storage_object_instance_component.py +156 -0
- oci/data_science/models/prediction_endpoint_details.py +101 -0
- oci/data_science/models/prediction_uri.py +101 -0
- oci/data_science/models/trigger_ml_application_instance_flow_details.py +70 -0
- oci/data_science/models/update_ml_application_details.py +144 -0
- oci/data_science/models/update_ml_application_implementation_details.py +171 -0
- oci/data_science/models/update_ml_application_implementation_version_details.py +113 -0
- oci/data_science/models/update_ml_application_instance_details.py +206 -0
- oci/data_science/models/update_ml_application_instance_view_details.py +113 -0
- oci/data_science/models/work_request.py +59 -3
- oci/data_science/models/work_request_summary.py +59 -3
- oci/database/database_client.py +414 -414
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/db_life_cycle_management_client.py +12 -12
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +74 -74
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- 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 +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- 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/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
- 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 +84 -84
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/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/lustre_file_storage/__init__.py +14 -0
- oci/lustre_file_storage/lustre_file_storage_client.py +1536 -0
- oci/lustre_file_storage/lustre_file_storage_client_composite_operations.py +202 -0
- oci/lustre_file_storage/models/__init__.py +44 -0
- oci/lustre_file_storage/models/change_lustre_file_system_compartment_details.py +74 -0
- oci/lustre_file_storage/models/create_lustre_file_system_details.py +559 -0
- oci/lustre_file_storage/models/lustre_file_system.py +986 -0
- oci/lustre_file_storage/models/lustre_file_system_collection.py +70 -0
- oci/lustre_file_storage/models/lustre_file_system_summary.py +921 -0
- oci/lustre_file_storage/models/maintenance_window.py +141 -0
- oci/lustre_file_storage/models/root_squash_configuration.py +193 -0
- oci/lustre_file_storage/models/update_lustre_file_system_details.py +327 -0
- oci/lustre_file_storage/models/work_request.py +449 -0
- oci/lustre_file_storage/models/work_request_error.py +144 -0
- oci/lustre_file_storage/models/work_request_error_collection.py +70 -0
- oci/lustre_file_storage/models/work_request_log_entry.py +107 -0
- oci/lustre_file_storage/models/work_request_log_entry_collection.py +70 -0
- oci/lustre_file_storage/models/work_request_resource.py +205 -0
- oci/lustre_file_storage/models/work_request_summary.py +447 -0
- oci/lustre_file_storage/models/work_request_summary_collection.py +70 -0
- 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/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- 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/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 +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +16 -16
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/models/create_operations_insights_warehouse_details.py +33 -2
- oci/opsi/models/operations_insights_warehouse.py +49 -2
- oci/opsi/models/operations_insights_warehouse_summary.py +33 -2
- oci/opsi/models/sql_plan_line.py +66 -0
- oci/opsi/models/update_operations_insights_warehouse_details.py +33 -2
- oci/opsi/operations_insights_client.py +181 -181
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +34 -34
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/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/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +87 -87
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.149.1.dist-info → oci-2.149.2.dist-info}/METADATA +1 -1
- {oci-2.149.1.dist-info → oci-2.149.2.dist-info}/RECORD +368 -278
- {oci-2.149.1.dist-info → oci-2.149.2.dist-info}/LICENSE.txt +0 -0
- {oci-2.149.1.dist-info → oci-2.149.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.149.1.dist-info → oci-2.149.2.dist-info}/WHEEL +0 -0
- {oci-2.149.1.dist-info → oci-2.149.2.dist-info}/top_level.txt +0 -0
@@ -232,6 +232,132 @@ class DataScienceClientCompositeOperations(object):
|
|
232
232
|
except Exception as e:
|
233
233
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
234
234
|
|
235
|
+
def change_ml_application_implementation_compartment_and_wait_for_state(self, ml_application_implementation_id, change_ml_application_implementation_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
236
|
+
"""
|
237
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.change_ml_application_implementation_compartment` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
238
|
+
to enter the given state(s).
|
239
|
+
|
240
|
+
:param str ml_application_implementation_id: (required)
|
241
|
+
unique MlApplicationImplementation identifier
|
242
|
+
|
243
|
+
:param oci.data_science.models.ChangeMlApplicationImplementationCompartmentDetails change_ml_application_implementation_compartment_details: (required)
|
244
|
+
The information to be updated.
|
245
|
+
|
246
|
+
:param list[str] wait_for_states:
|
247
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
248
|
+
|
249
|
+
:param dict operation_kwargs:
|
250
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.change_ml_application_implementation_compartment`
|
251
|
+
|
252
|
+
:param dict waiter_kwargs:
|
253
|
+
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``
|
254
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
255
|
+
"""
|
256
|
+
operation_result = self.client.change_ml_application_implementation_compartment(ml_application_implementation_id, change_ml_application_implementation_compartment_details, **operation_kwargs)
|
257
|
+
if not wait_for_states:
|
258
|
+
return operation_result
|
259
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
260
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
261
|
+
return operation_result
|
262
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
263
|
+
|
264
|
+
try:
|
265
|
+
waiter_result = oci.wait_until(
|
266
|
+
self.client,
|
267
|
+
self.client.get_work_request(wait_for_resource_id),
|
268
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
269
|
+
**waiter_kwargs
|
270
|
+
)
|
271
|
+
result_to_return = waiter_result
|
272
|
+
|
273
|
+
return result_to_return
|
274
|
+
except Exception as e:
|
275
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
276
|
+
|
277
|
+
def change_ml_application_instance_compartment_and_wait_for_state(self, ml_application_instance_id, change_ml_application_instance_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
278
|
+
"""
|
279
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.change_ml_application_instance_compartment` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
280
|
+
to enter the given state(s).
|
281
|
+
|
282
|
+
:param str ml_application_instance_id: (required)
|
283
|
+
unique MlApplicationInstance identifier
|
284
|
+
|
285
|
+
:param oci.data_science.models.ChangeMlApplicationInstanceCompartmentDetails change_ml_application_instance_compartment_details: (required)
|
286
|
+
The information to be updated.
|
287
|
+
|
288
|
+
:param list[str] wait_for_states:
|
289
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
290
|
+
|
291
|
+
:param dict operation_kwargs:
|
292
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.change_ml_application_instance_compartment`
|
293
|
+
|
294
|
+
:param dict waiter_kwargs:
|
295
|
+
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``
|
296
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
297
|
+
"""
|
298
|
+
operation_result = self.client.change_ml_application_instance_compartment(ml_application_instance_id, change_ml_application_instance_compartment_details, **operation_kwargs)
|
299
|
+
if not wait_for_states:
|
300
|
+
return operation_result
|
301
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
302
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
303
|
+
return operation_result
|
304
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
305
|
+
|
306
|
+
try:
|
307
|
+
waiter_result = oci.wait_until(
|
308
|
+
self.client,
|
309
|
+
self.client.get_work_request(wait_for_resource_id),
|
310
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
311
|
+
**waiter_kwargs
|
312
|
+
)
|
313
|
+
result_to_return = waiter_result
|
314
|
+
|
315
|
+
return result_to_return
|
316
|
+
except Exception as e:
|
317
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
318
|
+
|
319
|
+
def change_ml_application_instance_view_compartment_and_wait_for_state(self, ml_application_instance_view_id, change_ml_application_instance_view_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
320
|
+
"""
|
321
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.change_ml_application_instance_view_compartment` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
322
|
+
to enter the given state(s).
|
323
|
+
|
324
|
+
:param str ml_application_instance_view_id: (required)
|
325
|
+
unique MlApplicationInstanceView identifier
|
326
|
+
|
327
|
+
:param oci.data_science.models.ChangeMlApplicationInstanceViewCompartmentDetails change_ml_application_instance_view_compartment_details: (required)
|
328
|
+
The information to be updated.
|
329
|
+
|
330
|
+
:param list[str] wait_for_states:
|
331
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
332
|
+
|
333
|
+
:param dict operation_kwargs:
|
334
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.change_ml_application_instance_view_compartment`
|
335
|
+
|
336
|
+
:param dict waiter_kwargs:
|
337
|
+
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``
|
338
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
339
|
+
"""
|
340
|
+
operation_result = self.client.change_ml_application_instance_view_compartment(ml_application_instance_view_id, change_ml_application_instance_view_compartment_details, **operation_kwargs)
|
341
|
+
if not wait_for_states:
|
342
|
+
return operation_result
|
343
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
344
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
345
|
+
return operation_result
|
346
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
347
|
+
|
348
|
+
try:
|
349
|
+
waiter_result = oci.wait_until(
|
350
|
+
self.client,
|
351
|
+
self.client.get_work_request(wait_for_resource_id),
|
352
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
353
|
+
**waiter_kwargs
|
354
|
+
)
|
355
|
+
result_to_return = waiter_result
|
356
|
+
|
357
|
+
return result_to_return
|
358
|
+
except Exception as e:
|
359
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
360
|
+
|
235
361
|
def change_model_version_set_compartment_and_wait_for_state(self, model_version_set_id, change_model_version_set_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
236
362
|
"""
|
237
363
|
Calls :py:func:`~oci.data_science.DataScienceClient.change_model_version_set_compartment` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
@@ -441,6 +567,129 @@ class DataScienceClientCompositeOperations(object):
|
|
441
567
|
except Exception as e:
|
442
568
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
443
569
|
|
570
|
+
def create_ml_application_and_wait_for_state(self, create_ml_application_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
571
|
+
"""
|
572
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.create_ml_application` and waits for the :py:class:`~oci.data_science.models.MlApplication` acted upon
|
573
|
+
to enter the given state(s).
|
574
|
+
|
575
|
+
:param oci.data_science.models.CreateMlApplicationDetails create_ml_application_details: (required)
|
576
|
+
Details for the new MlApplication.
|
577
|
+
|
578
|
+
:param list[str] wait_for_states:
|
579
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplication.lifecycle_state`
|
580
|
+
|
581
|
+
:param dict operation_kwargs:
|
582
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.create_ml_application`
|
583
|
+
|
584
|
+
:param dict waiter_kwargs:
|
585
|
+
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``
|
586
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
587
|
+
"""
|
588
|
+
operation_result = self.client.create_ml_application(create_ml_application_details, **operation_kwargs)
|
589
|
+
if not wait_for_states:
|
590
|
+
return operation_result
|
591
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
592
|
+
ml_application_id = operation_result.data.id
|
593
|
+
|
594
|
+
try:
|
595
|
+
waiter_result = oci.wait_until(
|
596
|
+
self.client,
|
597
|
+
self.client.get_ml_application(ml_application_id), # noqa: F821
|
598
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
599
|
+
**waiter_kwargs
|
600
|
+
)
|
601
|
+
result_to_return = waiter_result
|
602
|
+
|
603
|
+
return result_to_return
|
604
|
+
except (NameError, TypeError) as e:
|
605
|
+
if not e.args:
|
606
|
+
e.args = ('',)
|
607
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
608
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
609
|
+
except Exception as e:
|
610
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
611
|
+
|
612
|
+
def create_ml_application_implementation_and_wait_for_state(self, create_ml_application_implementation_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
613
|
+
"""
|
614
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.create_ml_application_implementation` and waits for the :py:class:`~oci.data_science.models.MlApplicationImplementation` acted upon
|
615
|
+
to enter the given state(s).
|
616
|
+
|
617
|
+
:param oci.data_science.models.CreateMlApplicationImplementationDetails create_ml_application_implementation_details: (required)
|
618
|
+
Details for the new MlApplicationImplementation.
|
619
|
+
|
620
|
+
:param list[str] wait_for_states:
|
621
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplicationImplementation.lifecycle_state`
|
622
|
+
|
623
|
+
:param dict operation_kwargs:
|
624
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.create_ml_application_implementation`
|
625
|
+
|
626
|
+
:param dict waiter_kwargs:
|
627
|
+
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``
|
628
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
629
|
+
"""
|
630
|
+
operation_result = self.client.create_ml_application_implementation(create_ml_application_implementation_details, **operation_kwargs)
|
631
|
+
if not wait_for_states:
|
632
|
+
return operation_result
|
633
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
634
|
+
ml_application_implementation_id = operation_result.data.id
|
635
|
+
|
636
|
+
try:
|
637
|
+
waiter_result = oci.wait_until(
|
638
|
+
self.client,
|
639
|
+
self.client.get_ml_application_implementation(ml_application_implementation_id), # noqa: F821
|
640
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
641
|
+
**waiter_kwargs
|
642
|
+
)
|
643
|
+
result_to_return = waiter_result
|
644
|
+
|
645
|
+
return result_to_return
|
646
|
+
except (NameError, TypeError) as e:
|
647
|
+
if not e.args:
|
648
|
+
e.args = ('',)
|
649
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
650
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
651
|
+
except Exception as e:
|
652
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
653
|
+
|
654
|
+
def create_ml_application_instance_and_wait_for_state(self, create_ml_application_instance_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
655
|
+
"""
|
656
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.create_ml_application_instance` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
657
|
+
to enter the given state(s).
|
658
|
+
|
659
|
+
:param oci.data_science.models.CreateMlApplicationInstanceDetails create_ml_application_instance_details: (required)
|
660
|
+
Details for the new MlApplicationInstance.
|
661
|
+
|
662
|
+
:param list[str] wait_for_states:
|
663
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
664
|
+
|
665
|
+
:param dict operation_kwargs:
|
666
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.create_ml_application_instance`
|
667
|
+
|
668
|
+
:param dict waiter_kwargs:
|
669
|
+
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``
|
670
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
671
|
+
"""
|
672
|
+
operation_result = self.client.create_ml_application_instance(create_ml_application_instance_details, **operation_kwargs)
|
673
|
+
if not wait_for_states:
|
674
|
+
return operation_result
|
675
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
676
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
677
|
+
return operation_result
|
678
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
679
|
+
|
680
|
+
try:
|
681
|
+
waiter_result = oci.wait_until(
|
682
|
+
self.client,
|
683
|
+
self.client.get_work_request(wait_for_resource_id),
|
684
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
685
|
+
**waiter_kwargs
|
686
|
+
)
|
687
|
+
result_to_return = waiter_result
|
688
|
+
|
689
|
+
return result_to_return
|
690
|
+
except Exception as e:
|
691
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
692
|
+
|
444
693
|
def create_model_and_wait_for_state(self, create_model_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
445
694
|
"""
|
446
695
|
Calls :py:func:`~oci.data_science.DataScienceClient.create_model` and waits for the :py:class:`~oci.data_science.models.Model` acted upon
|
@@ -1090,30 +1339,28 @@ class DataScienceClientCompositeOperations(object):
|
|
1090
1339
|
except Exception as e:
|
1091
1340
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1092
1341
|
|
1093
|
-
def
|
1342
|
+
def delete_ml_application_and_wait_for_state(self, ml_application_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1094
1343
|
"""
|
1095
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
1344
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.delete_ml_application` and waits for the :py:class:`~oci.data_science.models.MlApplication` acted upon
|
1096
1345
|
to enter the given state(s).
|
1097
1346
|
|
1098
|
-
:param str
|
1099
|
-
|
1100
|
-
|
1101
|
-
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1347
|
+
:param str ml_application_id: (required)
|
1348
|
+
unique MlApplication identifier
|
1102
1349
|
|
1103
1350
|
:param list[str] wait_for_states:
|
1104
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.
|
1351
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplication.lifecycle_state`
|
1105
1352
|
|
1106
1353
|
:param dict operation_kwargs:
|
1107
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
1354
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.delete_ml_application`
|
1108
1355
|
|
1109
1356
|
:param dict waiter_kwargs:
|
1110
1357
|
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``
|
1111
1358
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1112
1359
|
"""
|
1113
|
-
initial_get_result = self.client.
|
1360
|
+
initial_get_result = self.client.get_ml_application(ml_application_id)
|
1114
1361
|
operation_result = None
|
1115
1362
|
try:
|
1116
|
-
operation_result = self.client.
|
1363
|
+
operation_result = self.client.delete_ml_application(ml_application_id, **operation_kwargs)
|
1117
1364
|
except oci.exceptions.ServiceError as e:
|
1118
1365
|
if e.status == 404:
|
1119
1366
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -1126,7 +1373,7 @@ class DataScienceClientCompositeOperations(object):
|
|
1126
1373
|
|
1127
1374
|
try:
|
1128
1375
|
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
1129
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation
|
1376
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_ml_application, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
1130
1377
|
else:
|
1131
1378
|
"""
|
1132
1379
|
If the user does not send in this value, we set it to True by default.
|
@@ -1151,21 +1398,19 @@ class DataScienceClientCompositeOperations(object):
|
|
1151
1398
|
except Exception as e:
|
1152
1399
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1153
1400
|
|
1154
|
-
def
|
1401
|
+
def delete_ml_application_implementation_and_wait_for_state(self, ml_application_implementation_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1155
1402
|
"""
|
1156
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
1403
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.delete_ml_application_implementation` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1157
1404
|
to enter the given state(s).
|
1158
1405
|
|
1159
|
-
:param str
|
1160
|
-
|
1161
|
-
|
1162
|
-
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1406
|
+
:param str ml_application_implementation_id: (required)
|
1407
|
+
unique MlApplicationImplementation identifier
|
1163
1408
|
|
1164
1409
|
:param list[str] wait_for_states:
|
1165
1410
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1166
1411
|
|
1167
1412
|
:param dict operation_kwargs:
|
1168
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
1413
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.delete_ml_application_implementation`
|
1169
1414
|
|
1170
1415
|
:param dict waiter_kwargs:
|
1171
1416
|
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``
|
@@ -1173,7 +1418,7 @@ class DataScienceClientCompositeOperations(object):
|
|
1173
1418
|
"""
|
1174
1419
|
operation_result = None
|
1175
1420
|
try:
|
1176
|
-
operation_result = self.client.
|
1421
|
+
operation_result = self.client.delete_ml_application_implementation(ml_application_implementation_id, **operation_kwargs)
|
1177
1422
|
except oci.exceptions.ServiceError as e:
|
1178
1423
|
if e.status == 404:
|
1179
1424
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -1200,21 +1445,19 @@ class DataScienceClientCompositeOperations(object):
|
|
1200
1445
|
except Exception as e:
|
1201
1446
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1202
1447
|
|
1203
|
-
def
|
1448
|
+
def delete_ml_application_instance_and_wait_for_state(self, ml_application_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1204
1449
|
"""
|
1205
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
1450
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.delete_ml_application_instance` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1206
1451
|
to enter the given state(s).
|
1207
1452
|
|
1208
|
-
:param str
|
1209
|
-
|
1210
|
-
|
1211
|
-
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1453
|
+
:param str ml_application_instance_id: (required)
|
1454
|
+
unique MlApplicationInstance identifier
|
1212
1455
|
|
1213
1456
|
:param list[str] wait_for_states:
|
1214
1457
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1215
1458
|
|
1216
1459
|
:param dict operation_kwargs:
|
1217
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
1460
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.delete_ml_application_instance`
|
1218
1461
|
|
1219
1462
|
:param dict waiter_kwargs:
|
1220
1463
|
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``
|
@@ -1222,7 +1465,7 @@ class DataScienceClientCompositeOperations(object):
|
|
1222
1465
|
"""
|
1223
1466
|
operation_result = None
|
1224
1467
|
try:
|
1225
|
-
operation_result = self.client.
|
1468
|
+
operation_result = self.client.delete_ml_application_instance(ml_application_instance_id, **operation_kwargs)
|
1226
1469
|
except oci.exceptions.ServiceError as e:
|
1227
1470
|
if e.status == 404:
|
1228
1471
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -1249,29 +1492,30 @@ class DataScienceClientCompositeOperations(object):
|
|
1249
1492
|
except Exception as e:
|
1250
1493
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1251
1494
|
|
1252
|
-
def
|
1495
|
+
def delete_model_and_wait_for_state(self, model_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1253
1496
|
"""
|
1254
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
1497
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.delete_model` and waits for the :py:class:`~oci.data_science.models.Model` acted upon
|
1255
1498
|
to enter the given state(s).
|
1256
1499
|
|
1257
|
-
:param str
|
1258
|
-
The `OCID`__ of the
|
1500
|
+
:param str model_id: (required)
|
1501
|
+
The `OCID`__ of the model.
|
1259
1502
|
|
1260
1503
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1261
1504
|
|
1262
1505
|
:param list[str] wait_for_states:
|
1263
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.
|
1506
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.Model.lifecycle_state`
|
1264
1507
|
|
1265
1508
|
:param dict operation_kwargs:
|
1266
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
1509
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.delete_model`
|
1267
1510
|
|
1268
1511
|
:param dict waiter_kwargs:
|
1269
1512
|
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``
|
1270
1513
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1271
1514
|
"""
|
1515
|
+
initial_get_result = self.client.get_model(model_id)
|
1272
1516
|
operation_result = None
|
1273
1517
|
try:
|
1274
|
-
operation_result = self.client.
|
1518
|
+
operation_result = self.client.delete_model(model_id, **operation_kwargs)
|
1275
1519
|
except oci.exceptions.ServiceError as e:
|
1276
1520
|
if e.status == 404:
|
1277
1521
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -1281,18 +1525,176 @@ class DataScienceClientCompositeOperations(object):
|
|
1281
1525
|
if not wait_for_states:
|
1282
1526
|
return operation_result
|
1283
1527
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1284
|
-
if 'opc-work-request-id' not in operation_result.headers:
|
1285
|
-
return operation_result
|
1286
|
-
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1287
1528
|
|
1288
1529
|
try:
|
1289
|
-
|
1290
|
-
self.client,
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1530
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
1531
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_model, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
1532
|
+
else:
|
1533
|
+
"""
|
1534
|
+
If the user does not send in this value, we set it to True by default.
|
1535
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
1536
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
1537
|
+
"""
|
1538
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
1539
|
+
waiter_result = oci.wait_until(
|
1540
|
+
self.client,
|
1541
|
+
initial_get_result, # noqa: F821
|
1542
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1543
|
+
**waiter_kwargs
|
1544
|
+
)
|
1545
|
+
result_to_return = waiter_result
|
1546
|
+
|
1547
|
+
return result_to_return
|
1548
|
+
except (NameError, TypeError) as e:
|
1549
|
+
if not e.args:
|
1550
|
+
e.args = ('',)
|
1551
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1552
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1553
|
+
except Exception as e:
|
1554
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1555
|
+
|
1556
|
+
def delete_model_deployment_and_wait_for_state(self, model_deployment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1557
|
+
"""
|
1558
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.delete_model_deployment` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1559
|
+
to enter the given state(s).
|
1560
|
+
|
1561
|
+
:param str model_deployment_id: (required)
|
1562
|
+
The `OCID`__ of the model deployment.
|
1563
|
+
|
1564
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1565
|
+
|
1566
|
+
:param list[str] wait_for_states:
|
1567
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1568
|
+
|
1569
|
+
:param dict operation_kwargs:
|
1570
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.delete_model_deployment`
|
1571
|
+
|
1572
|
+
:param dict waiter_kwargs:
|
1573
|
+
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``
|
1574
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1575
|
+
"""
|
1576
|
+
operation_result = None
|
1577
|
+
try:
|
1578
|
+
operation_result = self.client.delete_model_deployment(model_deployment_id, **operation_kwargs)
|
1579
|
+
except oci.exceptions.ServiceError as e:
|
1580
|
+
if e.status == 404:
|
1581
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1582
|
+
else:
|
1583
|
+
raise e
|
1584
|
+
|
1585
|
+
if not wait_for_states:
|
1586
|
+
return operation_result
|
1587
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1588
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1589
|
+
return operation_result
|
1590
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1591
|
+
|
1592
|
+
try:
|
1593
|
+
waiter_result = oci.wait_until(
|
1594
|
+
self.client,
|
1595
|
+
self.client.get_work_request(wait_for_resource_id),
|
1596
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1597
|
+
**waiter_kwargs
|
1598
|
+
)
|
1599
|
+
result_to_return = waiter_result
|
1600
|
+
|
1601
|
+
return result_to_return
|
1602
|
+
except Exception as e:
|
1603
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1604
|
+
|
1605
|
+
def delete_model_version_set_and_wait_for_state(self, model_version_set_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1606
|
+
"""
|
1607
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.delete_model_version_set` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1608
|
+
to enter the given state(s).
|
1609
|
+
|
1610
|
+
:param str model_version_set_id: (required)
|
1611
|
+
The `OCID`__ of the model version set.
|
1612
|
+
|
1613
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1614
|
+
|
1615
|
+
:param list[str] wait_for_states:
|
1616
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1617
|
+
|
1618
|
+
:param dict operation_kwargs:
|
1619
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.delete_model_version_set`
|
1620
|
+
|
1621
|
+
:param dict waiter_kwargs:
|
1622
|
+
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``
|
1623
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1624
|
+
"""
|
1625
|
+
operation_result = None
|
1626
|
+
try:
|
1627
|
+
operation_result = self.client.delete_model_version_set(model_version_set_id, **operation_kwargs)
|
1628
|
+
except oci.exceptions.ServiceError as e:
|
1629
|
+
if e.status == 404:
|
1630
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1631
|
+
else:
|
1632
|
+
raise e
|
1633
|
+
|
1634
|
+
if not wait_for_states:
|
1635
|
+
return operation_result
|
1636
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1637
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1638
|
+
return operation_result
|
1639
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1640
|
+
|
1641
|
+
try:
|
1642
|
+
waiter_result = oci.wait_until(
|
1643
|
+
self.client,
|
1644
|
+
self.client.get_work_request(wait_for_resource_id),
|
1645
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1646
|
+
**waiter_kwargs
|
1647
|
+
)
|
1648
|
+
result_to_return = waiter_result
|
1649
|
+
|
1650
|
+
return result_to_return
|
1651
|
+
except Exception as e:
|
1652
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1653
|
+
|
1654
|
+
def delete_notebook_session_and_wait_for_state(self, notebook_session_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1655
|
+
"""
|
1656
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.delete_notebook_session` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1657
|
+
to enter the given state(s).
|
1658
|
+
|
1659
|
+
:param str notebook_session_id: (required)
|
1660
|
+
The `OCID`__ of the notebook session.
|
1661
|
+
|
1662
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1663
|
+
|
1664
|
+
:param list[str] wait_for_states:
|
1665
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1666
|
+
|
1667
|
+
:param dict operation_kwargs:
|
1668
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.delete_notebook_session`
|
1669
|
+
|
1670
|
+
:param dict waiter_kwargs:
|
1671
|
+
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``
|
1672
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1673
|
+
"""
|
1674
|
+
operation_result = None
|
1675
|
+
try:
|
1676
|
+
operation_result = self.client.delete_notebook_session(notebook_session_id, **operation_kwargs)
|
1677
|
+
except oci.exceptions.ServiceError as e:
|
1678
|
+
if e.status == 404:
|
1679
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1680
|
+
else:
|
1681
|
+
raise e
|
1682
|
+
|
1683
|
+
if not wait_for_states:
|
1684
|
+
return operation_result
|
1685
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1686
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1687
|
+
return operation_result
|
1688
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1689
|
+
|
1690
|
+
try:
|
1691
|
+
waiter_result = oci.wait_until(
|
1692
|
+
self.client,
|
1693
|
+
self.client.get_work_request(wait_for_resource_id),
|
1694
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1695
|
+
**waiter_kwargs
|
1696
|
+
)
|
1697
|
+
result_to_return = waiter_result
|
1296
1698
|
|
1297
1699
|
return result_to_return
|
1298
1700
|
except Exception as e:
|
@@ -1504,118 +1906,120 @@ class DataScienceClientCompositeOperations(object):
|
|
1504
1906
|
except Exception as e:
|
1505
1907
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1506
1908
|
|
1507
|
-
def
|
1909
|
+
def disable_ml_application_instance_view_trigger_and_wait_for_state(self, disable_ml_application_instance_view_trigger_details, ml_application_instance_view_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1508
1910
|
"""
|
1509
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
1911
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.disable_ml_application_instance_view_trigger` and waits for the :py:class:`~oci.data_science.models.MlApplicationInstanceView` acted upon
|
1510
1912
|
to enter the given state(s).
|
1511
1913
|
|
1512
|
-
:param
|
1513
|
-
|
1514
|
-
|
1515
|
-
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1914
|
+
:param oci.data_science.models.DisableMlApplicationInstanceViewTriggerDetails disable_ml_application_instance_view_trigger_details: (required)
|
1915
|
+
Details for disable trigger request.
|
1516
1916
|
|
1517
|
-
:param
|
1518
|
-
|
1917
|
+
:param str ml_application_instance_view_id: (required)
|
1918
|
+
unique MlApplicationInstanceView identifier
|
1519
1919
|
|
1520
1920
|
:param list[str] wait_for_states:
|
1521
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.
|
1921
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplicationInstanceView.lifecycle_state`
|
1522
1922
|
|
1523
1923
|
:param dict operation_kwargs:
|
1524
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
1924
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.disable_ml_application_instance_view_trigger`
|
1525
1925
|
|
1526
1926
|
:param dict waiter_kwargs:
|
1527
1927
|
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``
|
1528
1928
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1529
1929
|
"""
|
1530
|
-
operation_result = self.client.
|
1930
|
+
operation_result = self.client.disable_ml_application_instance_view_trigger(disable_ml_application_instance_view_trigger_details, ml_application_instance_view_id, **operation_kwargs)
|
1531
1931
|
if not wait_for_states:
|
1532
1932
|
return operation_result
|
1533
1933
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1534
|
-
|
1535
|
-
return operation_result
|
1536
|
-
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1934
|
+
ml_application_instance_view_id = operation_result.data.id
|
1537
1935
|
|
1538
1936
|
try:
|
1539
1937
|
waiter_result = oci.wait_until(
|
1540
1938
|
self.client,
|
1541
|
-
self.client.
|
1542
|
-
evaluate_response=lambda r: getattr(r.data, '
|
1939
|
+
self.client.get_ml_application_instance_view(ml_application_instance_view_id), # noqa: F821
|
1940
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1543
1941
|
**waiter_kwargs
|
1544
1942
|
)
|
1545
1943
|
result_to_return = waiter_result
|
1546
1944
|
|
1547
1945
|
return result_to_return
|
1946
|
+
except (NameError, TypeError) as e:
|
1947
|
+
if not e.args:
|
1948
|
+
e.args = ('',)
|
1949
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1950
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1548
1951
|
except Exception as e:
|
1549
1952
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1550
1953
|
|
1551
|
-
def
|
1954
|
+
def enable_ml_application_instance_view_trigger_and_wait_for_state(self, enable_ml_application_instance_view_trigger_details, ml_application_instance_view_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1552
1955
|
"""
|
1553
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
1956
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.enable_ml_application_instance_view_trigger` and waits for the :py:class:`~oci.data_science.models.MlApplicationInstanceView` acted upon
|
1554
1957
|
to enter the given state(s).
|
1555
1958
|
|
1556
|
-
:param
|
1557
|
-
|
1558
|
-
|
1559
|
-
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1959
|
+
:param oci.data_science.models.EnableMlApplicationInstanceViewTriggerDetails enable_ml_application_instance_view_trigger_details: (required)
|
1960
|
+
Details for enable trigger request.
|
1560
1961
|
|
1561
|
-
:param
|
1562
|
-
|
1962
|
+
:param str ml_application_instance_view_id: (required)
|
1963
|
+
unique MlApplicationInstanceView identifier
|
1563
1964
|
|
1564
1965
|
:param list[str] wait_for_states:
|
1565
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.
|
1966
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplicationInstanceView.lifecycle_state`
|
1566
1967
|
|
1567
1968
|
:param dict operation_kwargs:
|
1568
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
1969
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.enable_ml_application_instance_view_trigger`
|
1569
1970
|
|
1570
1971
|
:param dict waiter_kwargs:
|
1571
1972
|
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``
|
1572
1973
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1573
1974
|
"""
|
1574
|
-
operation_result = self.client.
|
1975
|
+
operation_result = self.client.enable_ml_application_instance_view_trigger(enable_ml_application_instance_view_trigger_details, ml_application_instance_view_id, **operation_kwargs)
|
1575
1976
|
if not wait_for_states:
|
1576
1977
|
return operation_result
|
1577
1978
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1578
|
-
|
1579
|
-
return operation_result
|
1580
|
-
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1979
|
+
ml_application_instance_view_id = operation_result.data.id
|
1581
1980
|
|
1582
1981
|
try:
|
1583
1982
|
waiter_result = oci.wait_until(
|
1584
1983
|
self.client,
|
1585
|
-
self.client.
|
1586
|
-
evaluate_response=lambda r: getattr(r.data, '
|
1984
|
+
self.client.get_ml_application_instance_view(ml_application_instance_view_id), # noqa: F821
|
1985
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1587
1986
|
**waiter_kwargs
|
1588
1987
|
)
|
1589
1988
|
result_to_return = waiter_result
|
1590
1989
|
|
1591
1990
|
return result_to_return
|
1991
|
+
except (NameError, TypeError) as e:
|
1992
|
+
if not e.args:
|
1993
|
+
e.args = ('',)
|
1994
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1995
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1592
1996
|
except Exception as e:
|
1593
1997
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1594
1998
|
|
1595
|
-
def
|
1999
|
+
def export_model_artifact_and_wait_for_state(self, model_id, export_model_artifact_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1596
2000
|
"""
|
1597
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
2001
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.export_model_artifact` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1598
2002
|
to enter the given state(s).
|
1599
2003
|
|
1600
|
-
:param oci.data_science.models.RegisterModelArtifactReferenceDetails register_model_artifact_reference_details: (required)
|
1601
|
-
register model artifact reference metadata
|
1602
|
-
|
1603
2004
|
:param str model_id: (required)
|
1604
2005
|
The `OCID`__ of the model.
|
1605
2006
|
|
1606
2007
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1607
2008
|
|
2009
|
+
:param oci.data_science.models.ExportModelArtifactDetails export_model_artifact_details: (required)
|
2010
|
+
Model artifact source details for exporting.
|
2011
|
+
|
1608
2012
|
:param list[str] wait_for_states:
|
1609
2013
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1610
2014
|
|
1611
2015
|
:param dict operation_kwargs:
|
1612
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
2016
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.export_model_artifact`
|
1613
2017
|
|
1614
2018
|
:param dict waiter_kwargs:
|
1615
2019
|
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``
|
1616
2020
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1617
2021
|
"""
|
1618
|
-
operation_result = self.client.
|
2022
|
+
operation_result = self.client.export_model_artifact(model_id, export_model_artifact_details, **operation_kwargs)
|
1619
2023
|
if not wait_for_states:
|
1620
2024
|
return operation_result
|
1621
2025
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
@@ -1636,9 +2040,9 @@ class DataScienceClientCompositeOperations(object):
|
|
1636
2040
|
except Exception as e:
|
1637
2041
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1638
2042
|
|
1639
|
-
def
|
2043
|
+
def import_model_artifact_and_wait_for_state(self, model_id, import_model_artifact_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1640
2044
|
"""
|
1641
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
2045
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.import_model_artifact` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1642
2046
|
to enter the given state(s).
|
1643
2047
|
|
1644
2048
|
:param str model_id: (required)
|
@@ -1646,17 +2050,20 @@ class DataScienceClientCompositeOperations(object):
|
|
1646
2050
|
|
1647
2051
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1648
2052
|
|
2053
|
+
:param oci.data_science.models.ImportModelArtifactDetails import_model_artifact_details: (required)
|
2054
|
+
Model artifact source details for importing.
|
2055
|
+
|
1649
2056
|
:param list[str] wait_for_states:
|
1650
2057
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1651
2058
|
|
1652
2059
|
:param dict operation_kwargs:
|
1653
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
2060
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.import_model_artifact`
|
1654
2061
|
|
1655
2062
|
:param dict waiter_kwargs:
|
1656
2063
|
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``
|
1657
2064
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1658
2065
|
"""
|
1659
|
-
operation_result = self.client.
|
2066
|
+
operation_result = self.client.import_model_artifact(model_id, import_model_artifact_details, **operation_kwargs)
|
1660
2067
|
if not wait_for_states:
|
1661
2068
|
return operation_result
|
1662
2069
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
@@ -1677,28 +2084,28 @@ class DataScienceClientCompositeOperations(object):
|
|
1677
2084
|
except Exception as e:
|
1678
2085
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1679
2086
|
|
1680
|
-
def
|
2087
|
+
def put_ml_application_package_and_wait_for_state(self, ml_application_implementation_id, put_ml_application_package, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1681
2088
|
"""
|
1682
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
2089
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.put_ml_application_package` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1683
2090
|
to enter the given state(s).
|
1684
2091
|
|
1685
|
-
:param str
|
1686
|
-
|
2092
|
+
:param str ml_application_implementation_id: (required)
|
2093
|
+
unique MlApplicationImplementation identifier
|
1687
2094
|
|
1688
|
-
:param
|
1689
|
-
|
2095
|
+
:param stream put_ml_application_package: (required)
|
2096
|
+
ML Application Package to upload
|
1690
2097
|
|
1691
2098
|
:param list[str] wait_for_states:
|
1692
2099
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
1693
2100
|
|
1694
2101
|
:param dict operation_kwargs:
|
1695
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.
|
2102
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.put_ml_application_package`
|
1696
2103
|
|
1697
2104
|
:param dict waiter_kwargs:
|
1698
2105
|
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``
|
1699
2106
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1700
2107
|
"""
|
1701
|
-
operation_result = self.client.
|
2108
|
+
operation_result = self.client.put_ml_application_package(ml_application_implementation_id, put_ml_application_package, **operation_kwargs)
|
1702
2109
|
if not wait_for_states:
|
1703
2110
|
return operation_result
|
1704
2111
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
@@ -1719,21 +2126,271 @@ class DataScienceClientCompositeOperations(object):
|
|
1719
2126
|
except Exception as e:
|
1720
2127
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1721
2128
|
|
1722
|
-
def
|
2129
|
+
def recover_ml_application_instance_view_and_wait_for_state(self, ml_application_instance_view_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1723
2130
|
"""
|
1724
|
-
Calls :py:func:`~oci.data_science.DataScienceClient.
|
2131
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.recover_ml_application_instance_view` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
1725
2132
|
to enter the given state(s).
|
1726
2133
|
|
1727
|
-
:param str
|
1728
|
-
|
1729
|
-
|
1730
|
-
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1731
|
-
|
1732
|
-
:param oci.data_science.models.UpdateJobDetails update_job_details: (required)
|
1733
|
-
Details for updating a job.
|
2134
|
+
:param str ml_application_instance_view_id: (required)
|
2135
|
+
unique MlApplicationInstanceView identifier
|
1734
2136
|
|
1735
2137
|
:param list[str] wait_for_states:
|
1736
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.
|
2138
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2139
|
+
|
2140
|
+
:param dict operation_kwargs:
|
2141
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.recover_ml_application_instance_view`
|
2142
|
+
|
2143
|
+
:param dict waiter_kwargs:
|
2144
|
+
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``
|
2145
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2146
|
+
"""
|
2147
|
+
operation_result = self.client.recover_ml_application_instance_view(ml_application_instance_view_id, **operation_kwargs)
|
2148
|
+
if not wait_for_states:
|
2149
|
+
return operation_result
|
2150
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2151
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2152
|
+
return operation_result
|
2153
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2154
|
+
|
2155
|
+
try:
|
2156
|
+
waiter_result = oci.wait_until(
|
2157
|
+
self.client,
|
2158
|
+
self.client.get_work_request(wait_for_resource_id),
|
2159
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2160
|
+
**waiter_kwargs
|
2161
|
+
)
|
2162
|
+
result_to_return = waiter_result
|
2163
|
+
|
2164
|
+
return result_to_return
|
2165
|
+
except Exception as e:
|
2166
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2167
|
+
|
2168
|
+
def register_model_artifact_reference_and_wait_for_state(self, register_model_artifact_reference_details, model_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2169
|
+
"""
|
2170
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.register_model_artifact_reference` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
2171
|
+
to enter the given state(s).
|
2172
|
+
|
2173
|
+
:param oci.data_science.models.RegisterModelArtifactReferenceDetails register_model_artifact_reference_details: (required)
|
2174
|
+
register model artifact reference metadata
|
2175
|
+
|
2176
|
+
:param str model_id: (required)
|
2177
|
+
The `OCID`__ of the model.
|
2178
|
+
|
2179
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2180
|
+
|
2181
|
+
:param list[str] wait_for_states:
|
2182
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2183
|
+
|
2184
|
+
:param dict operation_kwargs:
|
2185
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.register_model_artifact_reference`
|
2186
|
+
|
2187
|
+
:param dict waiter_kwargs:
|
2188
|
+
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``
|
2189
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2190
|
+
"""
|
2191
|
+
operation_result = self.client.register_model_artifact_reference(register_model_artifact_reference_details, model_id, **operation_kwargs)
|
2192
|
+
if not wait_for_states:
|
2193
|
+
return operation_result
|
2194
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2195
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2196
|
+
return operation_result
|
2197
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2198
|
+
|
2199
|
+
try:
|
2200
|
+
waiter_result = oci.wait_until(
|
2201
|
+
self.client,
|
2202
|
+
self.client.get_work_request(wait_for_resource_id),
|
2203
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2204
|
+
**waiter_kwargs
|
2205
|
+
)
|
2206
|
+
result_to_return = waiter_result
|
2207
|
+
|
2208
|
+
return result_to_return
|
2209
|
+
except Exception as e:
|
2210
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2211
|
+
|
2212
|
+
def restore_archived_model_artifact_and_wait_for_state(self, model_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2213
|
+
"""
|
2214
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.restore_archived_model_artifact` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
2215
|
+
to enter the given state(s).
|
2216
|
+
|
2217
|
+
:param str model_id: (required)
|
2218
|
+
The `OCID`__ of the model.
|
2219
|
+
|
2220
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2221
|
+
|
2222
|
+
:param list[str] wait_for_states:
|
2223
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2224
|
+
|
2225
|
+
:param dict operation_kwargs:
|
2226
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.restore_archived_model_artifact`
|
2227
|
+
|
2228
|
+
:param dict waiter_kwargs:
|
2229
|
+
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``
|
2230
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2231
|
+
"""
|
2232
|
+
operation_result = self.client.restore_archived_model_artifact(model_id, **operation_kwargs)
|
2233
|
+
if not wait_for_states:
|
2234
|
+
return operation_result
|
2235
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2236
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2237
|
+
return operation_result
|
2238
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2239
|
+
|
2240
|
+
try:
|
2241
|
+
waiter_result = oci.wait_until(
|
2242
|
+
self.client,
|
2243
|
+
self.client.get_work_request(wait_for_resource_id),
|
2244
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2245
|
+
**waiter_kwargs
|
2246
|
+
)
|
2247
|
+
result_to_return = waiter_result
|
2248
|
+
|
2249
|
+
return result_to_return
|
2250
|
+
except Exception as e:
|
2251
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2252
|
+
|
2253
|
+
def trigger_ml_application_instance_flow_and_wait_for_state(self, trigger_ml_application_instance_flow_details, ml_application_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2254
|
+
"""
|
2255
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.trigger_ml_application_instance_flow` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
2256
|
+
to enter the given state(s).
|
2257
|
+
|
2258
|
+
:param oci.data_science.models.TriggerMlApplicationInstanceFlowDetails trigger_ml_application_instance_flow_details: (required)
|
2259
|
+
Details for trigger request.
|
2260
|
+
|
2261
|
+
:param str ml_application_instance_id: (required)
|
2262
|
+
unique MlApplicationInstance identifier
|
2263
|
+
|
2264
|
+
:param list[str] wait_for_states:
|
2265
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2266
|
+
|
2267
|
+
:param dict operation_kwargs:
|
2268
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.trigger_ml_application_instance_flow`
|
2269
|
+
|
2270
|
+
:param dict waiter_kwargs:
|
2271
|
+
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``
|
2272
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2273
|
+
"""
|
2274
|
+
operation_result = self.client.trigger_ml_application_instance_flow(trigger_ml_application_instance_flow_details, ml_application_instance_id, **operation_kwargs)
|
2275
|
+
if not wait_for_states:
|
2276
|
+
return operation_result
|
2277
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2278
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2279
|
+
return operation_result
|
2280
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2281
|
+
|
2282
|
+
try:
|
2283
|
+
waiter_result = oci.wait_until(
|
2284
|
+
self.client,
|
2285
|
+
self.client.get_work_request(wait_for_resource_id),
|
2286
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2287
|
+
**waiter_kwargs
|
2288
|
+
)
|
2289
|
+
result_to_return = waiter_result
|
2290
|
+
|
2291
|
+
return result_to_return
|
2292
|
+
except Exception as e:
|
2293
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2294
|
+
|
2295
|
+
def trigger_ml_application_instance_view_flow_and_wait_for_state(self, trigger_ml_application_instance_view_flow_details, ml_application_instance_view_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2296
|
+
"""
|
2297
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.trigger_ml_application_instance_view_flow` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
2298
|
+
to enter the given state(s).
|
2299
|
+
|
2300
|
+
:param oci.data_science.models.TriggerMlApplicationInstanceViewFlowDetails trigger_ml_application_instance_view_flow_details: (required)
|
2301
|
+
Details for trigger request.
|
2302
|
+
|
2303
|
+
:param str ml_application_instance_view_id: (required)
|
2304
|
+
unique MlApplicationInstanceView identifier
|
2305
|
+
|
2306
|
+
:param list[str] wait_for_states:
|
2307
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2308
|
+
|
2309
|
+
:param dict operation_kwargs:
|
2310
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.trigger_ml_application_instance_view_flow`
|
2311
|
+
|
2312
|
+
:param dict waiter_kwargs:
|
2313
|
+
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``
|
2314
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2315
|
+
"""
|
2316
|
+
operation_result = self.client.trigger_ml_application_instance_view_flow(trigger_ml_application_instance_view_flow_details, ml_application_instance_view_id, **operation_kwargs)
|
2317
|
+
if not wait_for_states:
|
2318
|
+
return operation_result
|
2319
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2320
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2321
|
+
return operation_result
|
2322
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2323
|
+
|
2324
|
+
try:
|
2325
|
+
waiter_result = oci.wait_until(
|
2326
|
+
self.client,
|
2327
|
+
self.client.get_work_request(wait_for_resource_id),
|
2328
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2329
|
+
**waiter_kwargs
|
2330
|
+
)
|
2331
|
+
result_to_return = waiter_result
|
2332
|
+
|
2333
|
+
return result_to_return
|
2334
|
+
except Exception as e:
|
2335
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2336
|
+
|
2337
|
+
def update_data_science_private_endpoint_and_wait_for_state(self, data_science_private_endpoint_id, update_data_science_private_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2338
|
+
"""
|
2339
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.update_data_science_private_endpoint` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
2340
|
+
to enter the given state(s).
|
2341
|
+
|
2342
|
+
:param str data_science_private_endpoint_id: (required)
|
2343
|
+
The unique ID for a Data Science private endpoint.
|
2344
|
+
|
2345
|
+
:param oci.data_science.models.UpdateDataSciencePrivateEndpointDetails update_data_science_private_endpoint_details: (required)
|
2346
|
+
Details for updating a private endpoint.
|
2347
|
+
|
2348
|
+
:param list[str] wait_for_states:
|
2349
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2350
|
+
|
2351
|
+
:param dict operation_kwargs:
|
2352
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.update_data_science_private_endpoint`
|
2353
|
+
|
2354
|
+
:param dict waiter_kwargs:
|
2355
|
+
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``
|
2356
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2357
|
+
"""
|
2358
|
+
operation_result = self.client.update_data_science_private_endpoint(data_science_private_endpoint_id, update_data_science_private_endpoint_details, **operation_kwargs)
|
2359
|
+
if not wait_for_states:
|
2360
|
+
return operation_result
|
2361
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2362
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2363
|
+
return operation_result
|
2364
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2365
|
+
|
2366
|
+
try:
|
2367
|
+
waiter_result = oci.wait_until(
|
2368
|
+
self.client,
|
2369
|
+
self.client.get_work_request(wait_for_resource_id),
|
2370
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2371
|
+
**waiter_kwargs
|
2372
|
+
)
|
2373
|
+
result_to_return = waiter_result
|
2374
|
+
|
2375
|
+
return result_to_return
|
2376
|
+
except Exception as e:
|
2377
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2378
|
+
|
2379
|
+
def update_job_and_wait_for_state(self, job_id, update_job_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2380
|
+
"""
|
2381
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.update_job` and waits for the :py:class:`~oci.data_science.models.Job` acted upon
|
2382
|
+
to enter the given state(s).
|
2383
|
+
|
2384
|
+
:param str job_id: (required)
|
2385
|
+
The `OCID`__ of the job.
|
2386
|
+
|
2387
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2388
|
+
|
2389
|
+
:param oci.data_science.models.UpdateJobDetails update_job_details: (required)
|
2390
|
+
Details for updating a job.
|
2391
|
+
|
2392
|
+
:param list[str] wait_for_states:
|
2393
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.Job.lifecycle_state`
|
1737
2394
|
|
1738
2395
|
:param dict operation_kwargs:
|
1739
2396
|
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.update_job`
|
@@ -1813,6 +2470,225 @@ class DataScienceClientCompositeOperations(object):
|
|
1813
2470
|
except Exception as e:
|
1814
2471
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1815
2472
|
|
2473
|
+
def update_ml_application_and_wait_for_state(self, ml_application_id, update_ml_application_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2474
|
+
"""
|
2475
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.update_ml_application` and waits for the :py:class:`~oci.data_science.models.MlApplication` acted upon
|
2476
|
+
to enter the given state(s).
|
2477
|
+
|
2478
|
+
:param str ml_application_id: (required)
|
2479
|
+
unique MlApplication identifier
|
2480
|
+
|
2481
|
+
:param oci.data_science.models.UpdateMlApplicationDetails update_ml_application_details: (required)
|
2482
|
+
The information to be updated.
|
2483
|
+
|
2484
|
+
:param list[str] wait_for_states:
|
2485
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplication.lifecycle_state`
|
2486
|
+
|
2487
|
+
:param dict operation_kwargs:
|
2488
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.update_ml_application`
|
2489
|
+
|
2490
|
+
:param dict waiter_kwargs:
|
2491
|
+
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``
|
2492
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2493
|
+
"""
|
2494
|
+
operation_result = self.client.update_ml_application(ml_application_id, update_ml_application_details, **operation_kwargs)
|
2495
|
+
if not wait_for_states:
|
2496
|
+
return operation_result
|
2497
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2498
|
+
ml_application_id = operation_result.data.id
|
2499
|
+
|
2500
|
+
try:
|
2501
|
+
waiter_result = oci.wait_until(
|
2502
|
+
self.client,
|
2503
|
+
self.client.get_ml_application(ml_application_id), # noqa: F821
|
2504
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
2505
|
+
**waiter_kwargs
|
2506
|
+
)
|
2507
|
+
result_to_return = waiter_result
|
2508
|
+
|
2509
|
+
return result_to_return
|
2510
|
+
except (NameError, TypeError) as e:
|
2511
|
+
if not e.args:
|
2512
|
+
e.args = ('',)
|
2513
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
2514
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2515
|
+
except Exception as e:
|
2516
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2517
|
+
|
2518
|
+
def update_ml_application_implementation_and_wait_for_state(self, ml_application_implementation_id, update_ml_application_implementation_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2519
|
+
"""
|
2520
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.update_ml_application_implementation` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
2521
|
+
to enter the given state(s).
|
2522
|
+
|
2523
|
+
:param str ml_application_implementation_id: (required)
|
2524
|
+
unique MlApplicationImplementation identifier
|
2525
|
+
|
2526
|
+
:param oci.data_science.models.UpdateMlApplicationImplementationDetails update_ml_application_implementation_details: (required)
|
2527
|
+
The information to be updated.
|
2528
|
+
|
2529
|
+
:param list[str] wait_for_states:
|
2530
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2531
|
+
|
2532
|
+
:param dict operation_kwargs:
|
2533
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.update_ml_application_implementation`
|
2534
|
+
|
2535
|
+
:param dict waiter_kwargs:
|
2536
|
+
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``
|
2537
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2538
|
+
"""
|
2539
|
+
operation_result = self.client.update_ml_application_implementation(ml_application_implementation_id, update_ml_application_implementation_details, **operation_kwargs)
|
2540
|
+
if not wait_for_states:
|
2541
|
+
return operation_result
|
2542
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2543
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2544
|
+
return operation_result
|
2545
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2546
|
+
|
2547
|
+
try:
|
2548
|
+
waiter_result = oci.wait_until(
|
2549
|
+
self.client,
|
2550
|
+
self.client.get_work_request(wait_for_resource_id),
|
2551
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2552
|
+
**waiter_kwargs
|
2553
|
+
)
|
2554
|
+
result_to_return = waiter_result
|
2555
|
+
|
2556
|
+
return result_to_return
|
2557
|
+
except Exception as e:
|
2558
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2559
|
+
|
2560
|
+
def update_ml_application_implementation_version_and_wait_for_state(self, ml_application_implementation_version_id, update_ml_application_implementation_version_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2561
|
+
"""
|
2562
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.update_ml_application_implementation_version` and waits for the :py:class:`~oci.data_science.models.MlApplicationImplementationVersion` acted upon
|
2563
|
+
to enter the given state(s).
|
2564
|
+
|
2565
|
+
:param str ml_application_implementation_version_id: (required)
|
2566
|
+
unique MlApplicationImplementationVersion identifier
|
2567
|
+
|
2568
|
+
:param oci.data_science.models.UpdateMlApplicationImplementationVersionDetails update_ml_application_implementation_version_details: (required)
|
2569
|
+
The information to be updated.
|
2570
|
+
|
2571
|
+
:param list[str] wait_for_states:
|
2572
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplicationImplementationVersion.lifecycle_state`
|
2573
|
+
|
2574
|
+
:param dict operation_kwargs:
|
2575
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.update_ml_application_implementation_version`
|
2576
|
+
|
2577
|
+
:param dict waiter_kwargs:
|
2578
|
+
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``
|
2579
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2580
|
+
"""
|
2581
|
+
operation_result = self.client.update_ml_application_implementation_version(ml_application_implementation_version_id, update_ml_application_implementation_version_details, **operation_kwargs)
|
2582
|
+
if not wait_for_states:
|
2583
|
+
return operation_result
|
2584
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2585
|
+
ml_application_implementation_version_id = operation_result.data.id
|
2586
|
+
|
2587
|
+
try:
|
2588
|
+
waiter_result = oci.wait_until(
|
2589
|
+
self.client,
|
2590
|
+
self.client.get_ml_application_implementation_version(ml_application_implementation_version_id), # noqa: F821
|
2591
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
2592
|
+
**waiter_kwargs
|
2593
|
+
)
|
2594
|
+
result_to_return = waiter_result
|
2595
|
+
|
2596
|
+
return result_to_return
|
2597
|
+
except (NameError, TypeError) as e:
|
2598
|
+
if not e.args:
|
2599
|
+
e.args = ('',)
|
2600
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
2601
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2602
|
+
except Exception as e:
|
2603
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2604
|
+
|
2605
|
+
def update_ml_application_instance_and_wait_for_state(self, ml_application_instance_id, update_ml_application_instance_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2606
|
+
"""
|
2607
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.update_ml_application_instance` and waits for the :py:class:`~oci.data_science.models.WorkRequest`
|
2608
|
+
to enter the given state(s).
|
2609
|
+
|
2610
|
+
:param str ml_application_instance_id: (required)
|
2611
|
+
unique MlApplicationInstance identifier
|
2612
|
+
|
2613
|
+
:param oci.data_science.models.UpdateMlApplicationInstanceDetails update_ml_application_instance_details: (required)
|
2614
|
+
The information to be updated.
|
2615
|
+
|
2616
|
+
:param list[str] wait_for_states:
|
2617
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.WorkRequest.status`
|
2618
|
+
|
2619
|
+
:param dict operation_kwargs:
|
2620
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.update_ml_application_instance`
|
2621
|
+
|
2622
|
+
:param dict waiter_kwargs:
|
2623
|
+
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``
|
2624
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2625
|
+
"""
|
2626
|
+
operation_result = self.client.update_ml_application_instance(ml_application_instance_id, update_ml_application_instance_details, **operation_kwargs)
|
2627
|
+
if not wait_for_states:
|
2628
|
+
return operation_result
|
2629
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2630
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2631
|
+
return operation_result
|
2632
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2633
|
+
|
2634
|
+
try:
|
2635
|
+
waiter_result = oci.wait_until(
|
2636
|
+
self.client,
|
2637
|
+
self.client.get_work_request(wait_for_resource_id),
|
2638
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2639
|
+
**waiter_kwargs
|
2640
|
+
)
|
2641
|
+
result_to_return = waiter_result
|
2642
|
+
|
2643
|
+
return result_to_return
|
2644
|
+
except Exception as e:
|
2645
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2646
|
+
|
2647
|
+
def update_ml_application_instance_view_and_wait_for_state(self, ml_application_instance_view_id, update_ml_application_instance_view_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2648
|
+
"""
|
2649
|
+
Calls :py:func:`~oci.data_science.DataScienceClient.update_ml_application_instance_view` and waits for the :py:class:`~oci.data_science.models.MlApplicationInstanceView` acted upon
|
2650
|
+
to enter the given state(s).
|
2651
|
+
|
2652
|
+
:param str ml_application_instance_view_id: (required)
|
2653
|
+
unique MlApplicationInstanceView identifier
|
2654
|
+
|
2655
|
+
:param oci.data_science.models.UpdateMlApplicationInstanceViewDetails update_ml_application_instance_view_details: (required)
|
2656
|
+
The information to be updated.
|
2657
|
+
|
2658
|
+
:param list[str] wait_for_states:
|
2659
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_science.models.MlApplicationInstanceView.lifecycle_state`
|
2660
|
+
|
2661
|
+
:param dict operation_kwargs:
|
2662
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_science.DataScienceClient.update_ml_application_instance_view`
|
2663
|
+
|
2664
|
+
:param dict waiter_kwargs:
|
2665
|
+
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``
|
2666
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2667
|
+
"""
|
2668
|
+
operation_result = self.client.update_ml_application_instance_view(ml_application_instance_view_id, update_ml_application_instance_view_details, **operation_kwargs)
|
2669
|
+
if not wait_for_states:
|
2670
|
+
return operation_result
|
2671
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2672
|
+
ml_application_instance_view_id = operation_result.data.id
|
2673
|
+
|
2674
|
+
try:
|
2675
|
+
waiter_result = oci.wait_until(
|
2676
|
+
self.client,
|
2677
|
+
self.client.get_ml_application_instance_view(ml_application_instance_view_id), # noqa: F821
|
2678
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
2679
|
+
**waiter_kwargs
|
2680
|
+
)
|
2681
|
+
result_to_return = waiter_result
|
2682
|
+
|
2683
|
+
return result_to_return
|
2684
|
+
except (NameError, TypeError) as e:
|
2685
|
+
if not e.args:
|
2686
|
+
e.args = ('',)
|
2687
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
2688
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2689
|
+
except Exception as e:
|
2690
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2691
|
+
|
1816
2692
|
def update_model_and_wait_for_state(self, model_id, update_model_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1817
2693
|
"""
|
1818
2694
|
Calls :py:func:`~oci.data_science.DataScienceClient.update_model` and waits for the :py:class:`~oci.data_science.models.Model` acted upon
|