# 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
from datetime import datetime

# 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_connectivity_client = oci.data_connectivity.DataConnectivityManagementClient(
    config)


# Send the request to service, some parameters are not required, see API
# doc for more info
create_folder_response = data_connectivity_client.create_folder(
    registry_id="ocid1.test.oc1..<unique_ID>EXAMPLE-registryId-Value",
    create_folder_details=oci.data_connectivity.models.CreateFolderDetails(
        name="EXAMPLE-name-Value",
        identifier="EXAMPLE-identifier-Value",
        model_type="EXAMPLE-modelType-Value",
        key="EXAMPLE-key-Value",
        model_version="EXAMPLE-modelVersion-Value",
        parent_ref=oci.data_connectivity.models.ParentReference(
            parent="EXAMPLE-parent-Value"),
        description="EXAMPLE-description-Value",
        object_version=971,
        object_status=311,
        data_assets=[
            oci.data_connectivity.models.DataAsset(
                    key="EXAMPLE-key-Value",
                    name="EXAMPLE-name-Value",
                    identifier="EXAMPLE-identifier-Value",
                    model_version="EXAMPLE-modelVersion-Value",
                    model_type="EXAMPLE-modelType-Value",
                    description="EXAMPLE-description-Value",
                    object_status=534,
                    object_version=306,
                    external_key="EXAMPLE-externalKey-Value",
                    asset_properties={
                        'EXAMPLE_KEY_u0wFh': 'EXAMPLE_VALUE_u58KQsTyqRt42aUsTaan'},
                    properties={
                        'EXAMPLE_KEY_erqGC': 'EXAMPLE--Value'},
                    type="EXAMPLE-type-Value",
                    native_type_system=oci.data_connectivity.models.TypeSystem(
                        key="EXAMPLE-key-Value",
                        model_type="EXAMPLE-modelType-Value",
                        model_version="EXAMPLE-modelVersion-Value",
                        parent_ref=oci.data_connectivity.models.ParentReference(
                            parent="EXAMPLE-parent-Value"),
                        name="EXAMPLE-name-Value",
                        description="EXAMPLE-description-Value",
                        object_version=743,
                        type_mapping_to={
                                    'EXAMPLE_KEY_Juzn9': 'EXAMPLE_VALUE_GlN2DP4R3GjFtmXueYPJ'},
                        type_mapping_from={
                            'EXAMPLE_KEY_ZhpBQ': 'EXAMPLE_VALUE_rUA5QETm6QSN5X2euHrg'},
                        object_status=480,
                        identifier="EXAMPLE-identifier-Value",
                        types=[
                            oci.data_connectivity.models.DataType(
                                model_type="DATA_TYPE",
                                key="EXAMPLE-key-Value",
                                model_version="EXAMPLE-modelVersion-Value",
                                parent_ref=oci.data_connectivity.models.ParentReference(
                                    parent="EXAMPLE-parent-Value"),
                                name="EXAMPLE-name-Value",
                                object_status=284,
                                description="EXAMPLE-description-Value",
                                dt_type="STRUCTURED",
                                type_system_name="EXAMPLE-typeSystemName-Value",
                                config_definition=oci.data_connectivity.models.ConfigDefinition(
                                            key="EXAMPLE-key-Value",
                                            model_type="EXAMPLE-modelType-Value",
                                            model_version="EXAMPLE-modelVersion-Value",
                                            parent_ref=oci.data_connectivity.models.ParentReference(
                                                parent="EXAMPLE-parent-Value"),
                                            name="EXAMPLE-name-Value",
                                            is_contained=True,
                                            object_status=235,
                                            config_parameter_definitions={
                                                'EXAMPLE_KEY_Nuczr': {
                                                    'parameterType': {
                                                        'modelType': 'DERIVED_TYPE',
                                                        'key': 'EXAMPLE-key-Value',
                                                        'modelVersion': 'EXAMPLE-modelVersion-Value',
                                                        'parentRef': {
                                                            'parent': 'EXAMPLE-parent-Value'},
                                                        'name': 'EXAMPLE-name-Value',
                                                        'objectStatus': 560,
                                                        'description': 'EXAMPLE-description-Value'},
                                                    'parameterName': 'EXAMPLE-parameterName-Value',
                                                    'description': 'EXAMPLE-description-Value',
                                                    'defaultValue': 'EXAMPLE-defaultValue-Value',
                                                                    'classFieldName': 'EXAMPLE-classFieldName-Value',
                                                                    'isStatic': True,
                                                    'isClassFieldValue': False}}))]),
                    registry_metadata=oci.data_connectivity.models.RegistryMetadata(
                        aggregator_key="EXAMPLE-aggregatorKey-Value",
                        labels=["EXAMPLE--Value"],
                        registry_version=312,
                        key="EXAMPLE-key-Value",
                        is_favorite=True,
                        created_by_user_id="ocid1.test.oc1..<unique_ID>EXAMPLE-createdByUserId-Value",
                        created_by_user_name="EXAMPLE-createdByUserName-Value",
                        updated_by_user_id="ocid1.test.oc1..<unique_ID>EXAMPLE-updatedByUserId-Value",
                        updated_by_user_name="EXAMPLE-updatedByUserName-Value",
                        time_created=datetime.strptime(
                            "2033-11-02T23:31:23.588Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"),
                        time_updated=datetime.strptime(
                            "2027-07-26T09:47:21.454Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ")),
                    metadata=oci.data_connectivity.models.ObjectMetadata(
                        created_by="EXAMPLE-createdBy-Value",
                        created_by_name="EXAMPLE-createdByName-Value",
                        updated_by="EXAMPLE-updatedBy-Value",
                        updated_by_name="EXAMPLE-updatedByName-Value",
                        time_created=datetime.strptime(
                            "2002-02-04T20:37:53.051Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"),
                        time_updated=datetime.strptime(
                            "2039-07-10T05:15:39.036Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"),
                        aggregator_key="EXAMPLE-aggregatorKey-Value",
                        aggregator=oci.data_connectivity.models.AggregatorSummary(
                            type="EXAMPLE-type-Value",
                            key="EXAMPLE-key-Value",
                            name="EXAMPLE-name-Value",
                            identifier="EXAMPLE-identifier-Value",
                            description="EXAMPLE-description-Value"),
                        identifier_path="EXAMPLE-identifierPath-Value",
                        info_fields={
                            'EXAMPLE_KEY_ZQQ7L': 'EXAMPLE_VALUE_4PjMaaBdJxpcfZ86qSJc'},
                        registry_version=805,
                        labels=["EXAMPLE--Value"],
                        is_favorite=False),
                    default_connection=oci.data_connectivity.models.Connection(
                        key="EXAMPLE-key-Value",
                        name="EXAMPLE-name-Value",
                        identifier="EXAMPLE-identifier-Value",
                        model_version="EXAMPLE-modelVersion-Value",
                        model_type="EXAMPLE-modelType-Value",
                        description="EXAMPLE-description-Value",
                        object_version=902,
                        object_status=651,
                        primary_schema=oci.data_connectivity.models.Schema(
                            key="EXAMPLE-key-Value",
                            model_type="EXAMPLE-modelType-Value",
                            name="EXAMPLE-name-Value",
                            identifier="EXAMPLE-identifier-Value",
                            model_version="EXAMPLE-modelVersion-Value",
                            parent_ref=oci.data_connectivity.models.ParentReference(
                                parent="EXAMPLE-parent-Value"),
                            resource_name="EXAMPLE-resourceName-Value",
                            description="EXAMPLE-description-Value",
                            object_version=529,
                            external_key="EXAMPLE-externalKey-Value",
                            is_has_containers=True,
                            default_connection="EXAMPLE-defaultConnection-Value",
                            object_status=611,
                            metadata=oci.data_connectivity.models.ObjectMetadata(
                                created_by="EXAMPLE-createdBy-Value",
                                created_by_name="EXAMPLE-createdByName-Value",
                                updated_by="EXAMPLE-updatedBy-Value",
                                updated_by_name="EXAMPLE-updatedByName-Value",
                                time_created=datetime.strptime(
                                    "2040-03-03T18:39:46.761Z",
                                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                                time_updated=datetime.strptime(
                                    "2044-12-22T16:54:01.293Z",
                                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                                aggregator_key="EXAMPLE-aggregatorKey-Value",
                                aggregator=oci.data_connectivity.models.AggregatorSummary(
                                    type="EXAMPLE-type-Value",
                                    key="EXAMPLE-key-Value",
                                    name="EXAMPLE-name-Value",
                                    identifier="EXAMPLE-identifier-Value",
                                    description="EXAMPLE-description-Value"),
                                identifier_path="EXAMPLE-identifierPath-Value",
                                info_fields={
                                    'EXAMPLE_KEY_wCguB': 'EXAMPLE_VALUE_gr2IXZSFUrAHb6NXHCLO'},
                                registry_version=596,
                                labels=["EXAMPLE--Value"],
                                is_favorite=True)),
                        connection_properties=[
                            oci.data_connectivity.models.ConnectionProperty(
                                name="EXAMPLE-name-Value",
                                value="EXAMPLE-value-Value")],
                        properties={
                            'EXAMPLE_KEY_cICE5': 'EXAMPLE--Value'},
                        type="EXAMPLE-type-Value",
                        is_default=True,
                        metadata=oci.data_connectivity.models.ObjectMetadata(
                            created_by="EXAMPLE-createdBy-Value",
                            created_by_name="EXAMPLE-createdByName-Value",
                            updated_by="EXAMPLE-updatedBy-Value",
                            updated_by_name="EXAMPLE-updatedByName-Value",
                            time_created=datetime.strptime(
                                "2039-06-23T16:34:47.601Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"),
                            time_updated=datetime.strptime(
                                "2043-07-24T18:09:11.275Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"),
                            aggregator_key="EXAMPLE-aggregatorKey-Value",
                            aggregator=oci.data_connectivity.models.AggregatorSummary(
                                type="EXAMPLE-type-Value",
                                key="EXAMPLE-key-Value",
                                name="EXAMPLE-name-Value",
                                identifier="EXAMPLE-identifier-Value",
                                description="EXAMPLE-description-Value"),
                            identifier_path="EXAMPLE-identifierPath-Value",
                            info_fields={
                                'EXAMPLE_KEY_4MBrY': 'EXAMPLE_VALUE_lMqKCYzfRgCBxxzGmE5l'},
                            registry_version=54,
                            labels=["EXAMPLE--Value"],
                            is_favorite=False),
                        registry_metadata=oci.data_connectivity.models.RegistryMetadata(
                            aggregator_key="EXAMPLE-aggregatorKey-Value",
                            labels=["EXAMPLE--Value"],
                            registry_version=163,
                            key="EXAMPLE-key-Value",
                            is_favorite=False,
                            created_by_user_id="ocid1.test.oc1..<unique_ID>EXAMPLE-createdByUserId-Value",
                            created_by_user_name="EXAMPLE-createdByUserName-Value",
                            updated_by_user_id="ocid1.test.oc1..<unique_ID>EXAMPLE-updatedByUserId-Value",
                            updated_by_user_name="EXAMPLE-updatedByUserName-Value",
                            time_created=datetime.strptime(
                                "2040-01-18T20:09:42.101Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"),
                            time_updated=datetime.strptime(
                                "2025-07-28T02:58:57.747Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"))),
                    end_points=[
                        oci.data_connectivity.models.DpEndpointFromPublic(
                            model_type="PUBLIC_END_POINT",
                            key="EXAMPLE-key-Value",
                            model_version="EXAMPLE-modelVersion-Value",
                            parent_ref=oci.data_connectivity.models.ParentReference(
                                parent="EXAMPLE-parent-Value"),
                            name="EXAMPLE-name-Value",
                            description="EXAMPLE-description-Value",
                            object_version=603,
                            object_status=388,
                            identifier="EXAMPLE-identifier-Value")])]),
    opc_request_id="ABKFIYDSHKDTSFA1BKAN<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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