oci 2.143.0__py3-none-any.whl → 2.144.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/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 +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +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 +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +256 -256
- 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 +3284 -1447
- oci/data_safe/data_safe_client_composite_operations.py +224 -0
- oci/data_safe/models/__init__.py +30 -4
- oci/data_safe/models/alert.py +0 -2
- oci/data_safe/models/alert_policy.py +0 -2
- oci/data_safe/models/alert_policy_summary.py +0 -2
- oci/data_safe/models/alert_summary.py +0 -2
- oci/data_safe/models/audit_archive_retrieval.py +0 -2
- oci/data_safe/models/audit_archive_retrieval_summary.py +0 -2
- oci/data_safe/models/audit_event_summary.py +0 -2
- oci/data_safe/models/audit_policy.py +0 -2
- oci/data_safe/models/audit_policy_summary.py +0 -2
- oci/data_safe/models/audit_profile.py +2 -4
- oci/data_safe/models/audit_profile_summary.py +2 -4
- oci/data_safe/models/audit_trail.py +0 -2
- oci/data_safe/models/audit_trail_summary.py +0 -2
- oci/data_safe/models/change_retention_details.py +2 -2
- oci/data_safe/models/change_sensitive_types_export_compartment_details.py +72 -0
- oci/data_safe/models/column_filter.py +11 -3
- oci/data_safe/models/columns_info.py +243 -0
- oci/data_safe/models/create_alert_policy_details.py +0 -2
- oci/data_safe/models/create_audit_archive_retrieval_details.py +0 -2
- oci/data_safe/models/create_data_safe_private_endpoint_details.py +0 -2
- oci/data_safe/models/create_discovery_job_details.py +0 -2
- oci/data_safe/models/create_library_masking_format_details.py +0 -2
- oci/data_safe/models/create_masking_policy_details.py +0 -2
- oci/data_safe/models/create_on_prem_connector_details.py +0 -2
- oci/data_safe/models/create_referential_relation_details.py +185 -0
- oci/data_safe/models/create_report_definition_details.py +0 -2
- oci/data_safe/models/create_sdm_masking_policy_difference_details.py +0 -2
- oci/data_safe/models/create_security_assessment_details.py +1 -3
- oci/data_safe/models/create_sensitive_data_model_details.py +0 -2
- oci/data_safe/models/create_sensitive_type_details.py +0 -2
- oci/data_safe/models/create_sensitive_types_export_details.py +277 -0
- oci/data_safe/models/create_sql_collection_details.py +0 -2
- oci/data_safe/models/create_target_alert_policy_association_details.py +0 -2
- oci/data_safe/models/create_target_database_details.py +0 -2
- oci/data_safe/models/create_user_assessment_details.py +0 -2
- oci/data_safe/models/data_safe_configuration.py +0 -2
- oci/data_safe/models/data_safe_private_endpoint.py +0 -2
- oci/data_safe/models/data_safe_private_endpoint_summary.py +0 -2
- oci/data_safe/models/database_security_config.py +0 -2
- oci/data_safe/models/database_security_config_summary.py +0 -2
- oci/data_safe/models/discovery_job.py +0 -2
- oci/data_safe/models/discovery_job_summary.py +0 -2
- oci/data_safe/models/download_sensitive_types_export_details.py +84 -0
- oci/data_safe/models/generate_health_report_details.py +0 -2
- oci/data_safe/models/library_masking_format.py +0 -2
- oci/data_safe/models/library_masking_format_summary.py +0 -2
- oci/data_safe/models/masking_analytics_dimensions.py +2 -2
- oci/data_safe/models/masking_policy.py +0 -2
- oci/data_safe/models/masking_policy_columns_info.py +177 -0
- oci/data_safe/models/masking_policy_health_report.py +62 -2
- oci/data_safe/models/masking_policy_health_report_log_summary.py +125 -2
- oci/data_safe/models/masking_policy_health_report_summary.py +62 -2
- oci/data_safe/models/masking_policy_referential_relation_collection.py +72 -0
- oci/data_safe/models/masking_policy_referential_relation_summary.py +211 -0
- oci/data_safe/models/masking_policy_summary.py +0 -2
- oci/data_safe/models/on_prem_connector.py +0 -2
- oci/data_safe/models/on_prem_connector_summary.py +0 -2
- oci/data_safe/models/profile.py +0 -2
- oci/data_safe/models/profile_aggregation.py +4 -4
- oci/data_safe/models/profile_summary.py +0 -2
- oci/data_safe/models/referential_relation.py +303 -0
- oci/data_safe/models/referential_relation_collection.py +72 -0
- oci/data_safe/models/referential_relation_summary.py +303 -0
- oci/data_safe/models/regular_expression_format_entry.py +2 -4
- oci/data_safe/models/report.py +0 -2
- oci/data_safe/models/report_definition.py +0 -2
- oci/data_safe/models/report_definition_summary.py +0 -2
- oci/data_safe/models/report_summary.py +0 -2
- oci/data_safe/models/run_security_assessment_details.py +0 -2
- oci/data_safe/models/run_user_assessment_details.py +0 -2
- oci/data_safe/models/sdm_masking_policy_difference.py +0 -2
- oci/data_safe/models/sdm_masking_policy_difference_summary.py +0 -2
- oci/data_safe/models/security_assessment.py +0 -2
- oci/data_safe/models/security_assessment_summary.py +0 -2
- oci/data_safe/models/security_feature_summary.py +0 -2
- oci/data_safe/models/security_policy.py +0 -2
- oci/data_safe/models/security_policy_deployment.py +0 -2
- oci/data_safe/models/security_policy_deployment_summary.py +0 -2
- oci/data_safe/models/security_policy_report.py +0 -2
- oci/data_safe/models/security_policy_report_summary.py +0 -2
- oci/data_safe/models/security_policy_summary.py +0 -2
- oci/data_safe/models/sensitive_data_model.py +0 -2
- oci/data_safe/models/sensitive_data_model_summary.py +0 -2
- oci/data_safe/models/sensitive_type.py +0 -2
- oci/data_safe/models/sensitive_type_summary.py +0 -2
- oci/data_safe/models/sensitive_types_export.py +471 -0
- oci/data_safe/models/sensitive_types_export_collection.py +72 -0
- oci/data_safe/models/sensitive_types_export_summary.py +374 -0
- oci/data_safe/models/sql_collection.py +0 -2
- oci/data_safe/models/sql_collection_summary.py +0 -2
- oci/data_safe/models/sql_firewall_allowed_sql.py +0 -2
- oci/data_safe/models/sql_firewall_allowed_sql_summary.py +0 -2
- oci/data_safe/models/sql_firewall_policy.py +0 -2
- oci/data_safe/models/sql_firewall_policy_summary.py +0 -2
- oci/data_safe/models/target_alert_policy_association.py +0 -2
- oci/data_safe/models/target_alert_policy_association_summary.py +0 -2
- oci/data_safe/models/target_database.py +0 -2
- oci/data_safe/models/target_database_summary.py +0 -2
- oci/data_safe/models/update_alert_details.py +0 -2
- oci/data_safe/models/update_alert_policy_details.py +0 -2
- oci/data_safe/models/update_audit_archive_retrieval_details.py +0 -2
- oci/data_safe/models/update_audit_policy_details.py +0 -2
- oci/data_safe/models/update_audit_profile_details.py +2 -4
- oci/data_safe/models/update_audit_trail_details.py +2 -4
- oci/data_safe/models/update_data_safe_private_endpoint_details.py +0 -2
- oci/data_safe/models/update_database_security_config_details.py +0 -2
- oci/data_safe/models/update_library_masking_format_details.py +0 -2
- oci/data_safe/models/update_masking_policy_details.py +0 -2
- oci/data_safe/models/update_on_prem_connector_details.py +0 -2
- oci/data_safe/models/update_report_definition_details.py +0 -2
- oci/data_safe/models/update_report_details.py +0 -2
- oci/data_safe/models/update_sdm_masking_policy_difference_details.py +0 -2
- oci/data_safe/models/update_security_assessment_details.py +0 -2
- oci/data_safe/models/update_security_policy_deployment_details.py +0 -2
- oci/data_safe/models/update_security_policy_details.py +0 -2
- oci/data_safe/models/update_sensitive_data_model_details.py +0 -2
- oci/data_safe/models/update_sensitive_type_details.py +0 -2
- oci/data_safe/models/{create_audit_policy_details.py → update_sensitive_types_export_details.py} +27 -91
- oci/data_safe/models/update_sql_collection_details.py +0 -2
- oci/data_safe/models/update_sql_firewall_policy_details.py +0 -2
- oci/data_safe/models/update_target_alert_policy_association_details.py +0 -2
- oci/data_safe/models/update_target_database_details.py +0 -2
- oci/data_safe/models/update_user_assessment_details.py +0 -2
- oci/data_safe/models/user_aggregation.py +4 -2
- oci/data_safe/models/user_assessment.py +0 -2
- oci/data_safe/models/user_assessment_summary.py +0 -2
- oci/data_safe/models/user_summary.py +37 -1
- oci/data_safe/models/work_request.py +15 -3
- oci/data_safe/models/work_request_summary.py +15 -3
- oci/data_science/data_science_client.py +1264 -173
- oci/data_science/data_science_client_composite_operations.py +248 -0
- oci/data_science/models/__init__.py +51 -1
- oci/data_science/models/change_schedule_compartment_details.py +78 -0
- oci/data_science/models/container_summary.py +516 -0
- oci/data_science/models/create_job_run_schedule_action_details.py +78 -0
- oci/data_science/models/create_pipeline_run_schedule_action_details.py +78 -0
- oci/data_science/models/create_schedule_details.py +328 -0
- oci/data_science/models/generic_job_run_use_case_configuration_details.py +82 -0
- oci/data_science/models/invoke_ml_application_provider_trigger_schedule_action_details.py +113 -0
- oci/data_science/models/job_run_use_case_configuration_details.py +101 -0
- oci/data_science/models/job_run_workload_configuration_details.py +78 -0
- oci/data_science/models/model_deploy_workload_configuration_details.py +191 -0
- oci/data_science/models/schedule.py +706 -0
- oci/data_science/models/schedule_action.py +101 -0
- oci/data_science/models/schedule_cron_trigger.py +96 -0
- oci/data_science/models/schedule_http_action.py +78 -0
- oci/data_science/models/schedule_http_action_details.py +117 -0
- oci/data_science/models/schedule_i_cal_trigger.py +96 -0
- oci/data_science/models/schedule_interval_trigger.py +177 -0
- oci/data_science/models/schedule_log_details.py +111 -0
- oci/data_science/models/schedule_summary.py +485 -0
- oci/data_science/models/schedule_trigger.py +191 -0
- oci/data_science/models/tag_configuration.py +103 -0
- oci/data_science/models/trigger_ml_application_instance_view_flow_details.py +103 -0
- oci/data_science/models/trigger_parameter.py +103 -0
- oci/data_science/models/update_schedule_details.py +258 -0
- oci/data_science/models/work_request.py +27 -3
- oci/data_science/models/work_request_summary.py +27 -3
- oci/data_science/models/workload_configuration_details.py +109 -0
- oci/database/database_client.py +409 -404
- oci/database/models/cloud_exadata_infrastructure.py +111 -2
- oci/database/models/cloud_exadata_infrastructure_summary.py +111 -2
- oci/database/models/cloud_vm_cluster.py +49 -2
- oci/database/models/cloud_vm_cluster_summary.py +49 -2
- oci/database/models/create_cloud_exadata_infrastructure_details.py +64 -2
- oci/database/models/create_exadata_infrastructure_details.py +62 -0
- oci/database/models/db_server.py +49 -2
- oci/database/models/db_server_summary.py +49 -2
- oci/database/models/db_system_shape_summary.py +109 -0
- oci/database/models/exadata_infrastructure.py +118 -5
- oci/database/models/exadata_infrastructure_summary.py +118 -5
- oci/database/models/flex_component_summary.py +235 -2
- oci/database/models/update_exadata_infrastructure_details.py +7 -3
- oci/database/models/vm_cluster.py +49 -2
- oci/database/models/vm_cluster_summary.py +49 -2
- oci/database_management/db_management_client.py +2738 -600
- oci/database_management/db_management_client_composite_operations.py +301 -0
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +275 -7
- oci/database_management/models/__init__.py +54 -0
- oci/database_management/models/alert_log_summary.py +14 -6
- oci/database_management/models/attention_log_summary.py +14 -6
- oci/database_management/models/awr_db_snapshot_range_summary.py +93 -0
- oci/database_management/models/awr_db_summary.py +93 -0
- oci/database_management/models/base_database_ha_details.py +540 -0
- oci/database_management/models/create_external_my_sql_database_connector_details.py +99 -0
- oci/database_management/models/create_external_my_sql_database_details.py +103 -0
- oci/database_management/models/create_my_sql_database_connector_details.py +329 -0
- oci/database_management/models/database_backup_metrics.py +722 -0
- oci/database_management/models/database_backup_summary.py +263 -0
- oci/database_management/models/database_fleet_backup_metrics.py +72 -0
- oci/database_management/models/database_fleet_dataguard_metrics.py +72 -0
- oci/database_management/models/database_fleet_ha_overview_metrics.py +72 -0
- oci/database_management/models/database_ha_backup_details.py +722 -0
- oci/database_management/models/database_ha_metrics.py +629 -0
- oci/database_management/models/dataguard_metrics.py +664 -0
- oci/database_management/models/disable_external_mysql_associated_service_details.py +146 -0
- oci/database_management/models/enable_external_database_management_details.py +72 -0
- oci/database_management/models/enable_external_mysql_associated_service_details.py +146 -0
- oci/database_management/models/exadata_infrastructure_lifecycle_state_values.py +108 -0
- oci/database_management/models/external_my_sql_database.py +181 -0
- oci/database_management/models/external_my_sql_database_collection.py +72 -0
- oci/database_management/models/external_my_sql_database_connector.py +761 -0
- oci/database_management/models/external_my_sql_database_summary.py +365 -0
- oci/database_management/models/ha_metric_definition.py +202 -0
- oci/database_management/models/managed_my_sql_database.py +192 -2
- oci/database_management/models/managed_my_sql_database_summary.py +161 -2
- oci/database_management/models/my_sql_connector_collection.py +72 -0
- oci/database_management/models/my_sql_data_summary.py +93 -0
- oci/database_management/models/my_sql_database_connector_summary.py +711 -0
- oci/database_management/models/stand_by_database_dataguard_metrics.py +294 -0
- oci/database_management/models/update_external_my_sql_database_connector_details.py +99 -0
- oci/database_management/models/update_external_my_sql_database_details.py +72 -0
- oci/database_management/models/update_my_sql_database_connector_details.py +329 -0
- oci/database_management/models/work_request.py +23 -3
- oci/database_management/models/work_request_summary.py +23 -3
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/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/disaster_recovery/models/__init__.py +48 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_container_database_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_movable_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_details.py +11 -3
- oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_network_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_object_storage_bucket_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_oke_cluster_details.py +351 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +1 -1
- oci/disaster_recovery/models/create_oke_backup_location_details.py +111 -0
- oci/disaster_recovery/models/create_oke_cluster_backup_config_details.py +292 -0
- oci/disaster_recovery/models/create_oke_cluster_load_balancer_mapping_details.py +111 -0
- oci/disaster_recovery/models/create_oke_cluster_managed_node_pool_configuration_details.py +134 -0
- oci/disaster_recovery/models/create_oke_cluster_network_load_balancer_mapping_details.py +111 -0
- oci/disaster_recovery/models/create_oke_cluster_vault_mapping_details.py +111 -0
- oci/disaster_recovery/models/create_oke_cluster_virtual_node_pool_configuration_details.py +134 -0
- oci/disaster_recovery/models/dr_plan_step.py +67 -3
- oci/disaster_recovery/models/dr_plan_step_execution.py +67 -3
- oci/disaster_recovery/models/dr_protection_group_member.py +11 -3
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_container_database.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_movable.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_database.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_file_system.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_load_balancer.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_network_load_balancer.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_object_storage_bucket.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_oke_cluster.py +351 -0
- oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +1 -1
- oci/disaster_recovery/models/oke_backup_location.py +146 -0
- oci/disaster_recovery/models/oke_cluster_backup_config.py +234 -0
- oci/disaster_recovery/models/oke_cluster_load_balancer_mapping.py +111 -0
- oci/disaster_recovery/models/oke_cluster_managed_node_pool_configuration.py +134 -0
- oci/disaster_recovery/models/oke_cluster_network_load_balancer_mapping.py +111 -0
- oci/disaster_recovery/models/oke_cluster_vault_mapping.py +111 -0
- oci/disaster_recovery/models/oke_cluster_virtual_node_pool_configuration.py +134 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_container_database_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_movable_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_details.py +11 -3
- oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_network_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_object_storage_bucket_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_oke_cluster_details.py +351 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +1 -1
- oci/disaster_recovery/models/update_oke_backup_location_details.py +111 -0
- oci/disaster_recovery/models/update_oke_cluster_backup_config_details.py +236 -0
- oci/disaster_recovery/models/update_oke_cluster_load_balancer_mapping_details.py +111 -0
- oci/disaster_recovery/models/update_oke_cluster_managed_node_pool_configuration_details.py +134 -0
- oci/disaster_recovery/models/update_oke_cluster_network_load_balancer_mapping_details.py +111 -0
- oci/disaster_recovery/models/update_oke_cluster_vault_mapping_details.py +111 -0
- oci/disaster_recovery/models/update_oke_cluster_virtual_node_pool_configuration_details.py +134 -0
- 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 +68 -68
- 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 +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +103 -4
- oci/generative_ai_inference/models/__init__.py +28 -0
- oci/generative_ai_inference/models/assistant_message.py +34 -3
- oci/generative_ai_inference/models/cohere_chat_request.py +2 -2
- oci/generative_ai_inference/models/document.py +72 -0
- oci/generative_ai_inference/models/document_rank.py +130 -0
- oci/generative_ai_inference/models/embed_text_details.py +9 -5
- oci/generative_ai_inference/models/function_call.py +120 -0
- oci/generative_ai_inference/models/function_definition.py +144 -0
- oci/generative_ai_inference/models/generic_chat_request.py +91 -2
- oci/generative_ai_inference/models/image_url.py +21 -5
- oci/generative_ai_inference/models/message.py +11 -3
- oci/generative_ai_inference/models/rerank_text_details.py +254 -0
- oci/generative_ai_inference/models/rerank_text_result.py +165 -0
- oci/generative_ai_inference/models/system_message.py +1 -1
- oci/generative_ai_inference/models/tool_call.py +132 -0
- oci/generative_ai_inference/models/tool_choice.py +125 -0
- oci/generative_ai_inference/models/tool_choice_auto.py +51 -0
- oci/generative_ai_inference/models/tool_choice_function.py +82 -0
- oci/generative_ai_inference/models/tool_choice_none.py +51 -0
- oci/generative_ai_inference/models/tool_choice_required.py +51 -0
- oci/generative_ai_inference/models/tool_definition.py +101 -0
- oci/generative_ai_inference/models/tool_message.py +89 -0
- oci/generative_ai_inference/models/user_message.py +1 -1
- 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 +75 -75
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +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/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +6 -0
- oci/mysql/models/create_db_system_details.py +111 -2
- oci/mysql/models/create_read_endpoint_details.py +183 -0
- oci/mysql/models/db_system.py +145 -2
- oci/mysql/models/db_system_endpoint.py +7 -3
- oci/mysql/models/db_system_snapshot.py +29 -2
- oci/mysql/models/db_system_summary.py +113 -2
- oci/mysql/models/read_endpoint_details.py +183 -0
- oci/mysql/models/update_db_system_details.py +111 -2
- oci/mysql/models/update_read_endpoint_details.py +183 -0
- 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/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/__init__.py +14 -0
- oci/opsi/models/autonomous_database_configuration_summary.py +1 -1
- oci/opsi/models/autonomous_database_insight.py +1 -1
- oci/opsi/models/autonomous_database_insight_summary.py +1 -1
- oci/opsi/models/change_external_mysql_database_insight_connection_details.py +76 -0
- oci/opsi/models/create_autonomous_database_insight_details.py +1 -1
- oci/opsi/models/create_database_insight_details.py +11 -3
- oci/opsi/models/create_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/create_external_mysql_database_insight_details.py +142 -0
- oci/opsi/models/create_macs_managed_cloud_database_insight_details.py +1 -1
- oci/opsi/models/create_mds_my_sql_database_insight_details.py +1 -1
- oci/opsi/models/create_news_report_details.py +99 -5
- oci/opsi/models/create_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/database_configuration_summary.py +11 -3
- oci/opsi/models/database_insight.py +11 -3
- oci/opsi/models/database_insight_summary.py +11 -3
- oci/opsi/models/em_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/em_managed_external_database_insight.py +1 -1
- oci/opsi/models/em_managed_external_database_insight_summary.py +1 -1
- oci/opsi/models/enable_autonomous_database_insight_details.py +1 -1
- oci/opsi/models/enable_database_insight_details.py +11 -3
- oci/opsi/models/enable_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/enable_external_mysql_database_insight_details.py +86 -0
- oci/opsi/models/enable_macs_managed_cloud_database_insight_details.py +1 -1
- oci/opsi/models/enable_mds_my_sql_database_insight_details.py +1 -1
- oci/opsi/models/enable_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/external_mysql_database_configuration_summary.py +226 -0
- oci/opsi/models/external_mysql_database_insight.py +248 -0
- oci/opsi/models/external_mysql_database_insight_summary.py +280 -0
- oci/opsi/models/macs_managed_cloud_database_configuration_summary.py +1 -1
- oci/opsi/models/macs_managed_cloud_database_insight.py +1 -1
- oci/opsi/models/macs_managed_cloud_database_insight_summary.py +1 -1
- oci/opsi/models/macs_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/macs_managed_external_database_insight.py +1 -1
- oci/opsi/models/macs_managed_external_database_insight_summary.py +1 -1
- oci/opsi/models/mds_my_sql_database_insight.py +1 -1
- oci/opsi/models/mds_my_sql_database_insight_summary.py +1 -1
- oci/opsi/models/mds_mysql_database_configuration_summary.py +1 -1
- oci/opsi/models/news_content_types.py +33 -2
- oci/opsi/models/news_report.py +99 -5
- oci/opsi/models/news_report_summary.py +99 -5
- oci/opsi/models/pe_comanaged_database_insight.py +1 -1
- oci/opsi/models/pe_comanaged_database_insight_summary.py +1 -1
- oci/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/summarize_exadata_insight_resource_utilization_insight_aggregation.py +62 -0
- oci/opsi/models/update_autonomous_database_insight_details.py +1 -1
- oci/opsi/models/update_database_insight_details.py +11 -3
- oci/opsi/models/update_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/update_external_mysql_database_insight_details.py +65 -0
- oci/opsi/models/update_macs_managed_cloud_database_insight_details.py +1 -1
- oci/opsi/models/update_macs_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/update_mds_my_sql_database_insight.py +1 -1
- oci/opsi/models/update_news_report_details.py +99 -5
- oci/opsi/models/update_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/vm_cluster_summary.py +8 -8
- oci/opsi/models/work_request.py +7 -3
- oci/opsi/operations_insights_client.py +332 -202
- oci/opsi/operations_insights_client_composite_operations.py +42 -0
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +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/models/discovery_details.py +19 -3
- oci/stack_monitoring/models/discovery_job_summary.py +19 -3
- oci/stack_monitoring/stack_monitoring_client.py +71 -71
- 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/models/assigned_subscription_line_item_summary.py +35 -2
- oci/tenant_manager_control_plane/models/assigned_subscription_summary.py +35 -2
- oci/tenant_manager_control_plane/models/available_region_summary.py +35 -2
- oci/tenant_manager_control_plane/models/classic_assigned_subscription.py +57 -2
- oci/tenant_manager_control_plane/models/classic_assigned_subscription_summary.py +64 -2
- oci/tenant_manager_control_plane/models/classic_subscription_summary.py +7 -0
- oci/tenant_manager_control_plane/models/cloud_assigned_subscription_summary.py +7 -0
- oci/tenant_manager_control_plane/models/cloud_subscription_summary.py +7 -0
- oci/tenant_manager_control_plane/models/create_child_tenancy_details.py +33 -2
- oci/tenant_manager_control_plane/models/link_summary.py +35 -2
- oci/tenant_manager_control_plane/models/organization_summary.py +35 -2
- oci/tenant_manager_control_plane/models/organization_tenancy_summary.py +35 -2
- oci/tenant_manager_control_plane/models/subscription_line_item_summary.py +35 -2
- oci/tenant_manager_control_plane/models/subscription_mapping_summary.py +35 -2
- oci/tenant_manager_control_plane/models/subscription_summary.py +37 -4
- oci/tenant_manager_control_plane/models/work_request.py +23 -3
- oci/tenant_manager_control_plane/models/work_request_summary.py +23 -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.143.0.dist-info → oci-2.144.0.dist-info}/METADATA +1 -1
- {oci-2.143.0.dist-info → oci-2.144.0.dist-info}/RECORD +643 -530
- oci/data_safe/models/create_audit_profile_details.py +0 -278
- {oci-2.143.0.dist-info → oci-2.144.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.143.0.dist-info → oci-2.144.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.143.0.dist-info → oci-2.144.0.dist-info}/WHEEL +0 -0
- {oci-2.143.0.dist-info → oci-2.144.0.dist-info}/top_level.txt +0 -0
@@ -153,7 +153,7 @@ class DataScienceClient(object):
|
|
153
153
|
:rtype: :class:`~oci.response.Response`
|
154
154
|
|
155
155
|
:example:
|
156
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
156
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/activate_model.py.html>`__ to see an example of how to use activate_model API.
|
157
157
|
"""
|
158
158
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
159
159
|
required_arguments = ['modelId']
|
@@ -262,7 +262,7 @@ class DataScienceClient(object):
|
|
262
262
|
:rtype: :class:`~oci.response.Response`
|
263
263
|
|
264
264
|
:example:
|
265
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
265
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/activate_model_deployment.py.html>`__ to see an example of how to use activate_model_deployment API.
|
266
266
|
"""
|
267
267
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
268
268
|
required_arguments = ['modelDeploymentId']
|
@@ -367,7 +367,7 @@ class DataScienceClient(object):
|
|
367
367
|
:rtype: :class:`~oci.response.Response`
|
368
368
|
|
369
369
|
:example:
|
370
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
370
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/activate_notebook_session.py.html>`__ to see an example of how to use activate_notebook_session API.
|
371
371
|
"""
|
372
372
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
373
373
|
required_arguments = ['notebookSessionId']
|
@@ -436,6 +436,117 @@ class DataScienceClient(object):
|
|
436
436
|
api_reference_link=api_reference_link,
|
437
437
|
required_arguments=required_arguments)
|
438
438
|
|
439
|
+
def activate_schedule(self, schedule_id, **kwargs):
|
440
|
+
"""
|
441
|
+
Activate schedule.
|
442
|
+
|
443
|
+
|
444
|
+
:param str schedule_id: (required)
|
445
|
+
unique Schedule identifier
|
446
|
+
|
447
|
+
:param str opc_request_id: (optional)
|
448
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
449
|
+
|
450
|
+
:param str if_match: (optional)
|
451
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
452
|
+
for a resource, set the `if-match` parameter to the value of the
|
453
|
+
etag from a previous GET or POST response for that resource.
|
454
|
+
The resource is updated or deleted only if the `etag` you
|
455
|
+
provide matches the resource's current `etag` value.
|
456
|
+
|
457
|
+
:param str opc_retry_token: (optional)
|
458
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
|
459
|
+
|
460
|
+
:param obj retry_strategy: (optional)
|
461
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
462
|
+
|
463
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
464
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
465
|
+
|
466
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
467
|
+
|
468
|
+
:param bool allow_control_chars: (optional)
|
469
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
470
|
+
By default, the response will not allow control characters in strings
|
471
|
+
|
472
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
473
|
+
:rtype: :class:`~oci.response.Response`
|
474
|
+
|
475
|
+
:example:
|
476
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/activate_schedule.py.html>`__ to see an example of how to use activate_schedule API.
|
477
|
+
"""
|
478
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
479
|
+
required_arguments = ['scheduleId']
|
480
|
+
resource_path = "/schedules/{scheduleId}/actions/activate"
|
481
|
+
method = "POST"
|
482
|
+
operation_name = "activate_schedule"
|
483
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/ActivateSchedule"
|
484
|
+
|
485
|
+
# Don't accept unknown kwargs
|
486
|
+
expected_kwargs = [
|
487
|
+
"allow_control_chars",
|
488
|
+
"retry_strategy",
|
489
|
+
"opc_request_id",
|
490
|
+
"if_match",
|
491
|
+
"opc_retry_token"
|
492
|
+
]
|
493
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
494
|
+
if extra_kwargs:
|
495
|
+
raise ValueError(
|
496
|
+
f"activate_schedule got unknown kwargs: {extra_kwargs!r}")
|
497
|
+
|
498
|
+
path_params = {
|
499
|
+
"scheduleId": schedule_id
|
500
|
+
}
|
501
|
+
|
502
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
503
|
+
|
504
|
+
for (k, v) in six.iteritems(path_params):
|
505
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
506
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
507
|
+
|
508
|
+
header_params = {
|
509
|
+
"accept": "application/json",
|
510
|
+
"content-type": "application/json",
|
511
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
512
|
+
"if-match": kwargs.get("if_match", missing),
|
513
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
514
|
+
}
|
515
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
516
|
+
|
517
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
518
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
519
|
+
client_retry_strategy=self.retry_strategy
|
520
|
+
)
|
521
|
+
if retry_strategy is None:
|
522
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
523
|
+
|
524
|
+
if retry_strategy:
|
525
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
526
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
527
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
528
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
529
|
+
return retry_strategy.make_retrying_call(
|
530
|
+
self.base_client.call_api,
|
531
|
+
resource_path=resource_path,
|
532
|
+
method=method,
|
533
|
+
path_params=path_params,
|
534
|
+
header_params=header_params,
|
535
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
536
|
+
operation_name=operation_name,
|
537
|
+
api_reference_link=api_reference_link,
|
538
|
+
required_arguments=required_arguments)
|
539
|
+
else:
|
540
|
+
return self.base_client.call_api(
|
541
|
+
resource_path=resource_path,
|
542
|
+
method=method,
|
543
|
+
path_params=path_params,
|
544
|
+
header_params=header_params,
|
545
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
546
|
+
operation_name=operation_name,
|
547
|
+
api_reference_link=api_reference_link,
|
548
|
+
required_arguments=required_arguments)
|
549
|
+
|
439
550
|
def cancel_job_run(self, job_run_id, **kwargs):
|
440
551
|
"""
|
441
552
|
Cancels an IN_PROGRESS job run.
|
@@ -472,7 +583,7 @@ class DataScienceClient(object):
|
|
472
583
|
:rtype: :class:`~oci.response.Response`
|
473
584
|
|
474
585
|
:example:
|
475
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
586
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/cancel_job_run.py.html>`__ to see an example of how to use cancel_job_run API.
|
476
587
|
"""
|
477
588
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
478
589
|
required_arguments = ['jobRunId']
|
@@ -585,7 +696,7 @@ class DataScienceClient(object):
|
|
585
696
|
:rtype: :class:`~oci.response.Response`
|
586
697
|
|
587
698
|
:example:
|
588
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
699
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/cancel_pipeline_run.py.html>`__ to see an example of how to use cancel_pipeline_run API.
|
589
700
|
"""
|
590
701
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
591
702
|
required_arguments = ['pipelineRunId']
|
@@ -703,7 +814,7 @@ class DataScienceClient(object):
|
|
703
814
|
:rtype: :class:`~oci.response.Response`
|
704
815
|
|
705
816
|
:example:
|
706
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
817
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
|
707
818
|
"""
|
708
819
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
709
820
|
required_arguments = ['workRequestId']
|
@@ -812,7 +923,7 @@ class DataScienceClient(object):
|
|
812
923
|
:rtype: :class:`~oci.response.Response`
|
813
924
|
|
814
925
|
:example:
|
815
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
926
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_data_science_private_endpoint_compartment.py.html>`__ to see an example of how to use change_data_science_private_endpoint_compartment API.
|
816
927
|
"""
|
817
928
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
818
929
|
required_arguments = ['dataSciencePrivateEndpointId']
|
@@ -927,7 +1038,7 @@ class DataScienceClient(object):
|
|
927
1038
|
:rtype: :class:`~oci.response.Response`
|
928
1039
|
|
929
1040
|
:example:
|
930
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1041
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_job_compartment.py.html>`__ to see an example of how to use change_job_compartment API.
|
931
1042
|
"""
|
932
1043
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
933
1044
|
required_arguments = ['jobId']
|
@@ -1037,7 +1148,7 @@ class DataScienceClient(object):
|
|
1037
1148
|
:rtype: :class:`~oci.response.Response`
|
1038
1149
|
|
1039
1150
|
:example:
|
1040
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1151
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_job_run_compartment.py.html>`__ to see an example of how to use change_job_run_compartment API.
|
1041
1152
|
"""
|
1042
1153
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1043
1154
|
required_arguments = ['jobRunId']
|
@@ -1150,7 +1261,7 @@ class DataScienceClient(object):
|
|
1150
1261
|
:rtype: :class:`~oci.response.Response`
|
1151
1262
|
|
1152
1263
|
:example:
|
1153
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1264
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_model_compartment.py.html>`__ to see an example of how to use change_model_compartment API.
|
1154
1265
|
"""
|
1155
1266
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1156
1267
|
required_arguments = ['modelId']
|
@@ -1266,7 +1377,7 @@ class DataScienceClient(object):
|
|
1266
1377
|
:rtype: :class:`~oci.response.Response`
|
1267
1378
|
|
1268
1379
|
:example:
|
1269
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1380
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_model_deployment_compartment.py.html>`__ to see an example of how to use change_model_deployment_compartment API.
|
1270
1381
|
"""
|
1271
1382
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1272
1383
|
required_arguments = ['modelDeploymentId']
|
@@ -1382,7 +1493,7 @@ class DataScienceClient(object):
|
|
1382
1493
|
:rtype: :class:`~oci.response.Response`
|
1383
1494
|
|
1384
1495
|
:example:
|
1385
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1496
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_model_version_set_compartment.py.html>`__ to see an example of how to use change_model_version_set_compartment API.
|
1386
1497
|
"""
|
1387
1498
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1388
1499
|
required_arguments = ['modelVersionSetId']
|
@@ -1498,7 +1609,7 @@ class DataScienceClient(object):
|
|
1498
1609
|
:rtype: :class:`~oci.response.Response`
|
1499
1610
|
|
1500
1611
|
:example:
|
1501
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1612
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_notebook_session_compartment.py.html>`__ to see an example of how to use change_notebook_session_compartment API.
|
1502
1613
|
"""
|
1503
1614
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1504
1615
|
required_arguments = ['notebookSessionId']
|
@@ -1611,7 +1722,7 @@ class DataScienceClient(object):
|
|
1611
1722
|
:rtype: :class:`~oci.response.Response`
|
1612
1723
|
|
1613
1724
|
:example:
|
1614
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1725
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_pipeline_compartment.py.html>`__ to see an example of how to use change_pipeline_compartment API.
|
1615
1726
|
"""
|
1616
1727
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1617
1728
|
required_arguments = ['pipelineId']
|
@@ -1721,7 +1832,7 @@ class DataScienceClient(object):
|
|
1721
1832
|
:rtype: :class:`~oci.response.Response`
|
1722
1833
|
|
1723
1834
|
:example:
|
1724
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1835
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_pipeline_run_compartment.py.html>`__ to see an example of how to use change_pipeline_run_compartment API.
|
1725
1836
|
"""
|
1726
1837
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1727
1838
|
required_arguments = ['pipelineRunId']
|
@@ -1834,7 +1945,7 @@ class DataScienceClient(object):
|
|
1834
1945
|
:rtype: :class:`~oci.response.Response`
|
1835
1946
|
|
1836
1947
|
:example:
|
1837
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1948
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_project_compartment.py.html>`__ to see an example of how to use change_project_compartment API.
|
1838
1949
|
"""
|
1839
1950
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1840
1951
|
required_arguments = ['projectId']
|
@@ -1908,6 +2019,122 @@ class DataScienceClient(object):
|
|
1908
2019
|
api_reference_link=api_reference_link,
|
1909
2020
|
required_arguments=required_arguments)
|
1910
2021
|
|
2022
|
+
def change_schedule_compartment(self, schedule_id, change_schedule_compartment_details, **kwargs):
|
2023
|
+
"""
|
2024
|
+
Moves a Schedule resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
2025
|
+
|
2026
|
+
|
2027
|
+
:param str schedule_id: (required)
|
2028
|
+
unique Schedule identifier
|
2029
|
+
|
2030
|
+
:param oci.data_science.models.ChangeScheduleCompartmentDetails change_schedule_compartment_details: (required)
|
2031
|
+
The information to be updated.
|
2032
|
+
|
2033
|
+
:param str opc_retry_token: (optional)
|
2034
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
|
2035
|
+
|
2036
|
+
:param str if_match: (optional)
|
2037
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2038
|
+
for a resource, set the `if-match` parameter to the value of the
|
2039
|
+
etag from a previous GET or POST response for that resource.
|
2040
|
+
The resource is updated or deleted only if the `etag` you
|
2041
|
+
provide matches the resource's current `etag` value.
|
2042
|
+
|
2043
|
+
:param str opc_request_id: (optional)
|
2044
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
2045
|
+
|
2046
|
+
:param obj retry_strategy: (optional)
|
2047
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2048
|
+
|
2049
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
2050
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2051
|
+
|
2052
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2053
|
+
|
2054
|
+
:param bool allow_control_chars: (optional)
|
2055
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2056
|
+
By default, the response will not allow control characters in strings
|
2057
|
+
|
2058
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2059
|
+
:rtype: :class:`~oci.response.Response`
|
2060
|
+
|
2061
|
+
:example:
|
2062
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/change_schedule_compartment.py.html>`__ to see an example of how to use change_schedule_compartment API.
|
2063
|
+
"""
|
2064
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2065
|
+
required_arguments = ['scheduleId']
|
2066
|
+
resource_path = "/schedules/{scheduleId}/actions/changeCompartment"
|
2067
|
+
method = "POST"
|
2068
|
+
operation_name = "change_schedule_compartment"
|
2069
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/ChangeScheduleCompartment"
|
2070
|
+
|
2071
|
+
# Don't accept unknown kwargs
|
2072
|
+
expected_kwargs = [
|
2073
|
+
"allow_control_chars",
|
2074
|
+
"retry_strategy",
|
2075
|
+
"opc_retry_token",
|
2076
|
+
"if_match",
|
2077
|
+
"opc_request_id"
|
2078
|
+
]
|
2079
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2080
|
+
if extra_kwargs:
|
2081
|
+
raise ValueError(
|
2082
|
+
f"change_schedule_compartment got unknown kwargs: {extra_kwargs!r}")
|
2083
|
+
|
2084
|
+
path_params = {
|
2085
|
+
"scheduleId": schedule_id
|
2086
|
+
}
|
2087
|
+
|
2088
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2089
|
+
|
2090
|
+
for (k, v) in six.iteritems(path_params):
|
2091
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2092
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2093
|
+
|
2094
|
+
header_params = {
|
2095
|
+
"accept": "application/json",
|
2096
|
+
"content-type": "application/json",
|
2097
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
2098
|
+
"if-match": kwargs.get("if_match", missing),
|
2099
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2100
|
+
}
|
2101
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2102
|
+
|
2103
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2104
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2105
|
+
client_retry_strategy=self.retry_strategy
|
2106
|
+
)
|
2107
|
+
if retry_strategy is None:
|
2108
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2109
|
+
|
2110
|
+
if retry_strategy:
|
2111
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2112
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2113
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2114
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2115
|
+
return retry_strategy.make_retrying_call(
|
2116
|
+
self.base_client.call_api,
|
2117
|
+
resource_path=resource_path,
|
2118
|
+
method=method,
|
2119
|
+
path_params=path_params,
|
2120
|
+
header_params=header_params,
|
2121
|
+
body=change_schedule_compartment_details,
|
2122
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2123
|
+
operation_name=operation_name,
|
2124
|
+
api_reference_link=api_reference_link,
|
2125
|
+
required_arguments=required_arguments)
|
2126
|
+
else:
|
2127
|
+
return self.base_client.call_api(
|
2128
|
+
resource_path=resource_path,
|
2129
|
+
method=method,
|
2130
|
+
path_params=path_params,
|
2131
|
+
header_params=header_params,
|
2132
|
+
body=change_schedule_compartment_details,
|
2133
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2134
|
+
operation_name=operation_name,
|
2135
|
+
api_reference_link=api_reference_link,
|
2136
|
+
required_arguments=required_arguments)
|
2137
|
+
|
1911
2138
|
def create_data_science_private_endpoint(self, create_data_science_private_endpoint_details, **kwargs):
|
1912
2139
|
"""
|
1913
2140
|
Creates a Data Science private endpoint to be used by a Data Science resource.
|
@@ -1938,7 +2165,7 @@ class DataScienceClient(object):
|
|
1938
2165
|
:rtype: :class:`~oci.response.Response`
|
1939
2166
|
|
1940
2167
|
:example:
|
1941
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2168
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_data_science_private_endpoint.py.html>`__ to see an example of how to use create_data_science_private_endpoint API.
|
1942
2169
|
"""
|
1943
2170
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1944
2171
|
required_arguments = []
|
@@ -2032,7 +2259,7 @@ class DataScienceClient(object):
|
|
2032
2259
|
:rtype: :class:`~oci.response.Response`
|
2033
2260
|
|
2034
2261
|
:example:
|
2035
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2262
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_job.py.html>`__ to see an example of how to use create_job API.
|
2036
2263
|
"""
|
2037
2264
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2038
2265
|
required_arguments = []
|
@@ -2145,7 +2372,7 @@ class DataScienceClient(object):
|
|
2145
2372
|
:rtype: :class:`~oci.response.Response`
|
2146
2373
|
|
2147
2374
|
:example:
|
2148
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2375
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_job_artifact.py.html>`__ to see an example of how to use create_job_artifact API.
|
2149
2376
|
"""
|
2150
2377
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2151
2378
|
required_arguments = ['jobId']
|
@@ -2277,7 +2504,7 @@ class DataScienceClient(object):
|
|
2277
2504
|
:rtype: :class:`~oci.response.Response`
|
2278
2505
|
|
2279
2506
|
:example:
|
2280
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2507
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_job_run.py.html>`__ to see an example of how to use create_job_run API.
|
2281
2508
|
"""
|
2282
2509
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2283
2510
|
required_arguments = []
|
@@ -2373,7 +2600,7 @@ class DataScienceClient(object):
|
|
2373
2600
|
:rtype: :class:`~oci.response.Response`
|
2374
2601
|
|
2375
2602
|
:example:
|
2376
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2603
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_model.py.html>`__ to see an example of how to use create_model API.
|
2377
2604
|
"""
|
2378
2605
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2379
2606
|
required_arguments = []
|
@@ -2498,7 +2725,7 @@ class DataScienceClient(object):
|
|
2498
2725
|
:rtype: :class:`~oci.response.Response`
|
2499
2726
|
|
2500
2727
|
:example:
|
2501
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2728
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_model_artifact.py.html>`__ to see an example of how to use create_model_artifact API.
|
2502
2729
|
"""
|
2503
2730
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2504
2731
|
required_arguments = ['modelId']
|
@@ -2634,7 +2861,7 @@ class DataScienceClient(object):
|
|
2634
2861
|
:rtype: :class:`~oci.response.Response`
|
2635
2862
|
|
2636
2863
|
:example:
|
2637
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2864
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_model_deployment.py.html>`__ to see an example of how to use create_model_deployment API.
|
2638
2865
|
"""
|
2639
2866
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2640
2867
|
required_arguments = []
|
@@ -2735,7 +2962,7 @@ class DataScienceClient(object):
|
|
2735
2962
|
:rtype: :class:`~oci.response.Response`
|
2736
2963
|
|
2737
2964
|
:example:
|
2738
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2965
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_model_provenance.py.html>`__ to see an example of how to use create_model_provenance API.
|
2739
2966
|
"""
|
2740
2967
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2741
2968
|
required_arguments = ['modelId']
|
@@ -2841,7 +3068,7 @@ class DataScienceClient(object):
|
|
2841
3068
|
:rtype: :class:`~oci.response.Response`
|
2842
3069
|
|
2843
3070
|
:example:
|
2844
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3071
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_model_version_set.py.html>`__ to see an example of how to use create_model_version_set API.
|
2845
3072
|
"""
|
2846
3073
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2847
3074
|
required_arguments = []
|
@@ -2935,7 +3162,7 @@ class DataScienceClient(object):
|
|
2935
3162
|
:rtype: :class:`~oci.response.Response`
|
2936
3163
|
|
2937
3164
|
:example:
|
2938
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3165
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_notebook_session.py.html>`__ to see an example of how to use create_notebook_session API.
|
2939
3166
|
"""
|
2940
3167
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2941
3168
|
required_arguments = []
|
@@ -3029,7 +3256,7 @@ class DataScienceClient(object):
|
|
3029
3256
|
:rtype: :class:`~oci.response.Response`
|
3030
3257
|
|
3031
3258
|
:example:
|
3032
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3259
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_pipeline.py.html>`__ to see an example of how to use create_pipeline API.
|
3033
3260
|
"""
|
3034
3261
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3035
3262
|
required_arguments = []
|
@@ -3126,7 +3353,7 @@ class DataScienceClient(object):
|
|
3126
3353
|
:rtype: :class:`~oci.response.Response`
|
3127
3354
|
|
3128
3355
|
:example:
|
3129
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3356
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_pipeline_run.py.html>`__ to see an example of how to use create_pipeline_run API.
|
3130
3357
|
"""
|
3131
3358
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3132
3359
|
required_arguments = []
|
@@ -3222,7 +3449,7 @@ class DataScienceClient(object):
|
|
3222
3449
|
:rtype: :class:`~oci.response.Response`
|
3223
3450
|
|
3224
3451
|
:example:
|
3225
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3452
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_project.py.html>`__ to see an example of how to use create_project API.
|
3226
3453
|
"""
|
3227
3454
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3228
3455
|
required_arguments = []
|
@@ -3286,44 +3513,24 @@ class DataScienceClient(object):
|
|
3286
3513
|
api_reference_link=api_reference_link,
|
3287
3514
|
required_arguments=required_arguments)
|
3288
3515
|
|
3289
|
-
def
|
3516
|
+
def create_schedule(self, create_schedule_details, **kwargs):
|
3290
3517
|
"""
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
:param str pipeline_id: (required)
|
3295
|
-
The `OCID`__ of the pipeline.
|
3518
|
+
Creates a new Schedule.
|
3296
3519
|
|
3297
|
-
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
3298
|
-
|
3299
|
-
:param str step_name: (required)
|
3300
|
-
Unique Step identifier in a pipeline.
|
3301
|
-
|
3302
|
-
:param stream step_artifact: (required)
|
3303
|
-
The step artifact to upload.
|
3304
|
-
|
3305
|
-
:param int content_length: (optional)
|
3306
|
-
The content length of the body.
|
3307
3520
|
|
3308
|
-
:param
|
3309
|
-
|
3521
|
+
:param oci.data_science.models.CreateScheduleDetails create_schedule_details: (required)
|
3522
|
+
Details for the new Schedule.
|
3310
3523
|
|
3311
3524
|
:param str opc_retry_token: (optional)
|
3312
3525
|
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
|
3313
3526
|
|
3314
|
-
:param str
|
3315
|
-
|
3316
|
-
while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file
|
3317
|
-
name when downloading.
|
3318
|
-
Example: `{\"Content-Disposition\": \"attachment\"
|
3319
|
-
\"filename\"=\"model.tar.gz\"
|
3320
|
-
\"Content-Length\": \"2347\"
|
3321
|
-
\"Content-Type\": \"application/gzip\"}`
|
3527
|
+
:param str opc_request_id: (optional)
|
3528
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
3322
3529
|
|
3323
3530
|
:param obj retry_strategy: (optional)
|
3324
3531
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3325
3532
|
|
3326
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
3533
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
3327
3534
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3328
3535
|
|
3329
3536
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -3331,46 +3538,160 @@ class DataScienceClient(object):
|
|
3331
3538
|
:param bool allow_control_chars: (optional)
|
3332
3539
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3333
3540
|
By default, the response will not allow control characters in strings
|
3334
|
-
:param int buffer_limit: (optional)
|
3335
|
-
A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit.
|
3336
|
-
If the stream size is greater than the buffer_limit, a BufferError exception will be thrown.
|
3337
|
-
|
3338
|
-
The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length.
|
3339
|
-
If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB.
|
3340
|
-
Large streams can cause the process to freeze, consider passing in content-length for large streams instead.
|
3341
3541
|
|
3342
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
3542
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.Schedule`
|
3343
3543
|
:rtype: :class:`~oci.response.Response`
|
3344
3544
|
|
3345
3545
|
:example:
|
3346
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3546
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_schedule.py.html>`__ to see an example of how to use create_schedule API.
|
3347
3547
|
"""
|
3348
3548
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3349
|
-
required_arguments = [
|
3350
|
-
resource_path = "/
|
3549
|
+
required_arguments = []
|
3550
|
+
resource_path = "/schedules"
|
3351
3551
|
method = "POST"
|
3352
|
-
operation_name = "
|
3353
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/
|
3552
|
+
operation_name = "create_schedule"
|
3553
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/CreateSchedule"
|
3354
3554
|
|
3355
3555
|
# Don't accept unknown kwargs
|
3356
3556
|
expected_kwargs = [
|
3357
3557
|
"allow_control_chars",
|
3358
3558
|
"retry_strategy",
|
3359
|
-
"buffer_limit",
|
3360
|
-
"content_length",
|
3361
|
-
"opc_request_id",
|
3362
3559
|
"opc_retry_token",
|
3363
|
-
"
|
3560
|
+
"opc_request_id"
|
3364
3561
|
]
|
3365
3562
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3366
3563
|
if extra_kwargs:
|
3367
3564
|
raise ValueError(
|
3368
|
-
f"
|
3369
|
-
|
3370
|
-
|
3371
|
-
"
|
3372
|
-
"
|
3373
|
-
|
3565
|
+
f"create_schedule got unknown kwargs: {extra_kwargs!r}")
|
3566
|
+
|
3567
|
+
header_params = {
|
3568
|
+
"accept": "application/json",
|
3569
|
+
"content-type": "application/json",
|
3570
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
3571
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3572
|
+
}
|
3573
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3574
|
+
|
3575
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3576
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3577
|
+
client_retry_strategy=self.retry_strategy
|
3578
|
+
)
|
3579
|
+
if retry_strategy is None:
|
3580
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3581
|
+
|
3582
|
+
if retry_strategy:
|
3583
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3584
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
3585
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3586
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3587
|
+
return retry_strategy.make_retrying_call(
|
3588
|
+
self.base_client.call_api,
|
3589
|
+
resource_path=resource_path,
|
3590
|
+
method=method,
|
3591
|
+
header_params=header_params,
|
3592
|
+
body=create_schedule_details,
|
3593
|
+
response_type="Schedule",
|
3594
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3595
|
+
operation_name=operation_name,
|
3596
|
+
api_reference_link=api_reference_link,
|
3597
|
+
required_arguments=required_arguments)
|
3598
|
+
else:
|
3599
|
+
return self.base_client.call_api(
|
3600
|
+
resource_path=resource_path,
|
3601
|
+
method=method,
|
3602
|
+
header_params=header_params,
|
3603
|
+
body=create_schedule_details,
|
3604
|
+
response_type="Schedule",
|
3605
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3606
|
+
operation_name=operation_name,
|
3607
|
+
api_reference_link=api_reference_link,
|
3608
|
+
required_arguments=required_arguments)
|
3609
|
+
|
3610
|
+
def create_step_artifact(self, pipeline_id, step_name, step_artifact, **kwargs):
|
3611
|
+
"""
|
3612
|
+
Upload the artifact for a step in the pipeline.
|
3613
|
+
|
3614
|
+
|
3615
|
+
:param str pipeline_id: (required)
|
3616
|
+
The `OCID`__ of the pipeline.
|
3617
|
+
|
3618
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
3619
|
+
|
3620
|
+
:param str step_name: (required)
|
3621
|
+
Unique Step identifier in a pipeline.
|
3622
|
+
|
3623
|
+
:param stream step_artifact: (required)
|
3624
|
+
The step artifact to upload.
|
3625
|
+
|
3626
|
+
:param int content_length: (optional)
|
3627
|
+
The content length of the body.
|
3628
|
+
|
3629
|
+
:param str opc_request_id: (optional)
|
3630
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
3631
|
+
|
3632
|
+
:param str opc_retry_token: (optional)
|
3633
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
|
3634
|
+
|
3635
|
+
:param str content_disposition: (optional)
|
3636
|
+
This header allows you to specify a filename during upload. This file name is used to dispose of the file contents
|
3637
|
+
while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file
|
3638
|
+
name when downloading.
|
3639
|
+
Example: `{\"Content-Disposition\": \"attachment\"
|
3640
|
+
\"filename\"=\"model.tar.gz\"
|
3641
|
+
\"Content-Length\": \"2347\"
|
3642
|
+
\"Content-Type\": \"application/gzip\"}`
|
3643
|
+
|
3644
|
+
:param obj retry_strategy: (optional)
|
3645
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3646
|
+
|
3647
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3648
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3649
|
+
|
3650
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3651
|
+
|
3652
|
+
:param bool allow_control_chars: (optional)
|
3653
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3654
|
+
By default, the response will not allow control characters in strings
|
3655
|
+
:param int buffer_limit: (optional)
|
3656
|
+
A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit.
|
3657
|
+
If the stream size is greater than the buffer_limit, a BufferError exception will be thrown.
|
3658
|
+
|
3659
|
+
The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length.
|
3660
|
+
If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB.
|
3661
|
+
Large streams can cause the process to freeze, consider passing in content-length for large streams instead.
|
3662
|
+
|
3663
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
3664
|
+
:rtype: :class:`~oci.response.Response`
|
3665
|
+
|
3666
|
+
:example:
|
3667
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/create_step_artifact.py.html>`__ to see an example of how to use create_step_artifact API.
|
3668
|
+
"""
|
3669
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3670
|
+
required_arguments = ['pipelineId', 'stepName']
|
3671
|
+
resource_path = "/pipelines/{pipelineId}/steps/{stepName}/artifact"
|
3672
|
+
method = "POST"
|
3673
|
+
operation_name = "create_step_artifact"
|
3674
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/CreateStepArtifact"
|
3675
|
+
|
3676
|
+
# Don't accept unknown kwargs
|
3677
|
+
expected_kwargs = [
|
3678
|
+
"allow_control_chars",
|
3679
|
+
"retry_strategy",
|
3680
|
+
"buffer_limit",
|
3681
|
+
"content_length",
|
3682
|
+
"opc_request_id",
|
3683
|
+
"opc_retry_token",
|
3684
|
+
"content_disposition"
|
3685
|
+
]
|
3686
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3687
|
+
if extra_kwargs:
|
3688
|
+
raise ValueError(
|
3689
|
+
f"create_step_artifact got unknown kwargs: {extra_kwargs!r}")
|
3690
|
+
|
3691
|
+
path_params = {
|
3692
|
+
"pipelineId": pipeline_id,
|
3693
|
+
"stepName": step_name
|
3694
|
+
}
|
3374
3695
|
|
3375
3696
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3376
3697
|
|
@@ -3479,7 +3800,7 @@ class DataScienceClient(object):
|
|
3479
3800
|
:rtype: :class:`~oci.response.Response`
|
3480
3801
|
|
3481
3802
|
:example:
|
3482
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3803
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/deactivate_model.py.html>`__ to see an example of how to use deactivate_model API.
|
3483
3804
|
"""
|
3484
3805
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3485
3806
|
required_arguments = ['modelId']
|
@@ -3588,7 +3909,7 @@ class DataScienceClient(object):
|
|
3588
3909
|
:rtype: :class:`~oci.response.Response`
|
3589
3910
|
|
3590
3911
|
:example:
|
3591
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3912
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/deactivate_model_deployment.py.html>`__ to see an example of how to use deactivate_model_deployment API.
|
3592
3913
|
"""
|
3593
3914
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3594
3915
|
required_arguments = ['modelDeploymentId']
|
@@ -3693,7 +4014,7 @@ class DataScienceClient(object):
|
|
3693
4014
|
:rtype: :class:`~oci.response.Response`
|
3694
4015
|
|
3695
4016
|
:example:
|
3696
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4017
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/deactivate_notebook_session.py.html>`__ to see an example of how to use deactivate_notebook_session API.
|
3697
4018
|
"""
|
3698
4019
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3699
4020
|
required_arguments = ['notebookSessionId']
|
@@ -3762,6 +4083,117 @@ class DataScienceClient(object):
|
|
3762
4083
|
api_reference_link=api_reference_link,
|
3763
4084
|
required_arguments=required_arguments)
|
3764
4085
|
|
4086
|
+
def deactivate_schedule(self, schedule_id, **kwargs):
|
4087
|
+
"""
|
4088
|
+
Deactivate schedule.
|
4089
|
+
|
4090
|
+
|
4091
|
+
:param str schedule_id: (required)
|
4092
|
+
unique Schedule identifier
|
4093
|
+
|
4094
|
+
:param str opc_request_id: (optional)
|
4095
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
4096
|
+
|
4097
|
+
:param str if_match: (optional)
|
4098
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4099
|
+
for a resource, set the `if-match` parameter to the value of the
|
4100
|
+
etag from a previous GET or POST response for that resource.
|
4101
|
+
The resource is updated or deleted only if the `etag` you
|
4102
|
+
provide matches the resource's current `etag` value.
|
4103
|
+
|
4104
|
+
:param str opc_retry_token: (optional)
|
4105
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
|
4106
|
+
|
4107
|
+
:param obj retry_strategy: (optional)
|
4108
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4109
|
+
|
4110
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
4111
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4112
|
+
|
4113
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4114
|
+
|
4115
|
+
:param bool allow_control_chars: (optional)
|
4116
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4117
|
+
By default, the response will not allow control characters in strings
|
4118
|
+
|
4119
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
4120
|
+
:rtype: :class:`~oci.response.Response`
|
4121
|
+
|
4122
|
+
:example:
|
4123
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/deactivate_schedule.py.html>`__ to see an example of how to use deactivate_schedule API.
|
4124
|
+
"""
|
4125
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4126
|
+
required_arguments = ['scheduleId']
|
4127
|
+
resource_path = "/schedules/{scheduleId}/actions/deactivate"
|
4128
|
+
method = "POST"
|
4129
|
+
operation_name = "deactivate_schedule"
|
4130
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/DeactivateSchedule"
|
4131
|
+
|
4132
|
+
# Don't accept unknown kwargs
|
4133
|
+
expected_kwargs = [
|
4134
|
+
"allow_control_chars",
|
4135
|
+
"retry_strategy",
|
4136
|
+
"opc_request_id",
|
4137
|
+
"if_match",
|
4138
|
+
"opc_retry_token"
|
4139
|
+
]
|
4140
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4141
|
+
if extra_kwargs:
|
4142
|
+
raise ValueError(
|
4143
|
+
f"deactivate_schedule got unknown kwargs: {extra_kwargs!r}")
|
4144
|
+
|
4145
|
+
path_params = {
|
4146
|
+
"scheduleId": schedule_id
|
4147
|
+
}
|
4148
|
+
|
4149
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4150
|
+
|
4151
|
+
for (k, v) in six.iteritems(path_params):
|
4152
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4153
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4154
|
+
|
4155
|
+
header_params = {
|
4156
|
+
"accept": "application/json",
|
4157
|
+
"content-type": "application/json",
|
4158
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
4159
|
+
"if-match": kwargs.get("if_match", missing),
|
4160
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
4161
|
+
}
|
4162
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4163
|
+
|
4164
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4165
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4166
|
+
client_retry_strategy=self.retry_strategy
|
4167
|
+
)
|
4168
|
+
if retry_strategy is None:
|
4169
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4170
|
+
|
4171
|
+
if retry_strategy:
|
4172
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4173
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
4174
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4175
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4176
|
+
return retry_strategy.make_retrying_call(
|
4177
|
+
self.base_client.call_api,
|
4178
|
+
resource_path=resource_path,
|
4179
|
+
method=method,
|
4180
|
+
path_params=path_params,
|
4181
|
+
header_params=header_params,
|
4182
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4183
|
+
operation_name=operation_name,
|
4184
|
+
api_reference_link=api_reference_link,
|
4185
|
+
required_arguments=required_arguments)
|
4186
|
+
else:
|
4187
|
+
return self.base_client.call_api(
|
4188
|
+
resource_path=resource_path,
|
4189
|
+
method=method,
|
4190
|
+
path_params=path_params,
|
4191
|
+
header_params=header_params,
|
4192
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4193
|
+
operation_name=operation_name,
|
4194
|
+
api_reference_link=api_reference_link,
|
4195
|
+
required_arguments=required_arguments)
|
4196
|
+
|
3765
4197
|
def delete_data_science_private_endpoint(self, data_science_private_endpoint_id, **kwargs):
|
3766
4198
|
"""
|
3767
4199
|
Deletes a private endpoint using `privateEndpointId`.
|
@@ -3796,7 +4228,7 @@ class DataScienceClient(object):
|
|
3796
4228
|
:rtype: :class:`~oci.response.Response`
|
3797
4229
|
|
3798
4230
|
:example:
|
3799
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4231
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_data_science_private_endpoint.py.html>`__ to see an example of how to use delete_data_science_private_endpoint API.
|
3800
4232
|
"""
|
3801
4233
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3802
4234
|
required_arguments = ['dataSciencePrivateEndpointId']
|
@@ -3904,7 +4336,7 @@ class DataScienceClient(object):
|
|
3904
4336
|
:rtype: :class:`~oci.response.Response`
|
3905
4337
|
|
3906
4338
|
:example:
|
3907
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4339
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_job.py.html>`__ to see an example of how to use delete_job API.
|
3908
4340
|
"""
|
3909
4341
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3910
4342
|
required_arguments = ['jobId']
|
@@ -4019,7 +4451,7 @@ class DataScienceClient(object):
|
|
4019
4451
|
:rtype: :class:`~oci.response.Response`
|
4020
4452
|
|
4021
4453
|
:example:
|
4022
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4454
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_job_run.py.html>`__ to see an example of how to use delete_job_run API.
|
4023
4455
|
"""
|
4024
4456
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4025
4457
|
required_arguments = ['jobRunId']
|
@@ -4126,7 +4558,7 @@ class DataScienceClient(object):
|
|
4126
4558
|
:rtype: :class:`~oci.response.Response`
|
4127
4559
|
|
4128
4560
|
:example:
|
4129
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4561
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_model.py.html>`__ to see an example of how to use delete_model API.
|
4130
4562
|
"""
|
4131
4563
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4132
4564
|
required_arguments = ['modelId']
|
@@ -4233,7 +4665,7 @@ class DataScienceClient(object):
|
|
4233
4665
|
:rtype: :class:`~oci.response.Response`
|
4234
4666
|
|
4235
4667
|
:example:
|
4236
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4668
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_model_deployment.py.html>`__ to see an example of how to use delete_model_deployment API.
|
4237
4669
|
"""
|
4238
4670
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4239
4671
|
required_arguments = ['modelDeploymentId']
|
@@ -4344,7 +4776,7 @@ class DataScienceClient(object):
|
|
4344
4776
|
:rtype: :class:`~oci.response.Response`
|
4345
4777
|
|
4346
4778
|
:example:
|
4347
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4779
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_model_version_set.py.html>`__ to see an example of how to use delete_model_version_set API.
|
4348
4780
|
"""
|
4349
4781
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4350
4782
|
required_arguments = ['modelVersionSetId']
|
@@ -4459,7 +4891,7 @@ class DataScienceClient(object):
|
|
4459
4891
|
:rtype: :class:`~oci.response.Response`
|
4460
4892
|
|
4461
4893
|
:example:
|
4462
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4894
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_notebook_session.py.html>`__ to see an example of how to use delete_notebook_session API.
|
4463
4895
|
"""
|
4464
4896
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4465
4897
|
required_arguments = ['notebookSessionId']
|
@@ -4572,7 +5004,7 @@ class DataScienceClient(object):
|
|
4572
5004
|
:rtype: :class:`~oci.response.Response`
|
4573
5005
|
|
4574
5006
|
:example:
|
4575
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5007
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_pipeline.py.html>`__ to see an example of how to use delete_pipeline API.
|
4576
5008
|
"""
|
4577
5009
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4578
5010
|
required_arguments = ['pipelineId']
|
@@ -4690,30 +5122,142 @@ class DataScienceClient(object):
|
|
4690
5122
|
:rtype: :class:`~oci.response.Response`
|
4691
5123
|
|
4692
5124
|
:example:
|
4693
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5125
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_pipeline_run.py.html>`__ to see an example of how to use delete_pipeline_run API.
|
5126
|
+
"""
|
5127
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5128
|
+
required_arguments = ['pipelineRunId']
|
5129
|
+
resource_path = "/pipelineRuns/{pipelineRunId}"
|
5130
|
+
method = "DELETE"
|
5131
|
+
operation_name = "delete_pipeline_run"
|
5132
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/PipelineRun/DeletePipelineRun"
|
5133
|
+
|
5134
|
+
# Don't accept unknown kwargs
|
5135
|
+
expected_kwargs = [
|
5136
|
+
"allow_control_chars",
|
5137
|
+
"retry_strategy",
|
5138
|
+
"delete_related_job_runs",
|
5139
|
+
"if_match",
|
5140
|
+
"opc_request_id"
|
5141
|
+
]
|
5142
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
5143
|
+
if extra_kwargs:
|
5144
|
+
raise ValueError(
|
5145
|
+
f"delete_pipeline_run got unknown kwargs: {extra_kwargs!r}")
|
5146
|
+
|
5147
|
+
path_params = {
|
5148
|
+
"pipelineRunId": pipeline_run_id
|
5149
|
+
}
|
5150
|
+
|
5151
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
5152
|
+
|
5153
|
+
for (k, v) in six.iteritems(path_params):
|
5154
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
5155
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
5156
|
+
|
5157
|
+
query_params = {
|
5158
|
+
"deleteRelatedJobRuns": kwargs.get("delete_related_job_runs", missing)
|
5159
|
+
}
|
5160
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
5161
|
+
|
5162
|
+
header_params = {
|
5163
|
+
"accept": "application/json",
|
5164
|
+
"content-type": "application/json",
|
5165
|
+
"if-match": kwargs.get("if_match", missing),
|
5166
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
5167
|
+
}
|
5168
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
5169
|
+
|
5170
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
5171
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
5172
|
+
client_retry_strategy=self.retry_strategy
|
5173
|
+
)
|
5174
|
+
|
5175
|
+
if retry_strategy:
|
5176
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
5177
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
5178
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
5179
|
+
return retry_strategy.make_retrying_call(
|
5180
|
+
self.base_client.call_api,
|
5181
|
+
resource_path=resource_path,
|
5182
|
+
method=method,
|
5183
|
+
path_params=path_params,
|
5184
|
+
query_params=query_params,
|
5185
|
+
header_params=header_params,
|
5186
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
5187
|
+
operation_name=operation_name,
|
5188
|
+
api_reference_link=api_reference_link,
|
5189
|
+
required_arguments=required_arguments)
|
5190
|
+
else:
|
5191
|
+
return self.base_client.call_api(
|
5192
|
+
resource_path=resource_path,
|
5193
|
+
method=method,
|
5194
|
+
path_params=path_params,
|
5195
|
+
query_params=query_params,
|
5196
|
+
header_params=header_params,
|
5197
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
5198
|
+
operation_name=operation_name,
|
5199
|
+
api_reference_link=api_reference_link,
|
5200
|
+
required_arguments=required_arguments)
|
5201
|
+
|
5202
|
+
def delete_project(self, project_id, **kwargs):
|
5203
|
+
"""
|
5204
|
+
Deletes the specified project. This operation fails unless all associated resources (notebook sessions or models) are in a DELETED state. You must delete all associated resources before deleting a project.
|
5205
|
+
|
5206
|
+
|
5207
|
+
:param str project_id: (required)
|
5208
|
+
The `OCID`__ of the project.
|
5209
|
+
|
5210
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
5211
|
+
|
5212
|
+
:param str if_match: (optional)
|
5213
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
5214
|
+
for a resource, set the `if-match` parameter to the value of the
|
5215
|
+
etag from a previous GET or POST response for that resource.
|
5216
|
+
The resource is updated or deleted only if the `etag` you
|
5217
|
+
provide matches the resource's current `etag` value.
|
5218
|
+
|
5219
|
+
:param str opc_request_id: (optional)
|
5220
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
5221
|
+
|
5222
|
+
:param obj retry_strategy: (optional)
|
5223
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
5224
|
+
|
5225
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
5226
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
5227
|
+
|
5228
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
5229
|
+
|
5230
|
+
:param bool allow_control_chars: (optional)
|
5231
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
5232
|
+
By default, the response will not allow control characters in strings
|
5233
|
+
|
5234
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
5235
|
+
:rtype: :class:`~oci.response.Response`
|
5236
|
+
|
5237
|
+
:example:
|
5238
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_project.py.html>`__ to see an example of how to use delete_project API.
|
4694
5239
|
"""
|
4695
5240
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4696
|
-
required_arguments = ['
|
4697
|
-
resource_path = "/
|
5241
|
+
required_arguments = ['projectId']
|
5242
|
+
resource_path = "/projects/{projectId}"
|
4698
5243
|
method = "DELETE"
|
4699
|
-
operation_name = "
|
4700
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/
|
5244
|
+
operation_name = "delete_project"
|
5245
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Project/DeleteProject"
|
4701
5246
|
|
4702
5247
|
# Don't accept unknown kwargs
|
4703
5248
|
expected_kwargs = [
|
4704
5249
|
"allow_control_chars",
|
4705
5250
|
"retry_strategy",
|
4706
|
-
"delete_related_job_runs",
|
4707
5251
|
"if_match",
|
4708
5252
|
"opc_request_id"
|
4709
5253
|
]
|
4710
5254
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4711
5255
|
if extra_kwargs:
|
4712
5256
|
raise ValueError(
|
4713
|
-
f"
|
5257
|
+
f"delete_project got unknown kwargs: {extra_kwargs!r}")
|
4714
5258
|
|
4715
5259
|
path_params = {
|
4716
|
-
"
|
5260
|
+
"projectId": project_id
|
4717
5261
|
}
|
4718
5262
|
|
4719
5263
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -4722,11 +5266,6 @@ class DataScienceClient(object):
|
|
4722
5266
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4723
5267
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4724
5268
|
|
4725
|
-
query_params = {
|
4726
|
-
"deleteRelatedJobRuns": kwargs.get("delete_related_job_runs", missing)
|
4727
|
-
}
|
4728
|
-
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
4729
|
-
|
4730
5269
|
header_params = {
|
4731
5270
|
"accept": "application/json",
|
4732
5271
|
"content-type": "application/json",
|
@@ -4739,6 +5278,8 @@ class DataScienceClient(object):
|
|
4739
5278
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4740
5279
|
client_retry_strategy=self.retry_strategy
|
4741
5280
|
)
|
5281
|
+
if retry_strategy is None:
|
5282
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4742
5283
|
|
4743
5284
|
if retry_strategy:
|
4744
5285
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -4749,7 +5290,6 @@ class DataScienceClient(object):
|
|
4749
5290
|
resource_path=resource_path,
|
4750
5291
|
method=method,
|
4751
5292
|
path_params=path_params,
|
4752
|
-
query_params=query_params,
|
4753
5293
|
header_params=header_params,
|
4754
5294
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
4755
5295
|
operation_name=operation_name,
|
@@ -4760,22 +5300,19 @@ class DataScienceClient(object):
|
|
4760
5300
|
resource_path=resource_path,
|
4761
5301
|
method=method,
|
4762
5302
|
path_params=path_params,
|
4763
|
-
query_params=query_params,
|
4764
5303
|
header_params=header_params,
|
4765
5304
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
4766
5305
|
operation_name=operation_name,
|
4767
5306
|
api_reference_link=api_reference_link,
|
4768
5307
|
required_arguments=required_arguments)
|
4769
5308
|
|
4770
|
-
def
|
5309
|
+
def delete_schedule(self, schedule_id, **kwargs):
|
4771
5310
|
"""
|
4772
|
-
Deletes
|
4773
|
-
|
5311
|
+
Deletes a Schedule resource by identifier
|
4774
5312
|
|
4775
|
-
:param str project_id: (required)
|
4776
|
-
The `OCID`__ of the project.
|
4777
5313
|
|
4778
|
-
|
5314
|
+
:param str schedule_id: (required)
|
5315
|
+
unique Schedule identifier
|
4779
5316
|
|
4780
5317
|
:param str if_match: (optional)
|
4781
5318
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -4790,7 +5327,7 @@ class DataScienceClient(object):
|
|
4790
5327
|
:param obj retry_strategy: (optional)
|
4791
5328
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4792
5329
|
|
4793
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
5330
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
4794
5331
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4795
5332
|
|
4796
5333
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -4803,14 +5340,14 @@ class DataScienceClient(object):
|
|
4803
5340
|
:rtype: :class:`~oci.response.Response`
|
4804
5341
|
|
4805
5342
|
:example:
|
4806
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5343
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/delete_schedule.py.html>`__ to see an example of how to use delete_schedule API.
|
4807
5344
|
"""
|
4808
5345
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4809
|
-
required_arguments = ['
|
4810
|
-
resource_path = "/
|
5346
|
+
required_arguments = ['scheduleId']
|
5347
|
+
resource_path = "/schedules/{scheduleId}"
|
4811
5348
|
method = "DELETE"
|
4812
|
-
operation_name = "
|
4813
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/
|
5349
|
+
operation_name = "delete_schedule"
|
5350
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/DeleteSchedule"
|
4814
5351
|
|
4815
5352
|
# Don't accept unknown kwargs
|
4816
5353
|
expected_kwargs = [
|
@@ -4822,10 +5359,10 @@ class DataScienceClient(object):
|
|
4822
5359
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4823
5360
|
if extra_kwargs:
|
4824
5361
|
raise ValueError(
|
4825
|
-
f"
|
5362
|
+
f"delete_schedule got unknown kwargs: {extra_kwargs!r}")
|
4826
5363
|
|
4827
5364
|
path_params = {
|
4828
|
-
"
|
5365
|
+
"scheduleId": schedule_id
|
4829
5366
|
}
|
4830
5367
|
|
4831
5368
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -4846,8 +5383,6 @@ class DataScienceClient(object):
|
|
4846
5383
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4847
5384
|
client_retry_strategy=self.retry_strategy
|
4848
5385
|
)
|
4849
|
-
if retry_strategy is None:
|
4850
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4851
5386
|
|
4852
5387
|
if retry_strategy:
|
4853
5388
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -4916,7 +5451,7 @@ class DataScienceClient(object):
|
|
4916
5451
|
:rtype: :class:`~oci.response.Response`
|
4917
5452
|
|
4918
5453
|
:example:
|
4919
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5454
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/export_model_artifact.py.html>`__ to see an example of how to use export_model_artifact API.
|
4920
5455
|
"""
|
4921
5456
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4922
5457
|
required_arguments = ['modelId']
|
@@ -5019,7 +5554,7 @@ class DataScienceClient(object):
|
|
5019
5554
|
:rtype: :class:`~oci.response.Response`
|
5020
5555
|
|
5021
5556
|
:example:
|
5022
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5557
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_data_science_private_endpoint.py.html>`__ to see an example of how to use get_data_science_private_endpoint API.
|
5023
5558
|
"""
|
5024
5559
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5025
5560
|
required_arguments = ['dataSciencePrivateEndpointId']
|
@@ -5119,7 +5654,7 @@ class DataScienceClient(object):
|
|
5119
5654
|
:rtype: :class:`~oci.response.Response`
|
5120
5655
|
|
5121
5656
|
:example:
|
5122
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5657
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_job.py.html>`__ to see an example of how to use get_job API.
|
5123
5658
|
"""
|
5124
5659
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5125
5660
|
required_arguments = ['jobId']
|
@@ -5225,7 +5760,7 @@ class DataScienceClient(object):
|
|
5225
5760
|
:rtype: :class:`~oci.response.Response`
|
5226
5761
|
|
5227
5762
|
:example:
|
5228
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5763
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_job_artifact_content.py.html>`__ to see an example of how to use get_job_artifact_content API.
|
5229
5764
|
"""
|
5230
5765
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5231
5766
|
required_arguments = ['jobId']
|
@@ -5327,7 +5862,7 @@ class DataScienceClient(object):
|
|
5327
5862
|
:rtype: :class:`~oci.response.Response`
|
5328
5863
|
|
5329
5864
|
:example:
|
5330
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5865
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_job_run.py.html>`__ to see an example of how to use get_job_run API.
|
5331
5866
|
"""
|
5332
5867
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5333
5868
|
required_arguments = ['jobRunId']
|
@@ -5427,7 +5962,7 @@ class DataScienceClient(object):
|
|
5427
5962
|
:rtype: :class:`~oci.response.Response`
|
5428
5963
|
|
5429
5964
|
:example:
|
5430
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5965
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_model.py.html>`__ to see an example of how to use get_model API.
|
5431
5966
|
"""
|
5432
5967
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5433
5968
|
required_arguments = ['modelId']
|
@@ -5533,7 +6068,7 @@ class DataScienceClient(object):
|
|
5533
6068
|
:rtype: :class:`~oci.response.Response`
|
5534
6069
|
|
5535
6070
|
:example:
|
5536
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6071
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_model_artifact_content.py.html>`__ to see an example of how to use get_model_artifact_content API.
|
5537
6072
|
"""
|
5538
6073
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5539
6074
|
required_arguments = ['modelId']
|
@@ -5635,7 +6170,7 @@ class DataScienceClient(object):
|
|
5635
6170
|
:rtype: :class:`~oci.response.Response`
|
5636
6171
|
|
5637
6172
|
:example:
|
5638
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6173
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_model_deployment.py.html>`__ to see an example of how to use get_model_deployment API.
|
5639
6174
|
"""
|
5640
6175
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5641
6176
|
required_arguments = ['modelDeploymentId']
|
@@ -5735,7 +6270,7 @@ class DataScienceClient(object):
|
|
5735
6270
|
:rtype: :class:`~oci.response.Response`
|
5736
6271
|
|
5737
6272
|
:example:
|
5738
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6273
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_model_provenance.py.html>`__ to see an example of how to use get_model_provenance API.
|
5739
6274
|
"""
|
5740
6275
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5741
6276
|
required_arguments = ['modelId']
|
@@ -5835,7 +6370,7 @@ class DataScienceClient(object):
|
|
5835
6370
|
:rtype: :class:`~oci.response.Response`
|
5836
6371
|
|
5837
6372
|
:example:
|
5838
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6373
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_model_version_set.py.html>`__ to see an example of how to use get_model_version_set API.
|
5839
6374
|
"""
|
5840
6375
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5841
6376
|
required_arguments = ['modelVersionSetId']
|
@@ -5935,7 +6470,7 @@ class DataScienceClient(object):
|
|
5935
6470
|
:rtype: :class:`~oci.response.Response`
|
5936
6471
|
|
5937
6472
|
:example:
|
5938
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6473
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_notebook_session.py.html>`__ to see an example of how to use get_notebook_session API.
|
5939
6474
|
"""
|
5940
6475
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5941
6476
|
required_arguments = ['notebookSessionId']
|
@@ -6035,7 +6570,7 @@ class DataScienceClient(object):
|
|
6035
6570
|
:rtype: :class:`~oci.response.Response`
|
6036
6571
|
|
6037
6572
|
:example:
|
6038
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6573
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_pipeline.py.html>`__ to see an example of how to use get_pipeline API.
|
6039
6574
|
"""
|
6040
6575
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6041
6576
|
required_arguments = ['pipelineId']
|
@@ -6135,7 +6670,7 @@ class DataScienceClient(object):
|
|
6135
6670
|
:rtype: :class:`~oci.response.Response`
|
6136
6671
|
|
6137
6672
|
:example:
|
6138
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6673
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_pipeline_run.py.html>`__ to see an example of how to use get_pipeline_run API.
|
6139
6674
|
"""
|
6140
6675
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6141
6676
|
required_arguments = ['pipelineRunId']
|
@@ -6235,7 +6770,7 @@ class DataScienceClient(object):
|
|
6235
6770
|
:rtype: :class:`~oci.response.Response`
|
6236
6771
|
|
6237
6772
|
:example:
|
6238
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6773
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_project.py.html>`__ to see an example of how to use get_project API.
|
6239
6774
|
"""
|
6240
6775
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6241
6776
|
required_arguments = ['projectId']
|
@@ -6306,6 +6841,104 @@ class DataScienceClient(object):
|
|
6306
6841
|
api_reference_link=api_reference_link,
|
6307
6842
|
required_arguments=required_arguments)
|
6308
6843
|
|
6844
|
+
def get_schedule(self, schedule_id, **kwargs):
|
6845
|
+
"""
|
6846
|
+
Gets a Schedule by identifier
|
6847
|
+
|
6848
|
+
|
6849
|
+
:param str schedule_id: (required)
|
6850
|
+
unique Schedule identifier
|
6851
|
+
|
6852
|
+
:param str opc_request_id: (optional)
|
6853
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
6854
|
+
|
6855
|
+
:param obj retry_strategy: (optional)
|
6856
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6857
|
+
|
6858
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
6859
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6860
|
+
|
6861
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
6862
|
+
|
6863
|
+
:param bool allow_control_chars: (optional)
|
6864
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6865
|
+
By default, the response will not allow control characters in strings
|
6866
|
+
|
6867
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.Schedule`
|
6868
|
+
:rtype: :class:`~oci.response.Response`
|
6869
|
+
|
6870
|
+
:example:
|
6871
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_schedule.py.html>`__ to see an example of how to use get_schedule API.
|
6872
|
+
"""
|
6873
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6874
|
+
required_arguments = ['scheduleId']
|
6875
|
+
resource_path = "/schedules/{scheduleId}"
|
6876
|
+
method = "GET"
|
6877
|
+
operation_name = "get_schedule"
|
6878
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/GetSchedule"
|
6879
|
+
|
6880
|
+
# Don't accept unknown kwargs
|
6881
|
+
expected_kwargs = [
|
6882
|
+
"allow_control_chars",
|
6883
|
+
"retry_strategy",
|
6884
|
+
"opc_request_id"
|
6885
|
+
]
|
6886
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6887
|
+
if extra_kwargs:
|
6888
|
+
raise ValueError(
|
6889
|
+
f"get_schedule got unknown kwargs: {extra_kwargs!r}")
|
6890
|
+
|
6891
|
+
path_params = {
|
6892
|
+
"scheduleId": schedule_id
|
6893
|
+
}
|
6894
|
+
|
6895
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
6896
|
+
|
6897
|
+
for (k, v) in six.iteritems(path_params):
|
6898
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6899
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6900
|
+
|
6901
|
+
header_params = {
|
6902
|
+
"accept": "application/json",
|
6903
|
+
"content-type": "application/json",
|
6904
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
6905
|
+
}
|
6906
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6907
|
+
|
6908
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6909
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6910
|
+
client_retry_strategy=self.retry_strategy
|
6911
|
+
)
|
6912
|
+
if retry_strategy is None:
|
6913
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
6914
|
+
|
6915
|
+
if retry_strategy:
|
6916
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6917
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
6918
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6919
|
+
return retry_strategy.make_retrying_call(
|
6920
|
+
self.base_client.call_api,
|
6921
|
+
resource_path=resource_path,
|
6922
|
+
method=method,
|
6923
|
+
path_params=path_params,
|
6924
|
+
header_params=header_params,
|
6925
|
+
response_type="Schedule",
|
6926
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6927
|
+
operation_name=operation_name,
|
6928
|
+
api_reference_link=api_reference_link,
|
6929
|
+
required_arguments=required_arguments)
|
6930
|
+
else:
|
6931
|
+
return self.base_client.call_api(
|
6932
|
+
resource_path=resource_path,
|
6933
|
+
method=method,
|
6934
|
+
path_params=path_params,
|
6935
|
+
header_params=header_params,
|
6936
|
+
response_type="Schedule",
|
6937
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6938
|
+
operation_name=operation_name,
|
6939
|
+
api_reference_link=api_reference_link,
|
6940
|
+
required_arguments=required_arguments)
|
6941
|
+
|
6309
6942
|
def get_step_artifact_content(self, pipeline_id, step_name, **kwargs):
|
6310
6943
|
"""
|
6311
6944
|
Download the artifact for a step in the pipeline.
|
@@ -6344,7 +6977,7 @@ class DataScienceClient(object):
|
|
6344
6977
|
:rtype: :class:`~oci.response.Response`
|
6345
6978
|
|
6346
6979
|
:example:
|
6347
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6980
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_step_artifact_content.py.html>`__ to see an example of how to use get_step_artifact_content API.
|
6348
6981
|
"""
|
6349
6982
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6350
6983
|
required_arguments = ['pipelineId', 'stepName']
|
@@ -6449,7 +7082,7 @@ class DataScienceClient(object):
|
|
6449
7082
|
:rtype: :class:`~oci.response.Response`
|
6450
7083
|
|
6451
7084
|
:example:
|
6452
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7085
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
6453
7086
|
"""
|
6454
7087
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6455
7088
|
required_arguments = ['workRequestId']
|
@@ -6549,7 +7182,7 @@ class DataScienceClient(object):
|
|
6549
7182
|
:rtype: :class:`~oci.response.Response`
|
6550
7183
|
|
6551
7184
|
:example:
|
6552
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7185
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/head_job_artifact.py.html>`__ to see an example of how to use head_job_artifact API.
|
6553
7186
|
"""
|
6554
7187
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6555
7188
|
required_arguments = ['jobId']
|
@@ -6647,7 +7280,7 @@ class DataScienceClient(object):
|
|
6647
7280
|
:rtype: :class:`~oci.response.Response`
|
6648
7281
|
|
6649
7282
|
:example:
|
6650
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7283
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/head_model_artifact.py.html>`__ to see an example of how to use head_model_artifact API.
|
6651
7284
|
"""
|
6652
7285
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6653
7286
|
required_arguments = ['modelId']
|
@@ -6748,7 +7381,7 @@ class DataScienceClient(object):
|
|
6748
7381
|
:rtype: :class:`~oci.response.Response`
|
6749
7382
|
|
6750
7383
|
:example:
|
6751
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7384
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/head_step_artifact.py.html>`__ to see an example of how to use head_step_artifact API.
|
6752
7385
|
"""
|
6753
7386
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6754
7387
|
required_arguments = ['pipelineId', 'stepName']
|
@@ -6857,7 +7490,7 @@ class DataScienceClient(object):
|
|
6857
7490
|
:rtype: :class:`~oci.response.Response`
|
6858
7491
|
|
6859
7492
|
:example:
|
6860
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7493
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/import_model_artifact.py.html>`__ to see an example of how to use import_model_artifact API.
|
6861
7494
|
"""
|
6862
7495
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6863
7496
|
required_arguments = ['modelId']
|
@@ -6922,7 +7555,181 @@ class DataScienceClient(object):
|
|
6922
7555
|
method=method,
|
6923
7556
|
path_params=path_params,
|
6924
7557
|
header_params=header_params,
|
6925
|
-
body=import_model_artifact_details,
|
7558
|
+
body=import_model_artifact_details,
|
7559
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7560
|
+
operation_name=operation_name,
|
7561
|
+
api_reference_link=api_reference_link,
|
7562
|
+
required_arguments=required_arguments)
|
7563
|
+
|
7564
|
+
def list_containers(self, **kwargs):
|
7565
|
+
"""
|
7566
|
+
List containers.
|
7567
|
+
|
7568
|
+
|
7569
|
+
:param str opc_request_id: (optional)
|
7570
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
7571
|
+
|
7572
|
+
:param bool is_latest: (optional)
|
7573
|
+
if true, this returns latest version of container.
|
7574
|
+
|
7575
|
+
:param str display_name: (optional)
|
7576
|
+
<b>Filter</b> results by its user-friendly name.
|
7577
|
+
|
7578
|
+
:param str container_name: (optional)
|
7579
|
+
<b>Filter</b> results by the container name.
|
7580
|
+
|
7581
|
+
:param str lifecycle_state: (optional)
|
7582
|
+
<b>Filter</b> results by the specified lifecycle state. Must be a valid
|
7583
|
+
state for the resource type.
|
7584
|
+
|
7585
|
+
Allowed values are: "ACTIVE", "INACTIVE"
|
7586
|
+
|
7587
|
+
:param str target_workload: (optional)
|
7588
|
+
<b>Filter</b> results by the target workload.
|
7589
|
+
|
7590
|
+
Allowed values are: "MODEL_DEPLOYMENT", "JOB_RUN"
|
7591
|
+
|
7592
|
+
:param str usage_query_param: (optional)
|
7593
|
+
<b>Filter</b> results by the usage.
|
7594
|
+
|
7595
|
+
Allowed values are: "INFERENCE", "FINE_TUNE", "EVALUATION", "BATCH_INFERENCE", "OTHER"
|
7596
|
+
|
7597
|
+
:param str tag_query_param: (optional)
|
7598
|
+
<b>Filter</b> results by the container version tag.
|
7599
|
+
|
7600
|
+
:param int limit: (optional)
|
7601
|
+
For list pagination. The maximum number of results per page,
|
7602
|
+
or items to return in a paginated \"List\" call.
|
7603
|
+
1 is the minimum, 100 is the maximum.
|
7604
|
+
See `List Pagination`__.
|
7605
|
+
|
7606
|
+
Example: `50`
|
7607
|
+
|
7608
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine
|
7609
|
+
|
7610
|
+
:param str page: (optional)
|
7611
|
+
For list pagination. The value of the `opc-next-page` response
|
7612
|
+
header from the previous \"List\" call.
|
7613
|
+
|
7614
|
+
See `List Pagination`__.
|
7615
|
+
|
7616
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine
|
7617
|
+
|
7618
|
+
:param obj retry_strategy: (optional)
|
7619
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7620
|
+
|
7621
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
7622
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7623
|
+
|
7624
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7625
|
+
|
7626
|
+
:param bool allow_control_chars: (optional)
|
7627
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7628
|
+
By default, the response will not allow control characters in strings
|
7629
|
+
|
7630
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.data_science.models.ContainerSummary`
|
7631
|
+
:rtype: :class:`~oci.response.Response`
|
7632
|
+
|
7633
|
+
:example:
|
7634
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_containers.py.html>`__ to see an example of how to use list_containers API.
|
7635
|
+
"""
|
7636
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7637
|
+
required_arguments = []
|
7638
|
+
resource_path = "/containers"
|
7639
|
+
method = "GET"
|
7640
|
+
operation_name = "list_containers"
|
7641
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ContainerSummary/ListContainers"
|
7642
|
+
|
7643
|
+
# Don't accept unknown kwargs
|
7644
|
+
expected_kwargs = [
|
7645
|
+
"allow_control_chars",
|
7646
|
+
"retry_strategy",
|
7647
|
+
"opc_request_id",
|
7648
|
+
"is_latest",
|
7649
|
+
"display_name",
|
7650
|
+
"container_name",
|
7651
|
+
"lifecycle_state",
|
7652
|
+
"target_workload",
|
7653
|
+
"usage_query_param",
|
7654
|
+
"tag_query_param",
|
7655
|
+
"limit",
|
7656
|
+
"page"
|
7657
|
+
]
|
7658
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7659
|
+
if extra_kwargs:
|
7660
|
+
raise ValueError(
|
7661
|
+
f"list_containers got unknown kwargs: {extra_kwargs!r}")
|
7662
|
+
|
7663
|
+
if 'lifecycle_state' in kwargs:
|
7664
|
+
lifecycle_state_allowed_values = ["ACTIVE", "INACTIVE"]
|
7665
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
7666
|
+
raise ValueError(
|
7667
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
7668
|
+
)
|
7669
|
+
|
7670
|
+
if 'target_workload' in kwargs:
|
7671
|
+
target_workload_allowed_values = ["MODEL_DEPLOYMENT", "JOB_RUN"]
|
7672
|
+
if kwargs['target_workload'] not in target_workload_allowed_values:
|
7673
|
+
raise ValueError(
|
7674
|
+
f"Invalid value for `target_workload`, must be one of { target_workload_allowed_values }"
|
7675
|
+
)
|
7676
|
+
|
7677
|
+
if 'usage_query_param' in kwargs:
|
7678
|
+
usage_query_param_allowed_values = ["INFERENCE", "FINE_TUNE", "EVALUATION", "BATCH_INFERENCE", "OTHER"]
|
7679
|
+
if kwargs['usage_query_param'] not in usage_query_param_allowed_values:
|
7680
|
+
raise ValueError(
|
7681
|
+
f"Invalid value for `usage_query_param`, must be one of { usage_query_param_allowed_values }"
|
7682
|
+
)
|
7683
|
+
|
7684
|
+
query_params = {
|
7685
|
+
"isLatest": kwargs.get("is_latest", missing),
|
7686
|
+
"displayName": kwargs.get("display_name", missing),
|
7687
|
+
"containerName": kwargs.get("container_name", missing),
|
7688
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
7689
|
+
"targetWorkload": kwargs.get("target_workload", missing),
|
7690
|
+
"usageQueryParam": kwargs.get("usage_query_param", missing),
|
7691
|
+
"tagQueryParam": kwargs.get("tag_query_param", missing),
|
7692
|
+
"limit": kwargs.get("limit", missing),
|
7693
|
+
"page": kwargs.get("page", missing)
|
7694
|
+
}
|
7695
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7696
|
+
|
7697
|
+
header_params = {
|
7698
|
+
"accept": "application/json",
|
7699
|
+
"content-type": "application/json",
|
7700
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7701
|
+
}
|
7702
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7703
|
+
|
7704
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7705
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7706
|
+
client_retry_strategy=self.retry_strategy
|
7707
|
+
)
|
7708
|
+
if retry_strategy is None:
|
7709
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
7710
|
+
|
7711
|
+
if retry_strategy:
|
7712
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7713
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7714
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7715
|
+
return retry_strategy.make_retrying_call(
|
7716
|
+
self.base_client.call_api,
|
7717
|
+
resource_path=resource_path,
|
7718
|
+
method=method,
|
7719
|
+
query_params=query_params,
|
7720
|
+
header_params=header_params,
|
7721
|
+
response_type="list[ContainerSummary]",
|
7722
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7723
|
+
operation_name=operation_name,
|
7724
|
+
api_reference_link=api_reference_link,
|
7725
|
+
required_arguments=required_arguments)
|
7726
|
+
else:
|
7727
|
+
return self.base_client.call_api(
|
7728
|
+
resource_path=resource_path,
|
7729
|
+
method=method,
|
7730
|
+
query_params=query_params,
|
7731
|
+
header_params=header_params,
|
7732
|
+
response_type="list[ContainerSummary]",
|
6926
7733
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6927
7734
|
operation_name=operation_name,
|
6928
7735
|
api_reference_link=api_reference_link,
|
@@ -7003,7 +7810,7 @@ class DataScienceClient(object):
|
|
7003
7810
|
:rtype: :class:`~oci.response.Response`
|
7004
7811
|
|
7005
7812
|
:example:
|
7006
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7813
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_data_science_private_endpoints.py.html>`__ to see an example of how to use list_data_science_private_endpoints API.
|
7007
7814
|
"""
|
7008
7815
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7009
7816
|
required_arguments = ['compartmentId']
|
@@ -7160,7 +7967,7 @@ class DataScienceClient(object):
|
|
7160
7967
|
:rtype: :class:`~oci.response.Response`
|
7161
7968
|
|
7162
7969
|
:example:
|
7163
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7970
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_fast_launch_job_configs.py.html>`__ to see an example of how to use list_fast_launch_job_configs API.
|
7164
7971
|
"""
|
7165
7972
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7166
7973
|
required_arguments = ['compartmentId']
|
@@ -7314,7 +8121,7 @@ class DataScienceClient(object):
|
|
7314
8121
|
:rtype: :class:`~oci.response.Response`
|
7315
8122
|
|
7316
8123
|
:example:
|
7317
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8124
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_job_runs.py.html>`__ to see an example of how to use list_job_runs API.
|
7318
8125
|
"""
|
7319
8126
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7320
8127
|
required_arguments = ['compartmentId']
|
@@ -7466,7 +8273,7 @@ class DataScienceClient(object):
|
|
7466
8273
|
:rtype: :class:`~oci.response.Response`
|
7467
8274
|
|
7468
8275
|
:example:
|
7469
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8276
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_job_shapes.py.html>`__ to see an example of how to use list_job_shapes API.
|
7470
8277
|
"""
|
7471
8278
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7472
8279
|
required_arguments = ['compartmentId']
|
@@ -7620,7 +8427,7 @@ class DataScienceClient(object):
|
|
7620
8427
|
:rtype: :class:`~oci.response.Response`
|
7621
8428
|
|
7622
8429
|
:example:
|
7623
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8430
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_jobs.py.html>`__ to see an example of how to use list_jobs API.
|
7624
8431
|
"""
|
7625
8432
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7626
8433
|
required_arguments = ['compartmentId']
|
@@ -7772,7 +8579,7 @@ class DataScienceClient(object):
|
|
7772
8579
|
:rtype: :class:`~oci.response.Response`
|
7773
8580
|
|
7774
8581
|
:example:
|
7775
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8582
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_model_deployment_shapes.py.html>`__ to see an example of how to use list_model_deployment_shapes API.
|
7776
8583
|
"""
|
7777
8584
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7778
8585
|
required_arguments = ['compartmentId']
|
@@ -7926,7 +8733,7 @@ class DataScienceClient(object):
|
|
7926
8733
|
:rtype: :class:`~oci.response.Response`
|
7927
8734
|
|
7928
8735
|
:example:
|
7929
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8736
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_model_deployments.py.html>`__ to see an example of how to use list_model_deployments API.
|
7930
8737
|
"""
|
7931
8738
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7932
8739
|
required_arguments = ['compartmentId']
|
@@ -8113,7 +8920,7 @@ class DataScienceClient(object):
|
|
8113
8920
|
:rtype: :class:`~oci.response.Response`
|
8114
8921
|
|
8115
8922
|
:example:
|
8116
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8923
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_model_version_sets.py.html>`__ to see an example of how to use list_model_version_sets API.
|
8117
8924
|
"""
|
8118
8925
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8119
8926
|
required_arguments = ['compartmentId']
|
@@ -8307,7 +9114,7 @@ class DataScienceClient(object):
|
|
8307
9114
|
:rtype: :class:`~oci.response.Response`
|
8308
9115
|
|
8309
9116
|
:example:
|
8310
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9117
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_models.py.html>`__ to see an example of how to use list_models API.
|
8311
9118
|
"""
|
8312
9119
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8313
9120
|
required_arguments = ['compartmentId']
|
@@ -8463,7 +9270,7 @@ class DataScienceClient(object):
|
|
8463
9270
|
:rtype: :class:`~oci.response.Response`
|
8464
9271
|
|
8465
9272
|
:example:
|
8466
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9273
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_notebook_session_shapes.py.html>`__ to see an example of how to use list_notebook_session_shapes API.
|
8467
9274
|
"""
|
8468
9275
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8469
9276
|
required_arguments = ['compartmentId']
|
@@ -8617,7 +9424,7 @@ class DataScienceClient(object):
|
|
8617
9424
|
:rtype: :class:`~oci.response.Response`
|
8618
9425
|
|
8619
9426
|
:example:
|
8620
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9427
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_notebook_sessions.py.html>`__ to see an example of how to use list_notebook_sessions API.
|
8621
9428
|
"""
|
8622
9429
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8623
9430
|
required_arguments = ['compartmentId']
|
@@ -8805,7 +9612,7 @@ class DataScienceClient(object):
|
|
8805
9612
|
:rtype: :class:`~oci.response.Response`
|
8806
9613
|
|
8807
9614
|
:example:
|
8808
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9615
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_pipeline_runs.py.html>`__ to see an example of how to use list_pipeline_runs API.
|
8809
9616
|
"""
|
8810
9617
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8811
9618
|
required_arguments = ['compartmentId']
|
@@ -8993,7 +9800,7 @@ class DataScienceClient(object):
|
|
8993
9800
|
:rtype: :class:`~oci.response.Response`
|
8994
9801
|
|
8995
9802
|
:example:
|
8996
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9803
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_pipelines.py.html>`__ to see an example of how to use list_pipelines API.
|
8997
9804
|
"""
|
8998
9805
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8999
9806
|
required_arguments = ['compartmentId']
|
@@ -9177,7 +9984,7 @@ class DataScienceClient(object):
|
|
9177
9984
|
:rtype: :class:`~oci.response.Response`
|
9178
9985
|
|
9179
9986
|
:example:
|
9180
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9987
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_projects.py.html>`__ to see an example of how to use list_projects API.
|
9181
9988
|
"""
|
9182
9989
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9183
9990
|
required_arguments = ['compartmentId']
|
@@ -9280,6 +10087,182 @@ class DataScienceClient(object):
|
|
9280
10087
|
api_reference_link=api_reference_link,
|
9281
10088
|
required_arguments=required_arguments)
|
9282
10089
|
|
10090
|
+
def list_schedules(self, compartment_id, **kwargs):
|
10091
|
+
"""
|
10092
|
+
Returns a list of Schedules.
|
10093
|
+
|
10094
|
+
|
10095
|
+
:param str compartment_id: (required)
|
10096
|
+
<b>Filter</b> results by the `OCID`__ of the compartment.
|
10097
|
+
|
10098
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
10099
|
+
|
10100
|
+
:param str project_id: (optional)
|
10101
|
+
<b>Filter</b> results by the `OCID`__ of the project.
|
10102
|
+
|
10103
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
10104
|
+
|
10105
|
+
:param str lifecycle_state: (optional)
|
10106
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
10107
|
+
|
10108
|
+
Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
|
10109
|
+
|
10110
|
+
:param str display_name: (optional)
|
10111
|
+
<b>Filter</b> results by its user-friendly name.
|
10112
|
+
|
10113
|
+
:param str id: (optional)
|
10114
|
+
unique Schedule identifier
|
10115
|
+
|
10116
|
+
:param int limit: (optional)
|
10117
|
+
For list pagination. The maximum number of results per page,
|
10118
|
+
or items to return in a paginated \"List\" call.
|
10119
|
+
1 is the minimum, 100 is the maximum.
|
10120
|
+
See `List Pagination`__.
|
10121
|
+
|
10122
|
+
Example: `50`
|
10123
|
+
|
10124
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine
|
10125
|
+
|
10126
|
+
:param str page: (optional)
|
10127
|
+
For list pagination. The value of the `opc-next-page` response
|
10128
|
+
header from the previous \"List\" call.
|
10129
|
+
|
10130
|
+
See `List Pagination`__.
|
10131
|
+
|
10132
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine
|
10133
|
+
|
10134
|
+
:param str sort_order: (optional)
|
10135
|
+
Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).
|
10136
|
+
|
10137
|
+
Allowed values are: "ASC", "DESC"
|
10138
|
+
|
10139
|
+
:param str sort_by: (optional)
|
10140
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
10141
|
+
|
10142
|
+
Allowed values are: "timeCreated", "displayName"
|
10143
|
+
|
10144
|
+
:param str opc_request_id: (optional)
|
10145
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
10146
|
+
|
10147
|
+
:param obj retry_strategy: (optional)
|
10148
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
10149
|
+
|
10150
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
10151
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
10152
|
+
|
10153
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
10154
|
+
|
10155
|
+
:param bool allow_control_chars: (optional)
|
10156
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
10157
|
+
By default, the response will not allow control characters in strings
|
10158
|
+
|
10159
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.data_science.models.ScheduleSummary`
|
10160
|
+
:rtype: :class:`~oci.response.Response`
|
10161
|
+
|
10162
|
+
:example:
|
10163
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_schedules.py.html>`__ to see an example of how to use list_schedules API.
|
10164
|
+
"""
|
10165
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10166
|
+
required_arguments = ['compartmentId']
|
10167
|
+
resource_path = "/schedules"
|
10168
|
+
method = "GET"
|
10169
|
+
operation_name = "list_schedules"
|
10170
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/ListSchedules"
|
10171
|
+
|
10172
|
+
# Don't accept unknown kwargs
|
10173
|
+
expected_kwargs = [
|
10174
|
+
"allow_control_chars",
|
10175
|
+
"retry_strategy",
|
10176
|
+
"project_id",
|
10177
|
+
"lifecycle_state",
|
10178
|
+
"display_name",
|
10179
|
+
"id",
|
10180
|
+
"limit",
|
10181
|
+
"page",
|
10182
|
+
"sort_order",
|
10183
|
+
"sort_by",
|
10184
|
+
"opc_request_id"
|
10185
|
+
]
|
10186
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
10187
|
+
if extra_kwargs:
|
10188
|
+
raise ValueError(
|
10189
|
+
f"list_schedules got unknown kwargs: {extra_kwargs!r}")
|
10190
|
+
|
10191
|
+
if 'lifecycle_state' in kwargs:
|
10192
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
10193
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
10194
|
+
raise ValueError(
|
10195
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
10196
|
+
)
|
10197
|
+
|
10198
|
+
if 'sort_order' in kwargs:
|
10199
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
10200
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
10201
|
+
raise ValueError(
|
10202
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
10203
|
+
)
|
10204
|
+
|
10205
|
+
if 'sort_by' in kwargs:
|
10206
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
10207
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
10208
|
+
raise ValueError(
|
10209
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
10210
|
+
)
|
10211
|
+
|
10212
|
+
query_params = {
|
10213
|
+
"compartmentId": compartment_id,
|
10214
|
+
"projectId": kwargs.get("project_id", missing),
|
10215
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
10216
|
+
"displayName": kwargs.get("display_name", missing),
|
10217
|
+
"id": kwargs.get("id", missing),
|
10218
|
+
"limit": kwargs.get("limit", missing),
|
10219
|
+
"page": kwargs.get("page", missing),
|
10220
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
10221
|
+
"sortBy": kwargs.get("sort_by", missing)
|
10222
|
+
}
|
10223
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
10224
|
+
|
10225
|
+
header_params = {
|
10226
|
+
"accept": "application/json",
|
10227
|
+
"content-type": "application/json",
|
10228
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
10229
|
+
}
|
10230
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
10231
|
+
|
10232
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
10233
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
10234
|
+
client_retry_strategy=self.retry_strategy
|
10235
|
+
)
|
10236
|
+
if retry_strategy is None:
|
10237
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
10238
|
+
|
10239
|
+
if retry_strategy:
|
10240
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
10241
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
10242
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
10243
|
+
return retry_strategy.make_retrying_call(
|
10244
|
+
self.base_client.call_api,
|
10245
|
+
resource_path=resource_path,
|
10246
|
+
method=method,
|
10247
|
+
query_params=query_params,
|
10248
|
+
header_params=header_params,
|
10249
|
+
response_type="list[ScheduleSummary]",
|
10250
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
10251
|
+
operation_name=operation_name,
|
10252
|
+
api_reference_link=api_reference_link,
|
10253
|
+
required_arguments=required_arguments)
|
10254
|
+
else:
|
10255
|
+
return self.base_client.call_api(
|
10256
|
+
resource_path=resource_path,
|
10257
|
+
method=method,
|
10258
|
+
query_params=query_params,
|
10259
|
+
header_params=header_params,
|
10260
|
+
response_type="list[ScheduleSummary]",
|
10261
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
10262
|
+
operation_name=operation_name,
|
10263
|
+
api_reference_link=api_reference_link,
|
10264
|
+
required_arguments=required_arguments)
|
10265
|
+
|
9283
10266
|
def list_work_request_errors(self, work_request_id, **kwargs):
|
9284
10267
|
"""
|
9285
10268
|
Lists work request errors for the specified work request.
|
@@ -9327,7 +10310,7 @@ class DataScienceClient(object):
|
|
9327
10310
|
:rtype: :class:`~oci.response.Response`
|
9328
10311
|
|
9329
10312
|
:example:
|
9330
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10313
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
9331
10314
|
"""
|
9332
10315
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9333
10316
|
required_arguments = ['workRequestId']
|
@@ -9455,7 +10438,7 @@ class DataScienceClient(object):
|
|
9455
10438
|
:rtype: :class:`~oci.response.Response`
|
9456
10439
|
|
9457
10440
|
:example:
|
9458
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10441
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
9459
10442
|
"""
|
9460
10443
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9461
10444
|
required_arguments = ['workRequestId']
|
@@ -9554,7 +10537,7 @@ class DataScienceClient(object):
|
|
9554
10537
|
:param str operation_type: (optional)
|
9555
10538
|
<b>Filter</b> results by the type of the operation associated with the work request.
|
9556
10539
|
|
9557
|
-
Allowed values are: "NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "RESTORE_ARCHIVED_MODEL"
|
10540
|
+
Allowed values are: "NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "SCHEDULE_CREATE", "SCHEDULE_UPDATE", "SCHEDULE_DELETE", "SCHEDULE_MOVE", "SCHEDULE_ACTIVATE", "SCHEDULE_DEACTIVATE", "RESTORE_ARCHIVED_MODEL"
|
9558
10541
|
|
9559
10542
|
:param str status: (optional)
|
9560
10543
|
<b>Filter</b> results by work request status.
|
@@ -9608,7 +10591,7 @@ class DataScienceClient(object):
|
|
9608
10591
|
:rtype: :class:`~oci.response.Response`
|
9609
10592
|
|
9610
10593
|
:example:
|
9611
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10594
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
9612
10595
|
"""
|
9613
10596
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9614
10597
|
required_arguments = ['compartmentId']
|
@@ -9636,7 +10619,7 @@ class DataScienceClient(object):
|
|
9636
10619
|
f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
|
9637
10620
|
|
9638
10621
|
if 'operation_type' in kwargs:
|
9639
|
-
operation_type_allowed_values = ["NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "RESTORE_ARCHIVED_MODEL"]
|
10622
|
+
operation_type_allowed_values = ["NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "SCHEDULE_CREATE", "SCHEDULE_UPDATE", "SCHEDULE_DELETE", "SCHEDULE_MOVE", "SCHEDULE_ACTIVATE", "SCHEDULE_DEACTIVATE", "RESTORE_ARCHIVED_MODEL"]
|
9640
10623
|
if kwargs['operation_type'] not in operation_type_allowed_values:
|
9641
10624
|
raise ValueError(
|
9642
10625
|
f"Invalid value for `operation_type`, must be one of { operation_type_allowed_values }"
|
@@ -9758,7 +10741,7 @@ class DataScienceClient(object):
|
|
9758
10741
|
:rtype: :class:`~oci.response.Response`
|
9759
10742
|
|
9760
10743
|
:example:
|
9761
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10744
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/restore_archived_model_artifact.py.html>`__ to see an example of how to use restore_archived_model_artifact API.
|
9762
10745
|
"""
|
9763
10746
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9764
10747
|
required_arguments = ['modelId']
|
@@ -9879,7 +10862,7 @@ class DataScienceClient(object):
|
|
9879
10862
|
:rtype: :class:`~oci.response.Response`
|
9880
10863
|
|
9881
10864
|
:example:
|
9882
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10865
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_data_science_private_endpoint.py.html>`__ to see an example of how to use update_data_science_private_endpoint API.
|
9883
10866
|
"""
|
9884
10867
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9885
10868
|
required_arguments = ['dataSciencePrivateEndpointId']
|
@@ -9991,7 +10974,7 @@ class DataScienceClient(object):
|
|
9991
10974
|
:rtype: :class:`~oci.response.Response`
|
9992
10975
|
|
9993
10976
|
:example:
|
9994
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10977
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_job.py.html>`__ to see an example of how to use update_job API.
|
9995
10978
|
"""
|
9996
10979
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9997
10980
|
required_arguments = ['jobId']
|
@@ -10105,7 +11088,7 @@ class DataScienceClient(object):
|
|
10105
11088
|
:rtype: :class:`~oci.response.Response`
|
10106
11089
|
|
10107
11090
|
:example:
|
10108
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11091
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_job_run.py.html>`__ to see an example of how to use update_job_run API.
|
10109
11092
|
"""
|
10110
11093
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10111
11094
|
required_arguments = ['jobRunId']
|
@@ -10219,7 +11202,7 @@ class DataScienceClient(object):
|
|
10219
11202
|
:rtype: :class:`~oci.response.Response`
|
10220
11203
|
|
10221
11204
|
:example:
|
10222
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11205
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_model.py.html>`__ to see an example of how to use update_model API.
|
10223
11206
|
"""
|
10224
11207
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10225
11208
|
required_arguments = ['modelId']
|
@@ -10339,7 +11322,7 @@ class DataScienceClient(object):
|
|
10339
11322
|
:rtype: :class:`~oci.response.Response`
|
10340
11323
|
|
10341
11324
|
:example:
|
10342
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11325
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_model_deployment.py.html>`__ to see an example of how to use update_model_deployment API.
|
10343
11326
|
"""
|
10344
11327
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10345
11328
|
required_arguments = ['modelDeploymentId']
|
@@ -10451,7 +11434,7 @@ class DataScienceClient(object):
|
|
10451
11434
|
:rtype: :class:`~oci.response.Response`
|
10452
11435
|
|
10453
11436
|
:example:
|
10454
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11437
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_model_provenance.py.html>`__ to see an example of how to use update_model_provenance API.
|
10455
11438
|
"""
|
10456
11439
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10457
11440
|
required_arguments = ['modelId']
|
@@ -10565,7 +11548,7 @@ class DataScienceClient(object):
|
|
10565
11548
|
:rtype: :class:`~oci.response.Response`
|
10566
11549
|
|
10567
11550
|
:example:
|
10568
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11551
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_model_version_set.py.html>`__ to see an example of how to use update_model_version_set API.
|
10569
11552
|
"""
|
10570
11553
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10571
11554
|
required_arguments = ['modelVersionSetId']
|
@@ -10682,7 +11665,7 @@ class DataScienceClient(object):
|
|
10682
11665
|
:rtype: :class:`~oci.response.Response`
|
10683
11666
|
|
10684
11667
|
:example:
|
10685
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11668
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_notebook_session.py.html>`__ to see an example of how to use update_notebook_session API.
|
10686
11669
|
"""
|
10687
11670
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10688
11671
|
required_arguments = ['notebookSessionId']
|
@@ -10796,7 +11779,7 @@ class DataScienceClient(object):
|
|
10796
11779
|
:rtype: :class:`~oci.response.Response`
|
10797
11780
|
|
10798
11781
|
:example:
|
10799
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11782
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_pipeline.py.html>`__ to see an example of how to use update_pipeline API.
|
10800
11783
|
"""
|
10801
11784
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10802
11785
|
required_arguments = ['pipelineId']
|
@@ -10908,7 +11891,7 @@ class DataScienceClient(object):
|
|
10908
11891
|
:rtype: :class:`~oci.response.Response`
|
10909
11892
|
|
10910
11893
|
:example:
|
10911
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11894
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_pipeline_run.py.html>`__ to see an example of how to use update_pipeline_run API.
|
10912
11895
|
"""
|
10913
11896
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10914
11897
|
required_arguments = ['pipelineRunId']
|
@@ -11020,7 +12003,7 @@ class DataScienceClient(object):
|
|
11020
12003
|
:rtype: :class:`~oci.response.Response`
|
11021
12004
|
|
11022
12005
|
:example:
|
11023
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
12006
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_project.py.html>`__ to see an example of how to use update_project API.
|
11024
12007
|
"""
|
11025
12008
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
11026
12009
|
required_arguments = ['projectId']
|
@@ -11094,3 +12077,111 @@ class DataScienceClient(object):
|
|
11094
12077
|
operation_name=operation_name,
|
11095
12078
|
api_reference_link=api_reference_link,
|
11096
12079
|
required_arguments=required_arguments)
|
12080
|
+
|
12081
|
+
def update_schedule(self, schedule_id, update_schedule_details, **kwargs):
|
12082
|
+
"""
|
12083
|
+
Updates the Schedule
|
12084
|
+
|
12085
|
+
|
12086
|
+
:param str schedule_id: (required)
|
12087
|
+
unique Schedule identifier
|
12088
|
+
|
12089
|
+
:param oci.data_science.models.UpdateScheduleDetails update_schedule_details: (required)
|
12090
|
+
The information to be updated.
|
12091
|
+
|
12092
|
+
:param str if_match: (optional)
|
12093
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
12094
|
+
for a resource, set the `if-match` parameter to the value of the
|
12095
|
+
etag from a previous GET or POST response for that resource.
|
12096
|
+
The resource is updated or deleted only if the `etag` you
|
12097
|
+
provide matches the resource's current `etag` value.
|
12098
|
+
|
12099
|
+
:param str opc_request_id: (optional)
|
12100
|
+
Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
|
12101
|
+
|
12102
|
+
:param obj retry_strategy: (optional)
|
12103
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
12104
|
+
|
12105
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
12106
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
12107
|
+
|
12108
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
12109
|
+
|
12110
|
+
:param bool allow_control_chars: (optional)
|
12111
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
12112
|
+
By default, the response will not allow control characters in strings
|
12113
|
+
|
12114
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
12115
|
+
:rtype: :class:`~oci.response.Response`
|
12116
|
+
|
12117
|
+
:example:
|
12118
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/datascience/update_schedule.py.html>`__ to see an example of how to use update_schedule API.
|
12119
|
+
"""
|
12120
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
12121
|
+
required_arguments = ['scheduleId']
|
12122
|
+
resource_path = "/schedules/{scheduleId}"
|
12123
|
+
method = "PUT"
|
12124
|
+
operation_name = "update_schedule"
|
12125
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/UpdateSchedule"
|
12126
|
+
|
12127
|
+
# Don't accept unknown kwargs
|
12128
|
+
expected_kwargs = [
|
12129
|
+
"allow_control_chars",
|
12130
|
+
"retry_strategy",
|
12131
|
+
"if_match",
|
12132
|
+
"opc_request_id"
|
12133
|
+
]
|
12134
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
12135
|
+
if extra_kwargs:
|
12136
|
+
raise ValueError(
|
12137
|
+
f"update_schedule got unknown kwargs: {extra_kwargs!r}")
|
12138
|
+
|
12139
|
+
path_params = {
|
12140
|
+
"scheduleId": schedule_id
|
12141
|
+
}
|
12142
|
+
|
12143
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
12144
|
+
|
12145
|
+
for (k, v) in six.iteritems(path_params):
|
12146
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
12147
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
12148
|
+
|
12149
|
+
header_params = {
|
12150
|
+
"accept": "application/json",
|
12151
|
+
"content-type": "application/json",
|
12152
|
+
"if-match": kwargs.get("if_match", missing),
|
12153
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
12154
|
+
}
|
12155
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
12156
|
+
|
12157
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
12158
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
12159
|
+
client_retry_strategy=self.retry_strategy
|
12160
|
+
)
|
12161
|
+
|
12162
|
+
if retry_strategy:
|
12163
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
12164
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
12165
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
12166
|
+
return retry_strategy.make_retrying_call(
|
12167
|
+
self.base_client.call_api,
|
12168
|
+
resource_path=resource_path,
|
12169
|
+
method=method,
|
12170
|
+
path_params=path_params,
|
12171
|
+
header_params=header_params,
|
12172
|
+
body=update_schedule_details,
|
12173
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
12174
|
+
operation_name=operation_name,
|
12175
|
+
api_reference_link=api_reference_link,
|
12176
|
+
required_arguments=required_arguments)
|
12177
|
+
else:
|
12178
|
+
return self.base_client.call_api(
|
12179
|
+
resource_path=resource_path,
|
12180
|
+
method=method,
|
12181
|
+
path_params=path_params,
|
12182
|
+
header_params=header_params,
|
12183
|
+
body=update_schedule_details,
|
12184
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
12185
|
+
operation_name=operation_name,
|
12186
|
+
api_reference_link=api_reference_link,
|
12187
|
+
required_arguments=required_arguments)
|