Skip to content

Commit

Permalink
Update Type Definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Aug 31, 2018
1 parent bb379a5 commit c761167
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Classes/HAProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ public class Action {
public uint http_response_set_status_code { get; set; }
public string http_response_set_status_reason { get; set; }
public PSObject linkedAcls { get; set; }
public PSObject map_use_backend_default { get; set; }
public PSObject map_use_backend_file { get; set; }
public string name { get; set; }
public PSObject Operator { get; set; }
public string tcp_request_content_lua { get; set; }
Expand Down Expand Up @@ -335,6 +337,8 @@ public class Action {
http_response_set_status_code = 0;
http_response_set_status_reason = null;
linkedAcls = null;
map_use_backend_default = null;
map_use_backend_file = null;
name = null;
Operator = null;
tcp_request_content_lua = null;
Expand Down Expand Up @@ -381,6 +385,8 @@ public class Action {
uint Http_Response_Set_Status_Code,
string Http_Response_Set_Status_Reason,
PSObject LinkedAcls,
PSObject Map_Use_Backend_Default,
PSObject Map_Use_Backend_File,
string Name,
PSObject Operator_,
string Tcp_Request_Content_Lua,
Expand Down Expand Up @@ -425,6 +431,8 @@ PSObject Use_Server
http_response_set_status_code = Http_Response_Set_Status_Code;
http_response_set_status_reason = Http_Response_Set_Status_Reason;
linkedAcls = LinkedAcls;
map_use_backend_default = Map_Use_Backend_Default;
map_use_backend_file = Map_Use_Backend_File;
name = Name;
Operator = Operator_;
tcp_request_content_lua = Tcp_Request_Content_Lua;
Expand Down
12 changes: 12 additions & 0 deletions Classes/Nginx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class Http_Server {
public bool naxsi_extensive_log { get; set; }
public PSObject rewrites { get; set; }
public string root { get; set; }
public PSObject security_header { get; set; }
public bool sendfile { get; set; }
public Object servername { get; set; }
public PSObject verify_client { get; set; }
Expand All @@ -90,6 +91,7 @@ public class Http_Server {
naxsi_extensive_log = true;
rewrites = null;
root = null;
security_header = null;
sendfile = true;
servername = null;
verify_client = null;
Expand All @@ -109,6 +111,7 @@ public class Http_Server {
byte Naxsi_Extensive_Log,
PSObject Rewrites,
string Root,
PSObject Security_Header,
byte Sendfile,
Object Servername,
PSObject Verify_Client
Expand All @@ -126,6 +129,7 @@ PSObject Verify_Client
naxsi_extensive_log = (Naxsi_Extensive_Log == 0) ? false : true;
rewrites = Rewrites;
root = Root;
security_header = Security_Header;
sendfile = (Sendfile == 0) ? false : true;
servername = Servername;
verify_client = Verify_Client;
Expand All @@ -146,6 +150,8 @@ public class Location {
public string force_https { get; set; }
public Object index { get; set; }
public PSObject matchtype { get; set; }
public bool php_enable { get; set; }
public string php_override_scriptname { get; set; }
public PSObject rewrites { get; set; }
public string root { get; set; }
public int sqli_block_score { get; set; }
Expand All @@ -166,6 +172,8 @@ public class Location {
force_https = null;
index = null;
matchtype = null;
php_enable = true;
php_override_scriptname = null;
rewrites = null;
root = null;
sqli_block_score = 0;
Expand All @@ -186,6 +194,8 @@ public class Location {
string Force_Https,
Object Index,
PSObject Matchtype,
byte Php_Enable,
string Php_Override_Scriptname,
PSObject Rewrites,
string Root,
int Sqli_Block_Score,
Expand All @@ -204,6 +214,8 @@ int Xss_Block_Score
force_https = Force_Https;
index = Index;
matchtype = Matchtype;
php_enable = (Php_Enable == 0) ? false : true;
php_override_scriptname = Php_Override_Scriptname;
rewrites = Rewrites;
root = Root;
sqli_block_score = Sqli_Block_Score;
Expand Down

0 comments on commit c761167

Please sign in to comment.