Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the Backend class.
 /// </summary>
 /// <param name="address">Location of the backend (IP address or
 /// FQDN)</param>
 /// <param name="privateLinkAlias">The Alias of the Private Link
 /// resource. Populating this optional field indicates that this
 /// backend is 'Private'</param>
 /// <param name="privateEndpointStatus">The Approval status for the
 /// connection to the Private Link. Possible values include: 'Pending',
 /// 'Approved', 'Rejected', 'Disconnected', 'Timeout'</param>
 /// <param name="privateLinkApprovalMessage">A custom message to be
 /// included in the approval request to connect to the Private
 /// Link</param>
 /// <param name="httpPort">The HTTP TCP port number. Must be between 1
 /// and 65535.</param>
 /// <param name="httpsPort">The HTTPS TCP port number. Must be between
 /// 1 and 65535.</param>
 /// <param name="enabledState">Whether to enable use of this backend.
 /// Permitted values are 'Enabled' or 'Disabled'. Possible values
 /// include: 'Enabled', 'Disabled'</param>
 /// <param name="priority">Priority to use for load balancing. Higher
 /// priorities will not be used for load balancing if any lower
 /// priority backend is healthy.</param>
 /// <param name="weight">Weight of this endpoint for load balancing
 /// purposes.</param>
 /// <param name="backendHostHeader">The value to use as the host header
 /// sent to the backend. If blank or unspecified, this defaults to the
 /// incoming host.</param>
 public Backend(string address = default(string), string privateLinkAlias = default(string), PrivateEndpointStatus?privateEndpointStatus = default(PrivateEndpointStatus?), string privateLinkApprovalMessage = default(string), int?httpPort = default(int?), int?httpsPort = default(int?), string enabledState = default(string), int?priority = default(int?), int?weight = default(int?), string backendHostHeader = default(string))
 {
     Address                    = address;
     PrivateLinkAlias           = privateLinkAlias;
     PrivateEndpointStatus      = privateEndpointStatus;
     PrivateLinkApprovalMessage = privateLinkApprovalMessage;
     HttpPort                   = httpPort;
     HttpsPort                  = httpsPort;
     EnabledState               = enabledState;
     Priority                   = priority;
     Weight            = weight;
     BackendHostHeader = backendHostHeader;
     CustomInit();
 }
 internal DeepCreatedOrigin(string name, string hostName, int?httpPort, int?httpsPort, string originHostHeader, int?priority, int?weight, bool?enabled, string privateLinkAlias, ResourceIdentifier privateLinkResourceId, string privateLinkLocation, string privateLinkApprovalMessage, PrivateEndpointStatus?privateEndpointStatus)
 {
     Name                       = name;
     HostName                   = hostName;
     HttpPort                   = httpPort;
     HttpsPort                  = httpsPort;
     OriginHostHeader           = originHostHeader;
     Priority                   = priority;
     Weight                     = weight;
     Enabled                    = enabled;
     PrivateLinkAlias           = privateLinkAlias;
     PrivateLinkResourceId      = privateLinkResourceId;
     PrivateLinkLocation        = privateLinkLocation;
     PrivateLinkApprovalMessage = privateLinkApprovalMessage;
     PrivateEndpointStatus      = privateEndpointStatus;
 }
Ejemplo n.º 3
0
 internal CdnOriginData(ResourceIdentifier id, string name, ResourceType type, SystemData systemData, string hostName, int?httpPort, int?httpsPort, string originHostHeader, int?priority, int?weight, bool?enabled, string privateLinkAlias, string privateLinkResourceId, string privateLinkLocation, string privateLinkApprovalMessage, OriginResourceState?resourceState, string provisioningState, PrivateEndpointStatus?privateEndpointStatus) : base(id, name, type, systemData)
 {
     HostName                   = hostName;
     HttpPort                   = httpPort;
     HttpsPort                  = httpsPort;
     OriginHostHeader           = originHostHeader;
     Priority                   = priority;
     Weight                     = weight;
     Enabled                    = enabled;
     PrivateLinkAlias           = privateLinkAlias;
     PrivateLinkResourceId      = privateLinkResourceId;
     PrivateLinkLocation        = privateLinkLocation;
     PrivateLinkApprovalMessage = privateLinkApprovalMessage;
     ResourceState              = resourceState;
     ProvisioningState          = provisioningState;
     PrivateEndpointStatus      = privateEndpointStatus;
 }
Ejemplo n.º 4
0
 internal static string ToSerializedValue(this PrivateEndpointStatus?value)
 {
     return(value == null ? null : ((PrivateEndpointStatus)value).ToSerializedValue());
 }