// 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 loganalytics from "oci-loganalytics";
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 loganalytics.LogAnalyticsClient({ authenticationDetailsProvider: provider });

     // Create a request and dependent object(s).
	const  upsertLogAnalyticsParserDetails = {
		content: "EXAMPLE-content-Value",
		description: "EXAMPLE-description-Value",
		displayName: "EXAMPLE-displayName-Value",
		editVersion: 482,
		encoding: "EXAMPLE-encoding-Value",
		exampleContent: "EXAMPLE-exampleContent-Value",
		fieldMaps: [{
				field: {
					ceeAlias: "EXAMPLE-ceeAlias-Value",
					dataType: "EXAMPLE-dataType-Value",
					regularExpression: "EXAMPLE-regularExpression-Value",
					description: "EXAMPLE-description-Value",
					displayName: "EXAMPLE-displayName-Value",
					editVersion: 801,
					facetPriority: 64,
					name: "EXAMPLE-name-Value",
					isFacetEligible: true,
					isHighCardinality: true,
					isLargeData: true,
					isMultiValued: true,
					isPrimary: false,
					isSystem: false,
					isSummarizable: true,
					mappedValue: "EXAMPLE-mappedValue-Value",
					isMetricKeyEligible: true,
					isMetricValueEligible: true,
					rangeFacetEligible: 743,
					isTableEligible: true,
					unitType: "EXAMPLE-unitType-Value",
					timeUpdated: new Date("Wed Feb 03 11:40:30 UTC 2038"),
					isKeepDuplicates: false,

					}
,
				parserFieldId: 972,
				parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
				parserFieldName: "EXAMPLE-parserFieldName-Value",
				storageFieldName: "EXAMPLE-storageFieldName-Value",
				parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
				parserName: "EXAMPLE-parserName-Value",
				parserFieldSequence: 100,
				parser: {
					content: "EXAMPLE-content-Value",
					description: "EXAMPLE-description-Value",
					displayName: "EXAMPLE-displayName-Value",
					editVersion: 865,
					encoding: "EXAMPLE-encoding-Value",
					exampleContent: "EXAMPLE-exampleContent-Value",
					footerContent: "EXAMPLE-footerContent-Value",
					headerContent: "EXAMPLE-headerContent-Value",
					name: "EXAMPLE-name-Value",
					isDefault: false,
					isSingleLineContent: false,
					isSystem: false,
					language: "EXAMPLE-language-Value",
					timeUpdated: new Date("Sat Oct 13 17:00:31 UTC 2018"),
					logTypeTestRequestVersion: 901,
					parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
					isHidden: true,
					parserSequence: 885,
					parserTimezone: "EXAMPLE-parserTimezone-Value",
					parserFilter: {
						id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
						agentVersion: "EXAMPLE-agentVersion-Value",
						isInUse: 106,
						operatingSystem: "EXAMPLE-operatingSystem-Value",
						parserId: 735,
						version: "EXAMPLE-version-Value",

						}
,
					isParserWrittenOnce: true,
					parserFunctions: [{
							parserMetaPlugin: {
								metaPluginParameters: [{
										description: "EXAMPLE-description-Value",
										name: "EXAMPLE-name-Value",
										isMandatory: false,
										isRepeatable: true,
										pluginName: "EXAMPLE-pluginName-Value",
										type: "EXAMPLE-type-Value",

										}
										],
								description: "EXAMPLE-description-Value",
								displayName: "EXAMPLE-displayName-Value",
								name: "EXAMPLE-name-Value",

								}
,
							parserFunctionId: 674,
							parserFunctionName: "EXAMPLE-parserFunctionName-Value",
							isEnabled: false,
							isSystem: false,
							parserId: 959,
							parserName: "EXAMPLE-parserName-Value",
							parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
							parserFunctionPriority: 650,
							parserFunctionParameters: [{
									parserFunctionId: 997,
									parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
									parserFunctionParameterId: 487,
									parserMetaPluginParameterName: "EXAMPLE-parserMetaPluginParameterName-Value",
									parserMetaPluginParameterValue: "EXAMPLE-parserMetaPluginParameterValue-Value",
									parserName: "EXAMPLE-parserName-Value",
									parserMetaPluginParameter: {
										description: "EXAMPLE-description-Value",
										name: "EXAMPLE-name-Value",
										isMandatory: false,
										isRepeatable: true,
										pluginName: "EXAMPLE-pluginName-Value",
										type: "EXAMPLE-type-Value",

										}
,

									}
									],

							}
							],
					sourcesCount: 786,
					sources: [{
							labelConditions: [{
									conditionString: "EXAMPLE-conditionString-Value",
									conditionBlock: {
										conditionBlocksOperator: loganalytics.models.ConditionBlock.ConditionBlocksOperator.NotOr,
										fieldName: "EXAMPLE-fieldName-Value",
										labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
										labelConditionValue: "EXAMPLE-labelConditionValue-Value",
										labelConditionValues: ["EXAMPLE--Value"												],

										}
,
									message: "EXAMPLE-message-Value",
									isVisible: false,
									blockConditionField: "EXAMPLE-blockConditionField-Value",
									blockConditionOperator: "EXAMPLE-blockConditionOperator-Value",
									blockConditionValue: "EXAMPLE-blockConditionValue-Value",
									labelConditionValue: "EXAMPLE-labelConditionValue-Value",
									labelConditionValues: ["EXAMPLE--Value"											],
									contentExample: "EXAMPLE-contentExample-Value",
									isEnabled: true,
									fieldName: "EXAMPLE-fieldName-Value",
									labelConditionId: 981,
									isSystem: true,
									labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
									sourceId: 204,
									labelDisplayName: "EXAMPLE-labelDisplayName-Value",
									storageField: "EXAMPLE-storageField-Value",
									labelName: "EXAMPLE-labelName-Value",
									isInlineLabelExistingInDatabase: true,

									}
									],
							associationCount: 438,
							associationEntity: [{
									failureMessage: "EXAMPLE-failureMessage-Value",
									agentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
									timeLastAttempted: new Date("Wed Mar 31 12:58:42 UTC 2004"),
									retryCount: 380,
									sourceName: "EXAMPLE-sourceName-Value",
									sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
									sourceTypeName: "EXAMPLE-sourceTypeName-Value",
									lifeCycleState: loganalytics.models.LogAnalyticsAssociation.LifeCycleState.Accepted,
									entityId: "ocid1.test.oc1..<unique_ID>EXAMPLE-entityId-Value",
									entityName: "EXAMPLE-entityName-Value",
									entityTypeName: "EXAMPLE-entityTypeName-Value",
									host: "EXAMPLE-host-Value",
									agentEntityName: "EXAMPLE-agentEntityName-Value",
									entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
									logGroupId: "ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value",
									logGroupName: "EXAMPLE-logGroupName-Value",
									logGroupCompartment: "EXAMPLE-logGroupCompartment-Value",
									associationProperties: [{
											name: "EXAMPLE-name-Value",
											value: "EXAMPLE-value-Value",
											patterns: [{
													id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
													value: "EXAMPLE-value-Value",
													effectiveLevel: "EXAMPLE-effectiveLevel-Value",

													}
													],

											}
											],

									}
									],
							dataFilterDefinitions: [{
									description: "EXAMPLE-description-Value",
									displayName: "EXAMPLE-displayName-Value",
									editVersion: 759,
									isEnabled: true,
									fieldName: "EXAMPLE-fieldName-Value",
									hashType: 106,
									dataFilterId: 177,
									isSystem: true,
									matchRegularExpression: "EXAMPLE-matchRegularExpression-Value",
									order: 880,
									path: "EXAMPLE-path-Value",
									replacementString: "EXAMPLE-replacementString-Value",
									sourceId: 140,
									filterType: loganalytics.models.LogAnalyticsSourceDataFilter.FilterType.Mask,

									}
									],
							databaseCredential: "EXAMPLE-databaseCredential-Value",
							extendedFieldDefinitions: [{
									field: {
										ceeAlias: "EXAMPLE-ceeAlias-Value",
										dataType: "EXAMPLE-dataType-Value",
										regularExpression: "EXAMPLE-regularExpression-Value",
										description: "EXAMPLE-description-Value",
										displayName: "EXAMPLE-displayName-Value",
										editVersion: 246,
										facetPriority: 142,
										name: "EXAMPLE-name-Value",
										isFacetEligible: true,
										isHighCardinality: true,
										isLargeData: true,
										isMultiValued: false,
										isPrimary: false,
										isSystem: false,
										isSummarizable: false,
										mappedValue: "EXAMPLE-mappedValue-Value",
										isMetricKeyEligible: false,
										isMetricValueEligible: false,
										rangeFacetEligible: 722,
										isTableEligible: false,
										unitType: "EXAMPLE-unitType-Value",
										timeUpdated: new Date("Mon Jan 13 01:01:06 UTC 2031"),
										isKeepDuplicates: false,

										}
,
									displayRegularExpression: "EXAMPLE-displayRegularExpression-Value",
									extendedFields: [{
											field: {
												ceeAlias: "EXAMPLE-ceeAlias-Value",
												dataType: "EXAMPLE-dataType-Value",
												regularExpression: "EXAMPLE-regularExpression-Value",
												description: "EXAMPLE-description-Value",
												displayName: "EXAMPLE-displayName-Value",
												editVersion: 493,
												facetPriority: 634,
												name: "EXAMPLE-name-Value",
												isFacetEligible: false,
												isHighCardinality: true,
												isLargeData: true,
												isMultiValued: true,
												isPrimary: true,
												isSystem: false,
												isSummarizable: false,
												mappedValue: "EXAMPLE-mappedValue-Value",
												isMetricKeyEligible: true,
												isMetricValueEligible: false,
												rangeFacetEligible: 510,
												isTableEligible: false,
												unitType: "EXAMPLE-unitType-Value",
												timeUpdated: new Date("Sun Sep 15 12:09:07 UTC 2024"),
												isKeepDuplicates: true,

												}
,
											extendedFieldDefinitionId: 34,
											fieldName: "EXAMPLE-fieldName-Value",
											fieldDisplayName: "EXAMPLE-fieldDisplayName-Value",
											savedRegularExpressionName: "EXAMPLE-savedRegularExpressionName-Value",
											extendedFieldId: 19,

											}
											],
									baseFieldName: "EXAMPLE-baseFieldName-Value",
									baseFieldLogText: "EXAMPLE-baseFieldLogText-Value",
									conditionDataType: "EXAMPLE-conditionDataType-Value",
									conditionField: "EXAMPLE-conditionField-Value",
									conditionOperator: "EXAMPLE-conditionOperator-Value",
									conditionValue: "EXAMPLE-conditionValue-Value",
									convertedRegularExpression: "EXAMPLE-convertedRegularExpression-Value",
									isEnabled: false,
									extendedFieldDefinitionId: 825,
									isSystem: true,
									regularExpression: "EXAMPLE-regularExpression-Value",
									sourceId: 810,
									timeUpdated: new Date("Sun Jan 13 15:25:23 UTC 2036"),
									conditionString: "EXAMPLE-conditionString-Value",
									conditionBlock: {
										conditionBlocksOperator: loganalytics.models.GenericConditionBlock.ConditionBlocksOperator.NotAnd,
										name: "EXAMPLE-name-Value",
										operator: "EXAMPLE-operator-Value",
										value: "EXAMPLE-value-Value",
										values: ["EXAMPLE--Value"												],

										}
,

									}
									],
							isForCloud: false,
							labels: [{
									aliases: [{
											alias: "EXAMPLE-alias-Value",
											aliasDisplayName: "EXAMPLE-aliasDisplayName-Value",
											isSystem: true,
											displayName: "EXAMPLE-displayName-Value",
											name: "EXAMPLE-name-Value",
											priority: loganalytics.models.LogAnalyticsLabelAlias.Priority.Medium,

											}
											],
									countUsageInAlertRule: 314,
									countUsageInSource: 656,
									id: "EXAMPLE-id-Value",
									suggestType: 524,
									description: "EXAMPLE-description-Value",
									displayName: "EXAMPLE-displayName-Value",
									editVersion: 659,
									impact: "EXAMPLE-impact-Value",
									isSystem: false,
									name: "EXAMPLE-name-Value",
									priority: loganalytics.models.LogAnalyticsLabelView.Priority.Medium,
									recommendation: "EXAMPLE-recommendation-Value",
									type: 83,
									isUserDeleted: true,

									}
									],
							metricDefinitions: [{
									aggregationField: "EXAMPLE-aggregationField-Value",
									bucketMetadata: "EXAMPLE-bucketMetadata-Value",
									clockPeriod: "EXAMPLE-clockPeriod-Value",
									description: "EXAMPLE-description-Value",
									editVersion: 536,
									fieldName: "EXAMPLE-fieldName-Value",
									fieldValues: ["EXAMPLE--Value"											],
									groupingField: "EXAMPLE-groupingField-Value",
									isEnabled: false,
									isSystem: true,
									displayName: "EXAMPLE-displayName-Value",
									metricReference: 495,
									name: "EXAMPLE-name-Value",
									metricType: loganalytics.models.LogAnalyticsMetric.MetricType.Count,
									isMetricSourceEnabled: true,
									operator: loganalytics.models.LogAnalyticsMetric.Operator.NotNull,
									entityType: "EXAMPLE-entityType-Value",
									timeUpdated: new Date("Sun Jan 16 19:51:50 UTC 2000"),
									unitType: "EXAMPLE-unitType-Value",
									isUserCustomized: false,

									}
									],
							metrics: [{
									isMetricSourceEnabled: false,
									metricName: "EXAMPLE-metricName-Value",
									sourceName: "EXAMPLE-sourceName-Value",
									entityType: "EXAMPLE-entityType-Value",

									}
									],
							parameters: [{
									defaultValue: "EXAMPLE-defaultValue-Value",
									description: "EXAMPLE-description-Value",
									isActive: false,
									name: "EXAMPLE-name-Value",
									sourceId: 381,

									}
									],
							patternCount: 377,
							patterns: [{
									convertedText: "EXAMPLE-convertedText-Value",
									dbParserId: 678,
									dbPatternDateTimeColumns: "EXAMPLE-dbPatternDateTimeColumns-Value",
									dbPatternDateTimeField: "EXAMPLE-dbPatternDateTimeField-Value",
									dbPatternSequenceColumn: "EXAMPLE-dbPatternSequenceColumn-Value",
									isInclude: false,
									isDefault: false,
									patternFilter: {
										agentVersion: "EXAMPLE-agentVersion-Value",
										isInUse: false,
										operatingSystem: "EXAMPLE-operatingSystem-Value",
										patternId: 996,
										sourceId: 253,
										version: "EXAMPLE-version-Value",

										}
,
									alias: "EXAMPLE-alias-Value",
									description: "EXAMPLE-description-Value",
									isEnabled: false,
									patternId: 263,
									isSystem: false,
									sourceId: 42,
									isAgentWarningSuppressed: false,
									patternText: "EXAMPLE-patternText-Value",
									patternType: 82,
									entityType: ["EXAMPLE--Value"											],
									patternProperties: [{
											name: "EXAMPLE-name-Value",
											value: "EXAMPLE-value-Value",

											}
											],

									}
									],
							description: "EXAMPLE-description-Value",
							displayName: "EXAMPLE-displayName-Value",
							editVersion: 996,
							functions: [{
									arguments: [{
											isOverrideOutputFields: false,
											argumentDisplayName: "EXAMPLE-argumentDisplayName-Value",
											argumentExample: "EXAMPLE-argumentExample-Value",
											argumentService: "EXAMPLE-argumentService-Value",
											argumentDataType: "EXAMPLE-argumentDataType-Value",
											argumentDescription: "EXAMPLE-argumentDescription-Value",
											argumentName: "EXAMPLE-argumentName-Value",
											argumentOrder: 132,
											argumentType: 947,
											argumentId: 698,
											argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
											argumentLookupColumnPosition: 453,
											argumentValue: "EXAMPLE-argumentValue-Value",
											argumentReference: "EXAMPLE-argumentReference-Value",

											}
											],
									isEnabled: false,
									function: {
										metaFunctionArgument: [{
												isOverrideOutputFields: true,
												argumentDisplayName: "EXAMPLE-argumentDisplayName-Value",
												argumentExample: "EXAMPLE-argumentExample-Value",
												argumentService: "EXAMPLE-argumentService-Value",
												argumentDataType: "EXAMPLE-argumentDataType-Value",
												argumentDescription: "EXAMPLE-argumentDescription-Value",
												argumentName: "EXAMPLE-argumentName-Value",
												argumentOrder: 569,
												argumentType: 458,
												argumentId: 64,
												argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
												argumentLookupColumnPosition: 533,
												argumentValue: "EXAMPLE-argumentValue-Value",
												argumentReference: "EXAMPLE-argumentReference-Value",

												}
												],
										component: "EXAMPLE-component-Value",
										description: "EXAMPLE-description-Value",
										editVersion: 439,
										metaFunctionId: 366,
										javaClassName: "EXAMPLE-javaClassName-Value",
										name: "EXAMPLE-name-Value",

										}
,
									functionName: loganalytics.models.LogAnalyticsSourceFunction.FunctionName.Geolocation,
									functionReference: "EXAMPLE-functionReference-Value",
									sourceReference: "EXAMPLE-sourceReference-Value",
									features: ["EXAMPLE--Value"											],
									functionId: 929,
									order: 46,
									isSystem: true,
									lookupColumn: "EXAMPLE-lookupColumn-Value",
									lookupColumnPosition: 83,
									lookupDisplayName: "EXAMPLE-lookupDisplayName-Value",
									lookupMode: 675,
									lookupTable: "EXAMPLE-lookupTable-Value",
									sourceId: 622,

									}
									],
							sourceId: 778,
							name: "EXAMPLE-name-Value",
							isSecureContent: true,
							isSystem: true,
							isAutoAssociationEnabled: true,
							isAutoAssociationOverride: false,
							ruleId: 627,
							typeName: "EXAMPLE-typeName-Value",
							typeDisplayName: "EXAMPLE-typeDisplayName-Value",
							warningConfig: 701,
							metadataFields: [{
									fieldName: "EXAMPLE-fieldName-Value",
									isEnabled: false,
									isSystem: true,
									key: "EXAMPLE-key-Value",
									sourceName: "EXAMPLE-sourceName-Value",

									}
									],
							labelDefinitions: [{
									editVersion: 137,
									isSystem: true,
									sourceId: 282,
									labelName: "EXAMPLE-labelName-Value",

									}
									],
							entityTypes: [{
									sourceId: 81,
									entityType: "EXAMPLE-entityType-Value",
									entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
									entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",

									}
									],
							isTimezoneOverride: false,
							timeUpdated: new Date("Tue Dec 25 06:10:48 UTC 2018"),
							eventTypes: [{
									eventTypeName: "EXAMPLE-eventTypeName-Value",
									specVersion: "EXAMPLE-specVersion-Value",
									isEnabled: true,
									isSystem: false,
									timeUpdated: new Date("Mon Apr 27 09:32:52 UTC 2009"),

									}
									],
							categories: [{
									name: "EXAMPLE-name-Value",
									description: "EXAMPLE-description-Value",
									displayName: "EXAMPLE-displayName-Value",
									type: "EXAMPLE-type-Value",
									isSystem: false,

									}
									],
							endpoints: [{
									endpointType: "LOG_LIST",									listEndpoint: {
										name: "EXAMPLE-name-Value",
										description: "EXAMPLE-description-Value",
										model: "EXAMPLE-model-Value",
										endpointId: 73,
										request: {
											method: loganalytics.requests.EndpointRequest.Method.Get,
											url: "EXAMPLE-url-Value",
											contentType: "EXAMPLE-contentType-Value",
											payload: "EXAMPLE-payload-Value",
											headers: [{
													name: "EXAMPLE-name-Value",
													value: "EXAMPLE-value-Value",

													}
													],
											formParameters: [{
													name: "EXAMPLE-name-Value",
													value: "EXAMPLE-value-Value",

													}
													],

											}
,
										response: {
											contentType: "EXAMPLE-contentType-Value",
											example: "EXAMPLE-example-Value",

											}
,
										credentials: {
											credentialType: loganalytics.models.EndpointCredentials.CredentialType.BasicAuth,
											credentialName: "EXAMPLE-credentialName-Value",
											credentialEndpoint: {
												name: "EXAMPLE-name-Value",
												description: "EXAMPLE-description-Value",
												model: "EXAMPLE-model-Value",
												endpointId: 423,
												response: {
													contentType: "EXAMPLE-contentType-Value",
													example: "EXAMPLE-example-Value",

													}
,
												proxy: {
													url: "EXAMPLE-url-Value",
													credentialName: "EXAMPLE-credentialName-Value",
													credentialType: loganalytics.models.EndpointProxy.CredentialType.Token,

													}
,

												}
,

											}
,
										proxy: {
											url: "EXAMPLE-url-Value",
											credentialName: "EXAMPLE-credentialName-Value",
											credentialType: loganalytics.models.EndpointProxy.CredentialType.None,

											}
,
										isEnabled: true,
										isSystem: false,
										endpointProperties: [{
												name: "EXAMPLE-name-Value",
												value: "EXAMPLE-value-Value",

												}
												],

										}
,
									logEndpoints: [{
											name: "EXAMPLE-name-Value",
											description: "EXAMPLE-description-Value",
											model: "EXAMPLE-model-Value",
											endpointId: 130,
											request: {
												method: loganalytics.requests.EndpointRequest.Method.Get,
												url: "EXAMPLE-url-Value",
												contentType: "EXAMPLE-contentType-Value",
												payload: "EXAMPLE-payload-Value",
												headers: [{
														name: "EXAMPLE-name-Value",
														value: "EXAMPLE-value-Value",

														}
														],
												formParameters: [{
														name: "EXAMPLE-name-Value",
														value: "EXAMPLE-value-Value",

														}
														],

												}
,
											response: {
												contentType: "EXAMPLE-contentType-Value",
												example: "EXAMPLE-example-Value",

												}
,
											credentials: {
												credentialType: loganalytics.models.EndpointCredentials.CredentialType.BasicAuth,
												credentialName: "EXAMPLE-credentialName-Value",
												credentialEndpoint: {
													name: "EXAMPLE-name-Value",
													description: "EXAMPLE-description-Value",
													model: "EXAMPLE-model-Value",
													endpointId: 220,
													response: {
														contentType: "EXAMPLE-contentType-Value",
														example: "EXAMPLE-example-Value",

														}
,
													proxy: {
														url: "EXAMPLE-url-Value",
														credentialName: "EXAMPLE-credentialName-Value",
														credentialType: loganalytics.models.EndpointProxy.CredentialType.BasicAuth,

														}
,

													}
,

												}
,
											proxy: {
												url: "EXAMPLE-url-Value",
												credentialName: "EXAMPLE-credentialName-Value",
												credentialType: loganalytics.models.EndpointProxy.CredentialType.Token,

												}
,
											isEnabled: false,
											isSystem: false,
											endpointProperties: [{
													name: "EXAMPLE-name-Value",
													value: "EXAMPLE-value-Value",

													}
													],

											}
											]

									}
									],
							sourceProperties: [{
									name: "EXAMPLE-name-Value",
									value: "EXAMPLE-value-Value",

									}
									],

							}
							],
					shouldTokenizeOriginalText: false,
					fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
					fieldQualifier: "EXAMPLE-fieldQualifier-Value",
					type: loganalytics.models.LogAnalyticsParser.Type.Regex,
					isUserDeleted: true,
					isNamespaceAware: true,
					categories: [{
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value",
							displayName: "EXAMPLE-displayName-Value",
							type: "EXAMPLE-type-Value",
							isSystem: true,

							}
							],
					isPositionAware: true,
					dependentSources: [{
							sourceName: "EXAMPLE-sourceName-Value",
							sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
							sourceId: 936,
							sourceType: "EXAMPLE-sourceType-Value",
							isSystem: false,
							isAutoAssociationEnabled: true,
							entityTypes: [{
									sourceId: 467,
									entityType: "EXAMPLE-entityType-Value",
									entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
									entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",

									}
									],
							dependencies: [{
									type: "EXAMPLE-type-Value",
									referenceType: "EXAMPLE-referenceType-Value",
									referenceId: 983,
									referenceName: "EXAMPLE-referenceName-Value",
									referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",

									}
									],

							}
							],
					dependentParsers: [{
							parserName: "EXAMPLE-parserName-Value",
							parserDisplayName: "EXAMPLE-parserDisplayName-Value",
							parserId: 516,
							isSystem: false,
							parserType: loganalytics.models.DependentParser.ParserType.Json,
							dependencies: [{
									type: "EXAMPLE-type-Value",
									referenceType: "EXAMPLE-referenceType-Value",
									referenceId: 397,
									referenceName: "EXAMPLE-referenceName-Value",
									referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",

									}
									],

							}
							],

					}
,
				structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
				actions: [{
						name: "EXAMPLE-name-Value",
						order: 580,

						}
						],

				}
				],
		footerContent: "EXAMPLE-footerContent-Value",
		headerContent: "EXAMPLE-headerContent-Value",
		name: "EXAMPLE-name-Value",
		isDefault: false,
		isSingleLineContent: true,
		isSystem: true,
		language: "EXAMPLE-language-Value",
		logTypeTestRequestVersion: 694,
		parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
		parserSequence: 587,
		parserTimezone: "EXAMPLE-parserTimezone-Value",
		isParserWrittenOnce: true,
		parserFunctions: [{
				parserMetaPlugin: {
					metaPluginParameters: [{
							description: "EXAMPLE-description-Value",
							name: "EXAMPLE-name-Value",
							isMandatory: false,
							isRepeatable: true,
							pluginName: "EXAMPLE-pluginName-Value",
							type: "EXAMPLE-type-Value",

							}
							],
					description: "EXAMPLE-description-Value",
					displayName: "EXAMPLE-displayName-Value",
					name: "EXAMPLE-name-Value",

					}
,
				parserFunctionId: 841,
				parserFunctionName: "EXAMPLE-parserFunctionName-Value",
				isEnabled: false,
				isSystem: false,
				parserId: 709,
				parserName: "EXAMPLE-parserName-Value",
				parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
				parserFunctionPriority: 883,
				parserFunctionParameters: [{
						parserFunctionId: 449,
						parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
						parserFunctionParameterId: 964,
						parserMetaPluginParameterName: "EXAMPLE-parserMetaPluginParameterName-Value",
						parserMetaPluginParameterValue: "EXAMPLE-parserMetaPluginParameterValue-Value",
						parserName: "EXAMPLE-parserName-Value",
						parserMetaPluginParameter: {
							description: "EXAMPLE-description-Value",
							name: "EXAMPLE-name-Value",
							isMandatory: false,
							isRepeatable: false,
							pluginName: "EXAMPLE-pluginName-Value",
							type: "EXAMPLE-type-Value",

							}
,

						}
						],

				}
				],
		shouldTokenizeOriginalText: true,
		fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
		fieldQualifier: "EXAMPLE-fieldQualifier-Value",
		type: loganalytics.models.UpsertLogAnalyticsParserDetails.Type.Delimited,
		isNamespaceAware: false,
		categories: [{
				name: "EXAMPLE-name-Value",
				description: "EXAMPLE-description-Value",
				displayName: "EXAMPLE-displayName-Value",
				type: "EXAMPLE-type-Value",
				isSystem: true,

				}
				],
		isPositionAware: false,

		}

	const upsertParserRequest: loganalytics.requests.UpsertParserRequest = { 
	namespaceName: "EXAMPLE-namespaceName-Value",
	upsertLogAnalyticsParserDetails: upsertLogAnalyticsParserDetails,
	opcRetryToken: "EXAMPLE-opcRetryToken-Value",
	opcRequestId: "MTB4HGEU3FDZ57C5WVL4<unique_ID>",
	ifMatch: "EXAMPLE-ifMatch-Value",

		}; 


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