public void AddTransform(string transform, string transformOperation, string transformType, OperatorInputs transformInput) { Transforms.Add(transform); TransformsOperations.Add(transformOperation); TransformsTypes.Add(transformType); TransformsInputs.Add(transformInput); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { AccountFilters = new AccountFiltersOperations(this); Operations = new Operations(this); Mediaservices = new MediaservicesOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); Locations = new LocationsOperations(this); Assets = new AssetsOperations(this); AssetFilters = new AssetFiltersOperations(this); ContentKeyPolicies = new ContentKeyPoliciesOperations(this); Transforms = new TransformsOperations(this); Jobs = new JobsOperations(this); StreamingPolicies = new StreamingPoliciesOperations(this); StreamingLocators = new StreamingLocatorsOperations(this); LiveEvents = new LiveEventsOperations(this); LiveOutputs = new LiveOutputsOperations(this); StreamingEndpoints = new StreamingEndpointsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); 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 <ContentKeyPolicyPlayReadyContentKeyLocation>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ContentKeyPolicyPlayReadyContentKeyLocation>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ContentKeyPolicyRestriction>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ContentKeyPolicyRestriction>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ContentKeyPolicyConfiguration>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ContentKeyPolicyConfiguration>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ContentKeyPolicyRestrictionTokenKey>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ContentKeyPolicyRestrictionTokenKey>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Preset>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Preset>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Codec>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Codec>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Layer>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Layer>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TrackDescriptor>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TrackDescriptor>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <InputDefinition>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <InputDefinition>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Overlay>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Overlay>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Format>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Format>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <JobInput>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <JobInput>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ClipTime>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ClipTime>("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <JobOutput>("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <JobOutput>("@odata.type")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }