# 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_data_asset_response = data_connectivity_client.update_data_asset(
    registry_id="ocid1.test.oc1..<unique_ID>EXAMPLE-registryId-Value",
    data_asset_key="EXAMPLE-dataAssetKey-Value",
    update_data_asset_details=oci.data_connectivity.models.UpdateDataAssetDetails(
        properties={
            'EXAMPLE_KEY_UxBhq': 'EXAMPLE--Value'},
        type="EXAMPLE-type-Value",
        model_version="EXAMPLE-modelVersion-Value",
        model_type="EXAMPLE-modelType-Value",
        name="EXAMPLE-name-Value",
        description="EXAMPLE-description-Value",
        object_status=583,
        object_version=363,
        identifier="EXAMPLE-identifier-Value",
        external_key="EXAMPLE-externalKey-Value",
        asset_properties={
            'EXAMPLE_KEY_EGPw0': 'EXAMPLE_VALUE_Y4DUPV9f6URy2yELE8Ti'},
        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=307,
            type_mapping_to={
                        'EXAMPLE_KEY_Ckpv5': 'EXAMPLE_VALUE_Zct4yqHVtSJxK1QcosJE'},
            type_mapping_from={
                'EXAMPLE_KEY_JYHVO': 'EXAMPLE_VALUE_tUuqHkJ01fKAOFkOHRM1'},
            object_status=282,
            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=757,
                    description="EXAMPLE-description-Value",
                    dt_type="PRIMITIVE",
                    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=996,
                                config_parameter_definitions={
                                    'EXAMPLE_KEY_fyOzp': {
                                        'parameterName': 'EXAMPLE-parameterName-Value',
                                        'description': 'EXAMPLE-description-Value',
                                        'defaultValue': 'EXAMPLE-defaultValue-Value',
                                        'classFieldName': 'EXAMPLE-classFieldName-Value',
                                        'isStatic': True,
                                        'isClassFieldValue': True}}))]),
        registry_metadata=oci.data_connectivity.models.RegistryMetadata(
            aggregator_key="EXAMPLE-aggregatorKey-Value",
            labels=["EXAMPLE--Value"],
            registry_version=304,
            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(
                "2016-11-13T21:16:08.046Z",
                "%Y-%m-%dT%H:%M:%S.%fZ"),
            time_updated=datetime.strptime(
                "2043-11-19T10:38:46.446Z",
                "%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-02-26T20:19:26.496Z",
                "%Y-%m-%dT%H:%M:%S.%fZ"),
            time_updated=datetime.strptime(
                "2021-12-02T07:13:08.699Z",
                "%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_AtNiI': 'EXAMPLE_VALUE_CdQJHieA3Es9VKnRN0gX'},
            registry_version=27,
            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=978,
            object_status=66,
            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=485,
                external_key="EXAMPLE-externalKey-Value",
                is_has_containers=False,
                default_connection="EXAMPLE-defaultConnection-Value",
                object_status=792,
                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(
                        "2043-12-01T01:25:03.702Z",
                        "%Y-%m-%dT%H:%M:%S.%fZ"),
                    time_updated=datetime.strptime(
                        "2038-04-19T00:53:59.632Z",
                        "%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_ZEN3a': 'EXAMPLE_VALUE_IW0b4XXuXLX2z15jECrK'},
                    registry_version=249,
                    labels=["EXAMPLE--Value"],
                    is_favorite=True)),
            connection_properties=[
                oci.data_connectivity.models.ConnectionProperty(
                    name="EXAMPLE-name-Value",
                    value="EXAMPLE-value-Value")],
            properties={
                'EXAMPLE_KEY_2p5BD': '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(
                    "2025-11-21T08:36:34.402Z",
                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                time_updated=datetime.strptime(
                    "2038-06-15T18:15:40.999Z",
                    "%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_Ldztc': 'EXAMPLE_VALUE_WW4gBLrQEFFotcN6PFRZ'},
                registry_version=411,
                labels=["EXAMPLE--Value"],
                is_favorite=True),
            registry_metadata=oci.data_connectivity.models.RegistryMetadata(
                aggregator_key="EXAMPLE-aggregatorKey-Value",
                labels=["EXAMPLE--Value"],
                registry_version=898,
                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(
                    "2027-01-24T10:57:27.727Z",
                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                time_updated=datetime.strptime(
                    "2037-01-15T10:39:49.928Z",
                    "%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=917,
                object_status=393,
                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=26,
                        object_version=372,
                        external_key="EXAMPLE-externalKey-Value",
                        asset_properties={
                            'EXAMPLE_KEY_uJzME': 'EXAMPLE_VALUE_Cpz7kpvaBieqxgLZJYFm'},
                        properties={
                            'EXAMPLE_KEY_JISgS': '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=272,
                            type_mapping_to={
                                'EXAMPLE_KEY_wd1zv': 'EXAMPLE_VALUE_I1VqGdH08gkWFzGm4rqo'},
                            type_mapping_from={
                                'EXAMPLE_KEY_Lo1Jn': 'EXAMPLE_VALUE_usdVTLXrwrPyXxs1BVi5'},
                            object_status=380,
                            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=213,
                                    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=446,
                                        config_parameter_definitions={
                                            'EXAMPLE_KEY_rs50W': {
                                                'parameterName': 'EXAMPLE-parameterName-Value',
                                                'description': 'EXAMPLE-description-Value',
                                                'defaultValue': 'EXAMPLE-defaultValue-Value',
                                                'classFieldName': 'EXAMPLE-classFieldName-Value',
                                                'isStatic': False,
                                                'isClassFieldValue': False}}))]),
                        registry_metadata=oci.data_connectivity.models.RegistryMetadata(
                            aggregator_key="EXAMPLE-aggregatorKey-Value",
                            labels=["EXAMPLE--Value"],
                            registry_version=282,
                            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(
                                "2039-09-20T19:23:35.372Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"),
                            time_updated=datetime.strptime(
                                "2048-12-01T18:33:25.547Z",
                                "%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(
                                "2005-04-20T21:38:10.712Z",
                                "%Y-%m-%dT%H:%M:%S.%fZ"),
                            time_updated=datetime.strptime(
                                "2021-05-20T07:21:14.882Z",
                                "%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_MppUv': 'EXAMPLE_VALUE_kA38hWzrb8CnU4cmgf1g'},
                            registry_version=463,
                            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=896,
                            object_status=850,
                            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=183,
                                external_key="EXAMPLE-externalKey-Value",
                                is_has_containers=False,
                                default_connection="EXAMPLE-defaultConnection-Value",
                                object_status=259,
                                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(
                                        "2017-04-03T08:44:53.735Z",
                                        "%Y-%m-%dT%H:%M:%S.%fZ"),
                                    time_updated=datetime.strptime(
                                        "2033-01-27T18:49:26.688Z",
                                        "%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_EFLFM': 'EXAMPLE_VALUE_FZ2WYcA9knh4N4XM5Z1e'},
                                    registry_version=223,
                                    labels=["EXAMPLE--Value"],
                                    is_favorite=False)),
                            connection_properties=[
                                oci.data_connectivity.models.ConnectionProperty(
                                    name="EXAMPLE-name-Value",
                                    value="EXAMPLE-value-Value")],
                            properties={
                                'EXAMPLE_KEY_dQZwR': '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(
                                    "2002-11-22T15:41:59.565Z",
                                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                                time_updated=datetime.strptime(
                                    "2011-02-05T03:34:37.341Z",
                                    "%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_3xybX': 'EXAMPLE_VALUE_6GoqjrpvPLtTCsQtraPQ'},
                                registry_version=205,
                                labels=["EXAMPLE--Value"],
                                is_favorite=False),
                            registry_metadata=oci.data_connectivity.models.RegistryMetadata(
                                aggregator_key="EXAMPLE-aggregatorKey-Value",
                                labels=["EXAMPLE--Value"],
                                registry_version=428,
                                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(
                                    "2030-04-12T20:53:13.535Z",
                                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                                time_updated=datetime.strptime(
                                    "2031-03-19T22:37:24.818Z",
                                    "%Y-%m-%dT%H:%M:%S.%fZ"))))])]),
    opc_request_id="OPHNR4W8JBKHFVY2NTYT<unique_ID>",
    if_match="EXAMPLE-ifMatch-Value")

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