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

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Oci.DataintegrationService;
using Oci.Common;
using Oci.Common.Auth;

namespace Oci.Sdk.DotNet.Example.Dataintegration
{
    public class UpdateTaskExample
    {
        public static async Task Main()
        {
            // Create a request and dependent object(s).
			var updateTaskDetails = new Oci.DataintegrationService.Models.UpdateTaskFromPipelineTask
			{
				Pipeline = new Oci.DataintegrationService.Models.Pipeline
				{
					Key = "EXAMPLE-key-Value",
					ModelVersion = "EXAMPLE-modelVersion-Value",
					ParentRef = new Oci.DataintegrationService.Models.ParentReference
					{
						Parent = "EXAMPLE-parent-Value",
						RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
					},
					Name = "EXAMPLE-name-Value",
					Description = "EXAMPLE-description-Value",
					ModelType = "EXAMPLE-modelType-Value",
					ObjectVersion = 949,
					ObjectStatus = 628,
					Identifier = "EXAMPLE-identifier-Value",
					Nodes = new List<Oci.DataintegrationService.Models.FlowNode>
					{
						new Oci.DataintegrationService.Models.FlowNode
						{
							Key = "EXAMPLE-key-Value",
							ModelType = "EXAMPLE-modelType-Value",
							ModelVersion = "EXAMPLE-modelVersion-Value",
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							},
							Name = "EXAMPLE-name-Value",
							Description = "EXAMPLE-description-Value",
							InputLinks = new List<Oci.DataintegrationService.Models.InputLink>
							{
								new Oci.DataintegrationService.Models.InputLink
								{
									FromLink = "EXAMPLE-fromLink-Value",
									FieldMap = new Oci.DataintegrationService.Models.ConditionalCompositeFieldMap
									{
										FieldMapScope = new List<Oci.DataintegrationService.Models.ProjectionRule>
										{
											new Oci.DataintegrationService.Models.NamePatternRule
											{
												IsSkipRemainingRulesOnMatch = false,
												Scope = "EXAMPLE-scope-Value",
												IsCascade = true,
												MatchingStrategy = Oci.DataintegrationService.Models.NamePatternRule.MatchingStrategyEnum.NameOrTags,
												IsCaseSensitive = true,
												RuleType = Oci.DataintegrationService.Models.NamePatternRule.RuleTypeEnum.Exclude,
												Pattern = "EXAMPLE-pattern-Value",
												Key = "EXAMPLE-key-Value",
												ModelVersion = "EXAMPLE-modelVersion-Value",
												ParentRef = new Oci.DataintegrationService.Models.ParentReference
												{
													Parent = "EXAMPLE-parent-Value",
													RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
												},
												IsJavaRegexSyntax = true,
												ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
												{
													ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
													{
														{
															"EXAMPLE_KEY_FoicT", 
															new Oci.DataintegrationService.Models.ConfigParameterValue
															{
																StringValue = "EXAMPLE-stringValue-Value",
																IntValue = 948,
																ObjectValue = "EXAMPLE-objectValue-Value",
																RefValue = "EXAMPLE-refValue-Value",
																ParameterValue = "EXAMPLE-parameterValue-Value",
																RootObjectValue = "EXAMPLE-rootObjectValue-Value"
															}
														}
													},
													ParentRef = new Oci.DataintegrationService.Models.ParentReference
													{
														Parent = "EXAMPLE-parent-Value",
														RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
													}
												},
												ObjectStatus = 285,
												Description = "EXAMPLE-description-Value"
											}
										},
										Key = "EXAMPLE-key-Value",
										ModelVersion = "EXAMPLE-modelVersion-Value",
										ParentRef = new Oci.DataintegrationService.Models.ParentReference
										{
											Parent = "EXAMPLE-parent-Value",
											RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
										},
										ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
										{
											ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
											{
												{
													"EXAMPLE_KEY_lKn4p", 
													new Oci.DataintegrationService.Models.ConfigParameterValue
													{
														StringValue = "EXAMPLE-stringValue-Value",
														IntValue = 537,
														ObjectValue = "EXAMPLE-objectValue-Value",
														RefValue = "EXAMPLE-refValue-Value",
														ParameterValue = "EXAMPLE-parameterValue-Value",
														RootObjectValue = "EXAMPLE-rootObjectValue-Value"
													}
												}
											},
											ParentRef = new Oci.DataintegrationService.Models.ParentReference
											{
												Parent = "EXAMPLE-parent-Value",
												RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
											}
										},
										ObjectStatus = 182,
										Description = "EXAMPLE-description-Value"
									},
									Key = "EXAMPLE-key-Value",
									ModelVersion = "EXAMPLE-modelVersion-Value",
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									},
									ObjectStatus = 464,
									Description = "EXAMPLE-description-Value",
									Port = "EXAMPLE-port-Value"
								}
							},
							OutputLinks = new List<Oci.DataintegrationService.Models.OutputLink>
							{
								new Oci.DataintegrationService.Models.OutputLink
								{
									ToLinks = new List<string>
									{
										"EXAMPLE--Value"
									},
									Key = "EXAMPLE-key-Value",
									ModelVersion = "EXAMPLE-modelVersion-Value",
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									},
									ObjectStatus = 755,
									Description = "EXAMPLE-description-Value",
									Port = "EXAMPLE-port-Value"
								}
							},
							Operator = new Oci.DataintegrationService.Models.DecisionOperator
							{
								TriggerRule = Oci.DataintegrationService.Models.DecisionOperator.TriggerRuleEnum.AllSuccess,
								Key = "EXAMPLE-key-Value",
								ModelVersion = "EXAMPLE-modelVersion-Value",
								ParentRef = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								},
								Name = "EXAMPLE-name-Value",
								Description = "EXAMPLE-description-Value",
								ObjectVersion = 570,
								InputPorts = new List<Oci.DataintegrationService.Models.InputPort>
								{
									new Oci.DataintegrationService.Models.InputPort
									{
										PortType = Oci.DataintegrationService.Models.InputPort.PortTypeEnum.Control,
										Fields = new List<Oci.DataintegrationService.Models.TypedObject>
										{
											new Oci.DataintegrationService.Models.FlowPort
											{
												Key = "EXAMPLE-key-Value",
												ModelVersion = "EXAMPLE-modelVersion-Value",
												ParentRef = new Oci.DataintegrationService.Models.ParentReference
												{
													Parent = "EXAMPLE-parent-Value",
													RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
												},
												ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
												{
													ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
													{
														{
															"EXAMPLE_KEY_APd1S", 
															new Oci.DataintegrationService.Models.ConfigParameterValue
															{
																StringValue = "EXAMPLE-stringValue-Value",
																IntValue = 980,
																ObjectValue = "EXAMPLE-objectValue-Value",
																RefValue = "EXAMPLE-refValue-Value",
																ParameterValue = "EXAMPLE-parameterValue-Value",
																RootObjectValue = "EXAMPLE-rootObjectValue-Value"
															}
														}
													},
													ParentRef = new Oci.DataintegrationService.Models.ParentReference
													{
														Parent = "EXAMPLE-parent-Value",
														RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
													}
												},
												ObjectStatus = 63,
												Name = "EXAMPLE-name-Value",
												Description = "EXAMPLE-description-Value"
											}
										},
										Key = "EXAMPLE-key-Value",
										ModelVersion = "EXAMPLE-modelVersion-Value",
										ParentRef = new Oci.DataintegrationService.Models.ParentReference
										{
											Parent = "EXAMPLE-parent-Value",
											RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
										},
										ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
										{
											ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
											{
												{
													"EXAMPLE_KEY_ycWew", 
													new Oci.DataintegrationService.Models.ConfigParameterValue
													{
														StringValue = "EXAMPLE-stringValue-Value",
														IntValue = 414,
														ObjectValue = "EXAMPLE-objectValue-Value",
														RefValue = "EXAMPLE-refValue-Value",
														ParameterValue = "EXAMPLE-parameterValue-Value",
														RootObjectValue = "EXAMPLE-rootObjectValue-Value"
													}
												}
											},
											ParentRef = new Oci.DataintegrationService.Models.ParentReference
											{
												Parent = "EXAMPLE-parent-Value",
												RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
											}
										},
										ObjectStatus = 825,
										Name = "EXAMPLE-name-Value",
										Description = "EXAMPLE-description-Value"
									}
								},
								OutputPorts = new List<Oci.DataintegrationService.Models.TypedObject>
								{
									new Oci.DataintegrationService.Models.TypedExpression
									{
										Expression = "EXAMPLE-expression-Value",
										Type = "EXAMPLE-type-Value",
										Key = "EXAMPLE-key-Value",
										ModelVersion = "EXAMPLE-modelVersion-Value",
										ParentRef = new Oci.DataintegrationService.Models.ParentReference
										{
											Parent = "EXAMPLE-parent-Value",
											RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
										},
										ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
										{
											ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
											{
												{
													"EXAMPLE_KEY_hpANC", 
													new Oci.DataintegrationService.Models.ConfigParameterValue
													{
														StringValue = "EXAMPLE-stringValue-Value",
														IntValue = 400,
														ObjectValue = "EXAMPLE-objectValue-Value",
														RefValue = "EXAMPLE-refValue-Value",
														ParameterValue = "EXAMPLE-parameterValue-Value",
														RootObjectValue = "EXAMPLE-rootObjectValue-Value"
													}
												}
											},
											ParentRef = new Oci.DataintegrationService.Models.ParentReference
											{
												Parent = "EXAMPLE-parent-Value",
												RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
											}
										},
										ObjectStatus = 317,
										Name = "EXAMPLE-name-Value",
										Description = "EXAMPLE-description-Value"
									}
								},
								ObjectStatus = 350,
								Identifier = "EXAMPLE-identifier-Value",
								Parameters = new List<Oci.DataintegrationService.Models.Parameter>
								{
									new Oci.DataintegrationService.Models.Parameter
									{
										Type = "EXAMPLE-type-Value",
										DefaultValue = "EXAMPLE-defaultValue-Value",
										RootObjectDefaultValue = "EXAMPLE-rootObjectDefaultValue-Value",
										IsInput = false,
										IsOutput = true,
										OutputAggregationType = Oci.DataintegrationService.Models.Parameter.OutputAggregationTypeEnum.Count,
										TypeName = "EXAMPLE-typeName-Value",
										UsedFor = "EXAMPLE-usedFor-Value",
										Key = "EXAMPLE-key-Value",
										ModelVersion = "EXAMPLE-modelVersion-Value",
										ParentRef = new Oci.DataintegrationService.Models.ParentReference
										{
											Parent = "EXAMPLE-parent-Value",
											RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
										},
										ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
										{
											ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
											{
												{
													"EXAMPLE_KEY_jk5BI", 
													new Oci.DataintegrationService.Models.ConfigParameterValue
													{
														StringValue = "EXAMPLE-stringValue-Value",
														IntValue = 297,
														ObjectValue = "EXAMPLE-objectValue-Value",
														RefValue = "EXAMPLE-refValue-Value",
														ParameterValue = "EXAMPLE-parameterValue-Value",
														RootObjectValue = "EXAMPLE-rootObjectValue-Value"
													}
												}
											},
											ParentRef = new Oci.DataintegrationService.Models.ParentReference
											{
												Parent = "EXAMPLE-parent-Value",
												RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
											}
										},
										ObjectStatus = 232,
										Name = "EXAMPLE-name-Value",
										Description = "EXAMPLE-description-Value"
									}
								},
								OpConfigValues = new Oci.DataintegrationService.Models.ConfigValues
								{
									ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
									{
										{
											"EXAMPLE_KEY_RgJwh", 
											new Oci.DataintegrationService.Models.ConfigParameterValue
											{
												StringValue = "EXAMPLE-stringValue-Value",
												IntValue = 328,
												ObjectValue = "EXAMPLE-objectValue-Value",
												RefValue = "EXAMPLE-refValue-Value",
												ParameterValue = "EXAMPLE-parameterValue-Value",
												RootObjectValue = "EXAMPLE-rootObjectValue-Value"
											}
										}
									},
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									}
								}
							},
							UiProperties = new Oci.DataintegrationService.Models.UIProperties
							{
								CoordinateX = new System.Decimal
								{
								},
								CoordinateY = new System.Decimal
								{
								}
							},
							ObjectStatus = 355
						}
					},
					Parameters = new List<Oci.DataintegrationService.Models.Parameter>
					{
						new Oci.DataintegrationService.Models.Parameter
						{
							Type = "EXAMPLE-type-Value",
							DefaultValue = "EXAMPLE-defaultValue-Value",
							RootObjectDefaultValue = "EXAMPLE-rootObjectDefaultValue-Value",
							IsInput = false,
							IsOutput = false,
							OutputAggregationType = Oci.DataintegrationService.Models.Parameter.OutputAggregationTypeEnum.Max,
							TypeName = "EXAMPLE-typeName-Value",
							UsedFor = "EXAMPLE-usedFor-Value",
							Key = "EXAMPLE-key-Value",
							ModelVersion = "EXAMPLE-modelVersion-Value",
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							},
							ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
							{
								ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
								{
									{
										"EXAMPLE_KEY_kV8QS", 
										new Oci.DataintegrationService.Models.ConfigParameterValue
										{
											StringValue = "EXAMPLE-stringValue-Value",
											IntValue = 944,
											ObjectValue = "EXAMPLE-objectValue-Value",
											RefValue = "EXAMPLE-refValue-Value",
											ParameterValue = "EXAMPLE-parameterValue-Value",
											RootObjectValue = "EXAMPLE-rootObjectValue-Value"
										}
									}
								},
								ParentRef = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								}
							},
							ObjectStatus = 690,
							Name = "EXAMPLE-name-Value",
							Description = "EXAMPLE-description-Value"
						}
					},
					FlowConfigValues = new Oci.DataintegrationService.Models.ConfigValues
					{
						ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
						{
							{
								"EXAMPLE_KEY_TPqu8", 
								new Oci.DataintegrationService.Models.ConfigParameterValue
								{
									StringValue = "EXAMPLE-stringValue-Value",
									IntValue = 711,
									ObjectValue = "EXAMPLE-objectValue-Value",
									RefValue = "EXAMPLE-refValue-Value",
									ParameterValue = "EXAMPLE-parameterValue-Value",
									RootObjectValue = "EXAMPLE-rootObjectValue-Value"
								}
							}
						},
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						}
					},
					Variables = new List<Oci.DataintegrationService.Models.Variable>
					{
						new Oci.DataintegrationService.Models.Variable
						{
							Key = "EXAMPLE-key-Value",
							ModelVersion = "EXAMPLE-modelVersion-Value",
							ModelType = "EXAMPLE-modelType-Value",
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							},
							Name = "EXAMPLE-name-Value",
							Description = "EXAMPLE-description-Value",
							ObjectVersion = 380,
							ObjectStatus = 336,
							Identifier = "EXAMPLE-identifier-Value",
							Type = new Oci.DataintegrationService.Models.JavaType
							{
								JavaTypeName = "EXAMPLE-javaTypeName-Value",
								ConfigDefinition = new Oci.DataintegrationService.Models.ConfigDefinition
								{
									Key = "EXAMPLE-key-Value",
									ModelType = "EXAMPLE-modelType-Value",
									ModelVersion = "EXAMPLE-modelVersion-Value",
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									},
									Name = "EXAMPLE-name-Value",
									IsContained = true,
									ObjectStatus = 365,
									ConfigParameterDefinitions = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterDefinition>()
									{
										{
											"EXAMPLE_KEY_FJZCI", 
											new Oci.DataintegrationService.Models.ConfigParameterDefinition
											{
												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 = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								},
								Name = "EXAMPLE-name-Value",
								ObjectStatus = 937,
								Description = "EXAMPLE-description-Value"
							},
							ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
							{
								ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
								{
									{
										"EXAMPLE_KEY_yMwZa", 
										new Oci.DataintegrationService.Models.ConfigParameterValue
										{
											StringValue = "EXAMPLE-stringValue-Value",
											IntValue = 968,
											ObjectValue = "EXAMPLE-objectValue-Value",
											RefValue = "EXAMPLE-refValue-Value",
											ParameterValue = "EXAMPLE-parameterValue-Value",
											RootObjectValue = "EXAMPLE-rootObjectValue-Value"
										}
									}
								},
								ParentRef = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								}
							},
							DefaultValue = "EXAMPLE-defaultValue-Value",
							RootObjectDefaultValue = new Oci.DataintegrationService.Models.RootObject
							{
								Key = "EXAMPLE-key-Value",
								ModelType = "EXAMPLE-modelType-Value",
								ModelVersion = "EXAMPLE-modelVersion-Value",
								ParentRef = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								},
								ObjectStatus = 951
							}
						}
					},
					Metadata = new Oci.DataintegrationService.Models.ObjectMetadata
					{
						CreatedBy = "EXAMPLE-createdBy-Value",
						CreatedByName = "EXAMPLE-createdByName-Value",
						UpdatedBy = "EXAMPLE-updatedBy-Value",
						UpdatedByName = "EXAMPLE-updatedByName-Value",
						TimeCreated = DateTime.Parse("05/17/2019 05:31:54"),
						TimeUpdated = DateTime.Parse("12/16/2021 12:24:19"),
						AggregatorKey = "EXAMPLE-aggregatorKey-Value",
						Aggregator = new Oci.DataintegrationService.Models.AggregatorSummary
						{
							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 = new Dictionary<string, string>()
						{
							{
								"EXAMPLE_KEY_MBO8P", 
								"EXAMPLE_VALUE_rKYo5qqWmCSbQlmtL1l5"
							}
						},
						RegistryVersion = 563,
						Labels = new List<string>
						{
							"EXAMPLE--Value"
						},
						IsFavorite = false,
						CountStatistics = new Oci.DataintegrationService.Models.CountStatistic
						{
							ObjectTypeCountList = new List<Oci.DataintegrationService.Models.CountStatisticSummary>
							{
								new Oci.DataintegrationService.Models.CountStatisticSummary
								{
									ObjectType = Oci.DataintegrationService.Models.CountStatisticSummary.ObjectTypeEnum.Connection,
									ObjectCount = 186
								}
							}
						}
					}
				},
				Key = "EXAMPLE-key-Value",
				ModelVersion = "EXAMPLE-modelVersion-Value",
				ParentRef = new Oci.DataintegrationService.Models.ParentReference
				{
					Parent = "EXAMPLE-parent-Value",
					RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
				},
				Name = "EXAMPLE-name-Value",
				Description = "EXAMPLE-description-Value",
				ObjectStatus = 982,
				ObjectVersion = 675,
				Identifier = "EXAMPLE-identifier-Value",
				InputPorts = new List<Oci.DataintegrationService.Models.InputPort>
				{
					new Oci.DataintegrationService.Models.InputPort
					{
						PortType = Oci.DataintegrationService.Models.InputPort.PortTypeEnum.Data,
						Fields = new List<Oci.DataintegrationService.Models.TypedObject>
						{
							new Oci.DataintegrationService.Models.DecisionOutputPort
							{
								PortType = Oci.DataintegrationService.Models.DecisionOutputPort.PortTypeEnum.Data,
								DecisionOutputPortType = Oci.DataintegrationService.Models.DecisionOutputPort.DecisionOutputPortTypeEnum.EvalFalse,
								Key = "EXAMPLE-key-Value",
								ModelVersion = "EXAMPLE-modelVersion-Value",
								ParentRef = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								},
								ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
								{
									ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
									{
										{
											"EXAMPLE_KEY_tUdtY", 
											new Oci.DataintegrationService.Models.ConfigParameterValue
											{
												StringValue = "EXAMPLE-stringValue-Value",
												IntValue = 641,
												ObjectValue = "EXAMPLE-objectValue-Value",
												RefValue = "EXAMPLE-refValue-Value",
												ParameterValue = "EXAMPLE-parameterValue-Value",
												RootObjectValue = "EXAMPLE-rootObjectValue-Value"
											}
										}
									},
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									}
								},
								ObjectStatus = 681,
								Name = "EXAMPLE-name-Value",
								Description = "EXAMPLE-description-Value"
							}
						},
						Key = "EXAMPLE-key-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						},
						ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
						{
							ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
							{
								{
									"EXAMPLE_KEY_NtxFZ", 
									new Oci.DataintegrationService.Models.ConfigParameterValue
									{
										StringValue = "EXAMPLE-stringValue-Value",
										IntValue = 117,
										ObjectValue = "EXAMPLE-objectValue-Value",
										RefValue = "EXAMPLE-refValue-Value",
										ParameterValue = "EXAMPLE-parameterValue-Value",
										RootObjectValue = "EXAMPLE-rootObjectValue-Value"
									}
								}
							},
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							}
						},
						ObjectStatus = 916,
						Name = "EXAMPLE-name-Value",
						Description = "EXAMPLE-description-Value"
					}
				},
				OutputPorts = new List<Oci.DataintegrationService.Models.OutputPort>
				{
					new Oci.DataintegrationService.Models.OutputPort
					{
						PortType = Oci.DataintegrationService.Models.OutputPort.PortTypeEnum.Control,
						Fields = new List<Oci.DataintegrationService.Models.TypedObject>
						{
							new Oci.DataintegrationService.Models.ConditionalOutputPort
							{
								PortType = Oci.DataintegrationService.Models.ConditionalOutputPort.PortTypeEnum.Control,
								SplitCondition = new Oci.DataintegrationService.Models.Expression
								{
									Key = "EXAMPLE-key-Value",
									ModelType = "EXAMPLE-modelType-Value",
									ModelVersion = "EXAMPLE-modelVersion-Value",
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									},
									ExprString = "EXAMPLE-exprString-Value",
									ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
									{
										ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
										{
											{
												"EXAMPLE_KEY_Jr97X", 
												new Oci.DataintegrationService.Models.ConfigParameterValue
												{
													StringValue = "EXAMPLE-stringValue-Value",
													IntValue = 237,
													ObjectValue = "EXAMPLE-objectValue-Value",
													RefValue = "EXAMPLE-refValue-Value",
													ParameterValue = "EXAMPLE-parameterValue-Value",
													RootObjectValue = "EXAMPLE-rootObjectValue-Value"
												}
											}
										},
										ParentRef = new Oci.DataintegrationService.Models.ParentReference
										{
											Parent = "EXAMPLE-parent-Value",
											RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
										}
									},
									ObjectStatus = 593
								},
								Key = "EXAMPLE-key-Value",
								ModelVersion = "EXAMPLE-modelVersion-Value",
								ParentRef = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								},
								ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
								{
									ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
									{
										{
											"EXAMPLE_KEY_jzB3G", 
											new Oci.DataintegrationService.Models.ConfigParameterValue
											{
												StringValue = "EXAMPLE-stringValue-Value",
												IntValue = 875,
												ObjectValue = "EXAMPLE-objectValue-Value",
												RefValue = "EXAMPLE-refValue-Value",
												ParameterValue = "EXAMPLE-parameterValue-Value",
												RootObjectValue = "EXAMPLE-rootObjectValue-Value"
											}
										}
									},
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									}
								},
								ObjectStatus = 98,
								Name = "EXAMPLE-name-Value",
								Description = "EXAMPLE-description-Value"
							}
						},
						Key = "EXAMPLE-key-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						},
						ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
						{
							ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
							{
								{
									"EXAMPLE_KEY_HvXMT", 
									new Oci.DataintegrationService.Models.ConfigParameterValue
									{
										StringValue = "EXAMPLE-stringValue-Value",
										IntValue = 178,
										ObjectValue = "EXAMPLE-objectValue-Value",
										RefValue = "EXAMPLE-refValue-Value",
										ParameterValue = "EXAMPLE-parameterValue-Value",
										RootObjectValue = "EXAMPLE-rootObjectValue-Value"
									}
								}
							},
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							}
						},
						ObjectStatus = 318,
						Name = "EXAMPLE-name-Value",
						Description = "EXAMPLE-description-Value"
					}
				},
				Parameters = new List<Oci.DataintegrationService.Models.Parameter>
				{
					new Oci.DataintegrationService.Models.Parameter
					{
						Type = "EXAMPLE-type-Value",
						DefaultValue = "EXAMPLE-defaultValue-Value",
						RootObjectDefaultValue = "EXAMPLE-rootObjectDefaultValue-Value",
						IsInput = false,
						IsOutput = false,
						OutputAggregationType = Oci.DataintegrationService.Models.Parameter.OutputAggregationTypeEnum.Max,
						TypeName = "EXAMPLE-typeName-Value",
						UsedFor = "EXAMPLE-usedFor-Value",
						Key = "EXAMPLE-key-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						},
						ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
						{
							ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
							{
								{
									"EXAMPLE_KEY_FxItf", 
									new Oci.DataintegrationService.Models.ConfigParameterValue
									{
										StringValue = "EXAMPLE-stringValue-Value",
										IntValue = 536,
										ObjectValue = "EXAMPLE-objectValue-Value",
										RefValue = "EXAMPLE-refValue-Value",
										ParameterValue = "EXAMPLE-parameterValue-Value",
										RootObjectValue = "EXAMPLE-rootObjectValue-Value"
									}
								}
							},
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							}
						},
						ObjectStatus = 964,
						Name = "EXAMPLE-name-Value",
						Description = "EXAMPLE-description-Value"
					}
				},
				OpConfigValues = new Oci.DataintegrationService.Models.ConfigValues
				{
					ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
					{
						{
							"EXAMPLE_KEY_kn2Wo", 
							new Oci.DataintegrationService.Models.ConfigParameterValue
							{
								StringValue = "EXAMPLE-stringValue-Value",
								IntValue = 867,
								ObjectValue = "EXAMPLE-objectValue-Value",
								RefValue = "EXAMPLE-refValue-Value",
								ParameterValue = "EXAMPLE-parameterValue-Value",
								RootObjectValue = "EXAMPLE-rootObjectValue-Value"
							}
						}
					},
					ParentRef = new Oci.DataintegrationService.Models.ParentReference
					{
						Parent = "EXAMPLE-parent-Value",
						RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
					}
				},
				IsConcurrentAllowed = true,
				RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
				{
					AggregatorKey = "EXAMPLE-aggregatorKey-Value",
					Labels = new List<string>
					{
						"EXAMPLE--Value"
					},
					RegistryVersion = 795,
					Key = "EXAMPLE-key-Value",
					IsFavorite = true
				}
			};
			var updateTaskRequest = new Oci.DataintegrationService.Requests.UpdateTaskRequest
			{
				WorkspaceId = "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
				TaskKey = "EXAMPLE-taskKey-Value",
				UpdateTaskDetails = updateTaskDetails,
				OpcRequestId = "VXGZOQTR4LGZBP8LAP50<unique_ID>",
				IfMatch = "EXAMPLE-ifMatch-Value"
			};

            // 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. 
            var provider = new ConfigFileAuthenticationDetailsProvider("DEFAULT");
            try
            {
                // Create a service client and send the request.
				using (var client = new DataIntegrationClient(provider, new ClientConfiguration()))
				{
					var response = await client.UpdateTask(updateTaskRequest);
					// Retrieve value from the response.
					var keyValue = response.Task.Key;
				}
            }
            catch (Exception e)
            {
                Console.WriteLine($"UpdateTask Failed with {e.Message}");
                throw e;
            }
        }

    }
}