# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
import oci
# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()
# Initialize service client with default config file
data_science_client = oci.data_science.DataScienceClient(config)
# Send the request to service, some parameters are not required, see API
# doc for more info
update_pipeline_response = data_science_client.update_pipeline(
pipeline_id="ocid1.test.oc1..<unique_ID>EXAMPLE-pipelineId-Value",
update_pipeline_details=oci.data_science.models.UpdatePipelineDetails(
display_name="EXAMPLE-displayName-Value",
description="EXAMPLE-description-Value",
configuration_details=oci.data_science.models.PipelineDefaultConfigurationDetails(
type="DEFAULT",
maximum_runtime_in_minutes=20421,
environment_variables={
'EXAMPLE_KEY_Qn3gQ': 'EXAMPLE_VALUE_QCpIXDf9DJwao0btJBEQ'},
command_line_arguments="EXAMPLE-commandLineArguments-Value"),
infrastructure_configuration_details=oci.data_science.models.PipelineInfrastructureConfigurationDetails(
shape_name="EXAMPLE-shapeName-Value",
block_storage_size_in_gbs=8947,
subnet_id="ocid1.test.oc1..<unique_ID>EXAMPLE-subnetId-Value",
shape_config_details=oci.data_science.models.PipelineShapeConfigDetails(
ocpus=49.97144,
memory_in_gbs=171.25269,
cpu_baseline="BASELINE_1_1",
ocpus_parameterized="EXAMPLE-ocpusParameterized-Value",
memory_in_gbs_parameterized="EXAMPLE-memoryInGBsParameterized-Value"),
block_storage_size_in_gbs_parameterized="EXAMPLE-blockStorageSizeInGBsParameterized-Value"),
log_configuration_details=oci.data_science.models.PipelineLogConfigurationDetails(
enable_logging=True,
enable_auto_log_creation=True,
log_group_id="ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value",
log_id="ocid1.test.oc1..<unique_ID>EXAMPLE-logId-Value"),
storage_mount_configuration_details_list=[
oci.data_science.models.FileStorageMountConfigurationDetails(
storage_type="FILE_STORAGE",
destination_directory_name="EXAMPLE-destinationDirectoryName-Value",
mount_target_id="ocid1.test.oc1..<unique_ID>EXAMPLE-mountTargetId-Value",
export_id="ocid1.test.oc1..<unique_ID>EXAMPLE-exportId-Value",
destination_path="EXAMPLE-destinationPath-Value")],
step_details=[
oci.data_science.models.PipelineMLJobStepUpdateDetails(
step_type="ML_JOB",
step_name="EXAMPLE-stepName-Value",
description="EXAMPLE-description-Value",
step_configuration_details=oci.data_science.models.PipelineStepConfigurationDetails(
maximum_runtime_in_minutes=23110,
environment_variables={
'EXAMPLE_KEY_hwFPB': 'EXAMPLE_VALUE_9SBTAxgLIagXEgvRGQRp'},
command_line_arguments="EXAMPLE-commandLineArguments-Value"),
step_run_name="EXAMPLE-stepRunName-Value",
step_parameters=oci.data_science.models.PipelineDefaultStepParameterDetails(
parameter_type="DEFAULT",
output=oci.data_science.models.PipelineJsonStepOutputParameterDetails(
output_parameter_type="JSON",
parameter_names=["EXAMPLE--Value"],
output_file="EXAMPLE-outputFile-Value")))],
parameters={
'EXAMPLE_KEY_ZECQr': 'EXAMPLE_VALUE_P5fgjhpNzQoYTtTufVR8'},
freeform_tags={
'EXAMPLE_KEY_7Nwux': 'EXAMPLE_VALUE_BHuvOH6whbtNeMxxgjCM'},
defined_tags={
'EXAMPLE_KEY_prOMA': {
'EXAMPLE_KEY_RKCJ8': 'EXAMPLE--Value'}}),
if_match="EXAMPLE-ifMatch-Value",
opc_request_id="IJAE0OKUIOLUAIPFLASO<unique_ID>")
# Get the data from response
print(update_pipeline_response.data)