/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Operations = new Operations(this); VideoAnalyzers = new VideoAnalyzersOperations(this); Locations = new LocationsOperations(this); EdgeModules = new EdgeModulesOperations(this); Videos = new VideosOperations(this); AccessPolicies = new AccessPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-05-01-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AuthenticationBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AuthenticationBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TokenKey>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TokenKey>("@type")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { EdgeModules = new EdgeModulesOperations(this); PipelineTopologies = new PipelineTopologiesOperations(this); LivePipelines = new LivePipelinesOperations(this); PipelineJobs = new PipelineJobsOperations(this); LivePipelineOperationStatuses = new LivePipelineOperationStatusesOperations(this); PipelineJobOperationStatuses = new PipelineJobOperationStatusesOperations(this); Operations = new Operations(this); VideoAnalyzers = new VideoAnalyzersOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); OperationStatuses = new OperationStatusesOperations(this); OperationResults = new OperationResultsOperations(this); VideoAnalyzerOperationStatuses = new VideoAnalyzerOperationStatusesOperations(this); VideoAnalyzerOperationResults = new VideoAnalyzerOperationResultsOperations(this); Locations = new LocationsOperations(this); Videos = new VideosOperations(this); AccessPolicies = new AccessPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-11-01-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <NodeBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <NodeBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CredentialsBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CredentialsBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TunnelBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TunnelBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EndpointBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EndpointBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CertificateSource>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CertificateSource>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TimeSequenceBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TimeSequenceBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EncoderPresetBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EncoderPresetBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AudioEncoderBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AudioEncoderBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <VideoEncoderBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <VideoEncoderBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AuthenticationBase>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AuthenticationBase>("@type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TokenKey>("@type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TokenKey>("@type")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }