// 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 * as dataintegration from "oci-dataintegration";
import common = require("oci-common");

// Create a default authentication provider that uses the DEFAULT
// profile in the configuration file.
// Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.

const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();

(async () => {
  try {
    // Create a service client
    const client = new dataintegration.DataIntegrationClient({
      authenticationDetailsProvider: provider
    });

    // Create a request and dependent object(s).
    const updateTaskDetails = {
      modelType: "DATA_LOADER_TASK",
      dataFlow: {
        key: "EXAMPLE-key-Value",
        modelType: "EXAMPLE-modelType-Value",
        modelVersion: "EXAMPLE-modelVersion-Value",
        parentRef: {
          parent: "EXAMPLE-parent-Value",
          rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
        },
        name: "EXAMPLE-name-Value",
        identifier: "EXAMPLE-identifier-Value",
        objectVersion: 394,
        nodes: [
          {
            key: "EXAMPLE-key-Value",
            modelType: "EXAMPLE-modelType-Value",
            modelVersion: "EXAMPLE-modelVersion-Value",
            parentRef: {
              parent: "EXAMPLE-parent-Value",
              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
            },
            name: "EXAMPLE-name-Value",
            description: "EXAMPLE-description-Value",
            inputLinks: [
              {
                modelType: "INPUT_LINK",
                fromLink: "EXAMPLE-fromLink-Value",
                fieldMap: {
                  modelType: "COMPOSITE_FIELD_MAP",
                  key: "EXAMPLE-key-Value",
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  configValues: {
                    configParamValues: {
                      EXAMPLE_KEY_QfDLX: {
                        stringValue: "EXAMPLE-stringValue-Value",
                        intValue: 862,
                        objectValue: "EXAMPLE-objectValue-Value",
                        refValue: "EXAMPLE-refValue-Value",
                        parameterValue: "EXAMPLE-parameterValue-Value",
                        rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                      }
                    },
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    }
                  },
                  objectStatus: 638,
                  description: "EXAMPLE-description-Value"
                },
                key: "EXAMPLE-key-Value",
                modelVersion: "EXAMPLE-modelVersion-Value",
                parentRef: {
                  parent: "EXAMPLE-parent-Value",
                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                },
                objectStatus: 507,
                description: "EXAMPLE-description-Value",
                port: "EXAMPLE-port-Value"
              }
            ],
            outputLinks: [
              {
                modelType: "OUTPUT_LINK",
                toLinks: ["EXAMPLE--Value"],
                key: "EXAMPLE-key-Value",
                modelVersion: "EXAMPLE-modelVersion-Value",
                parentRef: {
                  parent: "EXAMPLE-parent-Value",
                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                },
                objectStatus: 509,
                description: "EXAMPLE-description-Value",
                port: "EXAMPLE-port-Value"
              }
            ],
            operator: {
              modelType: "FUNCTION_OPERATOR",
              ociFunction: {
                functionId: "ocid1.test.oc1..<unique_ID>EXAMPLE-functionId-Value",
                regionId: "ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value",
                fnConfigDefinition: {
                  key: "EXAMPLE-key-Value",
                  modelType: "EXAMPLE-modelType-Value",
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  name: "EXAMPLE-name-Value",
                  isContained: true,
                  objectStatus: 228,
                  configParameterDefinitions: {
                    EXAMPLE_KEY_PqU2S: {
                      parameterType: {
                        modelType: "JAVA_TYPE",
                        javaTypeName: "EXAMPLE-javaTypeName-Value",
                        key: "EXAMPLE-key-Value",
                        modelVersion: "EXAMPLE-modelVersion-Value",
                        parentRef: {
                          parent: "EXAMPLE-parent-Value",
                          rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                        },
                        name: "EXAMPLE-name-Value",
                        objectStatus: 496,
                        description: "EXAMPLE-description-Value"
                      },
                      parameterName: "EXAMPLE-parameterName-Value",
                      description: "EXAMPLE-description-Value",
                      defaultValue: "EXAMPLE-defaultValue-Value",
                      classFieldName: "EXAMPLE-classFieldName-Value",
                      isStatic: false,
                      isClassFieldValue: false
                    }
                  }
                },
                inputShape: {
                  modelType: "SHAPE",
                  type: {
                    modelType: "MAP_TYPE",
                    keyElementType: "EXAMPLE-keyElementType-Value",
                    valueElementType: "EXAMPLE-valueElementType-Value",
                    containsNull: true,
                    key: "EXAMPLE-key-Value",
                    modelVersion: "EXAMPLE-modelVersion-Value",
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    },
                    name: "EXAMPLE-name-Value",
                    objectStatus: 262,
                    description: "EXAMPLE-description-Value"
                  },
                  key: "EXAMPLE-key-Value",
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  configValues: {
                    configParamValues: {
                      EXAMPLE_KEY_LoRDr: {
                        stringValue: "EXAMPLE-stringValue-Value",
                        intValue: 507,
                        objectValue: "EXAMPLE-objectValue-Value",
                        refValue: "EXAMPLE-refValue-Value",
                        parameterValue: "EXAMPLE-parameterValue-Value",
                        rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                      }
                    },
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    }
                  },
                  objectStatus: 956,
                  name: "EXAMPLE-name-Value",
                  description: "EXAMPLE-description-Value"
                },
                outputShape: {
                  modelType: "SHAPE",
                  type: {
                    modelType: "DYNAMIC_TYPE",
                    typeHandler: {
                      modelType: "FLATTEN_TYPE_HANDLER",
                      key: "EXAMPLE-key-Value",
                      modelVersion: "EXAMPLE-modelVersion-Value",
                      parentRef: {
                        parent: "EXAMPLE-parent-Value",
                        rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                      },
                      scope: "EXAMPLE-scope-Value",
                      flattenDetails: "EXAMPLE-flattenDetails-Value",
                      configValues: {
                        configParamValues: {
                          EXAMPLE_KEY_csz0p: {
                            stringValue: "EXAMPLE-stringValue-Value",
                            intValue: 1,
                            objectValue: "EXAMPLE-objectValue-Value",
                            refValue: "EXAMPLE-refValue-Value",
                            parameterValue: "EXAMPLE-parameterValue-Value",
                            rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                          }
                        },
                        parentRef: {
                          parent: "EXAMPLE-parent-Value",
                          rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                        }
                      },
                      objectStatus: 574
                    },
                    configDefinition: {
                      key: "EXAMPLE-key-Value",
                      modelType: "EXAMPLE-modelType-Value",
                      modelVersion: "EXAMPLE-modelVersion-Value",
                      parentRef: {
                        parent: "EXAMPLE-parent-Value",
                        rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                      },
                      name: "EXAMPLE-name-Value",
                      isContained: true,
                      objectStatus: 541,
                      configParameterDefinitions: {
                        EXAMPLE_KEY_je3Fl: {
                          parameterName: "EXAMPLE-parameterName-Value",
                          description: "EXAMPLE-description-Value",
                          defaultValue: "EXAMPLE-defaultValue-Value",
                          classFieldName: "EXAMPLE-classFieldName-Value",
                          isStatic: false,
                          isClassFieldValue: true
                        }
                      }
                    },
                    key: "EXAMPLE-key-Value",
                    modelVersion: "EXAMPLE-modelVersion-Value",
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    },
                    name: "EXAMPLE-name-Value",
                    objectStatus: 824,
                    description: "EXAMPLE-description-Value"
                  },
                  key: "EXAMPLE-key-Value",
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  configValues: {
                    configParamValues: {
                      EXAMPLE_KEY_FsdEh: {
                        stringValue: "EXAMPLE-stringValue-Value",
                        intValue: 914,
                        objectValue: "EXAMPLE-objectValue-Value",
                        refValue: "EXAMPLE-refValue-Value",
                        parameterValue: "EXAMPLE-parameterValue-Value",
                        rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                      }
                    },
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    }
                  },
                  objectStatus: 710,
                  name: "EXAMPLE-name-Value",
                  description: "EXAMPLE-description-Value"
                },
                modelType: dataintegration.models.OciFunction.ModelType.OciFunction,
                key: "EXAMPLE-key-Value",
                parentRef: {
                  parent: "EXAMPLE-parent-Value",
                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                },
                modelVersion: "EXAMPLE-modelVersion-Value",
                objectVersion: 932,
                payloadFormat: dataintegration.models.OciFunction.PayloadFormat.Avro,
                fnConfigDef: {
                  key: "EXAMPLE-key-Value",
                  modelType:
                    dataintegration.models.FunctionConfigurationDefinition.ModelType
                      .ConfigDefinition,
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  isContained: true,
                  configParamDefs: {
                    EXAMPLE_KEY_tnDC6: {
                      parameterType: {
                        modelType: "COMPOSITE_TYPE",
                        elements: [
                          {
                            modelType: "PIVOT_FIELD",
                            expr: {
                              key: "EXAMPLE-key-Value",
                              modelType: "EXAMPLE-modelType-Value",
                              modelVersion: "EXAMPLE-modelVersion-Value",
                              parentRef: {
                                parent: "EXAMPLE-parent-Value",
                                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                              },
                              exprString: "EXAMPLE-exprString-Value",
                              configValues: {
                                configParamValues: {
                                  EXAMPLE_KEY_kDjeY: {
                                    stringValue: "EXAMPLE-stringValue-Value",
                                    intValue: 996,
                                    objectValue: "EXAMPLE-objectValue-Value",
                                    refValue: "EXAMPLE-refValue-Value",
                                    parameterValue: "EXAMPLE-parameterValue-Value",
                                    rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                                  }
                                },
                                parentRef: {
                                  parent: "EXAMPLE-parent-Value",
                                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                                }
                              },
                              objectStatus: 196
                            },
                            useType: {
                              modelType: "CONFIGURED_TYPE",
                              wrappedType: "EXAMPLE-wrappedType-Value",
                              configValues: {
                                configParamValues: {
                                  EXAMPLE_KEY_yLx9j: {
                                    stringValue: "EXAMPLE-stringValue-Value",
                                    intValue: 415,
                                    objectValue: "EXAMPLE-objectValue-Value",
                                    refValue: "EXAMPLE-refValue-Value",
                                    parameterValue: "EXAMPLE-parameterValue-Value",
                                    rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                                  }
                                },
                                parentRef: {
                                  parent: "EXAMPLE-parent-Value",
                                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                                }
                              },
                              key: "EXAMPLE-key-Value",
                              modelVersion: "EXAMPLE-modelVersion-Value",
                              parentRef: {
                                parent: "EXAMPLE-parent-Value",
                                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                              },
                              name: "EXAMPLE-name-Value",
                              objectStatus: 536,
                              description: "EXAMPLE-description-Value"
                            },
                            columnNamePattern: "EXAMPLE-columnNamePattern-Value",
                            key: "EXAMPLE-key-Value",
                            modelVersion: "EXAMPLE-modelVersion-Value",
                            parentRef: {
                              parent: "EXAMPLE-parent-Value",
                              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                            },
                            configValues: {
                              configParamValues: {
                                EXAMPLE_KEY_1J1ts: {
                                  stringValue: "EXAMPLE-stringValue-Value",
                                  intValue: 11,
                                  objectValue: "EXAMPLE-objectValue-Value",
                                  refValue: "EXAMPLE-refValue-Value",
                                  parameterValue: "EXAMPLE-parameterValue-Value",
                                  rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                                }
                              },
                              parentRef: {
                                parent: "EXAMPLE-parent-Value",
                                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                              }
                            },
                            objectStatus: 849,
                            name: "EXAMPLE-name-Value",
                            description: "EXAMPLE-description-Value"
                          }
                        ],
                        key: "EXAMPLE-key-Value",
                        modelVersion: "EXAMPLE-modelVersion-Value",
                        parentRef: {
                          parent: "EXAMPLE-parent-Value",
                          rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                        },
                        name: "EXAMPLE-name-Value",
                        objectStatus: 933,
                        description: "EXAMPLE-description-Value"
                      },
                      parameterName: "EXAMPLE-parameterName-Value",
                      description: "EXAMPLE-description-Value",
                      defaultValue: "EXAMPLE-defaultValue-Value",
                      classFieldName: "EXAMPLE-classFieldName-Value",
                      isStatic: true,
                      isClassFieldValue: true
                    }
                  }
                }
              },
              key: "EXAMPLE-key-Value",
              modelVersion: "EXAMPLE-modelVersion-Value",
              parentRef: {
                parent: "EXAMPLE-parent-Value",
                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
              },
              name: "EXAMPLE-name-Value",
              description: "EXAMPLE-description-Value",
              objectVersion: 214,
              inputPorts: [
                {
                  modelType: "INPUT_PORT",
                  portType: dataintegration.models.InputPort.PortType.Model,
                  key: "EXAMPLE-key-Value",
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  configValues: {
                    configParamValues: {
                      EXAMPLE_KEY_JARSy: {
                        stringValue: "EXAMPLE-stringValue-Value",
                        intValue: 161,
                        objectValue: "EXAMPLE-objectValue-Value",
                        refValue: "EXAMPLE-refValue-Value",
                        parameterValue: "EXAMPLE-parameterValue-Value",
                        rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                      }
                    },
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    }
                  },
                  objectStatus: 143,
                  name: "EXAMPLE-name-Value",
                  description: "EXAMPLE-description-Value"
                }
              ],
              outputPorts: [
                {
                  modelType: "DYNAMIC_INPUT_FIELD",
                  type: {
                    modelType: "CONFIGURED_TYPE",
                    wrappedType: "EXAMPLE-wrappedType-Value",
                    configValues: {
                      configParamValues: {
                        EXAMPLE_KEY_EwIfS: {
                          stringValue: "EXAMPLE-stringValue-Value",
                          intValue: 836,
                          objectValue: "EXAMPLE-objectValue-Value",
                          refValue: "EXAMPLE-refValue-Value",
                          parameterValue: "EXAMPLE-parameterValue-Value",
                          rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                        }
                      },
                      parentRef: {
                        parent: "EXAMPLE-parent-Value",
                        rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                      }
                    },
                    configDefinition: {
                      key: "EXAMPLE-key-Value",
                      modelType: "EXAMPLE-modelType-Value",
                      modelVersion: "EXAMPLE-modelVersion-Value",
                      parentRef: {
                        parent: "EXAMPLE-parent-Value",
                        rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                      },
                      name: "EXAMPLE-name-Value",
                      isContained: true,
                      objectStatus: 377,
                      configParameterDefinitions: {
                        EXAMPLE_KEY_hpbum: {
                          parameterName: "EXAMPLE-parameterName-Value",
                          description: "EXAMPLE-description-Value",
                          defaultValue: "EXAMPLE-defaultValue-Value",
                          classFieldName: "EXAMPLE-classFieldName-Value",
                          isStatic: false,
                          isClassFieldValue: false
                        }
                      }
                    },
                    key: "EXAMPLE-key-Value",
                    modelVersion: "EXAMPLE-modelVersion-Value",
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    },
                    name: "EXAMPLE-name-Value",
                    objectStatus: 790,
                    description: "EXAMPLE-description-Value"
                  },
                  labels: ["EXAMPLE--Value"],
                  key: "EXAMPLE-key-Value",
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  configValues: {
                    configParamValues: {
                      EXAMPLE_KEY_j4jTV: {
                        stringValue: "EXAMPLE-stringValue-Value",
                        intValue: 683,
                        objectValue: "EXAMPLE-objectValue-Value",
                        refValue: "EXAMPLE-refValue-Value",
                        parameterValue: "EXAMPLE-parameterValue-Value",
                        rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                      }
                    },
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    }
                  },
                  objectStatus: 604,
                  name: "EXAMPLE-name-Value",
                  description: "EXAMPLE-description-Value"
                }
              ],
              objectStatus: 590,
              identifier: "EXAMPLE-identifier-Value",
              parameters: [
                {
                  modelType: "PARAMETER",
                  type: "EXAMPLE-type-Value",
                  defaultValue: "EXAMPLE-defaultValue-Value",
                  rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
                  isInput: false,
                  isOutput: false,
                  outputAggregationType: dataintegration.models.Parameter.OutputAggregationType.Max,
                  typeName: "EXAMPLE-typeName-Value",
                  usedFor: "EXAMPLE-usedFor-Value",
                  key: "EXAMPLE-key-Value",
                  modelVersion: "EXAMPLE-modelVersion-Value",
                  parentRef: {
                    parent: "EXAMPLE-parent-Value",
                    rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                  },
                  configValues: {
                    configParamValues: {
                      EXAMPLE_KEY_RAV4L: {
                        stringValue: "EXAMPLE-stringValue-Value",
                        intValue: 847,
                        objectValue: "EXAMPLE-objectValue-Value",
                        refValue: "EXAMPLE-refValue-Value",
                        parameterValue: "EXAMPLE-parameterValue-Value",
                        rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                      }
                    },
                    parentRef: {
                      parent: "EXAMPLE-parent-Value",
                      rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                    }
                  },
                  objectStatus: 802,
                  name: "EXAMPLE-name-Value",
                  description: "EXAMPLE-description-Value"
                }
              ],
              opConfigValues: {
                configParamValues: {
                  EXAMPLE_KEY_VmBGQ: {
                    stringValue: "EXAMPLE-stringValue-Value",
                    intValue: 986,
                    objectValue: "EXAMPLE-objectValue-Value",
                    refValue: "EXAMPLE-refValue-Value",
                    parameterValue: "EXAMPLE-parameterValue-Value",
                    rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                  }
                },
                parentRef: {
                  parent: "EXAMPLE-parent-Value",
                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                }
              }
            },
            uiProperties: {
              coordinateX: 6859.5034,
              coordinateY: 3341.6533
            },
            objectStatus: 177
          }
        ],
        parameters: [
          {
            modelType: "PARAMETER",
            type: "EXAMPLE-type-Value",
            defaultValue: "EXAMPLE-defaultValue-Value",
            rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
            isInput: false,
            isOutput: false,
            outputAggregationType: dataintegration.models.Parameter.OutputAggregationType.Count,
            typeName: "EXAMPLE-typeName-Value",
            usedFor: "EXAMPLE-usedFor-Value",
            key: "EXAMPLE-key-Value",
            modelVersion: "EXAMPLE-modelVersion-Value",
            parentRef: {
              parent: "EXAMPLE-parent-Value",
              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
            },
            configValues: {
              configParamValues: {
                EXAMPLE_KEY_libNX: {
                  stringValue: "EXAMPLE-stringValue-Value",
                  intValue: 553,
                  objectValue: "EXAMPLE-objectValue-Value",
                  refValue: "EXAMPLE-refValue-Value",
                  parameterValue: "EXAMPLE-parameterValue-Value",
                  rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                }
              },
              parentRef: {
                parent: "EXAMPLE-parent-Value",
                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
              }
            },
            objectStatus: 992,
            name: "EXAMPLE-name-Value",
            description: "EXAMPLE-description-Value"
          }
        ],
        description: "EXAMPLE-description-Value",
        flowConfigValues: {
          configParamValues: {
            EXAMPLE_KEY_YKTsW: {
              stringValue: "EXAMPLE-stringValue-Value",
              intValue: 727,
              objectValue: "EXAMPLE-objectValue-Value",
              refValue: "EXAMPLE-refValue-Value",
              parameterValue: "EXAMPLE-parameterValue-Value",
              rootObjectValue: "EXAMPLE-rootObjectValue-Value"
            }
          },
          parentRef: {
            parent: "EXAMPLE-parent-Value",
            rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
          }
        },
        objectStatus: 957,
        metadata: {
          createdBy: "EXAMPLE-createdBy-Value",
          createdByName: "EXAMPLE-createdByName-Value",
          updatedBy: "EXAMPLE-updatedBy-Value",
          updatedByName: "EXAMPLE-updatedByName-Value",
          timeCreated: new Date("Mon Jul 12 05:56:43 UTC 2010"),
          timeUpdated: new Date("Sun Mar 23 10:23:01 UTC 2014"),
          aggregatorKey: "EXAMPLE-aggregatorKey-Value",
          aggregator: {
            type: "EXAMPLE-type-Value",
            key: "EXAMPLE-key-Value",
            name: "EXAMPLE-name-Value",
            identifier: "EXAMPLE-identifier-Value",
            description: "EXAMPLE-description-Value"
          },
          identifierPath: "EXAMPLE-identifierPath-Value",
          infoFields: {
            EXAMPLE_KEY_dyLcU: "EXAMPLE_VALUE_UvGyIBdZxuwNFxYRLTcc"
          },
          registryVersion: 241,
          labels: ["EXAMPLE--Value"],
          isFavorite: true,
          countStatistics: {
            objectTypeCountList: [
              {
                objectType: dataintegration.models.CountStatisticSummary.ObjectType.Task,
                objectCount: 172
              }
            ]
          }
        },
        keyMap: {
          EXAMPLE_KEY_S4XFw: "EXAMPLE_VALUE_Bh9nFgo09PYhY6gQffof"
        },
        typedObjectMap: {
          EXAMPLE_KEY_OW9Va: {
            typedObject: {
              modelType: "FIELD",
              key: "EXAMPLE-key-Value",
              modelVersion: "EXAMPLE-modelVersion-Value",
              parentRef: {
                parent: "EXAMPLE-parent-Value",
                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
              },
              configValues: {
                configParamValues: {
                  EXAMPLE_KEY_1BD7O: {
                    stringValue: "EXAMPLE-stringValue-Value",
                    intValue: 813,
                    objectValue: "EXAMPLE-objectValue-Value",
                    refValue: "EXAMPLE-refValue-Value",
                    parameterValue: "EXAMPLE-parameterValue-Value",
                    rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                  }
                },
                parentRef: {
                  parent: "EXAMPLE-parent-Value",
                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                }
              },
              objectStatus: 819,
              name: "EXAMPLE-name-Value",
              description: "EXAMPLE-description-Value"
            }
          }
        },
        targetFieldMapSummary: {
          EXAMPLE_KEY_hEx1D: {
            fieldMap: {
              modelType: "DIRECT_FIELD_MAP",
              key: "EXAMPLE-key-Value",
              modelVersion: "EXAMPLE-modelVersion-Value",
              parentRef: {
                parent: "EXAMPLE-parent-Value",
                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
              },
              configValues: {
                configParamValues: {
                  EXAMPLE_KEY_LCiqP: {
                    stringValue: "EXAMPLE-stringValue-Value",
                    intValue: 608,
                    objectValue: "EXAMPLE-objectValue-Value",
                    refValue: "EXAMPLE-refValue-Value",
                    parameterValue: "EXAMPLE-parameterValue-Value",
                    rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                  }
                },
                parentRef: {
                  parent: "EXAMPLE-parent-Value",
                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                }
              },
              sourceTypedObject: "EXAMPLE-sourceTypedObject-Value",
              targetTypedObject: "EXAMPLE-targetTypedObject-Value",
              sourceScopeReference: {
                referenceObject: "EXAMPLE-referenceObject-Value",
                referenceType:
                  dataintegration.models.ScopeReference.ReferenceType.OciFunctionInputShape,
                refObjectName: "EXAMPLE-refObjectName-Value"
              },
              targetScopeReference: {
                referenceObject: "EXAMPLE-referenceObject-Value",
                referenceType:
                  dataintegration.models.ScopeReference.ReferenceType.OciFunctionInputShape,
                refObjectName: "EXAMPLE-refObjectName-Value"
              },
              objectStatus: 760,
              description: "EXAMPLE-description-Value"
            }
          }
        }
      },
      conditionalCompositeFieldMap: {
        modelType: "CONDITIONAL_COMPOSITE_FIELD_MAP",
        fieldMapScope: [
          {
            modelType: "GROUPED_NAME_PATTERN_RULE",
            name: "EXAMPLE-name-Value",
            isSkipRemainingRulesOnMatch: true,
            scope: "EXAMPLE-scope-Value",
            isCascade: true,
            matchingStrategy:
              dataintegration.models.GroupedNamePatternRule.MatchingStrategy.TagsOnly,
            isCaseSensitive: true,
            ruleType: dataintegration.models.GroupedNamePatternRule.RuleType.Exclude,
            pattern: "EXAMPLE-pattern-Value",
            key: "EXAMPLE-key-Value",
            modelVersion: "EXAMPLE-modelVersion-Value",
            parentRef: {
              parent: "EXAMPLE-parent-Value",
              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
            },
            isJavaRegexSyntax: true,
            configValues: {
              configParamValues: {
                EXAMPLE_KEY_lZIux: {
                  stringValue: "EXAMPLE-stringValue-Value",
                  intValue: 331,
                  objectValue: "EXAMPLE-objectValue-Value",
                  refValue: "EXAMPLE-refValue-Value",
                  parameterValue: "EXAMPLE-parameterValue-Value",
                  rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                }
              },
              parentRef: {
                parent: "EXAMPLE-parent-Value",
                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
              }
            },
            objectStatus: 241,
            description: "EXAMPLE-description-Value"
          }
        ],
        key: "EXAMPLE-key-Value",
        modelVersion: "EXAMPLE-modelVersion-Value",
        parentRef: {
          parent: "EXAMPLE-parent-Value",
          rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
        },
        configValues: {
          configParamValues: {
            EXAMPLE_KEY_pJbgi: {
              stringValue: "EXAMPLE-stringValue-Value",
              intValue: 851,
              objectValue: "EXAMPLE-objectValue-Value",
              refValue: "EXAMPLE-refValue-Value",
              parameterValue: "EXAMPLE-parameterValue-Value",
              rootObjectValue: "EXAMPLE-rootObjectValue-Value"
            }
          },
          parentRef: {
            parent: "EXAMPLE-parent-Value",
            rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
          }
        },
        objectStatus: 138,
        fieldMaps: [
          {
            modelType: "DIRECT_FIELD_MAP",
            key: "EXAMPLE-key-Value",
            modelVersion: "EXAMPLE-modelVersion-Value",
            parentRef: {
              parent: "EXAMPLE-parent-Value",
              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
            },
            configValues: {
              configParamValues: {
                EXAMPLE_KEY_Ggs1t: {
                  stringValue: "EXAMPLE-stringValue-Value",
                  intValue: 633,
                  objectValue: "EXAMPLE-objectValue-Value",
                  refValue: "EXAMPLE-refValue-Value",
                  parameterValue: "EXAMPLE-parameterValue-Value",
                  rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                }
              },
              parentRef: {
                parent: "EXAMPLE-parent-Value",
                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
              }
            },
            sourceTypedObject: "EXAMPLE-sourceTypedObject-Value",
            targetTypedObject: "EXAMPLE-targetTypedObject-Value",
            sourceScopeReference: {
              referenceObject: "EXAMPLE-referenceObject-Value",
              referenceType:
                dataintegration.models.ScopeReference.ReferenceType.OciFunctionOutputShape,
              refObjectName: "EXAMPLE-refObjectName-Value"
            },
            targetScopeReference: {
              referenceObject: "EXAMPLE-referenceObject-Value",
              referenceType:
                dataintegration.models.ScopeReference.ReferenceType.BoundEntityShapeField,
              refObjectName: "EXAMPLE-refObjectName-Value"
            },
            objectStatus: 981,
            description: "EXAMPLE-description-Value"
          }
        ],
        description: "EXAMPLE-description-Value"
      },
      isSingleLoad: true,
      parallelLoadLimit: 922,
      key: "EXAMPLE-key-Value",
      modelVersion: "EXAMPLE-modelVersion-Value",
      parentRef: {
        parent: "EXAMPLE-parent-Value",
        rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
      },
      name: "EXAMPLE-name-Value",
      description: "EXAMPLE-description-Value",
      objectStatus: 77,
      objectVersion: 999,
      identifier: "EXAMPLE-identifier-Value",
      inputPorts: [
        {
          modelType: "INPUT_PORT",
          portType: dataintegration.models.InputPort.PortType.Model,
          fields: [
            {
              modelType: "OUTPUT_PORT",
              portType: dataintegration.models.OutputPort.PortType.Model,
              key: "EXAMPLE-key-Value",
              modelVersion: "EXAMPLE-modelVersion-Value",
              parentRef: {
                parent: "EXAMPLE-parent-Value",
                rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
              },
              configValues: {
                configParamValues: {
                  EXAMPLE_KEY_rR05O: {
                    stringValue: "EXAMPLE-stringValue-Value",
                    intValue: 301,
                    objectValue: "EXAMPLE-objectValue-Value",
                    refValue: "EXAMPLE-refValue-Value",
                    parameterValue: "EXAMPLE-parameterValue-Value",
                    rootObjectValue: "EXAMPLE-rootObjectValue-Value"
                  }
                },
                parentRef: {
                  parent: "EXAMPLE-parent-Value",
                  rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
                }
              },
              objectStatus: 844,
              name: "EXAMPLE-name-Value",
              description: "EXAMPLE-description-Value"
            }
          ],
          key: "EXAMPLE-key-Value",
          modelVersion: "EXAMPLE-modelVersion-Value",
          parentRef: {
            parent: "EXAMPLE-parent-Value",
            rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
          },
          configValues: {
            configParamValues: {
              EXAMPLE_KEY_GdqYF: {
                stringValue: "EXAMPLE-stringValue-Value",
                intValue: 16,
                objectValue: "EXAMPLE-objectValue-Value",
                refValue: "EXAMPLE-refValue-Value",
                parameterValue: "EXAMPLE-parameterValue-Value",
                rootObjectValue: "EXAMPLE-rootObjectValue-Value"
              }
            },
            parentRef: {
              parent: "EXAMPLE-parent-Value",
              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
            }
          },
          objectStatus: 317,
          name: "EXAMPLE-name-Value",
          description: "EXAMPLE-description-Value"
        }
      ],
      outputPorts: [
        {
          modelType: "OUTPUT_PORT",
          portType: dataintegration.models.OutputPort.PortType.Data,
          key: "EXAMPLE-key-Value",
          modelVersion: "EXAMPLE-modelVersion-Value",
          parentRef: {
            parent: "EXAMPLE-parent-Value",
            rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
          },
          configValues: {
            configParamValues: {
              EXAMPLE_KEY_lErr4: {
                stringValue: "EXAMPLE-stringValue-Value",
                intValue: 999,
                objectValue: "EXAMPLE-objectValue-Value",
                refValue: "EXAMPLE-refValue-Value",
                parameterValue: "EXAMPLE-parameterValue-Value",
                rootObjectValue: "EXAMPLE-rootObjectValue-Value"
              }
            },
            parentRef: {
              parent: "EXAMPLE-parent-Value",
              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
            }
          },
          objectStatus: 382,
          name: "EXAMPLE-name-Value",
          description: "EXAMPLE-description-Value"
        }
      ],
      parameters: [
        {
          modelType: "PARAMETER",
          type: "EXAMPLE-type-Value",
          defaultValue: "EXAMPLE-defaultValue-Value",
          rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
          isInput: true,
          isOutput: false,
          outputAggregationType: dataintegration.models.Parameter.OutputAggregationType.Sum,
          typeName: "EXAMPLE-typeName-Value",
          usedFor: "EXAMPLE-usedFor-Value",
          key: "EXAMPLE-key-Value",
          modelVersion: "EXAMPLE-modelVersion-Value",
          parentRef: {
            parent: "EXAMPLE-parent-Value",
            rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
          },
          configValues: {
            configParamValues: {
              EXAMPLE_KEY_6iUO8: {
                stringValue: "EXAMPLE-stringValue-Value",
                intValue: 189,
                objectValue: "EXAMPLE-objectValue-Value",
                refValue: "EXAMPLE-refValue-Value",
                parameterValue: "EXAMPLE-parameterValue-Value",
                rootObjectValue: "EXAMPLE-rootObjectValue-Value"
              }
            },
            parentRef: {
              parent: "EXAMPLE-parent-Value",
              rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
            }
          },
          objectStatus: 559,
          name: "EXAMPLE-name-Value",
          description: "EXAMPLE-description-Value"
        }
      ],
      opConfigValues: {
        configParamValues: {
          EXAMPLE_KEY_NN9ll: {
            stringValue: "EXAMPLE-stringValue-Value",
            intValue: 528,
            objectValue: "EXAMPLE-objectValue-Value",
            refValue: "EXAMPLE-refValue-Value",
            parameterValue: "EXAMPLE-parameterValue-Value",
            rootObjectValue: "EXAMPLE-rootObjectValue-Value"
          }
        },
        parentRef: {
          parent: "EXAMPLE-parent-Value",
          rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
        }
      },
      isConcurrentAllowed: true,
      registryMetadata: {
        aggregatorKey: "EXAMPLE-aggregatorKey-Value",
        labels: ["EXAMPLE--Value"],
        registryVersion: 485,
        key: "EXAMPLE-key-Value",
        isFavorite: false
      }
    };

    const updateTaskRequest: dataintegration.requests.UpdateTaskRequest = {
      workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
      taskKey: "EXAMPLE-taskKey-Value",
      updateTaskDetails: updateTaskDetails,
      opcRequestId: "NB0AS4NV2UM0VYCUDLMV<unique_ID>",
      ifMatch: "EXAMPLE-ifMatch-Value"
    };

    // Send request to the Client.
    const updateTaskResponse = await client.updateTask(updateTaskRequest);
  } catch (error) {
    console.log("updateTask Failed with error  " + error);
  }
})();