# 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).

from datetime import datetime
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_dis_application_response = data_integration_client.update_dis_application(
    workspace_id="ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
    dis_application_id="ocid1.test.oc1..<unique_ID>EXAMPLE-disApplicationId-Value",
    update_dis_application_details=oci.data_integration.models.UpdateDisApplicationDetails(
        key="EXAMPLE-key-Value",
        model_type="EXAMPLE-modelType-Value",
        object_version=571,
        model_version="EXAMPLE-modelVersion-Value",
        name="EXAMPLE-name-Value",
        description="EXAMPLE-description-Value",
        application_version=931,
        object_status=961,
        identifier="EXAMPLE-identifier-Value",
        parent_ref=oci.data_integration.models.ParentReference(
            parent="EXAMPLE-parent-Value",
            root_doc_id="ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
        metadata=oci.data_integration.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-05-22T13:18:51.105Z",
                "%Y-%m-%dT%H:%M:%S.%fZ"),
            time_updated=datetime.strptime(
                "2028-07-11T14:19:46.428Z",
                "%Y-%m-%dT%H:%M:%S.%fZ"),
            aggregator_key="EXAMPLE-aggregatorKey-Value",
            aggregator=oci.data_integration.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_8n0YO': 'EXAMPLE_VALUE_TgZWzohtjOLIPoOkC9Nq'},
            registry_version=69,
            labels=["EXAMPLE--Value"],
            is_favorite=False,
            count_statistics=oci.data_integration.models.CountStatistic(
                object_type_count_list=[
                    oci.data_integration.models.CountStatisticSummary(
                        object_type="PROJECT",
                        object_count=357)])),
        display_name="EXAMPLE-displayName-Value",
        freeform_tags={
            'EXAMPLE_KEY_DmZMx': 'EXAMPLE_VALUE_JXgpS8nQtAlPiJUnNMmK'},
        defined_tags={
            'EXAMPLE_KEY_D68L9': {
                'EXAMPLE_KEY_oN3H0': 'EXAMPLE--Value'}},
        lifecycle_state="CREATING"),
    if_match="EXAMPLE-ifMatch-Value",
    opc_request_id="XDPWIJHCUAGLXZFXIVKV<unique_ID>")

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

Was this article helpful?