# 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_integration_client = oci.data_integration.DataIntegrationClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
update_data_flow_response = data_integration_client.update_data_flow(
    workspace_id="ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
    data_flow_key="EXAMPLE-dataFlowKey-Value",
    update_data_flow_details=oci.data_integration.models.UpdateDataFlowDetails(
        key="EXAMPLE-key-Value",
        model_type="EXAMPLE-modelType-Value",
        object_version=739,
        model_version="EXAMPLE-modelVersion-Value",
        parent_ref=oci.data_integration.models.ParentReference(
            parent="EXAMPLE-parent-Value"),
        name="EXAMPLE-name-Value",
        identifier="EXAMPLE-identifier-Value",
        nodes=[
            oci.data_integration.models.FlowNode(
                key="EXAMPLE-key-Value",
                model_type="EXAMPLE-modelType-Value",
                model_version="EXAMPLE-modelVersion-Value",
                parent_ref=oci.data_integration.models.ParentReference(
                    parent="EXAMPLE-parent-Value"),
                name="EXAMPLE-name-Value",
                description="EXAMPLE-description-Value",
                input_links=[
                    oci.data_integration.models.InputLink(
                            model_type="INPUT_LINK",
                            key="EXAMPLE-key-Value",
                            model_version="EXAMPLE-modelVersion-Value",
                            parent_ref=oci.data_integration.models.ParentReference(
                                parent="EXAMPLE-parent-Value"),
                            object_status=471,
                            description="EXAMPLE-description-Value",
                            port="EXAMPLE-port-Value",
                            from_link="EXAMPLE-fromLink-Value",
                            field_map=oci.data_integration.models.DirectFieldMap(
                                model_type="DIRECT_FIELD_MAP",
                                description="EXAMPLE-description-Value",
                                key="EXAMPLE-key-Value",
                                model_version="EXAMPLE-modelVersion-Value",
                                parent_ref=oci.data_integration.models.ParentReference(
                                        parent="EXAMPLE-parent-Value"),
                                config_values=oci.data_integration.models.ConfigValues(
                                    config_param_values={
                                        'EXAMPLE_KEY_i4ASe': {
                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                            'intValue': 29,
                                            'objectValue': 'EXAMPLE-objectValue-Value',
                                            'refValue': 'EXAMPLE-refValue-Value',
                                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                    parent_ref=oci.data_integration.models.ParentReference(
                                        parent="EXAMPLE-parent-Value")),
                                source_typed_object="EXAMPLE-sourceTypedObject-Value",
                                target_typed_object="EXAMPLE-targetTypedObject-Value",
                                object_status=376))],
                output_links=[
                    oci.data_integration.models.OutputLink(
                            model_type="OUTPUT_LINK",
                            key="EXAMPLE-key-Value",
                            model_version="EXAMPLE-modelVersion-Value",
                            parent_ref=oci.data_integration.models.ParentReference(
                                parent="EXAMPLE-parent-Value"),
                            object_status=866,
                            description="EXAMPLE-description-Value",
                            port="EXAMPLE-port-Value",
                            to_links=["EXAMPLE--Value"])],
                operator=oci.data_integration.models.Filter(
                    model_type="FILTER_OPERATOR",
                    key="EXAMPLE-key-Value",
                    model_version="EXAMPLE-modelVersion-Value",
                    parent_ref=oci.data_integration.models.ParentReference(
                        parent="EXAMPLE-parent-Value"),
                    name="EXAMPLE-name-Value",
                    description="EXAMPLE-description-Value",
                    object_version=950,
                    input_ports=[
                        oci.data_integration.models.InputPort(
                                model_type="INPUT_PORT",
                                key="EXAMPLE-key-Value",
                                model_version="EXAMPLE-modelVersion-Value",
                                parent_ref=oci.data_integration.models.ParentReference(
                                    parent="EXAMPLE-parent-Value"),
                                config_values=oci.data_integration.models.ConfigValues(
                                    config_param_values={
                                        'EXAMPLE_KEY_1bUYE': {
                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                            'intValue': 25,
                                            'objectValue': 'EXAMPLE-objectValue-Value',
                                            'refValue': 'EXAMPLE-refValue-Value',
                                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                    parent_ref=oci.data_integration.models.ParentReference(
                                        parent="EXAMPLE-parent-Value")),
                                object_status=533,
                                name="EXAMPLE-name-Value",
                                description="EXAMPLE-description-Value",
                                port_type="CONTROL",
                                fields=[
                                    oci.data_integration.models.AbstractField(
                                        model_type="FIELD",
                                        key="EXAMPLE-key-Value",
                                        model_version="EXAMPLE-modelVersion-Value",
                                        parent_ref=oci.data_integration.models.ParentReference(
                                            parent="EXAMPLE-parent-Value"),
                                        config_values=oci.data_integration.models.ConfigValues(
                                            config_param_values={
                                                'EXAMPLE_KEY_KaF9H': {
                                                    'stringValue': 'EXAMPLE-stringValue-Value',
                                                    'intValue': 356,
                                                    'objectValue': 'EXAMPLE-objectValue-Value',
                                                    'refValue': 'EXAMPLE-refValue-Value',
                                                    'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                            parent_ref=oci.data_integration.models.ParentReference(
                                                parent="EXAMPLE-parent-Value")),
                                        object_status=74,
                                        name="EXAMPLE-name-Value",
                                        description="EXAMPLE-description-Value")])],
                    output_ports=[
                        oci.data_integration.models.OutputPort(
                                model_type="OUTPUT_PORT",
                                key="EXAMPLE-key-Value",
                                model_version="EXAMPLE-modelVersion-Value",
                                parent_ref=oci.data_integration.models.ParentReference(
                                    parent="EXAMPLE-parent-Value"),
                                config_values=oci.data_integration.models.ConfigValues(
                                    config_param_values={
                                        'EXAMPLE_KEY_DAFzy': {
                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                            'intValue': 395,
                                            'objectValue': 'EXAMPLE-objectValue-Value',
                                            'refValue': 'EXAMPLE-refValue-Value',
                                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                    parent_ref=oci.data_integration.models.ParentReference(
                                        parent="EXAMPLE-parent-Value")),
                                object_status=163,
                                name="EXAMPLE-name-Value",
                                description="EXAMPLE-description-Value",
                                port_type="DATA",
                                fields=[
                                    oci.data_integration.models.FlowPort(
                                        model_type="FLOW_PORT",
                                        key="EXAMPLE-key-Value",
                                        model_version="EXAMPLE-modelVersion-Value",
                                        parent_ref=oci.data_integration.models.ParentReference(
                                            parent="EXAMPLE-parent-Value"),
                                        config_values=oci.data_integration.models.ConfigValues(
                                            config_param_values={
                                                'EXAMPLE_KEY_Jpm3X': {
                                                    'stringValue': 'EXAMPLE-stringValue-Value',
                                                    'intValue': 585,
                                                    'objectValue': 'EXAMPLE-objectValue-Value',
                                                    'refValue': 'EXAMPLE-refValue-Value',
                                                    'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                            parent_ref=oci.data_integration.models.ParentReference(
                                                parent="EXAMPLE-parent-Value")),
                                        object_status=278,
                                        name="EXAMPLE-name-Value",
                                        description="EXAMPLE-description-Value")])],
                    object_status=541,
                    identifier="EXAMPLE-identifier-Value",
                    parameters=[
                        oci.data_integration.models.Parameter(
                                model_type="PARAMETER",
                                key="EXAMPLE-key-Value",
                                model_version="EXAMPLE-modelVersion-Value",
                                parent_ref=oci.data_integration.models.ParentReference(
                                    parent="EXAMPLE-parent-Value"),
                                config_values=oci.data_integration.models.ConfigValues(
                                    config_param_values={
                                        'EXAMPLE_KEY_rNWQe': {
                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                            'intValue': 467,
                                            'objectValue': 'EXAMPLE-objectValue-Value',
                                            'refValue': 'EXAMPLE-refValue-Value',
                                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                    parent_ref=oci.data_integration.models.ParentReference(
                                        parent="EXAMPLE-parent-Value")),
                                object_status=872,
                                name="EXAMPLE-name-Value",
                                description="EXAMPLE-description-Value",
                                type=oci.data_integration.models.CompositeType(
                                    model_type="COMPOSITE_TYPE",
                                    key="EXAMPLE-key-Value",
                                    model_version="EXAMPLE-modelVersion-Value",
                                    parent_ref=oci.data_integration.models.ParentReference(
                                        parent="EXAMPLE-parent-Value"),
                                    name="EXAMPLE-name-Value",
                                    object_status=366,
                                    description="EXAMPLE-description-Value",
                                    elements=[
                                        oci.data_integration.models.MacroField(
                                            model_type="MACRO_FIELD",
                                            key="EXAMPLE-key-Value",
                                            model_version="EXAMPLE-modelVersion-Value",
                                            parent_ref=oci.data_integration.models.ParentReference(
                                                parent="EXAMPLE-parent-Value"),
                                            config_values=oci.data_integration.models.ConfigValues(
                                                config_param_values={
                                                    'EXAMPLE_KEY_x26Sa': {
                                                        'stringValue': 'EXAMPLE-stringValue-Value',
                                                        'intValue': 437,
                                                        'objectValue': 'EXAMPLE-objectValue-Value',
                                                        'refValue': 'EXAMPLE-refValue-Value',
                                                        'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                                parent_ref=oci.data_integration.models.ParentReference(
                                                    parent="EXAMPLE-parent-Value")),
                                            object_status=415,
                                            name="EXAMPLE-name-Value",
                                            description="EXAMPLE-description-Value",
                                            expr=oci.data_integration.models.Expression(
                                                key="EXAMPLE-key-Value",
                                                model_type="EXAMPLE-modelType-Value",
                                                model_version="EXAMPLE-modelVersion-Value",
                                                parent_ref=oci.data_integration.models.ParentReference(
                                                    parent="EXAMPLE-parent-Value"),
                                                expr_string="EXAMPLE-exprString-Value",
                                                config_values=oci.data_integration.models.ConfigValues(
                                                    config_param_values={
                                                        'EXAMPLE_KEY_0vlUf': {
                                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                                            'intValue': 204,
                                                            'objectValue': 'EXAMPLE-objectValue-Value',
                                                            'refValue': 'EXAMPLE-refValue-Value',
                                                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                                    parent_ref=oci.data_integration.models.ParentReference(
                                                        parent="EXAMPLE-parent-Value")),
                                                object_status=736),
                                            is_use_source_type=False,
                                            use_type=oci.data_integration.models.ConfiguredType(
                                                model_type="CONFIGURED_TYPE",
                                                key="EXAMPLE-key-Value",
                                                model_version="EXAMPLE-modelVersion-Value",
                                                parent_ref=oci.data_integration.models.ParentReference(
                                                    parent="EXAMPLE-parent-Value"),
                                                name="EXAMPLE-name-Value",
                                                object_status=696,
                                                description="EXAMPLE-description-Value",
                                                wrapped_type="EXAMPLE-wrappedType-Value",
                                                config_values=oci.data_integration.models.ConfigValues(
                                                    config_param_values={
                                                        'EXAMPLE_KEY_tWAAq': {
                                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                                            'intValue': 0,
                                                            'objectValue': 'EXAMPLE-objectValue-Value',
                                                            'refValue': 'EXAMPLE-refValue-Value',
                                                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                                    parent_ref=oci.data_integration.models.ParentReference(
                                                        parent="EXAMPLE-parent-Value")),
                                                config_definition=oci.data_integration.models.ConfigDefinition(
                                                    key="EXAMPLE-key-Value",
                                                    model_type="EXAMPLE-modelType-Value",
                                                    model_version="EXAMPLE-modelVersion-Value",
                                                    parent_ref=oci.data_integration.models.ParentReference(
                                                        parent="EXAMPLE-parent-Value"),
                                                    name="EXAMPLE-name-Value",
                                                    is_contained=True,
                                                    object_status=981,
                                                    config_parameter_definitions={
                                                        'EXAMPLE_KEY_GUW4E': {
                                                            'parameterName': 'EXAMPLE-parameterName-Value',
                                                            'description': 'EXAMPLE-description-Value',
                                                            'defaultValue': 'EXAMPLE-defaultValue-Value',
                                                            'classFieldName': 'EXAMPLE-classFieldName-Value',
                                                            'isStatic': True,
                                                            'isClassFieldValue': False}})),
                                            labels=["EXAMPLE--Value"])],
                                    config_definition=oci.data_integration.models.ConfigDefinition(
                                        key="EXAMPLE-key-Value",
                                        model_type="EXAMPLE-modelType-Value",
                                        model_version="EXAMPLE-modelVersion-Value",
                                        parent_ref=oci.data_integration.models.ParentReference(
                                            parent="EXAMPLE-parent-Value"),
                                        name="EXAMPLE-name-Value",
                                        is_contained=True,
                                        object_status=452,
                                        config_parameter_definitions={
                                            'EXAMPLE_KEY_kOf7U': {
                                                'parameterName': 'EXAMPLE-parameterName-Value',
                                                'description': 'EXAMPLE-description-Value',
                                                'defaultValue': 'EXAMPLE-defaultValue-Value',
                                                'classFieldName': 'EXAMPLE-classFieldName-Value',
                                                'isStatic': False,
                                                'isClassFieldValue': True}})),
                                default_value="EXAMPLE-defaultValue-Value",
                                root_object_default_value="EXAMPLE-rootObjectDefaultValue-Value",
                                is_input=True,
                                is_output=True,
                                output_aggregation_type="MAX",
                                type_name="EXAMPLE-typeName-Value")],
                    op_config_values=oci.data_integration.models.ConfigValues(
                        config_param_values={
                            'EXAMPLE_KEY_jXr6M': {
                                'stringValue': 'EXAMPLE-stringValue-Value',
                                'intValue': 917,
                                'objectValue': 'EXAMPLE-objectValue-Value',
                                'refValue': 'EXAMPLE-refValue-Value',
                                'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                        parent_ref=oci.data_integration.models.ParentReference(
                            parent="EXAMPLE-parent-Value")),
                    filter_condition=oci.data_integration.models.Expression(
                        key="EXAMPLE-key-Value",
                        model_type="EXAMPLE-modelType-Value",
                        model_version="EXAMPLE-modelVersion-Value",
                        parent_ref=oci.data_integration.models.ParentReference(
                            parent="EXAMPLE-parent-Value"),
                        expr_string="EXAMPLE-exprString-Value",
                        config_values=oci.data_integration.models.ConfigValues(
                            config_param_values={
                                    'EXAMPLE_KEY_DXBMI': {
                                        'stringValue': 'EXAMPLE-stringValue-Value',
                                        'intValue': 553,
                                        'objectValue': 'EXAMPLE-objectValue-Value',
                                        'refValue': 'EXAMPLE-refValue-Value',
                                        'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                            parent_ref=oci.data_integration.models.ParentReference(
                                    parent="EXAMPLE-parent-Value")),
                        object_status=13)),
                ui_properties=oci.data_integration.models.UIProperties(
                    coordinate_x=7597.8936,
                    coordinate_y=8980.631),
                object_status=360)],
        parameters=[
            oci.data_integration.models.Parameter(
                model_type="PARAMETER",
                key="EXAMPLE-key-Value",
                model_version="EXAMPLE-modelVersion-Value",
                parent_ref=oci.data_integration.models.ParentReference(
                    parent="EXAMPLE-parent-Value"),
                config_values=oci.data_integration.models.ConfigValues(
                    config_param_values={
                        'EXAMPLE_KEY_dIPDT': {
                            'stringValue': 'EXAMPLE-stringValue-Value',
                            'intValue': 873,
                            'objectValue': 'EXAMPLE-objectValue-Value',
                            'refValue': 'EXAMPLE-refValue-Value',
                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                    parent_ref=oci.data_integration.models.ParentReference(
                        parent="EXAMPLE-parent-Value")),
                object_status=330,
                name="EXAMPLE-name-Value",
                description="EXAMPLE-description-Value",
                type=oci.data_integration.models.DynamicType(
                    model_type="DYNAMIC_TYPE",
                    key="EXAMPLE-key-Value",
                    model_version="EXAMPLE-modelVersion-Value",
                    parent_ref=oci.data_integration.models.ParentReference(
                        parent="EXAMPLE-parent-Value"),
                    name="EXAMPLE-name-Value",
                    object_status=492,
                    description="EXAMPLE-description-Value",
                    type_handler=oci.data_integration.models.RuleTypeConfig(
                        model_type="RULE_TYPE_CONFIGS",
                        key="EXAMPLE-key-Value",
                        model_version="EXAMPLE-modelVersion-Value",
                        parent_ref=oci.data_integration.models.ParentReference(
                            parent="EXAMPLE-parent-Value"),
                        scope="EXAMPLE-scope-Value",
                        is_order_by_rule=False,
                        projection_rules=[
                            oci.data_integration.models.TypeListRule(
                                model_type="TYPE_LIST_RULE",
                                key="EXAMPLE-key-Value",
                                model_version="EXAMPLE-modelVersion-Value",
                                parent_ref=oci.data_integration.models.ParentReference(
                                    parent="EXAMPLE-parent-Value"),
                                is_java_regex_syntax=False,
                                config_values=oci.data_integration.models.ConfigValues(
                                    config_param_values={
                                        'EXAMPLE_KEY_hLOcl': {
                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                            'intValue': 896,
                                            'objectValue': 'EXAMPLE-objectValue-Value',
                                            'refValue': 'EXAMPLE-refValue-Value',
                                            'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                    parent_ref=oci.data_integration.models.ParentReference(
                                        parent="EXAMPLE-parent-Value")),
                                object_status=287,
                                description="EXAMPLE-description-Value",
                                is_skip_remaining_rules_on_match=True,
                                scope="EXAMPLE-scope-Value",
                                is_cascade=False,
                                matching_strategy="NAME_OR_TAGS",
                                is_case_sensitive=False,
                                rule_type="INCLUDE",
                                types=["EXAMPLE-types-Value"])],
                        config_values=oci.data_integration.models.ConfigValues(
                            config_param_values={
                                'EXAMPLE_KEY_x1G8G': {
                                    'stringValue': 'EXAMPLE-stringValue-Value',
                                    'intValue': 307,
                                    'objectValue': 'EXAMPLE-objectValue-Value',
                                    'refValue': 'EXAMPLE-refValue-Value',
                                    'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                            parent_ref=oci.data_integration.models.ParentReference(
                                parent="EXAMPLE-parent-Value")),
                        object_status=712),
                    config_definition=oci.data_integration.models.ConfigDefinition(
                        key="EXAMPLE-key-Value",
                        model_type="EXAMPLE-modelType-Value",
                        model_version="EXAMPLE-modelVersion-Value",
                        parent_ref=oci.data_integration.models.ParentReference(
                            parent="EXAMPLE-parent-Value"),
                        name="EXAMPLE-name-Value",
                        is_contained=True,
                        object_status=268,
                        config_parameter_definitions={
                            'EXAMPLE_KEY_Bh0gd': {
                                'parameterName': 'EXAMPLE-parameterName-Value',
                                'description': 'EXAMPLE-description-Value',
                                'defaultValue': 'EXAMPLE-defaultValue-Value',
                                'classFieldName': 'EXAMPLE-classFieldName-Value',
                                'isStatic': True,
                                'isClassFieldValue': False}})),
                default_value="EXAMPLE-defaultValue-Value",
                root_object_default_value="EXAMPLE-rootObjectDefaultValue-Value",
                is_input=True,
                is_output=False,
                output_aggregation_type="SUM",
                type_name="EXAMPLE-typeName-Value")],
        description="EXAMPLE-description-Value",
        flow_config_values=oci.data_integration.models.ConfigValues(
            config_param_values={
                'EXAMPLE_KEY_BCIEW': {
                    'stringValue': 'EXAMPLE-stringValue-Value',
                    'intValue': 783,
                    'objectValue': 'EXAMPLE-objectValue-Value',
                    'refValue': 'EXAMPLE-refValue-Value',
                    'parameterValue': 'EXAMPLE-parameterValue-Value'}},
            parent_ref=oci.data_integration.models.ParentReference(
                parent="EXAMPLE-parent-Value")),
        object_status=541,
        registry_metadata=oci.data_integration.models.RegistryMetadata(
            aggregator_key="EXAMPLE-aggregatorKey-Value",
            labels=["EXAMPLE--Value"],
            registry_version=213,
            key="EXAMPLE-key-Value",
            is_favorite=True)),
    opc_request_id="7FLYLGVLDUB7YBBX7GYU/OpcRequestIdExample/<unique_ID>",
    if_match="EXAMPLE-ifMatch-Value")

# Get the data from response
print(update_data_flow_response.data)