/// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Labs                             = new LabsOperations(this);
     GlobalSchedules                  = new GlobalSchedulesOperations(this);
     ArtifactSources                  = new ArtifactSourcesOperations(this);
     ArmTemplates                     = new ArmTemplatesOperations(this);
     Artifacts                        = new ArtifactsOperations(this);
     Costs                            = new CostsOperations(this);
     CustomImages                     = new CustomImagesOperations(this);
     Formulas                         = new FormulasOperations(this);
     GalleryImages                    = new GalleryImagesOperations(this);
     NotificationChannels             = new NotificationChannelsOperations(this);
     PolicySets                       = new PolicySetsOperations(this);
     Policies                         = new PoliciesOperations(this);
     Schedules                        = new SchedulesOperations(this);
     ServiceRunners                   = new ServiceRunnersOperations(this);
     Users                            = new UsersOperations(this);
     Disks                            = new DisksOperations(this);
     Environments                     = new EnvironmentsOperations(this);
     Secrets                          = new SecretsOperations(this);
     VirtualMachines                  = new VirtualMachinesOperations(this);
     VirtualMachineSchedules          = new VirtualMachineSchedulesOperations(this);
     VirtualNetworks                  = new VirtualNetworksOperations(this);
     BaseUri                          = new System.Uri("https://management.azure.com");
     ApiVersion                       = "2016-05-15";
     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()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Profiles        = new ProfilesOperations(this);
     Endpoints       = new EndpointsOperations(this);
     Origins         = new OriginsOperations(this);
     OriginGroups    = new OriginGroupsOperations(this);
     CustomDomains   = new CustomDomainsOperations(this);
     ResourceUsage   = new ResourceUsageOperations(this);
     Operations      = new Operations(this);
     EdgeNodes       = new EdgeNodesOperations(this);
     Policies        = new PoliciesOperations(this);
     ManagedRuleSets = new ManagedRuleSetsOperations(this);
     BaseUri         = new System.Uri("https://management.azure.com");
     ApiVersion      = "2020-04-15";
     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 <DeliveryRuleCondition>("name"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DeliveryRuleCondition>("name"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DeliveryRuleAction>("name"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DeliveryRuleAction>("name"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CustomDomainHttpsParameters>("certificateSource"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CustomDomainHttpsParameters>("certificateSource"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }