# 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
update_folder_response = data_connectivity_client.update_folder(
    registry_id="ocid1.test.oc1..<unique_ID>EXAMPLE-registryId-Value",
    folder_key="EXAMPLE-folderKey-Value",
    update_folder_details=oci.data_connectivity.models.UpdateFolderDetails(
        model_type="EXAMPLE-modelType-Value",
        key="EXAMPLE-key-Value",
        object_version=922,
        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_status=923,
        identifier="EXAMPLE-identifier-Value",
        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=477,
                    object_version=343,
                    external_key="EXAMPLE-externalKey-Value",
                    asset_properties={
                        'EXAMPLE_KEY_ygvtY': 'EXAMPLE_VALUE_nDBBcA7Lz9bIgesTFgul'},
                    properties={
                        'EXAMPLE_KEY_uAVGd': '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=37,
                        type_mapping_to={
                                    'EXAMPLE_KEY_oKvgu': 'EXAMPLE_VALUE_yCVOE0ZFZwWHHa8z9tuj'},
                        type_mapping_from={
                            'EXAMPLE_KEY_GBBO0': 'EXAMPLE_VALUE_B1hfLfskvjZtrGPDQjPI'},
                        object_status=692,
                        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=851,
                                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=False,
                                            object_status=505,
                                            config_parameter_definitions={
                                                'EXAMPLE_KEY_AWOTQ': {
                                                    '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=562,
                        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(
                            "2029-03-21T15:09:56.608Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"),
                        time_updated=datetime.strptime(
                            "2012-02-29T15:20:27.748Z",
                            "%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(
                            "2039-12-24T18:38:35.252Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"),
                        time_updated=datetime.strptime(
                            "2036-08-13T01:16:26.247Z",
                            "%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_QiWfd': 'EXAMPLE_VALUE_DbE9um746vg8624PUBf5'},
                        registry_version=802,
                        labels=["EXAMPLE--Value"],
                        is_favorite=True),
                    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=153,
                        object_status=637,
                        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=794,
                            external_key="EXAMPLE-externalKey-Value",
                            is_has_containers=True,
                            default_connection="EXAMPLE-defaultConnection-Value",
                            object_status=40,
                            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(
                                    "2011-03-20T12:34:07.997Z",
                                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                                time_updated=datetime.strptime(
                                    "2034-12-18T09:15:41.552Z",
                                    "%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_2RHk7': 'EXAMPLE_VALUE_xMKp6G6xMkJ51TbP579J'},
                                registry_version=509,
                                labels=["EXAMPLE--Value"],
                                is_favorite=False)),
                        connection_properties=[
                            oci.data_connectivity.models.ConnectionProperty(
                                name="EXAMPLE-name-Value",
                                value="EXAMPLE-value-Value")],
                        properties={
                            'EXAMPLE_KEY_zteUO': '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(
                                "2027-02-01T20:52:06.854Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"),
                            time_updated=datetime.strptime(
                                "2031-05-21T04:43:06.413Z",
                                "%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_uMPeu': 'EXAMPLE_VALUE_ClqvMmXmH27LZvX2NqbQ'},
                            registry_version=826,
                            labels=["EXAMPLE--Value"],
                            is_favorite=True),
                        registry_metadata=oci.data_connectivity.models.RegistryMetadata(
                            aggregator_key="EXAMPLE-aggregatorKey-Value",
                            labels=["EXAMPLE--Value"],
                            registry_version=41,
                            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(
                                "2043-03-18T09:20:57.892Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"),
                            time_updated=datetime.strptime(
                                "2008-08-11T00:22:34.709Z",
                                "%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=814,
                            object_status=383,
                            identifier="EXAMPLE-identifier-Value")])]),
    opc_request_id="FM8FXQRTS65SFXJB66SR<unique_ID>",
    if_match="EXAMPLE-ifMatch-Value")

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