# 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
create_data_flow_response = data_integration_client.create_data_flow(
    workspace_id="ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
    create_data_flow_details=oci.data_integration.models.CreateDataFlowDetails(
        name="EXAMPLE-name-Value",
        identifier="EXAMPLE-identifier-Value",
        registry_metadata=oci.data_integration.models.RegistryMetadata(
            aggregator_key="EXAMPLE-aggregatorKey-Value",
            labels=["EXAMPLE--Value"],
            registry_version=326,
            key="EXAMPLE-key-Value",
            is_favorite=True),
        key="EXAMPLE-key-Value",
        model_version="EXAMPLE-modelVersion-Value",
        parent_ref=oci.data_integration.models.ParentReference(
            parent="EXAMPLE-parent-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=731,
                                description="EXAMPLE-description-Value",
                                port="EXAMPLE-port-Value",
                                from_link="EXAMPLE-fromLink-Value",
                                field_map=oci.data_integration.models.DirectNamedFieldMap(
                                    model_type="DIRECT_NAMED_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_6GAwW': {
                                                'stringValue': 'EXAMPLE-stringValue-Value',
                                                'intValue': 924,
                                                '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",
                                    source_field_name="EXAMPLE-sourceFieldName-Value",
                                    target_field_name="EXAMPLE-targetFieldName-Value",
                                    object_status=874))],
                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=936,
                                description="EXAMPLE-description-Value",
                                port="EXAMPLE-port-Value",
                                to_links=["EXAMPLE--Value"])],
                operator=oci.data_integration.models.Projection(
                            model_type="PROJECTION_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=516,
                            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_k0Fwm': {
                                                'stringValue': 'EXAMPLE-stringValue-Value',
                                                'intValue': 190,
                                                '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=633,
                                    name="EXAMPLE-name-Value",
                                    description="EXAMPLE-description-Value",
                                    port_type="DATA",
                                    fields=[
                                        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_SkSqF': {
                                                        'stringValue': 'EXAMPLE-stringValue-Value',
                                                        'intValue': 376,
                                                        '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=582,
                                            name="EXAMPLE-name-Value",
                                            description="EXAMPLE-description-Value",
                                            type=oci.data_integration.models.JavaType(
                                                model_type="JAVA_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=511,
                                                description="EXAMPLE-description-Value",
                                                java_type_name="EXAMPLE-javaTypeName-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=828,
                                                    config_parameter_definitions={
                                                        'EXAMPLE_KEY_Xa7UH': {
                                                            '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=False,
                                            output_aggregation_type="COUNT",
                                            type_name="EXAMPLE-typeName-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_N1CFR': {
                                                'stringValue': 'EXAMPLE-stringValue-Value',
                                                'intValue': 738,
                                                '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=693,
                                    name="EXAMPLE-name-Value",
                                    description="EXAMPLE-description-Value",
                                    port_type="MODEL",
                                    fields=[
                                        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_DBniB': {
                                                        'stringValue': 'EXAMPLE-stringValue-Value',
                                                        'intValue': 657,
                                                        '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=840,
                                            name="EXAMPLE-name-Value",
                                            description="EXAMPLE-description-Value",
                                            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=838,
                                                description="EXAMPLE-description-Value",
                                                wrapped_type="EXAMPLE-wrappedType-Value",
                                                config_values=oci.data_integration.models.ConfigValues(
                                                    config_param_values={
                                                        'EXAMPLE_KEY_MFJbr': {
                                                            'stringValue': 'EXAMPLE-stringValue-Value',
                                                            'intValue': 220,
                                                            '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=561,
                                                    config_parameter_definitions={
                                                        'EXAMPLE_KEY_OjAvj': {
                                                            'parameterName': 'EXAMPLE-parameterName-Value',
                                                            'description': 'EXAMPLE-description-Value',
                                                            'defaultValue': 'EXAMPLE-defaultValue-Value',
                                                            'classFieldName': 'EXAMPLE-classFieldName-Value',
                                                            'isStatic': True,
                                                            'isClassFieldValue': True}})),
                                            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")])],
                            object_status=39,
                            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_BB8pl': {
                                                'stringValue': 'EXAMPLE-stringValue-Value',
                                                'intValue': 323,
                                                '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=558,
                                    name="EXAMPLE-name-Value",
                                    description="EXAMPLE-description-Value",
                                    type=oci.data_integration.models.DerivedType(
                                        model_type="DERIVED_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=792,
                                        description="EXAMPLE-description-Value"),
                                    default_value="EXAMPLE-defaultValue-Value",
                                    root_object_default_value="EXAMPLE-rootObjectDefaultValue-Value",
                                    is_input=True,
                                    is_output=True,
                                    output_aggregation_type="SUM",
                                    type_name="EXAMPLE-typeName-Value")],
                            op_config_values=oci.data_integration.models.ConfigValues(
                                config_param_values={
                                    'EXAMPLE_KEY_6jMOw': {
                                        'stringValue': 'EXAMPLE-stringValue-Value',
                                        'intValue': 941,
                                        'objectValue': 'EXAMPLE-objectValue-Value',
                                        'refValue': 'EXAMPLE-refValue-Value',
                                        'parameterValue': 'EXAMPLE-parameterValue-Value'}},
                                parent_ref=oci.data_integration.models.ParentReference(
                                    parent="EXAMPLE-parent-Value"))),
                ui_properties=oci.data_integration.models.UIProperties(
                            coordinate_x=5120.9136,
                            coordinate_y=5188.5996),
                object_status=895)],
        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_M1BaJ': {
                            'stringValue': 'EXAMPLE-stringValue-Value',
                            'intValue': 823,
                            '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=798,
                name="EXAMPLE-name-Value",
                description="EXAMPLE-description-Value",
                type=oci.data_integration.models.DataType(
                    model_type="DATA_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=379,
                    description="EXAMPLE-description-Value",
                    dt_type="PRIMITIVE",
                    type_system_name="EXAMPLE-typeSystemName-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=319,
                        config_parameter_definitions={
                            'EXAMPLE_KEY_ULuca': {
                                '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="SUM",
                type_name="EXAMPLE-typeName-Value")],
        description="EXAMPLE-description-Value",
        flow_config_values=oci.data_integration.models.ConfigValues(
            config_param_values={
                'EXAMPLE_KEY_bgr0G': {
                    'stringValue': 'EXAMPLE-stringValue-Value',
                    'intValue': 671,
                    '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=782),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="MDV6DI9DATGA6GXVBWFW/OpcRequestIdExample/<unique_ID>")

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