/// <summary>
 /// Initializes a new instance of the ServerConnectionPolicy class.
 /// </summary>
 /// <param name="connectionType">The server connection type. Possible
 /// values include: 'Default', 'Proxy', 'Redirect'</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="kind">Metadata used for the Azure portal
 /// experience.</param>
 /// <param name="location">Resource location.</param>
 public ServerConnectionPolicy(ServerConnectionType connectionType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string))
     : base(id, name, type)
 {
     Kind           = kind;
     Location       = location;
     ConnectionType = connectionType;
     CustomInit();
 }
Пример #2
0
        internal static string ToSerializedValue(this ServerConnectionType value)
        {
            switch (value)
            {
            case ServerConnectionType.Default:
                return("Default");

            case ServerConnectionType.Proxy:
                return("Proxy");

            case ServerConnectionType.Redirect:
                return("Redirect");
            }
            return(null);
        }