Пример #1
0
 public static PSBackendPoolsSetting ToPSBackendPoolsSetting(this SdkBackendPoolsSettings sdkBackendPoolsSettings)
 {
     return(new PSBackendPoolsSetting
     {
         EnforceCertificateNameCheck = sdkBackendPoolsSettings.EnforceCertificateNameCheck == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkBackendPoolsSettings.EnforceCertificateNameCheck),
         SendRecvTimeoutInSeconds = sdkBackendPoolsSettings.SendRecvTimeoutSeconds
     });
 }
 /// <summary>
 /// Initializes a new instance of the FrontDoorUpdateParameters class.
 /// </summary>
 /// <param name="friendlyName">A friendly name for the
 /// frontDoor</param>
 /// <param name="routingRules">Routing rules associated with this Front
 /// Door.</param>
 /// <param name="loadBalancingSettings">Load balancing settings
 /// associated with this Front Door instance.</param>
 /// <param name="healthProbeSettings">Health probe settings associated
 /// with this Front Door instance.</param>
 /// <param name="backendPools">Backend pools available to routing
 /// rules.</param>
 /// <param name="frontendEndpoints">Frontend endpoints available to
 /// routing rules.</param>
 /// <param name="backendPoolsSettings">Settings for all
 /// backendPools</param>
 /// <param name="enabledState">Operational status of the Front Door
 /// load balancer. Permitted values are 'Enabled' or 'Disabled'.
 /// Possible values include: 'Enabled', 'Disabled'</param>
 public FrontDoorUpdateParameters(string friendlyName = default(string), IList <RoutingRule> routingRules = default(IList <RoutingRule>), IList <LoadBalancingSettingsModel> loadBalancingSettings = default(IList <LoadBalancingSettingsModel>), IList <HealthProbeSettingsModel> healthProbeSettings = default(IList <HealthProbeSettingsModel>), IList <BackendPool> backendPools = default(IList <BackendPool>), IList <FrontendEndpoint> frontendEndpoints = default(IList <FrontendEndpoint>), BackendPoolsSettings backendPoolsSettings = default(BackendPoolsSettings), string enabledState = default(string))
 {
     FriendlyName          = friendlyName;
     RoutingRules          = routingRules;
     LoadBalancingSettings = loadBalancingSettings;
     HealthProbeSettings   = healthProbeSettings;
     BackendPools          = backendPools;
     FrontendEndpoints     = frontendEndpoints;
     BackendPoolsSettings  = backendPoolsSettings;
     EnabledState          = enabledState;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the FrontDoorModel class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="friendlyName">A friendly name for the
 /// frontDoor</param>
 /// <param name="routingRules">Routing rules associated with this Front
 /// Door.</param>
 /// <param name="loadBalancingSettings">Load balancing settings
 /// associated with this Front Door instance.</param>
 /// <param name="healthProbeSettings">Health probe settings associated
 /// with this Front Door instance.</param>
 /// <param name="backendPools">Backend pools available to routing
 /// rules.</param>
 /// <param name="frontendEndpoints">Frontend endpoints available to
 /// routing rules.</param>
 /// <param name="backendPoolsSettings">Settings for all
 /// backendPools</param>
 /// <param name="enabledState">Operational status of the Front Door
 /// load balancer. Permitted values are 'Enabled' or 'Disabled'.
 /// Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="resourceState">Resource status of the Front Door.
 /// Possible values include: 'Creating', 'Enabling', 'Enabled',
 /// 'Disabling', 'Disabled', 'Deleting'</param>
 /// <param name="provisioningState">Provisioning state of the Front
 /// Door.</param>
 /// <param name="cname">The host that each frontendEndpoint must CNAME
 /// to.</param>
 public FrontDoorModel(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string friendlyName = default(string), IList <RoutingRule> routingRules = default(IList <RoutingRule>), IList <LoadBalancingSettingsModel> loadBalancingSettings = default(IList <LoadBalancingSettingsModel>), IList <HealthProbeSettingsModel> healthProbeSettings = default(IList <HealthProbeSettingsModel>), IList <BackendPool> backendPools = default(IList <BackendPool>), IList <FrontendEndpoint> frontendEndpoints = default(IList <FrontendEndpoint>), BackendPoolsSettings backendPoolsSettings = default(BackendPoolsSettings), string enabledState = default(string), string resourceState = default(string), string provisioningState = default(string), string cname = default(string))
     : base(id, name, type, location, tags)
 {
     FriendlyName          = friendlyName;
     RoutingRules          = routingRules;
     LoadBalancingSettings = loadBalancingSettings;
     HealthProbeSettings   = healthProbeSettings;
     BackendPools          = backendPools;
     FrontendEndpoints     = frontendEndpoints;
     BackendPoolsSettings  = backendPoolsSettings;
     EnabledState          = enabledState;
     ResourceState         = resourceState;
     ProvisioningState     = provisioningState;
     Cname = cname;
     CustomInit();
 }
Пример #4
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (FrontendEndpoints != null)
     {
         foreach (var element in FrontendEndpoints)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (BackendPoolsSettings != null)
     {
         BackendPoolsSettings.Validate();
     }
 }