diff --git a/api/v1.3.0/objects/amazon_vpc.go b/api/v1.3.0/objects/amazon_vpc.go index d0ab27d..7fbd3d3 100644 --- a/api/v1.3.0/objects/amazon_vpc.go +++ b/api/v1.3.0/objects/amazon_vpc.go @@ -140,8 +140,8 @@ type AmazonVpcGroups []AmazonVpcGroup // AmazonVpcGroup represents a UTM group type AmazonVpcGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/application_control.go b/api/v1.3.0/objects/application_control.go index b9b9e70..2c85538 100644 --- a/api/v1.3.0/objects/application_control.go +++ b/api/v1.3.0/objects/application_control.go @@ -61,8 +61,8 @@ type ApplicationControlGroups []ApplicationControlGroup // ApplicationControlGroup represents a UTM group type ApplicationControlGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/authentication.go b/api/v1.3.0/objects/authentication.go index 60b6fa5..1b10e09 100644 --- a/api/v1.3.0/objects/authentication.go +++ b/api/v1.3.0/objects/authentication.go @@ -91,32 +91,32 @@ type AuthenticationAdirectorys []AuthenticationAdirectory // AuthenticationAdirectory represents a UTM Microsoft Active Directory server type AuthenticationAdirectory struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Backend default value is "" - Backend string `json:"backend"` - // BindDn default value is "" - BindDn string `json:"bind_dn"` - Name string `json:"name"` - PrefetchInterval []interface{} `json:"prefetch_interval"` - // Status default value is false - Status bool `json:"status"` + Reference string `json:"_ref"` + // Ssl default value is false + Ssl bool `json:"ssl"` + Timeout int `json:"timeout"` // BaseDn default value is "" - BaseDn string `json:"base_dn"` - Comment string `json:"comment"` - Port int `json:"port"` + BaseDn string `json:"base_dn"` + // BindPw default value is "" + BindPw string `json:"bind_pw"` + // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) + Server string `json:"server"` // PrefetchBackendSync default value is false PrefetchBackendSync bool `json:"prefetch_backend_sync"` + // BindDn default value is "" + BindDn string `json:"bind_dn"` + Comment string `json:"comment"` + Port int `json:"port"` + // Status default value is false + Status bool `json:"status"` + // Backend default value is "" + Backend string `json:"backend"` + Name string `json:"name"` + PrefetchInterval []interface{} `json:"prefetch_interval"` + PrefetchContexts []interface{} `json:"prefetch_contexts"` // Sasl default value is false Sasl bool `json:"sasl"` - // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) - Server string `json:"server"` - // Ssl default value is false - Ssl bool `json:"ssl"` - // BindPw default value is "" - BindPw string `json:"bind_pw"` - PrefetchContexts []interface{} `json:"prefetch_contexts"` - Timeout int `json:"timeout"` } var _ sophos.RestGetter = &AuthenticationAdirectory{} @@ -172,32 +172,32 @@ type AuthenticationEdirectorys []AuthenticationEdirectory // AuthenticationEdirectory represents a UTM Novell eDirectory server type AuthenticationEdirectory struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // Sasl default value is false - Sasl bool `json:"sasl"` - // Status default value is false - Status bool `json:"status"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + PrefetchInterval []interface{} `json:"prefetch_interval"` + // Ssl default value is true + Ssl bool `json:"ssl"` + Name string `json:"name"` // BindDn default value is "" - BindDn string `json:"bind_dn"` + BindDn string `json:"bind_dn"` + Port int `json:"port"` + PrefetchContexts []interface{} `json:"prefetch_contexts"` + Timeout int `json:"timeout"` + // Backend default value is "" + Backend string `json:"backend"` + // PrefetchBackendSync default value is false + PrefetchBackendSync bool `json:"prefetch_backend_sync"` // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) Server string `json:"server"` // BindPw default value is "" - BindPw string `json:"bind_pw"` - Name string `json:"name"` - // Ssl default value is true - Ssl bool `json:"ssl"` - Timeout int `json:"timeout"` - Comment string `json:"comment"` + BindPw string `json:"bind_pw"` Contexts []interface{} `json:"contexts"` - Port int `json:"port"` - // PrefetchBackendSync default value is false - PrefetchBackendSync bool `json:"prefetch_backend_sync"` - PrefetchContexts []interface{} `json:"prefetch_contexts"` - PrefetchInterval []interface{} `json:"prefetch_interval"` - // Backend default value is "" - Backend string `json:"backend"` + // Sasl default value is false + Sasl bool `json:"sasl"` + // Status default value is false + Status bool `json:"status"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &AuthenticationEdirectory{} @@ -254,8 +254,8 @@ type AuthenticationGroups []AuthenticationGroup // AuthenticationGroup represents a UTM group type AuthenticationGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -313,38 +313,38 @@ type AuthenticationLdaps []AuthenticationLdap // AuthenticationLdap represents a UTM LDAP server type AuthenticationLdap struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - PrefetchInterval []interface{} `json:"prefetch_interval"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // Sasl default value is false + Sasl bool `json:"sasl"` + // Ssl default value is false + Ssl bool `json:"ssl"` + PrefetchContexts []interface{} `json:"prefetch_contexts"` + Port int `json:"port"` + // PrefetchBackendSync default value is false + PrefetchBackendSync bool `json:"prefetch_backend_sync"` // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) Server string `json:"server"` + // Status default value is false + Status bool `json:"status"` // UserAttrib can be one of: []string{"cn", "sn", "uid", "custom"} // UserAttrib default value is "cn" UserAttrib string `json:"user_attrib"` - // BaseDn default value is "" - BaseDn string `json:"base_dn"` - // BindPw default value is "" - BindPw string `json:"bind_pw"` + // UserAttribCustom default value is "" + UserAttribCustom string `json:"user_attrib_custom"` + // BindDn default value is "" + BindDn string `json:"bind_dn"` + Comment string `json:"comment"` Name string `json:"name"` - PrefetchContexts []interface{} `json:"prefetch_contexts"` + PrefetchInterval []interface{} `json:"prefetch_interval"` Timeout int `json:"timeout"` // Backend default value is "" Backend string `json:"backend"` - // BindDn default value is "" - BindDn string `json:"bind_dn"` - Comment string `json:"comment"` - Port int `json:"port"` - // PrefetchBackendSync default value is false - PrefetchBackendSync bool `json:"prefetch_backend_sync"` - // Sasl default value is false - Sasl bool `json:"sasl"` - // Ssl default value is false - Ssl bool `json:"ssl"` - // Status default value is false - Status bool `json:"status"` - // UserAttribCustom default value is "" - UserAttribCustom string `json:"user_attrib_custom"` + // BindPw default value is "" + BindPw string `json:"bind_pw"` + // BaseDn default value is "" + BaseDn string `json:"base_dn"` } var _ sophos.RestGetter = &AuthenticationLdap{} @@ -401,28 +401,28 @@ type AuthenticationOtpTokens []AuthenticationOtpToken // AuthenticationOtpToken represents a UTM One Time Password token type AuthenticationOtpToken struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Offset int `json:"offset"` + Reference string `json:"_ref"` // Status default value is false Status bool `json:"status"` + // Timestep description: Constraints: 0, 10-120 + Timestep int `json:"timestep"` + ExtraCodes []interface{} `json:"extra_codes"` + // ForSsh default value is false + ForSsh bool `json:"for_ssh"` + Lastuse int `json:"lastuse"` + Name string `json:"name"` + Offset int `json:"offset"` + Secret string `json:"secret"` // User description: REF(aaa/user) // User default value is "" User string `json:"user"` - Secret string `json:"secret"` Comment string `json:"comment"` // Digest can be one of: []string{"sha1", "sha256", "sha512"} // Digest default value is "sha1" - Digest string `json:"digest"` - ExtraCodes []interface{} `json:"extra_codes"` - // ForSsh default value is false - ForSsh bool `json:"for_ssh"` + Digest string `json:"digest"` // Hide default value is false - Hide bool `json:"hide"` - Lastuse int `json:"lastuse"` - Name string `json:"name"` - // Timestep description: Constraints: 0, 10-120 - Timestep int `json:"timestep"` + Hide bool `json:"hide"` } var _ sophos.RestGetter = &AuthenticationOtpToken{} @@ -479,11 +479,8 @@ type AuthenticationRadiuss []AuthenticationRadius // AuthenticationRadius represents a UTM RADIUS server type AuthenticationRadius struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` - Name string `json:"name"` - Port int `json:"port"` + Reference string `json:"_ref"` // Secret default value is "" Secret string `json:"secret"` // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) @@ -493,6 +490,9 @@ type AuthenticationRadius struct { Timeout int `json:"timeout"` // Backend default value is "" Backend string `json:"backend"` + Comment string `json:"comment"` + Name string `json:"name"` + Port int `json:"port"` } var _ sophos.RestGetter = &AuthenticationRadius{} @@ -549,20 +549,20 @@ type AuthenticationTacacss []AuthenticationTacacs // AuthenticationTacacs represents a UTM TACACS+ server type AuthenticationTacacs struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Port int `json:"port"` - // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) - Server string `json:"server"` - // Status default value is false - Status bool `json:"status"` - Timeout int `json:"timeout"` + Reference string `json:"_ref"` // Backend default value is "" Backend string `json:"backend"` Comment string `json:"comment"` // Key default value is "" Key string `json:"key"` Name string `json:"name"` + Port int `json:"port"` + // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) + Server string `json:"server"` + // Status default value is false + Status bool `json:"status"` + Timeout int `json:"timeout"` } var _ sophos.RestGetter = &AuthenticationTacacs{} diff --git a/api/v1.3.0/objects/awe.go b/api/v1.3.0/objects/awe.go index 8ae7e3b..f2ae0b5 100644 --- a/api/v1.3.0/objects/awe.go +++ b/api/v1.3.0/objects/awe.go @@ -96,8 +96,8 @@ type AweClients []AweClient // AweClient represents a UTM wireless client type AweClient struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Lastseen int `json:"lastseen"` // Mac description: (MACADDR) @@ -159,91 +159,91 @@ type AweDevices []AweDevice // AweDevice represents a UTM wireless access point type AweDevice struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - AutoChannel int `json:"auto_channel"` - // Band can be one of: []string{"g", "a"} - // Band default value is "" - Band string `json:"band"` - // Id default value is "Remote Wifi Device" - Id string `json:"id"` - // LanMac description: (MACADDR) - // LanMac default value is "00:00:00:00:00:00" - LanMac string `json:"lan_mac"` - AllowedChannels []interface{} `json:"allowed_channels"` - AllowedCountries []interface{} `json:"allowed_countries"` - ApLocaldebuglevel int `json:"ap_localdebuglevel"` - ApVlantag int `json:"ap_vlantag"` - // ChannelWidth can be one of: []string{"HT20", "HT40"} - // ChannelWidth default value is "HT20" - ChannelWidth string `json:"channel_width"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Name string `json:"name"` + SchedScanInterval int `json:"sched_scan_interval"` + SchedScanInterval11A int `json:"sched_scan_interval11a"` // LastIp description: (IPADDR) // LastIp default value is "" - LastIp string `json:"last_ip"` - // MeshAbility11G default value is false - MeshAbility11G bool `json:"mesh_ability11g"` - // R0KhSecret default value is "" - R0KhSecret string `json:"r0kh_secret"` - // TimeScheduling11A default value is false - TimeScheduling11A bool `json:"time_scheduling11a"` - TimeSelect11A []interface{} `json:"time_select11a"` - // AcAbility default value is false - AcAbility bool `json:"ac_ability"` - ActiveChannels []interface{} `json:"active_channels"` - AutoChannel11A int `json:"auto_channel11a"` - Channel int `json:"channel"` - // DfsAbility default value is false - DfsAbility bool `json:"dfs_ability"` - ScanInterval11A int `json:"scan_interval11a"` - SchedScanInterval11A int `json:"sched_scan_interval11a"` - // TimeScheduling default value is false - TimeScheduling bool `json:"time_scheduling"` - // Vlantagging default value is false - Vlantagging bool `json:"vlantagging"` - BridgeModes []interface{} `json:"bridge_modes"` - Channel11A int `json:"channel11a"` + LastIp string `json:"last_ip"` + MaxSsids int `json:"max_ssids"` // MeshAbility default value is false - MeshAbility bool `json:"mesh_ability"` - ScanInterval int `json:"scan_interval"` - // ChannelWidth11A can be one of: []string{"HT20", "HT40", "VHT20", "VHT40", "VHT80"} - // ChannelWidth11A default value is "HT20" - ChannelWidth11A string `json:"channel_width11a"` + MeshAbility bool `json:"mesh_ability"` + // MeshAbility11A default value is false + MeshAbility11A bool `json:"mesh_ability11a"` + ScanInterval11A int `json:"scan_interval11a"` + ActiveChannels []interface{} `json:"active_channels"` + ApLocaldebuglevel int `json:"ap_localdebuglevel"` + // Id default value is "Remote Wifi Device" + Id string `json:"id"` + // TunnelId default value is "" + TunnelId string `json:"tunnel_id"` + // TxPowerControl default value is false + TxPowerControl bool `json:"tx_power_control"` + // Type default value is "" + Type string `json:"type"` // Country description: (REGEX) // Country default value is "" - Country string `json:"country"` - // Key default value is "" - Key string `json:"key"` - Name string `json:"name"` + Country string `json:"country"` + ScanInterval int `json:"scan_interval"` // Stp default value is false Stp bool `json:"stp"` - // TxPowerControl default value is false - TxPowerControl bool `json:"tx_power_control"` - MaxSsids int `json:"max_ssids"` - TimeSelect []interface{} `json:"time_select"` - // TunnelId default value is "" - TunnelId string `json:"tunnel_id"` - Txpower int `json:"txpower"` - Txpower11A int `json:"txpower11a"` - Comment string `json:"comment"` + // TimeScheduling11A default value is false + TimeScheduling11A bool `json:"time_scheduling11a"` + AllowedCountries []interface{} `json:"allowed_countries"` + // Band can be one of: []string{"g", "a"} + // Band default value is "" + Band string `json:"band"` + BridgeModes []interface{} `json:"bridge_modes"` + // Location default value is "" + Location string `json:"location"` + // R0KhSecret default value is "" + R0KhSecret string `json:"r0kh_secret"` + // Vlantagging default value is false + Vlantagging bool `json:"vlantagging"` // Enabled default value is false - Enabled bool `json:"enabled"` - Networks []interface{} `json:"networks"` - // Status default value is false - Status bool `json:"status"` + Enabled bool `json:"enabled"` // Interface description: REF(interface/*) // Interface default value is "" Interface string `json:"interface"` - // Location default value is "" - Location string `json:"location"` - // MeshAbility11A default value is false - MeshAbility11A bool `json:"mesh_ability11a"` - SchedScanInterval int `json:"sched_scan_interval"` - // Type default value is "" - Type string `json:"type"` + // LanMac description: (MACADDR) + // LanMac default value is "00:00:00:00:00:00" + LanMac string `json:"lan_mac"` + Txpower11A int `json:"txpower11a"` + Comment string `json:"comment"` + // MeshAbility11G default value is false + MeshAbility11G bool `json:"mesh_ability11g"` + TimeSelect []interface{} `json:"time_select"` + AutoChannel11A int `json:"auto_channel11a"` + // ChannelWidth can be one of: []string{"HT20", "HT40"} + // ChannelWidth default value is "HT20" + ChannelWidth string `json:"channel_width"` + // Key default value is "" + Key string `json:"key"` // WifiMac description: (MACADDR) // WifiMac default value is "00:00:00:00:00:00" WifiMac string `json:"wifi_mac"` + // AcAbility default value is false + AcAbility bool `json:"ac_ability"` + ApVlantag int `json:"ap_vlantag"` + AutoChannel int `json:"auto_channel"` + Txpower int `json:"txpower"` + AllowedChannels []interface{} `json:"allowed_channels"` + // ChannelWidth11A can be one of: []string{"HT20", "HT40", "VHT20", "VHT40", "VHT80"} + // ChannelWidth11A default value is "HT20" + ChannelWidth11A string `json:"channel_width11a"` + // Status default value is false + Status bool `json:"status"` + Networks []interface{} `json:"networks"` + // TimeScheduling default value is false + TimeScheduling bool `json:"time_scheduling"` + TimeSelect11A []interface{} `json:"time_select11a"` + Channel int `json:"channel"` + Channel11A int `json:"channel11a"` + // DfsAbility default value is false + DfsAbility bool `json:"dfs_ability"` } var _ sophos.RestGetter = &AweDevice{} @@ -298,8 +298,8 @@ type AweGroups []AweGroup // AweGroup represents a UTM group type AweGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -355,47 +355,47 @@ type AweLocals []AweLocal // AweLocal represents a UTM SG wifi type AweLocal struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // Id default value is "Remote Wifi Device" - Id string `json:"id"` - Name string `json:"name"` - Networks []interface{} `json:"networks"` - // Status default value is false - Status bool `json:"status"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + AllowedChannels []interface{} `json:"allowed_channels"` + Channel int `json:"channel"` + // WifiMac description: (MACADDR) + // WifiMac default value is "00:00:00:00:00:00" + WifiMac string `json:"wifi_mac"` ActiveChannels []interface{} `json:"active_channels"` // Band can be one of: []string{"g", "a"} // Band default value is "g" - Band string `json:"band"` - Channel int `json:"channel"` - Comment string `json:"comment"` - TimeSelect []interface{} `json:"time_select"` - AllowedChannels []interface{} `json:"allowed_channels"` - ScanInterval int `json:"scan_interval"` - Txpower int `json:"txpower"` - // MeshAbility11G default value is false - MeshAbility11G bool `json:"mesh_ability11g"` + Band string `json:"band"` + BridgeModes []interface{} `json:"bridge_modes"` + MaxSsids int `json:"max_ssids"` + Networks []interface{} `json:"networks"` // TimeScheduling default value is false TimeScheduling bool `json:"time_scheduling"` - // WifiMac description: (MACADDR) - // WifiMac default value is "00:00:00:00:00:00" - WifiMac string `json:"wifi_mac"` - ApLocaldebuglevel int `json:"ap_localdebuglevel"` - AutoChannel int `json:"auto_channel"` - MaxSsids int `json:"max_ssids"` - // MeshAbility default value is false - MeshAbility bool `json:"mesh_ability"` // TxPowerControl default value is false TxPowerControl bool `json:"tx_power_control"` - // Type default value is "" - Type string `json:"type"` - BridgeModes []interface{} `json:"bridge_modes"` + Txpower int `json:"txpower"` // DfsAbility default value is false DfsAbility bool `json:"dfs_ability"` + // Id default value is "Remote Wifi Device" + Id string `json:"id"` + // MeshAbility default value is false + MeshAbility bool `json:"mesh_ability"` // MeshAbility11A default value is false - MeshAbility11A bool `json:"mesh_ability11a"` - SchedScanInterval int `json:"sched_scan_interval"` + MeshAbility11A bool `json:"mesh_ability11a"` + // MeshAbility11G default value is false + MeshAbility11G bool `json:"mesh_ability11g"` + Name string `json:"name"` + // Status default value is false + Status bool `json:"status"` + ApLocaldebuglevel int `json:"ap_localdebuglevel"` + AutoChannel int `json:"auto_channel"` + Comment string `json:"comment"` + ScanInterval int `json:"scan_interval"` + SchedScanInterval int `json:"sched_scan_interval"` + TimeSelect []interface{} `json:"time_select"` + // Type default value is "" + Type string `json:"type"` } var _ sophos.RestGetter = &AweLocal{} @@ -450,75 +450,75 @@ type AweReds []AweRed // AweRed represents a UTM RED wifi type AweRed struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // ChannelWidth can be one of: []string{"HT20", "HT40"} - // ChannelWidth default value is "HT20" - ChannelWidth string `json:"channel_width"` - // Country description: (REGEX) - // Country default value is "" - Country string `json:"country"` - // Interface description: REF(interface/*) - // Interface default value is "" - Interface string `json:"interface"` - // LanMac description: (MACADDR) - // LanMac default value is "00:00:00:00:00:00" - LanMac string `json:"lan_mac"` - // LastIp description: (IPADDR) - // LastIp default value is "" - LastIp string `json:"last_ip"` - // Status default value is false - Status bool `json:"status"` - TimeSelect []interface{} `json:"time_select"` - // WifiMac description: (MACADDR) - // WifiMac default value is "00:00:00:00:00:00" - WifiMac string `json:"wifi_mac"` - AllowedCountries []interface{} `json:"allowed_countries"` - Channel int `json:"channel"` - // ForcedCountry default value is "" - ForcedCountry string `json:"forced_country"` - MaxSsids int `json:"max_ssids"` - // R0KhSecret default value is "" - R0KhSecret string `json:"r0kh_secret"` - // TunnelId default value is "" - TunnelId string `json:"tunnel_id"` - // Vlantagging default value is false - Vlantagging bool `json:"vlantagging"` - // AcAbility default value is false - AcAbility bool `json:"ac_ability"` - AllowedChannels []interface{} `json:"allowed_channels"` - ApLocaldebuglevel int `json:"ap_localdebuglevel"` + Reference string `json:"_ref"` // Band can be one of: []string{"g", "a"} // Band default value is "g" - Band string `json:"band"` - BridgeModes []interface{} `json:"bridge_modes"` - // Enabled default value is false - Enabled bool `json:"enabled"` + Band string `json:"band"` + // R0KhSecret default value is "" + R0KhSecret string `json:"r0kh_secret"` + Channel int `json:"channel"` + Networks []interface{} `json:"networks"` + ScanInterval int `json:"scan_interval"` // TimeScheduling default value is false TimeScheduling bool `json:"time_scheduling"` // TxPowerControl default value is false - TxPowerControl bool `json:"tx_power_control"` + TxPowerControl bool `json:"tx_power_control"` + AllowedChannels []interface{} `json:"allowed_channels"` // DfsAbility default value is false - DfsAbility bool `json:"dfs_ability"` - ApVlantag int `json:"ap_vlantag"` - AutoChannel int `json:"auto_channel"` - // Location default value is "" - Location string `json:"location"` - ScanInterval int `json:"scan_interval"` - Txpower int `json:"txpower"` + DfsAbility bool `json:"dfs_ability"` + // Enabled default value is false + Enabled bool `json:"enabled"` + // LastIp description: (IPADDR) + // LastIp default value is "" + LastIp string `json:"last_ip"` + ApLocaldebuglevel int `json:"ap_localdebuglevel"` + ApVlantag int `json:"ap_vlantag"` + // Vlantagging default value is false + Vlantagging bool `json:"vlantagging"` + // Status default value is false + Status bool `json:"status"` ActiveChannels []interface{} `json:"active_channels"` - // MeshAbility default value is false - MeshAbility bool `json:"mesh_ability"` - Networks []interface{} `json:"networks"` - // Type default value is "" - Type string `json:"type"` - Comment string `json:"comment"` + Comment string `json:"comment"` // Id default value is "Remote Wifi Device" Id string `json:"id"` + // LanMac description: (MACADDR) + // LanMac default value is "00:00:00:00:00:00" + LanMac string `json:"lan_mac"` + MaxSsids int `json:"max_ssids"` + // AcAbility default value is false + AcAbility bool `json:"ac_ability"` + AllowedCountries []interface{} `json:"allowed_countries"` + AutoChannel int `json:"auto_channel"` + // Interface description: REF(interface/*) + // Interface default value is "" + Interface string `json:"interface"` + Name string `json:"name"` + SchedScanInterval int `json:"sched_scan_interval"` + Txpower int `json:"txpower"` + BridgeModes []interface{} `json:"bridge_modes"` + // ChannelWidth can be one of: []string{"HT20", "HT40"} + // ChannelWidth default value is "HT20" + ChannelWidth string `json:"channel_width"` // Key default value is "" - Key string `json:"key"` - Name string `json:"name"` - SchedScanInterval int `json:"sched_scan_interval"` + Key string `json:"key"` + // Location default value is "" + Location string `json:"location"` + // MeshAbility default value is false + MeshAbility bool `json:"mesh_ability"` + // Type default value is "" + Type string `json:"type"` + // Country description: (REGEX) + // Country default value is "" + Country string `json:"country"` + // ForcedCountry default value is "" + ForcedCountry string `json:"forced_country"` + TimeSelect []interface{} `json:"time_select"` + // TunnelId default value is "" + TunnelId string `json:"tunnel_id"` + // WifiMac description: (MACADDR) + // WifiMac default value is "00:00:00:00:00:00" + WifiMac string `json:"wifi_mac"` } var _ sophos.RestGetter = &AweRed{} diff --git a/api/v1.3.0/objects/awe_network_device_association.go b/api/v1.3.0/objects/awe_network_device_association.go index 039da81..a5fce67 100644 --- a/api/v1.3.0/objects/awe_network_device_association.go +++ b/api/v1.3.0/objects/awe_network_device_association.go @@ -67,8 +67,8 @@ type AweNetworkDeviceAssociationGroups []AweNetworkDeviceAssociationGroup // AweNetworkDeviceAssociationGroup represents a UTM group type AweNetworkDeviceAssociationGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -129,8 +129,8 @@ type AweNetworkDeviceAssociationMeshRoles []AweNetworkDeviceAssociationMeshRole // AweNetworkDeviceAssociationMeshRole represents a UTM assign device to mesh network type AweNetworkDeviceAssociationMeshRole struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` // Role can be one of: []string{"point", "portal"} // Role default value is "portal" Role string `json:"role"` diff --git a/api/v1.3.0/objects/aws.go b/api/v1.3.0/objects/aws.go index 17eadc6..0ccc786 100644 --- a/api/v1.3.0/objects/aws.go +++ b/api/v1.3.0/objects/aws.go @@ -67,8 +67,8 @@ type AwsGroups []AwsGroup // AwsGroup represents a UTM aws->group type AwsGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/awscli.go b/api/v1.3.0/objects/awscli.go index 59ca0f5..6268ad5 100644 --- a/api/v1.3.0/objects/awscli.go +++ b/api/v1.3.0/objects/awscli.go @@ -60,10 +60,10 @@ type AwscliGroups []AwscliGroup // AwscliGroup represents a UTM awscli->group type AwscliGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` Name string `json:"name"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &AwscliGroup{} @@ -120,16 +120,8 @@ type AwscliProfiles []AwscliProfile // AwscliProfile represents a UTM AWS CLI Profile type AwscliProfile struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // ProfileName description: (REGEX) - // ProfileName default value is "default" - ProfileName string `json:"profile_name"` - // Region description: REF(aws/region) - Region string `json:"region"` - // AwsAccessKeyId description: (REGEX) - // AwsAccessKeyId default value is "" - AwsAccessKeyId string `json:"aws_access_key_id"` + Reference string `json:"_ref"` // AwsSecretAccessKey default value is "" AwsSecretAccessKey string `json:"aws_secret_access_key"` // AwsSessionToken default value is "" @@ -139,6 +131,14 @@ type AwscliProfile struct { // Output can be one of: []string{"json", "text", "table"} // Output default value is "json" Output string `json:"output"` + // ProfileName description: (REGEX) + // ProfileName default value is "default" + ProfileName string `json:"profile_name"` + // Region description: REF(aws/region) + Region string `json:"region"` + // AwsAccessKeyId description: (REGEX) + // AwsAccessKeyId default value is "" + AwsAccessKeyId string `json:"aws_access_key_id"` } var _ sophos.RestGetter = &AwscliProfile{} diff --git a/api/v1.3.0/objects/bgp.go b/api/v1.3.0/objects/bgp.go index ddb2d8c..4d9713f 100644 --- a/api/v1.3.0/objects/bgp.go +++ b/api/v1.3.0/objects/bgp.go @@ -154,17 +154,17 @@ type BgpFilters []BgpFilter // BgpFilter represents a UTM BGP filter list type BgpFilter struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // Action can be one of: []string{"permit", "deny"} - Action string `json:"action"` - Address []interface{} `json:"address"` - AsRegex []interface{} `json:"as_regex"` - Comment string `json:"comment"` - Name string `json:"name"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Address []interface{} `json:"address"` + AsRegex []interface{} `json:"as_regex"` + Comment string `json:"comment"` + Name string `json:"name"` // Type can be one of: []string{"as_number", "ip_address"} Type string `json:"type"` + // Action can be one of: []string{"permit", "deny"} + Action string `json:"action"` } var _ sophos.RestGetter = &BgpFilter{} @@ -219,8 +219,8 @@ type BgpGroups []BgpGroup // BgpGroup represents a UTM group type BgpGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -277,37 +277,37 @@ type BgpNeighbors []BgpNeighbor // BgpNeighbor represents a UTM BGP neighbor type BgpNeighbor struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // FilterIn description: REF(bgp/filter) - FilterIn string `json:"filter_in"` - Name string `json:"name"` - Asn int `json:"asn"` - // DefaultOriginate default value is false - DefaultOriginate bool `json:"default_originate"` - // Host description: REF(network/host) - Host string `json:"host"` - // NextHopSelf default value is false - NextHopSelf bool `json:"next_hop_self"` - // Password description: (REGEX) - Password string `json:"password"` - // Status default value is true - Status bool `json:"status"` - Weight int `json:"weight"` + Reference string `json:"_ref"` // Authentication can be one of: []string{"null", "password"} // Authentication default value is "null" Authentication string `json:"authentication"` - // RouteIn description: REF(bgp/route_map) - RouteIn string `json:"route_in"` + // DefaultOriginate default value is false + DefaultOriginate bool `json:"default_originate"` // SoftReconfiguration default value is true SoftReconfiguration bool `json:"soft_reconfiguration"` - // FilterOut description: REF(bgp/filter) - FilterOut string `json:"filter_out"` + Weight int `json:"weight"` + // Status default value is true + Status bool `json:"status"` + Comment string `json:"comment"` // Multihop default value is false Multihop bool `json:"multihop"` + // Password description: (REGEX) + Password string `json:"password"` + // RouteIn description: REF(bgp/route_map) + RouteIn string `json:"route_in"` + Asn int `json:"asn"` + // NextHopSelf default value is false + NextHopSelf bool `json:"next_hop_self"` // RouteOut description: REF(bgp/route_map) RouteOut string `json:"route_out"` - Comment string `json:"comment"` + // FilterIn description: REF(bgp/filter) + FilterIn string `json:"filter_in"` + // FilterOut description: REF(bgp/filter) + FilterOut string `json:"filter_out"` + // Host description: REF(network/host) + Host string `json:"host"` + Name string `json:"name"` } var _ sophos.RestGetter = &BgpNeighbor{} @@ -363,21 +363,21 @@ type BgpRouteMaps []BgpRouteMap // BgpRouteMap represents a UTM route_map type BgpRouteMap struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // Prepend description: (REGEX) - // Prepend default value is "" - Prepend string `json:"prepend"` - AsRegex []interface{} `json:"as_regex"` - Name string `json:"name"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Address []interface{} `json:"address"` Metric int `json:"metric"` + Name string `json:"name"` Preference int `json:"preference"` + // Prepend description: (REGEX) + // Prepend default value is "" + Prepend string `json:"prepend"` // Type can be one of: []string{"as_number", "ip_address"} Type string `json:"type"` - Weight int `json:"weight"` - Address []interface{} `json:"address"` + AsRegex []interface{} `json:"as_regex"` Comment string `json:"comment"` + Weight int `json:"weight"` } var _ sophos.RestGetter = &BgpRouteMap{} @@ -434,22 +434,22 @@ type BgpSystems []BgpSystem // BgpSystem represents a UTM BGP system type BgpSystem struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Asn int `json:"asn"` - // Id description: (IPADDR) - Id string `json:"id"` - // InstallRoutes default value is true - InstallRoutes bool `json:"install_routes"` - MaximumPaths int `json:"maximum_paths"` - Name string `json:"name"` - Comment string `json:"comment"` - // Custom default value is "" - Custom string `json:"custom"` - Neighbor []interface{} `json:"neighbor"` - Network []interface{} `json:"network"` + Reference string `json:"_ref"` // Status default value is true Status bool `json:"status"` + Asn int `json:"asn"` + // Custom default value is "" + Custom string `json:"custom"` + // InstallRoutes default value is true + InstallRoutes bool `json:"install_routes"` + Name string `json:"name"` + Neighbor []interface{} `json:"neighbor"` + Network []interface{} `json:"network"` + Comment string `json:"comment"` + // Id description: (IPADDR) + Id string `json:"id"` + MaximumPaths int `json:"maximum_paths"` } var _ sophos.RestGetter = &BgpSystem{} diff --git a/api/v1.3.0/objects/ca.go b/api/v1.3.0/objects/ca.go index 1a7cc0e..262699b 100644 --- a/api/v1.3.0/objects/ca.go +++ b/api/v1.3.0/objects/ca.go @@ -116,13 +116,13 @@ type CaCrls []CaCrl // CaCrl represents a UTM certificate revocation list type CaCrl struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Name string `json:"name"` + Comment string `json:"comment"` + Crl string `json:"crl"` // Meta description: REF(ca/meta_crl) - Meta string `json:"meta"` - Name string `json:"name"` - Comment string `json:"comment"` - Crl string `json:"crl"` + Meta string `json:"meta"` } var _ sophos.RestGetter = &CaCrl{} @@ -177,8 +177,8 @@ type CaGroups []CaGroup // CaGroup represents a UTM group type CaGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -365,16 +365,16 @@ type CaHttpVerificationCas []CaHttpVerificationCa // CaHttpVerificationCa represents a UTM HTTPS verification CA type CaHttpVerificationCa struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // Trust default value is false + Trust bool `json:"trust"` Certificate string `json:"certificate"` Comment string `json:"comment"` // Meta description: REF(ca/meta_x509) Meta string `json:"meta"` Name string `json:"name"` - // Trust default value is false - Trust bool `json:"trust"` } var _ sophos.RestGetter = &CaHttpVerificationCa{} @@ -431,14 +431,14 @@ type CaMetaCrls []CaMetaCrl // CaMetaCrl represents a UTM CRL meta information type CaMetaCrl struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` - Hash string `json:"hash"` + Reference string `json:"_ref"` Issuer string `json:"issuer"` Lastupdate string `json:"lastupdate"` Name string `json:"name"` Nextupdate string `json:"nextupdate"` + Comment string `json:"comment"` + Hash string `json:"hash"` } var _ sophos.RestGetter = &CaMetaCrl{} @@ -702,8 +702,8 @@ type CaVerificationCas []CaVerificationCa // CaVerificationCa represents a UTM X509 verification CA type CaVerificationCa struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Certificate string `json:"certificate"` Comment string `json:"comment"` // Meta description: REF(ca/meta_x509) diff --git a/api/v1.3.0/objects/clientless_vpn.go b/api/v1.3.0/objects/clientless_vpn.go index 050554c..f235e3e 100644 --- a/api/v1.3.0/objects/clientless_vpn.go +++ b/api/v1.3.0/objects/clientless_vpn.go @@ -140,8 +140,8 @@ type ClientlessVpnGroups []ClientlessVpnGroup // ClientlessVpnGroup represents a UTM group type ClientlessVpnGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/condition.go b/api/v1.3.0/objects/condition.go index a12895c..8089315 100644 --- a/api/v1.3.0/objects/condition.go +++ b/api/v1.3.0/objects/condition.go @@ -61,8 +61,8 @@ type ConditionGroups []ConditionGroup // ConditionGroup represents a UTM group type ConditionGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/cron.go b/api/v1.3.0/objects/cron.go index 4611b0e..986464c 100644 --- a/api/v1.3.0/objects/cron.go +++ b/api/v1.3.0/objects/cron.go @@ -61,15 +61,15 @@ type CronAts []CronAt // CronAt represents a UTM scheduled job type CronAt struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Time description: (TIME) - Time string `json:"time"` - Command string `json:"command"` - Comment string `json:"comment"` + Reference string `json:"_ref"` + Command string `json:"command"` + Comment string `json:"comment"` // Date description: (DATE) Date string `json:"date"` Name string `json:"name"` + // Time description: (TIME) + Time string `json:"time"` } var _ sophos.RestGetter = &CronAt{} @@ -124,8 +124,8 @@ type CronGroups []CronGroup // CronGroup represents a UTM group type CronGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/dhcp.go b/api/v1.3.0/objects/dhcp.go index a585558..f350693 100644 --- a/api/v1.3.0/objects/dhcp.go +++ b/api/v1.3.0/objects/dhcp.go @@ -94,8 +94,8 @@ type DhcpGroups []DhcpGroup // DhcpGroup represents a UTM group type DhcpGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -225,31 +225,31 @@ type DhcpOption6s []DhcpOption6 // DhcpOption6 represents a UTM DHCPv6 option type DhcpOption6 struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Host []interface{} `json:"host"` + Server []interface{} `json:"server"` // String description: (HEXSTRING) String string `json:"string"` - // Address description: REF(network/interface_address), REF(network/host), REF(network/dns_host), REF(network/dns_group), REF(network/availability_group), REF(network/group) - Address string `json:"address"` - Host []interface{} `json:"host"` - // Mac description: (HEXSTRING) - Mac string `json:"mac"` - Server []interface{} `json:"server"` - // Status default value is false - Status bool `json:"status"` - Text string `json:"text"` // Code description: Constraints: 7, 10-12, 15-18, 21-255 Code int `json:"code"` - Comment string `json:"comment"` DhcpName string `json:"dhcp_name"` - Integer int `json:"integer"` - Name string `json:"name"` // Scope can be one of: []string{"global", "server", "host", "mac", "vendor"} Scope string `json:"scope"` + Text string `json:"text"` + // Mac description: (HEXSTRING) + Mac string `json:"mac"` + Name string `json:"name"` // Type can be one of: []string{"ip-address", "text", "string", "integer"} - Type string `json:"type"` + Type string `json:"type"` + Integer int `json:"integer"` + // Status default value is false + Status bool `json:"status"` Vendor string `json:"vendor"` + // Address description: REF(network/interface_address), REF(network/host), REF(network/dns_host), REF(network/dns_group), REF(network/availability_group), REF(network/group) + Address string `json:"address"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &DhcpOption6{} @@ -385,45 +385,45 @@ type DhcpServer6s []DhcpServer6 // DhcpServer6 represents a UTM DHCPv6 server type DhcpServer6 struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - DefaultLft int `json:"default_lft"` - // RangeEnd description: (IP6ADDR) - RangeEnd string `json:"range_end"` + Reference string `json:"_ref"` // Address description: REF(itfparams/*) - Address string `json:"address"` - // Domain default value is "" - Domain string `json:"domain"` - // Interface description: REF(interface/ethernet), REF(interface/vlan), REF(interface/bridge) - Interface string `json:"interface"` - // OnLink default value is false - OnLink bool `json:"on_link"` - PrefdLft int `json:"prefd_lft"` + Address string `json:"address"` + Name string `json:"name"` + Netmask6 int `json:"netmask6"` + // ProxyAutoconfig default value is false + ProxyAutoconfig bool `json:"proxy_autoconfig"` + // Status default value is false + Status bool `json:"status"` // RelayMode default value is false - RelayMode bool `json:"relay_mode"` + RelayMode bool `json:"relay_mode"` + Comment string `json:"comment"` // Custom default value is "" - Custom string `json:"custom"` + Custom string `json:"custom"` + DefaultLft int `json:"default_lft"` + // DenyUnknown default value is false + DenyUnknown bool `json:"deny_unknown"` + // Domain default value is "" + Domain string `json:"domain"` + // Mtu description: Constraints: 0, 1280-9000 + Mtu int `json:"mtu"` + PrefdLft int `json:"prefd_lft"` + ValidLft int `json:"valid_lft"` + // Dns1 description: (IP6ADDR) + // Dns1 default value is "::" + Dns1 string `json:"dns1"` // Dns2 description: (IP6ADDR) // Dns2 default value is "::" Dns2 string `json:"dns2"` Mappings []interface{} `json:"mappings"` - // Mtu description: Constraints: 0, 1280-9000 - Mtu int `json:"mtu"` + // OnLink default value is false + OnLink bool `json:"on_link"` // RangeStart description: (IP6ADDR) RangeStart string `json:"range_start"` - // Status default value is false - Status bool `json:"status"` - Comment string `json:"comment"` - // Dns1 description: (IP6ADDR) - // Dns1 default value is "::" - Dns1 string `json:"dns1"` - Name string `json:"name"` - Netmask6 int `json:"netmask6"` - // ProxyAutoconfig default value is false - ProxyAutoconfig bool `json:"proxy_autoconfig"` - ValidLft int `json:"valid_lft"` - // DenyUnknown default value is false - DenyUnknown bool `json:"deny_unknown"` + // Interface description: REF(interface/ethernet), REF(interface/vlan), REF(interface/bridge) + Interface string `json:"interface"` + // RangeEnd description: (IP6ADDR) + RangeEnd string `json:"range_end"` } var _ sophos.RestGetter = &DhcpServer6{} @@ -480,41 +480,41 @@ type DhcpStatelesss []DhcpStateless // DhcpStateless represents a UTM IPv6 prefix advertisement type DhcpStateless struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + ValidLft int `json:"valid_lft"` + // Custom default value is "" + Custom string `json:"custom"` + DefaultLft int `json:"default_lft"` + // Dns1 description: (IP6ADDR) + // Dns1 default value is "::" + Dns1 string `json:"dns1"` + // Interface description: REF(interface/ethernet), REF(interface/vlan), REF(interface/bridge) + Interface string `json:"interface"` + // Mtu description: Constraints: 0, 1280-9000 + Mtu int `json:"mtu"` + // OnLink default value is false + OnLink bool `json:"on_link"` // StatelessServerStatus default value is true - StatelessServerStatus bool `json:"stateless_server_status"` + StatelessServerStatus bool `json:"stateless_server_status"` + Comment string `json:"comment"` + Name string `json:"name"` // Dns2 description: (IP6ADDR) // Dns2 default value is "::" Dns2 string `json:"dns2"` // Domain default value is "" Domain string `json:"domain"` // ManagedFlag default value is false - ManagedFlag bool `json:"managed_flag"` - Name string `json:"name"` - Comment string `json:"comment"` - // Interface description: REF(interface/ethernet), REF(interface/vlan), REF(interface/bridge) - Interface string `json:"interface"` - PrefdLft int `json:"prefd_lft"` - // ProxyAutoconfig default value is false - ProxyAutoconfig bool `json:"proxy_autoconfig"` - DefaultLft int `json:"default_lft"` - // Dns1 description: (IP6ADDR) - // Dns1 default value is "::" - Dns1 string `json:"dns1"` + ManagedFlag bool `json:"managed_flag"` + // Address description: REF(itfparams/*) + Address string `json:"address"` // OtherConfig default value is false OtherConfig bool `json:"other_config"` + PrefdLft int `json:"prefd_lft"` + // ProxyAutoconfig default value is false + ProxyAutoconfig bool `json:"proxy_autoconfig"` // Status default value is false - Status bool `json:"status"` - ValidLft int `json:"valid_lft"` - // Address description: REF(itfparams/*) - Address string `json:"address"` - // Custom default value is "" - Custom string `json:"custom"` - // Mtu description: Constraints: 0, 1280-9000 - Mtu int `json:"mtu"` - // OnLink default value is false - OnLink bool `json:"on_link"` + Status bool `json:"status"` } var _ sophos.RestGetter = &DhcpStateless{} diff --git a/api/v1.3.0/objects/dns.go b/api/v1.3.0/objects/dns.go index 6d352ef..4eba03d 100644 --- a/api/v1.3.0/objects/dns.go +++ b/api/v1.3.0/objects/dns.go @@ -72,16 +72,16 @@ type DnsAxfrs []DnsAxfr // DnsAxfr represents a UTM DNS slave zone type DnsAxfr struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Name string `json:"name"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` + Master []interface{} `json:"master"` + Name string `json:"name"` // Status default value is false Status bool `json:"status"` // Zone description: (HOSTNAME) - Zone string `json:"zone"` - Comment string `json:"comment"` - Master []interface{} `json:"master"` + Zone string `json:"zone"` } var _ sophos.RestGetter = &DnsAxfr{} @@ -136,8 +136,8 @@ type DnsGroups []DnsGroup // DnsGroup represents a UTM group type DnsGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/dyndns.go b/api/v1.3.0/objects/dyndns.go index c73a5ec..6f63c01 100644 --- a/api/v1.3.0/objects/dyndns.go +++ b/api/v1.3.0/objects/dyndns.go @@ -60,39 +60,39 @@ type DyndnsDyndnss []DyndnsDyndns // DyndnsDyndns represents a UTM DynDNS mapping type DyndnsDyndns struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Backupmx default value is false - Backupmx bool `json:"backupmx"` - Comment string `json:"comment"` - // Interface description: REF(interface/*) - Interface string `json:"interface"` + Reference string `json:"_ref"` + // Type can be one of: []string{"dns-o-matic", "dnsdynamic", "dnspark", "dtdns", "dyndns", "dyndns-custom", "easydns", "freedns", "namecheap", "no-ip", "opendns", "selfhost", "strato", "zoneedit"} + // Type default value is "dyndns" + Type string `json:"type"` + Aliases []interface{} `json:"aliases"` + // Hostname default value is "" + Hostname string `json:"hostname"` // Label default value is "" Label string `json:"label"` - Name string `json:"name"` + // Mx description: (HOSTNAME) + // Mx default value is "" + Mx string `json:"mx"` // Password default value is "" Password string `json:"password"` + // Interface description: REF(interface/*) + Interface string `json:"interface"` // Record can be one of: []string{"a", "aaaa", "both"} // Record default value is "a" - Record string `json:"record"` + Record string `json:"record"` + User string `json:"user"` + Comment string `json:"comment"` + // Status default value is false + Status bool `json:"status"` // Strategy can be one of: []string{"if", "web"} // Strategy default value is "if" Strategy string `json:"strategy"` // Wildcard default value is false - Wildcard bool `json:"wildcard"` - Aliases []interface{} `json:"aliases"` - // Hostname default value is "" - Hostname string `json:"hostname"` + Wildcard bool `json:"wildcard"` + // Backupmx default value is false + Backupmx bool `json:"backupmx"` Mxpri int `json:"mxpri"` - // Type can be one of: []string{"dns-o-matic", "dnsdynamic", "dnspark", "dtdns", "dyndns", "dyndns-custom", "easydns", "freedns", "namecheap", "no-ip", "opendns", "selfhost", "strato", "zoneedit"} - // Type default value is "dyndns" - Type string `json:"type"` - User string `json:"user"` - // Mx description: (HOSTNAME) - // Mx default value is "" - Mx string `json:"mx"` - // Status default value is false - Status bool `json:"status"` + Name string `json:"name"` } var _ sophos.RestGetter = &DyndnsDyndns{} @@ -149,10 +149,10 @@ type DyndnsGroups []DyndnsGroup // DyndnsGroup represents a UTM group type DyndnsGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Name string `json:"name"` + Reference string `json:"_ref"` Comment string `json:"comment"` + Name string `json:"name"` } var _ sophos.RestGetter = &DyndnsGroup{} diff --git a/api/v1.3.0/objects/emailpki.go b/api/v1.3.0/objects/emailpki.go index b3f446f..2985fa5 100644 --- a/api/v1.3.0/objects/emailpki.go +++ b/api/v1.3.0/objects/emailpki.go @@ -102,8 +102,8 @@ type EmailpkiGroups []EmailpkiGroup // EmailpkiGroup represents a UTM group type EmailpkiGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -161,20 +161,20 @@ type EmailpkiOpenpgps []EmailpkiOpenpgp // EmailpkiOpenpgp represents a UTM Email encryption OpenPGP key type EmailpkiOpenpgp struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Emails []interface{} `json:"emails"` - // Expires default value is "" - Expires string `json:"expires"` - Fingerprint string `json:"fingerprint"` - Name string `json:"name"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` // Privkey default value is "" Privkey string `json:"privkey"` Pubkey string `json:"pubkey"` // Realname default value is "" - Realname string `json:"realname"` - Comment string `json:"comment"` + Realname string `json:"realname"` + Comment string `json:"comment"` + Emails []interface{} `json:"emails"` + // Expires default value is "" + Expires string `json:"expires"` + Fingerprint string `json:"fingerprint"` + Name string `json:"name"` } var _ sophos.RestGetter = &EmailpkiOpenpgp{} @@ -231,23 +231,23 @@ type EmailpkiSmimes []EmailpkiSmime // EmailpkiSmime represents a UTM email encryption S/MIME certificate type EmailpkiSmime struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Key default value is "" - Key string `json:"key"` - Name string `json:"name"` + Reference string `json:"_ref"` + // Realname default value is "" + Realname string `json:"realname"` // Trust default value is false - Trust bool `json:"trust"` - Comment string `json:"comment"` + Trust bool `json:"trust"` + Cert string `json:"cert"` + Fingerprint string `json:"fingerprint"` + // Key default value is "" + Key string `json:"key"` + Name string `json:"name"` Expires string `json:"expires"` + Comment string `json:"comment"` + Dn string `json:"dn"` // Domaincert default value is false - Domaincert bool `json:"domaincert"` - Emails []interface{} `json:"emails"` - Fingerprint string `json:"fingerprint"` - // Realname default value is "" - Realname string `json:"realname"` - Cert string `json:"cert"` - Dn string `json:"dn"` + Domaincert bool `json:"domaincert"` + Emails []interface{} `json:"emails"` } var _ sophos.RestGetter = &EmailpkiSmime{} @@ -304,30 +304,30 @@ type EmailpkiUsers []EmailpkiUser // EmailpkiUser represents a UTM email encryption user type EmailpkiUser struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` + // Decrypt can be one of: []string{"global", "on", "off"} + // Decrypt default value is "global" + Decrypt string `json:"decrypt"` // Encrypt can be one of: []string{"global", "on", "off"} // Encrypt default value is "global" Encrypt string `json:"encrypt"` - Name string `json:"name"` + // Openpgp description: REF(emailpki/openpgp) + // Openpgp default value is "" + Openpgp string `json:"openpgp"` + Realname string `json:"realname"` // Sign can be one of: []string{"global", "on", "off"} // Sign default value is "global" Sign string `json:"sign"` // Smime description: REF(emailpki/smime) // Smime default value is "" Smime string `json:"smime"` - // Decrypt can be one of: []string{"global", "on", "off"} - // Decrypt default value is "global" - Decrypt string `json:"decrypt"` // Domaincert default value is false - Domaincert bool `json:"domaincert"` - // Openpgp description: REF(emailpki/openpgp) - // Openpgp default value is "" - Openpgp string `json:"openpgp"` + Domaincert bool `json:"domaincert"` + Name string `json:"name"` // OpenpgpStatus default value is true - OpenpgpStatus bool `json:"openpgp_status"` - Realname string `json:"realname"` + OpenpgpStatus bool `json:"openpgp_status"` // SmimeStatus default value is true SmimeStatus bool `json:"smime_status"` // Verify can be one of: []string{"global", "on", "off"} diff --git a/api/v1.3.0/objects/epp.go b/api/v1.3.0/objects/epp.go index 473269d..8166381 100644 --- a/api/v1.3.0/objects/epp.go +++ b/api/v1.3.0/objects/epp.go @@ -125,27 +125,27 @@ type EppAvExceptions []EppAvException // EppAvException represents a UTM antivirus exception type EppAvException struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // Checksum default value is "" - Checksum string `json:"checksum"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` EndpointsGroups []interface{} `json:"endpoints_groups"` HipsName string `json:"hips_name"` // IpAddress description: (IPADDR) // IpAddress default value is "" IpAddress string `json:"ip_address"` + // Timeline default value is "" + Timeline string `json:"timeline"` // Type can be one of: []string{"adware_pua", "scanning_exclusions", "scanning_extensions", "buffer_overflow", "suspicious_files", "suspicious_behaviours", "websites"} // Type default value is "websites" Type string `json:"type"` - // WebFormat can be one of: []string{"domain_name", "ip_address", "ip_address_mask"} - // WebFormat default value is "domain_name" - WebFormat string `json:"web_format"` + // Checksum default value is "" + Checksum string `json:"checksum"` Comment string `json:"comment"` IpAddressMask int `json:"ip_address_mask"` Name string `json:"name"` - // Timeline default value is "" - Timeline string `json:"timeline"` + // WebFormat can be one of: []string{"domain_name", "ip_address", "ip_address_mask"} + // WebFormat default value is "domain_name" + WebFormat string `json:"web_format"` } var _ sophos.RestGetter = &EppAvException{} @@ -288,8 +288,8 @@ type EppDcExceptions []EppDcException // EppDcException represents a UTM device exception type EppDcException struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` CustomBlockedEndpointsGroups []interface{} `json:"custom_blocked_endpoints_groups"` DeviceId string `json:"device_id"` // DeviceType can be one of: []string{"floppy_drive", "optical_drive", "removable_storage", "encrypted_storage", "modem", "wireless", "bluetooth", "infrared"} @@ -424,26 +424,26 @@ type EppDevices []EppDevice // EppDevice represents a UTM device type EppDevice struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - CustomBlockedEndpointsGroups []interface{} `json:"custom_blocked_endpoints_groups"` - // DeviceType can be one of: []string{"floppy_drive", "optical_drive", "removable_storage", "encrypted_storage", "modem", "wireless", "bluetooth", "infrared"} - // DeviceType default value is "removable_storage" - DeviceType string `json:"device_type"` - Name string `json:"name"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` // ProductName default value is "" - ProductName string `json:"product_name"` - AllowedEndpointsGroups []interface{} `json:"allowed_endpoints_groups"` - Comment string `json:"comment"` - DeviceId string `json:"device_id"` + ProductName string `json:"product_name"` + AllowedEndpointsGroups []interface{} `json:"allowed_endpoints_groups"` + CustomBlockedEndpointsGroups []interface{} `json:"custom_blocked_endpoints_groups"` + DeviceId string `json:"device_id"` // GenericFlag default value is false GenericFlag bool `json:"generic_flag"` - // InstanceId default value is "" - InstanceId string `json:"instance_id"` // LastEndpoint description: REF(epp/endpoint) // LastEndpoint default value is "" LastEndpoint string `json:"last_endpoint"` + Name string `json:"name"` + Comment string `json:"comment"` + // DeviceType can be one of: []string{"floppy_drive", "optical_drive", "removable_storage", "encrypted_storage", "modem", "wireless", "bluetooth", "infrared"} + // DeviceType default value is "removable_storage" + DeviceType string `json:"device_type"` + // InstanceId default value is "" + InstanceId string `json:"instance_id"` } var _ sophos.RestGetter = &EppDevice{} @@ -498,27 +498,27 @@ type EppEndpoints []EppEndpoint // EppEndpoint represents a UTM computer type EppEndpoint struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // EndpointType can be one of: []string{"laptop", "desktop", "server"} - // EndpointType default value is "desktop" - EndpointType string `json:"endpoint_type"` + Reference string `json:"_ref"` // Os default value is "" Os string `json:"os"` - // SavStatus default value is false - SavStatus bool `json:"sav_status"` // SavVersion default value is "" SavVersion string `json:"sav_version"` // TamperProtection default value is false TamperProtection bool `json:"tamper_protection"` + // McsId default value is "" + McsId string `json:"mcs_id"` + Name string `json:"name"` + // SavStatus default value is false + SavStatus bool `json:"sav_status"` // Accepted default value is false Accepted bool `json:"accepted"` Comment string `json:"comment"` + // EndpointType can be one of: []string{"laptop", "desktop", "server"} + // EndpointType default value is "desktop" + EndpointType string `json:"endpoint_type"` // InventoryNumber default value is "" InventoryNumber string `json:"inventory_number"` - // McsId default value is "" - McsId string `json:"mcs_id"` - Name string `json:"name"` } var _ sophos.RestGetter = &EppEndpoint{} @@ -648,8 +648,8 @@ type EppGroups []EppGroup // EppGroup represents a UTM group type EppGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/ftp.go b/api/v1.3.0/objects/ftp.go index fe237e2..72e73db 100644 --- a/api/v1.3.0/objects/ftp.go +++ b/api/v1.3.0/objects/ftp.go @@ -71,16 +71,16 @@ type FtpExceptions []FtpException // FtpException represents a UTM FTP filter exception type FtpException struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Skiplist []interface{} `json:"skiplist"` // Status default value is false - Status bool `json:"status"` - Client []interface{} `json:"client"` - Comment string `json:"comment"` - Name string `json:"name"` - Server []interface{} `json:"server"` - Skiplist []interface{} `json:"skiplist"` + Status bool `json:"status"` + Client []interface{} `json:"client"` + Comment string `json:"comment"` + Name string `json:"name"` + Server []interface{} `json:"server"` } var _ sophos.RestGetter = &FtpException{} @@ -137,8 +137,8 @@ type FtpGroups []FtpGroup // FtpGroup represents a UTM group type FtpGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/geoip.go b/api/v1.3.0/objects/geoip.go index cf9c936..1c8f2fa 100644 --- a/api/v1.3.0/objects/geoip.go +++ b/api/v1.3.0/objects/geoip.go @@ -74,15 +74,15 @@ type GeoipDstexceptions []GeoipDstexception // GeoipDstexception represents a UTM incoming exceptions type GeoipDstexception struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Countries []interface{} `json:"countries"` + Reference string `json:"_ref"` DestinationNetworks []interface{} `json:"destination_networks"` Name string `json:"name"` Services []interface{} `json:"services"` // Status default value is false - Status bool `json:"status"` - Comment string `json:"comment"` + Status bool `json:"status"` + Comment string `json:"comment"` + Countries []interface{} `json:"countries"` } var _ sophos.RestGetter = &GeoipDstexception{} @@ -203,8 +203,8 @@ type GeoipGroups []GeoipGroup // GeoipGroup represents a UTM group type GeoipGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -261,15 +261,15 @@ type GeoipSrcexceptions []GeoipSrcexception // GeoipSrcexception represents a UTM outgoing exceptions type GeoipSrcexception struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` + Countries []interface{} `json:"countries"` Name string `json:"name"` Services []interface{} `json:"services"` SourceNetworks []interface{} `json:"source_networks"` // Status default value is false - Status bool `json:"status"` - Comment string `json:"comment"` - Countries []interface{} `json:"countries"` + Status bool `json:"status"` } var _ sophos.RestGetter = &GeoipSrcexception{} diff --git a/api/v1.3.0/objects/hotspot.go b/api/v1.3.0/objects/hotspot.go index fc977f0..f5b112c 100644 --- a/api/v1.3.0/objects/hotspot.go +++ b/api/v1.3.0/objects/hotspot.go @@ -69,8 +69,8 @@ type HotspotGroups []HotspotGroup // HotspotGroup represents a UTM group type HotspotGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -129,65 +129,65 @@ type HotspotPortals []HotspotPortal // HotspotPortal represents a UTM hotspot type HotspotPortal struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // SslRedirect default value is false - SslRedirect bool `json:"ssl_redirect"` - VouchersPerPage int `json:"vouchers_per_page"` + Reference string `json:"_ref"` + // HostnameType can be one of: []string{"none", "custom"} + // HostnameType default value is "none" + HostnameType string `json:"hostname_type"` + Name string `json:"name"` + SmsText string `json:"sms_text"` + Terms string `json:"terms"` + // VoucherQrcode default value is false + VoucherQrcode bool `json:"voucher_qrcode"` + Description string `json:"description"` + // FiasCodeset can be one of: []string{"cp850", "cp1252"} + // FiasCodeset default value is "cp850" + FiasCodeset string `json:"fias_codeset"` + // FiasServer description: REF(network/host), REF(network/dns_host) + // FiasServer default value is "" + FiasServer string `json:"fias_server"` + Vouchers []interface{} `json:"vouchers"` + Maclimit int `json:"maclimit"` + AdminUsers []interface{} `json:"admin_users"` // Logo default value is "" - Logo string `json:"logo"` - Name string `json:"name"` - Title string `json:"title"` + Logo string `json:"logo"` + // LogoResize default value is false + LogoResize bool `json:"logo_resize"` // CustomAssets description: (HASH) CustomAssets interface{} `json:"custom_assets"` - Comment string `json:"comment"` + // Pagesize default value is "a4" + Pagesize string `json:"pagesize"` + Title string `json:"title"` + HotspotUsers []interface{} `json:"hotspot_users"` + // SslRedirect default value is false + SslRedirect bool `json:"ssl_redirect"` + // VoucherTemplate description: (HASH) + VoucherTemplate interface{} `json:"voucher_template"` + VouchersPerPage int `json:"vouchers_per_page"` + Comment string `json:"comment"` + Interfaces []interface{} `json:"interfaces"` + Mail []interface{} `json:"mail"` + // PwTime description: (TIME) + PwTime string `json:"pw_time"` + RedirectUrl string `json:"redirect_url"` + // SyncPsk default value is false + SyncPsk bool `json:"sync_psk"` + // Type can be one of: []string{"terms", "password", "voucher", "backend_auth", "sms", "fias"} + Type string `json:"type"` // CustomizationType can be one of: []string{"basic", "full"} // CustomizationType default value is "basic" CustomizationType string `json:"customization_type"` - // FiasCodeset can be one of: []string{"cp850", "cp1252"} - // FiasCodeset default value is "cp850" - FiasCodeset string `json:"fias_codeset"` // FiasPort description: REF(service/tcp) // FiasPort default value is "" FiasPort string `json:"fias_port"` + // LogoFilename default value is "default_logo.png" + LogoFilename string `json:"logo_filename"` + Expiry int `json:"expiry"` // Hostname description: REF(network/dns_host) // Hostname default value is "" Hostname string `json:"hostname"` - // HostnameType can be one of: []string{"none", "custom"} - // HostnameType default value is "none" - HostnameType string `json:"hostname_type"` - // LogoResize default value is false - LogoResize bool `json:"logo_resize"` - AdminUsers []interface{} `json:"admin_users"` - // Pagesize default value is "a4" - Pagesize string `json:"pagesize"` - RedirectUrl string `json:"redirect_url"` - // VoucherQrcode default value is false - VoucherQrcode bool `json:"voucher_qrcode"` - Maclimit int `json:"maclimit"` - HotspotUsers []interface{} `json:"hotspot_users"` - // PwTime description: (TIME) - PwTime string `json:"pw_time"` - Description string `json:"description"` - SmsText string `json:"sms_text"` - // SyncPsk default value is false - SyncPsk bool `json:"sync_psk"` - Mail []interface{} `json:"mail"` - Vouchers []interface{} `json:"vouchers"` // Template description: (HASH) Template interface{} `json:"template"` - // FiasServer description: REF(network/host), REF(network/dns_host) - // FiasServer default value is "" - FiasServer string `json:"fias_server"` - Interfaces []interface{} `json:"interfaces"` - // LogoFilename default value is "default_logo.png" - LogoFilename string `json:"logo_filename"` - Terms string `json:"terms"` - // Type can be one of: []string{"terms", "password", "voucher", "backend_auth", "sms", "fias"} - Type string `json:"type"` - // VoucherTemplate description: (HASH) - VoucherTemplate interface{} `json:"voucher_template"` - Expiry int `json:"expiry"` } var _ sophos.RestGetter = &HotspotPortal{} @@ -244,8 +244,8 @@ type HotspotVouchers []HotspotVoucher // HotspotVoucher represents a UTM voucher definiton type HotspotVoucher struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Name string `json:"name"` Timequota int `json:"timequota"` Trafficlimit int `json:"trafficlimit"` diff --git a/api/v1.3.0/objects/http.go b/api/v1.3.0/objects/http.go index d7938b4..1184c30 100644 --- a/api/v1.3.0/objects/http.go +++ b/api/v1.3.0/objects/http.go @@ -377,14 +377,14 @@ type HttpDeviceAuths []HttpDeviceAuth // HttpDeviceAuth represents a UTM device-specific authentication type HttpDeviceAuth struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` + // AuthMode can be one of: []string{"none", "aua", "edir_sso", "ntlm", "opendirectory_auth", "browser", "agent"} + AuthMode string `json:"auth_mode"` + Comment string `json:"comment"` // DeviceType can be one of: []string{"Windows", "Mac OS X", "Linux", "iOS", "Android", "Kindle", "Blackberry"} DeviceType string `json:"device_type"` Name string `json:"name"` - // AuthMode can be one of: []string{"none", "aua", "edir_sso", "ntlm", "opendirectory_auth", "browser", "agent"} - AuthMode string `json:"auth_mode"` } var _ sophos.RestGetter = &HttpDeviceAuth{} @@ -441,8 +441,8 @@ type HttpDomainRegexs []HttpDomainRegex // HttpDomainRegex represents a UTM whitelist/blacklist type HttpDomainRegex struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Domain []interface{} `json:"domain"` // IncludeSubdomains default value is false @@ -582,8 +582,8 @@ type HttpGroups []HttpGroup // HttpGroup represents a UTM group type HttpGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -640,8 +640,9 @@ type HttpLocalSites []HttpLocalSite // HttpLocalSite represents a UTM local site list entry type HttpLocalSite struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` // IncludeSubdomains default value is false IncludeSubdomains bool `json:"include_subdomains"` Name string `json:"name"` @@ -653,7 +654,6 @@ type HttpLocalSite struct { // Category description: REF(http/sp_subcat) // Category default value is "" Category string `json:"category"` - Comment string `json:"comment"` } var _ sophos.RestGetter = &HttpLocalSite{} @@ -710,8 +710,8 @@ type HttpLslTags []HttpLslTag // HttpLslTag represents a UTM tags type HttpLslTag struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -832,17 +832,17 @@ type HttpParentProxys []HttpParentProxy // HttpParentProxy represents a UTM parent web proxy type HttpParentProxy struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Comment string `json:"comment"` - Match []interface{} `json:"match"` - Name string `json:"name"` - Pass string `json:"pass"` - Port int `json:"port"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` // Target description: REF(network/host), REF(network/dns_host), REF(network/availability_group) - Target string `json:"target"` - User string `json:"user"` + Target string `json:"target"` + User string `json:"user"` + Comment string `json:"comment"` + Match []interface{} `json:"match"` + Name string `json:"name"` + Pass string `json:"pass"` + Port int `json:"port"` } var _ sophos.RestGetter = &HttpParentProxy{} diff --git a/api/v1.3.0/objects/interface.go b/api/v1.3.0/objects/interface.go index e51eb85..e05c941 100644 --- a/api/v1.3.0/objects/interface.go +++ b/api/v1.3.0/objects/interface.go @@ -102,49 +102,49 @@ type InterfaceBridges []InterfaceBridge // InterfaceBridge represents a UTM bridge type InterfaceBridge struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Ageing int `json:"ageing"` - ForwardedEthertypes []interface{} `json:"forwarded_ethertypes"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // UseDhcp default value is false + UseDhcp bool `json:"use_dhcp"` + // UseDhcpv6 default value is false + UseDhcpv6 bool `json:"use_dhcpv6"` + // ArpBcast default value is false + ArpBcast bool `json:"arp_bcast"` // Itfhw description: REF(itfhw/bridge) Itfhw string `json:"itfhw"` Name string `json:"name"` - // UseDhcp default value is false - UseDhcp bool `json:"use_dhcp"` + // Proxyndp default value is false + Proxyndp bool `json:"proxyndp"` + Mtu int `json:"mtu"` + // Proxyarp default value is false + Proxyarp bool `json:"proxyarp"` + // Status default value is false + Status bool `json:"status"` + StpHello int `json:"stp_hello"` + AdditionalAddresses []interface{} `json:"additional_addresses"` + Ageing int `json:"ageing"` + ForwardedEthertypes []interface{} `json:"forwarded_ethertypes"` + // Link default value is true + Link bool `json:"link"` // VirtualMac description: (MACADDR) // VirtualMac default value is "00:00:00:00:00:00" - VirtualMac string `json:"virtual_mac"` - AdditionalAddresses []interface{} `json:"additional_addresses"` + VirtualMac string `json:"virtual_mac"` // MtuAutoDiscovery default value is false - MtuAutoDiscovery bool `json:"mtu_auto_discovery"` - // Proxyarp default value is false - Proxyarp bool `json:"proxyarp"` - StpMaxage int `json:"stp_maxage"` + MtuAutoDiscovery bool `json:"mtu_auto_discovery"` + Ports []interface{} `json:"ports"` + StpMaxage int `json:"stp_maxage"` + // StpStatus default value is false + StpStatus bool `json:"stp_status"` + StpPrio int `json:"stp_prio"` + Comment string `json:"comment"` // ConvertedFromHw description: REF(itfhw/*) // ConvertedFromHw default value is "" ConvertedFromHw string `json:"converted_from_hw"` // PrimaryAddress description: REF(itfparams/primary) // PrimaryAddress default value is "" PrimaryAddress string `json:"primary_address"` - // Proxyndp default value is false - Proxyndp bool `json:"proxyndp"` - StpFd int `json:"stp_fd"` - StpPrio int `json:"stp_prio"` - // UseDhcpv6 default value is false - UseDhcpv6 bool `json:"use_dhcpv6"` - // Link default value is true - Link bool `json:"link"` - Comment string `json:"comment"` - Mtu int `json:"mtu"` - Ports []interface{} `json:"ports"` - // Status default value is false - Status bool `json:"status"` - StpHello int `json:"stp_hello"` - // StpStatus default value is false - StpStatus bool `json:"stp_status"` - // ArpBcast default value is false - ArpBcast bool `json:"arp_bcast"` + StpFd int `json:"stp_fd"` } var _ sophos.RestGetter = &InterfaceBridge{} @@ -341,54 +341,54 @@ type InterfacePpp3Gs []InterfacePpp3G // InterfacePpp3G represents a UTM ppp3g type InterfacePpp3G struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Inbandwidth int `json:"inbandwidth"` - // Link default value is true - Link bool `json:"link"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // Pin default value is "" + Pin string `json:"pin"` + // ApnAuto default value is true + ApnAuto bool `json:"apn_auto"` + Comment string `json:"comment"` + // Custom default value is "" + Custom string `json:"custom"` // MobileNetwork can be one of: []string{"gsm", "cdma", "lte"} // MobileNetwork default value is "gsm" MobileNetwork string `json:"mobile_network"` - Mtu int `json:"mtu"` - Name string `json:"name"` - // Password default value is "" - Password string `json:"password"` + // Multilink default value is false + Multilink bool `json:"multilink"` + Outbandwidth int `json:"outbandwidth"` + Mtu int `json:"mtu"` + Name string `json:"name"` + // MtuAutoDiscovery default value is false + MtuAutoDiscovery bool `json:"mtu_auto_discovery"` // PrimaryAddress description: REF(itfparams/primary) // PrimaryAddress default value is "" PrimaryAddress string `json:"primary_address"` + // DialString default value is "*99#" + DialString string `json:"dial_string"` // IdleTime default value is "" - IdleTime string `json:"idle_time"` + IdleTime string `json:"idle_time"` + Inbandwidth int `json:"inbandwidth"` + // InitString default value is "ATZ" + InitString string `json:"init_string"` + // Itfhw description: REF(itfhw/usbserial) + Itfhw string `json:"itfhw"` + // Link default value is true + Link bool `json:"link"` + Signal int `json:"signal"` // VirtualDevice description: (REGEX) // VirtualDevice default value is "" VirtualDevice string `json:"virtual_device"` - Username string `json:"username"` - Comment string `json:"comment"` - // Custom default value is "" - Custom string `json:"custom"` - // DialString default value is "*99#" - DialString string `json:"dial_string"` - // InitString default value is "ATZ" - InitString string `json:"init_string"` - Outbandwidth int `json:"outbandwidth"` + // Apn default value is "unknown" + Apn string `json:"apn"` + Bandwidth int `json:"bandwidth"` + // Password default value is "" + Password string `json:"password"` // ResetString default value is "ATZ" ResetString string `json:"reset_string"` - Bandwidth int `json:"bandwidth"` - // Multilink default value is false - Multilink bool `json:"multilink"` - // Pin default value is "" - Pin string `json:"pin"` - Signal int `json:"signal"` - // Apn default value is "unknown" - Apn string `json:"apn"` - // Itfhw description: REF(itfhw/usbserial) - Itfhw string `json:"itfhw"` - // MtuAutoDiscovery default value is false - MtuAutoDiscovery bool `json:"mtu_auto_discovery"` // Status default value is false - Status bool `json:"status"` - // ApnAuto default value is true - ApnAuto bool `json:"apn_auto"` + Status bool `json:"status"` + Username string `json:"username"` } var _ sophos.RestGetter = &InterfacePpp3G{} @@ -445,49 +445,49 @@ type InterfacePppmodems []InterfacePppmodem // InterfacePppmodem represents a UTM PPP modem interface type InterfacePppmodem struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` // ResetString default value is "ATZ" ResetString string `json:"reset_string"` // Status default value is false - Status bool `json:"status"` - // Custom default value is "" - Custom string `json:"custom"` - // Itfhw description: REF(itfhw/serial) - Itfhw string `json:"itfhw"` - Mtu int `json:"mtu"` - // MtuAutoDiscovery default value is false - MtuAutoDiscovery bool `json:"mtu_auto_discovery"` - // VirtualDevice description: (REGEX) - // VirtualDevice default value is "" - VirtualDevice string `json:"virtual_device"` - Comment string `json:"comment"` + Status bool `json:"status"` + Comment string `json:"comment"` + // DialString default value is "" + DialString string `json:"dial_string"` // FlowControl can be one of: []string{"hardware", "software"} // FlowControl default value is "hardware" FlowControl string `json:"flow_control"` // IdleTime default value is "" IdleTime string `json:"idle_time"` - // InitString default value is "ATZ" - InitString string `json:"init_string"` - Bandwidth int `json:"bandwidth"` - // Link default value is true - Link bool `json:"link"` - Name string `json:"name"` - Username string `json:"username"` - Outbandwidth int `json:"outbandwidth"` - // Password default value is "" - Password string `json:"password"` + // Itfhw description: REF(itfhw/serial) + Itfhw string `json:"itfhw"` + // Multilink default value is false + Multilink bool `json:"multilink"` // PrimaryAddress description: REF(itfparams/primary) // PrimaryAddress default value is "" PrimaryAddress string `json:"primary_address"` - // DialString default value is "" - DialString string `json:"dial_string"` - Inbandwidth int `json:"inbandwidth"` + Username string `json:"username"` + Bandwidth int `json:"bandwidth"` + // Custom default value is "" + Custom string `json:"custom"` // LineSpeed can be one of: []string{"9600", "14400", "19200", "26400", "31200", "38400", "57600", "115200", "230400"} // LineSpeed default value is "115200" LineSpeed string `json:"line_speed"` - // Multilink default value is false - Multilink bool `json:"multilink"` + Mtu int `json:"mtu"` + // MtuAutoDiscovery default value is false + MtuAutoDiscovery bool `json:"mtu_auto_discovery"` + // Password default value is "" + Password string `json:"password"` + // Link default value is true + Link bool `json:"link"` + Name string `json:"name"` + Outbandwidth int `json:"outbandwidth"` + // VirtualDevice description: (REGEX) + // VirtualDevice default value is "" + VirtualDevice string `json:"virtual_device"` + Inbandwidth int `json:"inbandwidth"` + // InitString default value is "ATZ" + InitString string `json:"init_string"` } var _ sophos.RestGetter = &InterfacePppmodem{} @@ -544,47 +544,47 @@ type InterfacePppoas []InterfacePppoa // InterfacePppoa represents a UTM PPPoA/PPTP DSL interface type InterfacePppoa struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Custom default value is "" - Custom string `json:"custom"` - // NicAddress description: (IPADDR) - NicAddress string `json:"nic_address"` - NicNetmask int `json:"nic_netmask"` + Reference string `json:"_ref"` + Comment string `json:"comment"` + // MtuAutoDiscovery default value is false + MtuAutoDiscovery bool `json:"mtu_auto_discovery"` + // Password default value is "" + Password string `json:"password"` // PingAddress description: (IPADDR) // PingAddress default value is "" PingAddress string `json:"ping_address"` - // PrimaryAddress description: REF(itfparams/primary) - // PrimaryAddress default value is "" - PrimaryAddress string `json:"primary_address"` - Bandwidth int `json:"bandwidth"` - // Itfhw description: REF(itfhw/ethernet) - Itfhw string `json:"itfhw"` // VirtualDevice description: (REGEX) // VirtualDevice default value is "" - VirtualDevice string `json:"virtual_device"` - ReconnectTimeout int `json:"reconnect_timeout"` + VirtualDevice string `json:"virtual_device"` + Bandwidth int `json:"bandwidth"` + Mtu int `json:"mtu"` + Outbandwidth int `json:"outbandwidth"` // Status default value is false - Status bool `json:"status"` - Inbandwidth int `json:"inbandwidth"` + Status bool `json:"status"` + Username string `json:"username"` + // Custom default value is "" + Custom string `json:"custom"` // Link default value is true Link bool `json:"link"` // ModemAddress description: (IPADDR) - ModemAddress string `json:"modem_address"` - Mtu int `json:"mtu"` - Name string `json:"name"` - Outbandwidth int `json:"outbandwidth"` - Comment string `json:"comment"` - // MtuAutoDiscovery default value is false - MtuAutoDiscovery bool `json:"mtu_auto_discovery"` + ModemAddress string `json:"modem_address"` + Name string `json:"name"` + ReconnectTimeout int `json:"reconnect_timeout"` + Inbandwidth int `json:"inbandwidth"` + // Itfhw description: REF(itfhw/ethernet) + Itfhw string `json:"itfhw"` // Multilink default value is false Multilink bool `json:"multilink"` - // Password default value is "" - Password string `json:"password"` + // NicAddress description: (IPADDR) + NicAddress string `json:"nic_address"` + NicNetmask int `json:"nic_netmask"` + // PrimaryAddress description: REF(itfparams/primary) + // PrimaryAddress default value is "" + PrimaryAddress string `json:"primary_address"` // ReconnectDaily description: (TIME) // ReconnectDaily default value is "" ReconnectDaily string `json:"reconnect_daily"` - Username string `json:"username"` } var _ sophos.RestGetter = &InterfacePppoa{} @@ -640,47 +640,47 @@ type InterfacePppoes []InterfacePppoe // InterfacePppoe represents a UTM PPPoE DSL interface type InterfacePppoe struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // Custom default value is "" - Custom string `json:"custom"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` Inbandwidth int `json:"inbandwidth"` - // Itfhw description: REF(itfhw/ethernet) - Itfhw string `json:"itfhw"` - Name string `json:"name"` - Outbandwidth int `json:"outbandwidth"` + // MtuAutoDiscovery default value is false + MtuAutoDiscovery bool `json:"mtu_auto_discovery"` + Name string `json:"name"` // PrimaryAddress description: REF(itfparams/primary) // PrimaryAddress default value is "" - PrimaryAddress string `json:"primary_address"` - AdditionalAddresses []interface{} `json:"additional_addresses"` - Comment string `json:"comment"` - ReconnectTimeout int `json:"reconnect_timeout"` - // Status default value is false - Status bool `json:"status"` - Mtu int `json:"mtu"` - Username string `json:"username"` + PrimaryAddress string `json:"primary_address"` + // VirtualDevice description: (REGEX) + // VirtualDevice default value is "" + VirtualDevice string `json:"virtual_device"` + Bandwidth int `json:"bandwidth"` + // Link default value is true + Link bool `json:"link"` + // Multilink default value is false + Multilink bool `json:"multilink"` + Username string `json:"username"` + Vlantag int `json:"vlantag"` + ReconnectTimeout int `json:"reconnect_timeout"` + // Custom default value is "" + Custom string `json:"custom"` + ItfhwSlaves []interface{} `json:"itfhw_slaves"` // Macvlan default value is false Macvlan bool `json:"macvlan"` - // Multilink default value is false - Multilink bool `json:"multilink"` + Mtu int `json:"mtu"` // MultilinkStatus description: (HASH) MultilinkStatus interface{} `json:"multilink_status"` + Outbandwidth int `json:"outbandwidth"` // ReconnectDaily description: (TIME) // ReconnectDaily default value is "" - ReconnectDaily string `json:"reconnect_daily"` - Vlantag int `json:"vlantag"` - ItfhwSlaves []interface{} `json:"itfhw_slaves"` - // Link default value is true - Link bool `json:"link"` + ReconnectDaily string `json:"reconnect_daily"` + AdditionalAddresses []interface{} `json:"additional_addresses"` + Comment string `json:"comment"` + // Itfhw description: REF(itfhw/ethernet) + Itfhw string `json:"itfhw"` // Password default value is "" Password string `json:"password"` - // VirtualDevice description: (REGEX) - // VirtualDevice default value is "" - VirtualDevice string `json:"virtual_device"` - Bandwidth int `json:"bandwidth"` - // MtuAutoDiscovery default value is false - MtuAutoDiscovery bool `json:"mtu_auto_discovery"` + // Status default value is false + Status bool `json:"status"` } var _ sophos.RestGetter = &InterfacePppoe{} @@ -736,27 +736,27 @@ type InterfaceTunnels []InterfaceTunnel // InterfaceTunnel represents a UTM tunnel interface type InterfaceTunnel struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - AdditionalAddresses []interface{} `json:"additional_addresses"` - Comment string `json:"comment"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Bandwidth int `json:"bandwidth"` + Comment string `json:"comment"` + Inbandwidth int `json:"inbandwidth"` // Itfhw description: REF(itfhw/virtual) - Itfhw string `json:"itfhw"` - Outbandwidth int `json:"outbandwidth"` - // PrimaryAddress description: REF(itfparams/primary) - // PrimaryAddress default value is "" - PrimaryAddress string `json:"primary_address"` + Itfhw string `json:"itfhw"` + Mtu int `json:"mtu"` // Status default value is false - Status bool `json:"status"` - Bandwidth int `json:"bandwidth"` - Inbandwidth int `json:"inbandwidth"` + Status bool `json:"status"` + AdditionalAddresses []interface{} `json:"additional_addresses"` // Link default value is true Link bool `json:"link"` - Mtu int `json:"mtu"` // MtuAutoDiscovery default value is false MtuAutoDiscovery bool `json:"mtu_auto_discovery"` Name string `json:"name"` + Outbandwidth int `json:"outbandwidth"` + // PrimaryAddress description: REF(itfparams/primary) + // PrimaryAddress default value is "" + PrimaryAddress string `json:"primary_address"` } var _ sophos.RestGetter = &InterfaceTunnel{} diff --git a/api/v1.3.0/objects/ipfix_connection.go b/api/v1.3.0/objects/ipfix_connection.go index 1962182..b09aa17 100644 --- a/api/v1.3.0/objects/ipfix_connection.go +++ b/api/v1.3.0/objects/ipfix_connection.go @@ -61,10 +61,10 @@ type IpfixConnectionGroups []IpfixConnectionGroup // IpfixConnectionGroup represents a UTM group type IpfixConnectionGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` Name string `json:"name"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &IpfixConnectionGroup{} @@ -121,15 +121,15 @@ type IpfixConnectionIpfixConnections []IpfixConnectionIpfixConnection // IpfixConnectionIpfixConnection represents a UTM ipfix_connection type IpfixConnectionIpfixConnection struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` // Host description: REF(network/host), REF(network/dns_host) Host string `json:"host"` Name string `json:"name"` Oid int `json:"oid"` // Status default value is false - Status bool `json:"status"` - Comment string `json:"comment"` + Status bool `json:"status"` } var _ sophos.RestGetter = &IpfixConnectionIpfixConnection{} diff --git a/api/v1.3.0/objects/ips.go b/api/v1.3.0/objects/ips.go index 598ce99..e5bec6f 100644 --- a/api/v1.3.0/objects/ips.go +++ b/api/v1.3.0/objects/ips.go @@ -240,19 +240,19 @@ type IpsRules []IpsRule // IpsRule represents a UTM IPS rule type IpsRule struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` - Filter1 string `json:"filter1"` - Filter2 string `json:"filter2"` - Msg string `json:"msg"` - Name string `json:"name"` - Sid int `json:"sid"` + Reference string `json:"_ref"` // Status default value is false Status bool `json:"status"` // Action can be one of: []string{"alert", "drop"} // Action default value is "alert" - Action string `json:"action"` + Action string `json:"action"` + Comment string `json:"comment"` + Filter1 string `json:"filter1"` + Filter2 string `json:"filter2"` + Msg string `json:"msg"` + Name string `json:"name"` + Sid int `json:"sid"` } var _ sophos.RestGetter = &IpsRule{} @@ -307,8 +307,9 @@ type IpsRuleModifiers []IpsRuleModifier // IpsRuleModifier represents a UTM IPS rule modifier type IpsRuleModifier struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` Name string `json:"name"` // Notification default value is false Notification bool `json:"notification"` @@ -317,8 +318,7 @@ type IpsRuleModifier struct { Status bool `json:"status"` // Action can be one of: []string{"alert", "drop"} // Action default value is "drop" - Action string `json:"action"` - Comment string `json:"comment"` + Action string `json:"action"` } var _ sophos.RestGetter = &IpsRuleModifier{} diff --git a/api/v1.3.0/objects/ipsec.go b/api/v1.3.0/objects/ipsec.go index 782b9ce..bf23700 100644 --- a/api/v1.3.0/objects/ipsec.go +++ b/api/v1.3.0/objects/ipsec.go @@ -81,8 +81,8 @@ type IpsecGroups []IpsecGroup // IpsecGroup represents a UTM group type IpsecGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/ipsec_connection.go b/api/v1.3.0/objects/ipsec_connection.go index 93e2318..0513a14 100644 --- a/api/v1.3.0/objects/ipsec_connection.go +++ b/api/v1.3.0/objects/ipsec_connection.go @@ -164,8 +164,8 @@ type IpsecConnectionGroups []IpsecConnectionGroup // IpsecConnectionGroup represents a UTM group type IpsecConnectionGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -302,24 +302,24 @@ type IpsecConnectionRoadwarriorCas []IpsecConnectionRoadwarriorCa // IpsecConnectionRoadwarriorCa represents a UTM IPsec CA remote access type IpsecConnectionRoadwarriorCa struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Interface description: REF(interface/*) - Interface string `json:"interface"` + Reference string `json:"_ref"` + // Authentication description: REF(ipsec_remote_auth/ca) + Authentication string `json:"authentication"` // IpPool description: REF(network/network) IpPool string `json:"ip_pool"` + Name string `json:"name"` Networks []interface{} `json:"networks"` + // UseIpPool default value is false + UseIpPool bool `json:"use_ip_pool"` + Comment string `json:"comment"` + // Interface description: REF(interface/*) + Interface string `json:"interface"` // Policy description: REF(ipsec/policy) Policy string `json:"policy"` // Status default value is false - Status bool `json:"status"` - // UseIpPool default value is false - UseIpPool bool `json:"use_ip_pool"` - Users []interface{} `json:"users"` - // Authentication description: REF(ipsec_remote_auth/ca) - Authentication string `json:"authentication"` - Comment string `json:"comment"` - Name string `json:"name"` + Status bool `json:"status"` + Users []interface{} `json:"users"` // Xauth default value is false Xauth bool `json:"xauth"` } @@ -380,42 +380,42 @@ type IpsecConnectionRoadwarriorCiscos []IpsecConnectionRoadwarriorCisco // IpsecConnectionRoadwarriorCisco represents a UTM Cisco VPN client connection type IpsecConnectionRoadwarriorCisco struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // AutoPfOut description: REF(packetfilter/packetfilter) + // AutoPfOut default value is "" + AutoPfOut string `json:"auto_pf_out"` // AutoPfrule default value is false AutoPfrule bool `json:"auto_pfrule"` - // IpAssignmentPool description: REF(network/network) - IpAssignmentPool string `json:"ip_assignment_pool"` // IphoneOndemandEnabled default value is false - IphoneOndemandEnabled bool `json:"iphone_ondemand_enabled"` - Aaa []interface{} `json:"aaa"` - // AutoPfOut description: REF(packetfilter/packetfilter) - // AutoPfOut default value is "" - AutoPfOut string `json:"auto_pf_out"` - IphoneOndemandDomains []interface{} `json:"iphone_ondemand_domains"` + IphoneOndemandEnabled bool `json:"iphone_ondemand_enabled"` + Name string `json:"name"` // Status default value is false Status bool `json:"status"` - // Certificate description: REF(ca/host_key_cert) - Certificate string `json:"certificate"` - Comment string `json:"comment"` - // IphoneHostname default value is "" - IphoneHostname string `json:"iphone_hostname"` - // IphoneOndemandType can be one of: []string{"OnDemandMatchDomainsAlways", "OnDemandMatchDomainsOnRetry"} - // IphoneOndemandType default value is "OnDemandMatchDomainsOnRetry" - IphoneOndemandType string `json:"iphone_ondemand_type"` - Name string `json:"name"` // AutoPfIn description: REF(packetfilter/packetfilter) // AutoPfIn default value is "" AutoPfIn string `json:"auto_pf_in"` // Interface description: REF(interface/*) - Interface string `json:"interface"` - IphoneConnectionName string `json:"iphone_connection_name"` - // IphoneStatus default value is false - IphoneStatus bool `json:"iphone_status"` - Networks []interface{} `json:"networks"` + Interface string `json:"interface"` + IphoneOndemandDomains []interface{} `json:"iphone_ondemand_domains"` + Networks []interface{} `json:"networks"` // Policy description: REF(ipsec/policy) // Policy default value is "REF_IPsecPolicyCisco" - Policy string `json:"policy"` + Policy string `json:"policy"` + Aaa []interface{} `json:"aaa"` + Comment string `json:"comment"` + // IpAssignmentPool description: REF(network/network) + IpAssignmentPool string `json:"ip_assignment_pool"` + // IphoneOndemandType can be one of: []string{"OnDemandMatchDomainsAlways", "OnDemandMatchDomainsOnRetry"} + // IphoneOndemandType default value is "OnDemandMatchDomainsOnRetry" + IphoneOndemandType string `json:"iphone_ondemand_type"` + // IphoneStatus default value is false + IphoneStatus bool `json:"iphone_status"` + // Certificate description: REF(ca/host_key_cert) + Certificate string `json:"certificate"` + IphoneConnectionName string `json:"iphone_connection_name"` + // IphoneHostname default value is "" + IphoneHostname string `json:"iphone_hostname"` } var _ sophos.RestGetter = &IpsecConnectionRoadwarriorCisco{} @@ -474,8 +474,8 @@ type IpsecConnectionRoadwarriorPsks []IpsecConnectionRoadwarriorPsk // IpsecConnectionRoadwarriorPsk represents a UTM IPsec PSK remote access type IpsecConnectionRoadwarriorPsk struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` // Interface description: REF(interface/*) Interface string `json:"interface"` @@ -483,17 +483,17 @@ type IpsecConnectionRoadwarriorPsk struct { IpPool string `json:"ip_pool"` Name string `json:"name"` Networks []interface{} `json:"networks"` + // Policy description: REF(ipsec/policy) + Policy string `json:"policy"` // Status default value is false Status bool `json:"status"` // UseIpPool default value is false UseIpPool bool `json:"use_ip_pool"` - // Xauth default value is false - Xauth bool `json:"xauth"` // Authentication description: REF(ipsec_remote_auth/psk) Authentication string `json:"authentication"` - // Policy description: REF(ipsec/policy) - Policy string `json:"policy"` - Users []interface{} `json:"users"` + // Xauth default value is false + Xauth bool `json:"xauth"` + Users []interface{} `json:"users"` } var _ sophos.RestGetter = &IpsecConnectionRoadwarriorPsk{} @@ -551,33 +551,33 @@ type IpsecConnectionRoadwarriorX509s []IpsecConnectionRoadwarriorX509 // IpsecConnectionRoadwarriorX509 represents a UTM IPsec X509 remote access type IpsecConnectionRoadwarriorX509 struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // AutoPfOut description: REF(packetfilter/packetfilter) - // AutoPfOut default value is "" - AutoPfOut string `json:"auto_pf_out"` - Name string `json:"name"` - Networks []interface{} `json:"networks"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Networks []interface{} `json:"networks"` + // Policy description: REF(ipsec/policy) + Policy string `json:"policy"` + // Status default value is false + Status bool `json:"status"` // Xauth default value is false Xauth bool `json:"xauth"` // AutoPfIn description: REF(packetfilter/packetfilter) // AutoPfIn default value is "" AutoPfIn string `json:"auto_pf_in"` + // AutoPfOut description: REF(packetfilter/packetfilter) + // AutoPfOut default value is "" + AutoPfOut string `json:"auto_pf_out"` + Comment string `json:"comment"` + Name string `json:"name"` + Users []interface{} `json:"users"` // AutoPfrule default value is false - AutoPfrule bool `json:"auto_pfrule"` - Comment string `json:"comment"` + AutoPfrule bool `json:"auto_pfrule"` // Interface description: REF(interface/*) Interface string `json:"interface"` // IpPool description: REF(network/network) IpPool string `json:"ip_pool"` - // Policy description: REF(ipsec/policy) - Policy string `json:"policy"` - // Status default value is false - Status bool `json:"status"` // UseIpPool default value is false - UseIpPool bool `json:"use_ip_pool"` - Users []interface{} `json:"users"` + UseIpPool bool `json:"use_ip_pool"` } var _ sophos.RestGetter = &IpsecConnectionRoadwarriorX509{} diff --git a/api/v1.3.0/objects/ipsec_remote_auth.go b/api/v1.3.0/objects/ipsec_remote_auth.go index 5cb77b1..83e7e5f 100644 --- a/api/v1.3.0/objects/ipsec_remote_auth.go +++ b/api/v1.3.0/objects/ipsec_remote_auth.go @@ -79,14 +79,14 @@ type IpsecRemoteAuthCas []IpsecRemoteAuthCa // IpsecRemoteAuthCa represents a UTM X509 CA and DN match type IpsecRemoteAuthCa struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Name string `json:"name"` - // VpnId default value is "C=*, ST=*, L=*, O=*, OU=*, CN=*, E=*" - VpnId string `json:"vpn_id"` + Reference string `json:"_ref"` // Certificate description: REF(ca/signing_ca), REF(ca/verification_ca) Certificate string `json:"certificate"` Comment string `json:"comment"` + Name string `json:"name"` + // VpnId default value is "C=*, ST=*, L=*, O=*, OU=*, CN=*, E=*" + VpnId string `json:"vpn_id"` } var _ sophos.RestGetter = &IpsecRemoteAuthCa{} @@ -143,8 +143,8 @@ type IpsecRemoteAuthGroups []IpsecRemoteAuthGroup // IpsecRemoteAuthGroup represents a UTM group type IpsecRemoteAuthGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -269,15 +269,15 @@ type IpsecRemoteAuthRsas []IpsecRemoteAuthRsa // IpsecRemoteAuthRsa represents a UTM RSA public key type IpsecRemoteAuthRsa struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` - Name string `json:"name"` - Pubkey string `json:"pubkey"` + Reference string `json:"_ref"` // VpnId default value is "" VpnId string `json:"vpn_id"` // VpnIdType can be one of: []string{"ipv4_address", "fqdn", "user_fqdn"} VpnIdType string `json:"vpn_id_type"` + Comment string `json:"comment"` + Name string `json:"name"` + Pubkey string `json:"pubkey"` } var _ sophos.RestGetter = &IpsecRemoteAuthRsa{} diff --git a/api/v1.3.0/objects/itfhw.go b/api/v1.3.0/objects/itfhw.go index f2fee96..02a8222 100644 --- a/api/v1.3.0/objects/itfhw.go +++ b/api/v1.3.0/objects/itfhw.go @@ -210,8 +210,8 @@ type ItfhwAweNetworkGroups []ItfhwAweNetworkGroup // ItfhwAweNetworkGroup represents a UTM wireless access point group type ItfhwAweNetworkGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` ApVlantag int `json:"ap_vlantag"` Comment string `json:"comment"` Members []interface{} `json:"members"` @@ -276,17 +276,17 @@ type ItfhwBridges []ItfhwBridge // ItfhwBridge represents a UTM bridge interface type ItfhwBridge struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Description default value is "Bridge" - Description string `json:"description"` - // Hardware description: (REGEX) - Hardware string `json:"hardware"` + Reference string `json:"_ref"` // Mac description: (MACADDR) // Mac default value is "00:00:00:00:00:00" Mac string `json:"mac"` Name string `json:"name"` Comment string `json:"comment"` + // Description default value is "Bridge" + Description string `json:"description"` + // Hardware description: (REGEX) + Hardware string `json:"hardware"` } var _ sophos.RestGetter = &ItfhwBridge{} @@ -422,8 +422,8 @@ type ItfhwGroups []ItfhwGroup // ItfhwGroup represents a UTM group type ItfhwGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -545,30 +545,30 @@ type ItfhwRedClients []ItfhwRedClient // ItfhwRedClient represents a UTM RED client interface type ItfhwRedClient struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + LocalKey string `json:"local_key"` + // Mac description: (MACADDR) + // Mac default value is "00:00:00:00:00:00" + Mac string `json:"mac"` + // Status default value is false + Status bool `json:"status"` + TunnelId int `json:"tunnel_id"` + Comment string `json:"comment"` + // HubHost description: REF(network/host), REF(network/dns_host) + HubHost string `json:"hub_host"` + LocalCert string `json:"local_cert"` + Name string `json:"name"` // TunnelCompression default value is false TunnelCompression bool `json:"tunnel_compression"` // TunnelCompressionAlgorithm can be one of: []string{"deflate", "lzo", "gzip"} // TunnelCompressionAlgorithm default value is "lzo" TunnelCompressionAlgorithm string `json:"tunnel_compression_algorithm"` - Comment string `json:"comment"` - // Hardware description: (REGEX) - Hardware string `json:"hardware"` - Name string `json:"name"` - // Status default value is false - Status bool `json:"status"` - LocalKey string `json:"local_key"` - // Mac description: (MACADDR) - // Mac default value is "00:00:00:00:00:00" - Mac string `json:"mac"` - TunnelId int `json:"tunnel_id"` // Description default value is "Remote Ethernet Client Device" Description string `json:"description"` - HubCa string `json:"hub_ca"` - // HubHost description: REF(network/host), REF(network/dns_host) - HubHost string `json:"hub_host"` - LocalCert string `json:"local_cert"` + // Hardware description: (REGEX) + Hardware string `json:"hardware"` + HubCa string `json:"hub_ca"` } var _ sophos.RestGetter = &ItfhwRedClient{} @@ -625,159 +625,159 @@ type ItfhwRedServers []ItfhwRedServer // ItfhwRedServer represents a UTM RED server interface type ItfhwRedServer struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // MacFilterType can be one of: []string{"none", "whitelist", "blacklist"} - // MacFilterType default value is "none" - MacFilterType string `json:"mac_filter_type"` - // TunnelState default value is false - TunnelState bool `json:"tunnel_state"` - // HubHostname default value is "" - HubHostname string `json:"hub_hostname"` - // Lan3Mode can be one of: []string{"tagged", "untagged", "untagged_drop_tagged", "unused"} - // Lan3Mode default value is "unused" - Lan3Mode string `json:"lan3_mode"` - FullbrDomains []interface{} `json:"fullbr_domains"` - // Hub2Hostname default value is "" - Hub2Hostname string `json:"hub2_hostname"` - MacFilterEntriesRed15W int `json:"mac_filter_entries_red15w"` - // TunnelCompression default value is false - TunnelCompression bool `json:"tunnel_compression"` - TunnelId int `json:"tunnel_id"` - Comment string `json:"comment"` - // FullbrDns description: REF(network/host), REF(network/dns_host), REF(network/interface_address) - // FullbrDns default value is "" - FullbrDns string `json:"fullbr_dns"` - // Manual2Address description: (IPADDR) - // Manual2Address default value is "0.0.0.0" - Manual2Address string `json:"manual2_address"` + Reference string `json:"_ref"` + // PrevUnlockCode default value is "" + PrevUnlockCode string `json:"prev_unlock_code"` + // RouteMode can be one of: []string{"default", "split", "fullbr"} + // RouteMode default value is "default" + RouteMode string `json:"route_mode"` + // Password default value is "" + Password string `json:"password"` + // ActivateModem default value is false + ActivateModem bool `json:"activate_modem"` + // BridgeAddress description: (IPADDR) + // BridgeAddress default value is "0.0.0.0" + BridgeAddress string `json:"bridge_address"` + // FailoverDirect default value is true + FailoverDirect bool `json:"failover_direct"` + // Lan1Vids default value is "" + Lan1Vids string `json:"lan1_vids"` + // Lan3Vids default value is "" + Lan3Vids string `json:"lan3_vids"` + Manual2Netmask int `json:"manual2_netmask"` // ManualDns description: (IPADDR) // ManualDns default value is "0.0.0.0" ManualDns string `json:"manual_dns"` - Pin int `json:"pin"` // RemoteCert description: REF(ca/host_key_cert) // RemoteCert default value is "" - RemoteCert string `json:"remote_cert"` - // UnlockCode default value is "" - UnlockCode string `json:"unlock_code"` - // Lan4Vids default value is "" - Lan4Vids string `json:"lan4_vids"` - MacFilterEntriesRed50 int `json:"mac_filter_entries_red50"` - // State can be one of: []string{"initializing", "runnable", "notbound"} - // State default value is "initializing" - State string `json:"state"` - // Mac description: (MACADDR) - // Mac default value is "00:00:00:00:00:00" - Mac string `json:"mac"` - // PrevUnlockCode default value is "" - PrevUnlockCode string `json:"prev_unlock_code"` - DebugLevel int `json:"debug_level"` - // LanportMode can be one of: []string{"switch", "vlan"} - // LanportMode default value is "switch" - LanportMode string `json:"lanport_mode"` - // FailoverDirect default value is true - FailoverDirect bool `json:"failover_direct"` - ManualNetmask int `json:"manual_netmask"` - // MacFilterList description: REF(mac_list/*) - // MacFilterList default value is "" - MacFilterList string `json:"mac_filter_list"` + RemoteCert string `json:"remote_cert"` + FullbrDomains []interface{} `json:"fullbr_domains"` + LocalNetworks []interface{} `json:"local_networks"` + MacFilterEntriesRed15 int `json:"mac_filter_entries_red15"` + MacFilterEntriesRed50 int `json:"mac_filter_entries_red50"` + ManualNetmask int `json:"manual_netmask"` // Status default value is false Status bool `json:"status"` - // TunnelCompressionAlgorithm can be one of: []string{"deflate", "lzo", "gzip"} - // TunnelCompressionAlgorithm default value is "lzo" - TunnelCompressionAlgorithm string `json:"tunnel_compression_algorithm"` - // BridgeAddress description: (IPADDR) - // BridgeAddress default value is "0.0.0.0" - BridgeAddress string `json:"bridge_address"` + // TunnelState default value is false + TunnelState bool `json:"tunnel_state"` // BridgeProto can be one of: []string{"dhcp", "static", "none"} // BridgeProto default value is "none" BridgeProto string `json:"bridge_proto"` - // Lan1Vids default value is "" - Lan1Vids string `json:"lan1_vids"` - LocalNetworks []interface{} `json:"local_networks"` - Manual2Netmask int `json:"manual2_netmask"` - // UmtsState can be one of: []string{"READY", "PIN", "PUK"} - // UmtsState default value is "READY" - UmtsState string `json:"umts_state"` - // Username default value is "" - Username string `json:"username"` - // ActivateModem default value is false - ActivateModem bool `json:"activate_modem"` + // Manual2Defgw description: (IPADDR) + // Manual2Defgw default value is "0.0.0.0" + Manual2Defgw string `json:"manual2_defgw"` + // ManualDefgw description: (IPADDR) + // ManualDefgw default value is "0.0.0.0" + ManualDefgw string `json:"manual_defgw"` + Pin int `json:"pin"` + // TunnelCompressionAlgorithm can be one of: []string{"deflate", "lzo", "gzip"} + // TunnelCompressionAlgorithm default value is "lzo" + TunnelCompressionAlgorithm string `json:"tunnel_compression_algorithm"` + // Type can be one of: []string{"red", "red15", "red15w", "red50", "asg", "software"} + // Type default value is "asg" + Type string `json:"type"` + Comment string `json:"comment"` + // FastFailover default value is false + FastFailover bool `json:"fast_failover"` // Lan1Mode can be one of: []string{"tagged", "untagged", "untagged_drop_tagged", "unused"} // Lan1Mode default value is "unused" - Lan1Mode string `json:"lan1_mode"` + Lan1Mode string `json:"lan1_mode"` + MacFilterEntriesRed15W int `json:"mac_filter_entries_red15w"` + // Manual2Dns description: (IPADDR) + // Manual2Dns default value is "0.0.0.0" + Manual2Dns string `json:"manual2_dns"` + Name string `json:"name"` // PinAsString description: (REGEX) // PinAsString default value is "" PinAsString string `json:"pin_as_string"` + // Username default value is "" + Username string `json:"username"` + // Authorized default value is false + Authorized bool `json:"authorized"` + // Description default value is "Remote Ethernet Server Device" + Description string `json:"description"` + // Hub2Hostname default value is "" + Hub2Hostname string `json:"hub2_hostname"` + // MobileNetwork can be one of: []string{"gsm", "cdma"} + // MobileNetwork default value is "gsm" + MobileNetwork string `json:"mobile_network"` + // State can be one of: []string{"initializing", "runnable", "notbound"} + // State default value is "initializing" + State string `json:"state"` + // DeploymentMode can be one of: []string{"online", "offline"} + // DeploymentMode default value is "online" + DeploymentMode string `json:"deployment_mode"` + // Lan3Mode can be one of: []string{"tagged", "untagged", "untagged_drop_tagged", "unused"} + // Lan3Mode default value is "unused" + Lan3Mode string `json:"lan3_mode"` + // LocalNetworksTarget description: REF(network/host), REF(network/dns_host), REF(network/interface_address) + // LocalNetworksTarget default value is "" + LocalNetworksTarget string `json:"local_networks_target"` + // Manual2Address description: (IPADDR) + // Manual2Address default value is "0.0.0.0" + Manual2Address string `json:"manual2_address"` + RedId string `json:"red_id"` // Uplink2Mode can be one of: []string{"dhcp", "manual"} // Uplink2Mode default value is "dhcp" Uplink2Mode string `json:"uplink2_mode"` + // Hardware description: (REGEX) + Hardware string `json:"hardware"` + // Lan4Mode can be one of: []string{"tagged", "untagged", "untagged_drop_tagged", "unused"} + // Lan4Mode default value is "unused" + Lan4Mode string `json:"lan4_mode"` // UplinkMode can be one of: []string{"dhcp", "manual"} // UplinkMode default value is "dhcp" UplinkMode string `json:"uplink_mode"` + // Apn default value is "" + Apn string `json:"apn"` + BridgeNetmask int `json:"bridge_netmask"` // DialString default value is "*99#" DialString string `json:"dial_string"` - // Hardware description: (REGEX) - Hardware string `json:"hardware"` - // ManualDefgw description: (IPADDR) - // ManualDefgw default value is "0.0.0.0" - ManualDefgw string `json:"manual_defgw"` - // LocalNetworksTarget description: REF(network/host), REF(network/dns_host), REF(network/interface_address) - // LocalNetworksTarget default value is "" - LocalNetworksTarget string `json:"local_networks_target"` - RedId string `json:"red_id"` - // FastFailover default value is false - FastFailover bool `json:"fast_failover"` - // Lan4Mode can be one of: []string{"tagged", "untagged", "untagged_drop_tagged", "unused"} - // Lan4Mode default value is "unused" - Lan4Mode string `json:"lan4_mode"` - MacFilterEntriesRed15 int `json:"mac_filter_entries_red15"` + // Lan2Vids default value is "" + Lan2Vids string `json:"lan2_vids"` + // LanportMode can be one of: []string{"switch", "vlan"} + // LanportMode default value is "switch" + LanportMode string `json:"lanport_mode"` + // MacFilterType can be one of: []string{"none", "whitelist", "blacklist"} + // MacFilterType default value is "none" + MacFilterType string `json:"mac_filter_type"` // ManualAddress description: (IPADDR) // ManualAddress default value is "0.0.0.0" ManualAddress string `json:"manual_address"` - // MobileNetwork can be one of: []string{"gsm", "cdma"} - // MobileNetwork default value is "gsm" - MobileNetwork string `json:"mobile_network"` - // Description default value is "Remote Ethernet Server Device" - Description string `json:"description"` - MacFilterEntriesRed10 int `json:"mac_filter_entries_red10"` - // Lan3Vids default value is "" - Lan3Vids string `json:"lan3_vids"` - // Authorized default value is false - Authorized bool `json:"authorized"` - // DeploymentMode can be one of: []string{"online", "offline"} - // DeploymentMode default value is "online" - DeploymentMode string `json:"deployment_mode"` - // Password default value is "" - Password string `json:"password"` - // Type can be one of: []string{"red", "red15", "red15w", "red50", "asg", "software"} - // Type default value is "asg" - Type string `json:"type"` - // Manual2Defgw description: (IPADDR) - // Manual2Defgw default value is "0.0.0.0" - Manual2Defgw string `json:"manual2_defgw"` - // Manual2Dns description: (IPADDR) - // Manual2Dns default value is "0.0.0.0" - Manual2Dns string `json:"manual2_dns"` - Name string `json:"name"` - // RouteMode can be one of: []string{"default", "split", "fullbr"} - // RouteMode default value is "default" - RouteMode string `json:"route_mode"` + DebugLevel int `json:"debug_level"` + // HubHostname default value is "" + HubHostname string `json:"hub_hostname"` + // Lan4Vids default value is "" + Lan4Vids string `json:"lan4_vids"` + // Mac description: (MACADDR) + // Mac default value is "00:00:00:00:00:00" + Mac string `json:"mac"` SplitNetworks []interface{} `json:"split_networks"` - // UplinkBalancing can be one of: []string{"balance", "failover"} - // UplinkBalancing default value is "failover" - UplinkBalancing string `json:"uplink_balancing"` - // Apn default value is "" - Apn string `json:"apn"` + TunnelId int `json:"tunnel_id"` + // FullbrDns description: REF(network/host), REF(network/dns_host), REF(network/interface_address) + // FullbrDns default value is "" + FullbrDns string `json:"fullbr_dns"` // HostnameBalancing can be one of: []string{"balance", "failover"} // HostnameBalancing default value is "failover" HostnameBalancing string `json:"hostname_balancing"` - // Lan2Vids default value is "" - Lan2Vids string `json:"lan2_vids"` - BridgeNetmask int `json:"bridge_netmask"` // Lan2Mode can be one of: []string{"tagged", "untagged", "untagged_drop_tagged", "unused"} // Lan2Mode default value is "unused" Lan2Mode string `json:"lan2_mode"` + // MacFilterList description: REF(mac_list/*) + // MacFilterList default value is "" + MacFilterList string `json:"mac_filter_list"` + // UnlockCode default value is "" + UnlockCode string `json:"unlock_code"` + // UplinkBalancing can be one of: []string{"balance", "failover"} + // UplinkBalancing default value is "failover" + UplinkBalancing string `json:"uplink_balancing"` + MacFilterEntriesRed10 int `json:"mac_filter_entries_red10"` + // TunnelCompression default value is false + TunnelCompression bool `json:"tunnel_compression"` + // UmtsState can be one of: []string{"READY", "PIN", "PUK"} + // UmtsState default value is "READY" + UmtsState string `json:"umts_state"` } var _ sophos.RestGetter = &ItfhwRedServer{} @@ -833,18 +833,18 @@ type ItfhwSerials []ItfhwSerial // ItfhwSerial represents a UTM serial interface type ItfhwSerial struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Name string `json:"name"` - Port string `json:"port"` - // Baud default value is "" - Baud string `json:"baud"` - Comment string `json:"comment"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` Description string `json:"description"` // Hardware description: (REGEX) Hardware string `json:"hardware"` Irq int `json:"irq"` + Name string `json:"name"` + Port string `json:"port"` + // Baud default value is "" + Baud string `json:"baud"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &ItfhwSerial{} @@ -901,20 +901,20 @@ type ItfhwUsbserials []ItfhwUsbserial // ItfhwUsbserial represents a UTM USB serial interface type ItfhwUsbserial struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` + Name string `json:"name"` + // Product default value is "" + Product string `json:"product"` + // Vendor default value is "" + Vendor string `json:"vendor"` + Comment string `json:"comment"` // Control description: (REGEX) // Control default value is "" Control string `json:"control"` Description string `json:"description"` // Hardware description: (REGEX) Hardware string `json:"hardware"` - Name string `json:"name"` - // Product default value is "" - Product string `json:"product"` - // Vendor default value is "" - Vendor string `json:"vendor"` } var _ sophos.RestGetter = &ItfhwUsbserial{} @@ -971,15 +971,15 @@ type ItfhwVirtuals []ItfhwVirtual // ItfhwVirtual represents a UTM virtual interface type ItfhwVirtual struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Name string `json:"name"` Comment string `json:"comment"` // Description default value is "IPv6 Tunnel" Description string `json:"description"` // Hardware can be one of: []string{"6to4", "aiccu", "tspc", "teredo", "he.net"} // Hardware default value is "teredo" Hardware string `json:"hardware"` - Name string `json:"name"` } var _ sophos.RestGetter = &ItfhwVirtual{} diff --git a/api/v1.3.0/objects/itfparams.go b/api/v1.3.0/objects/itfparams.go index 3537cd5..d694cbe 100644 --- a/api/v1.3.0/objects/itfparams.go +++ b/api/v1.3.0/objects/itfparams.go @@ -79,8 +79,8 @@ type ItfparamsBridgePorts []ItfparamsBridgePort // ItfparamsBridgePort represents a UTM bridge port type ItfparamsBridgePort struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` // Itfhw description: REF(itfhw/ethernet), REF(itfhw/red_server), REF(itfhw/red_client), REF(itfhw/awe_network), REF(itfhw/lag) Itfhw string `json:"itfhw"` @@ -145,8 +145,8 @@ type ItfparamsGroups []ItfparamsGroup // ItfparamsGroup represents a UTM group type ItfparamsGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -377,42 +377,42 @@ type ItfparamsSecondarys []ItfparamsSecondary // ItfparamsSecondary represents a UTM additional interface address type ItfparamsSecondary struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // InterfaceAddress description: REF(network/interface_address) - // InterfaceAddress default value is "" - InterfaceAddress string `json:"interface_address"` - Name string `json:"name"` - // Type6 can be one of: []string{"static"} - // Type6 default value is "static" - Type6 string `json:"type6"` + Reference string `json:"_ref"` // Address6 description: (IP6ADDR) // Address6 default value is "" Address6 string `json:"address6"` Comment string `json:"comment"` + // Id default value is "" + Id string `json:"id"` + Netmask int `json:"netmask"` + Netmask6 int `json:"netmask6"` + // Resolved6 default value is false + Resolved6 bool `json:"resolved6"` + // Type6 can be one of: []string{"static"} + // Type6 default value is "static" + Type6 string `json:"type6"` + // InterfaceAddress description: REF(network/interface_address) + // InterfaceAddress default value is "" + InterfaceAddress string `json:"interface_address"` + Name string `json:"name"` + HaNode int `json:"ha_node"` + // Resolved default value is false + Resolved bool `json:"resolved"` + // Address description: (IPADDR) + // Address default value is "0.0.0.0" + Address string `json:"address"` // InterfaceBroadcast description: REF(network/interface_broadcast) // InterfaceBroadcast default value is "" InterfaceBroadcast string `json:"interface_broadcast"` - Netmask6 int `json:"netmask6"` + // InterfaceNetwork description: REF(network/interface_network) + // InterfaceNetwork default value is "" + InterfaceNetwork string `json:"interface_network"` // Status default value is false Status bool `json:"status"` // Type can be one of: []string{"static"} // Type default value is "static" Type string `json:"type"` - // Address description: (IPADDR) - // Address default value is "0.0.0.0" - Address string `json:"address"` - Netmask int `json:"netmask"` - // InterfaceNetwork description: REF(network/interface_network) - // InterfaceNetwork default value is "" - InterfaceNetwork string `json:"interface_network"` - // Id default value is "" - Id string `json:"id"` - // Resolved default value is false - Resolved bool `json:"resolved"` - // Resolved6 default value is false - Resolved6 bool `json:"resolved6"` - HaNode int `json:"ha_node"` } var _ sophos.RestGetter = &ItfparamsSecondary{} diff --git a/api/v1.3.0/objects/mac_list.go b/api/v1.3.0/objects/mac_list.go index 6c58aca..a0d8ad0 100644 --- a/api/v1.3.0/objects/mac_list.go +++ b/api/v1.3.0/objects/mac_list.go @@ -61,10 +61,10 @@ type MacListGroups []MacListGroup // MacListGroup represents a UTM group type MacListGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Name string `json:"name"` + Reference string `json:"_ref"` Comment string `json:"comment"` + Name string `json:"name"` } var _ sophos.RestGetter = &MacListGroup{} @@ -121,8 +121,8 @@ type MacListMacLists []MacListMacList // MacListMacList represents a UTM MAC address list type MacListMacList struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` AddressList []interface{} `json:"address_list"` Comment string `json:"comment"` HostList []interface{} `json:"host_list"` diff --git a/api/v1.3.0/objects/network.go b/api/v1.3.0/objects/network.go index 80f1797..6b9ca70 100644 --- a/api/v1.3.0/objects/network.go +++ b/api/v1.3.0/objects/network.go @@ -259,35 +259,35 @@ type NetworkAvailabilityGroups []NetworkAvailabilityGroup // NetworkAvailabilityGroup represents a UTM availability group type NetworkAvailabilityGroup struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - CheckPort int `json:"check_port"` - Comment string `json:"comment"` - Members []interface{} `json:"members"` - // Resolved default value is false - Resolved bool `json:"resolved"` - Timeout2 int `json:"timeout2"` - // Interface description: REF(interface/*) - // Interface default value is "" - Interface string `json:"interface"` - // Resolved6 default value is false - Resolved6 bool `json:"resolved6"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // CheckType can be one of: []string{"icmp", "udp", "tcp", "http", "https"} + // CheckType default value is "icmp" + CheckType string `json:"check_type"` + Comment string `json:"comment"` // Address description: (IPADDR) // Address default value is "0.0.0.0" Address string `json:"address"` // Address6 description: (IP6ADDR) // Address6 default value is "::" Address6 string `json:"address6"` + // Resolved default value is false + Resolved bool `json:"resolved"` + Timeout2 int `json:"timeout2"` + Members []interface{} `json:"members"` + // Sticky default value is true + Sticky bool `json:"sticky"` // CheckData default value is "" CheckData string `json:"check_data"` - // CheckType can be one of: []string{"icmp", "udp", "tcp", "http", "https"} - // CheckType default value is "icmp" - CheckType string `json:"check_type"` + // Interface description: REF(interface/*) + // Interface default value is "" + Interface string `json:"interface"` + // Resolved6 default value is false + Resolved6 bool `json:"resolved6"` + Timeout int `json:"timeout"` + CheckPort int `json:"check_port"` Name string `json:"name"` - // Sticky default value is true - Sticky bool `json:"sticky"` - Timeout int `json:"timeout"` } var _ sophos.RestGetter = &NetworkAvailabilityGroup{} @@ -824,8 +824,10 @@ type NetworkMulticasts []NetworkMulticast // NetworkMulticast represents a UTM multicast group type NetworkMulticast struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Name string `json:"name"` + Netmask int `json:"netmask"` // Resolved default value is true Resolved bool `json:"resolved"` // Address description: (IPADDR) @@ -834,8 +836,6 @@ type NetworkMulticast struct { // Interface description: REF(interface/*) // Interface default value is "" Interface string `json:"interface"` - Name string `json:"name"` - Netmask int `json:"netmask"` } var _ sophos.RestGetter = &NetworkMulticast{} diff --git a/api/v1.3.0/objects/notification.go b/api/v1.3.0/objects/notification.go index b80fad4..b557a54 100644 --- a/api/v1.3.0/objects/notification.go +++ b/api/v1.3.0/objects/notification.go @@ -61,8 +61,8 @@ type NotificationGroups []NotificationGroup // NotificationGroup represents a UTM group type NotificationGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -121,15 +121,15 @@ type NotificationNotifications []NotificationNotification // NotificationNotification represents a UTM notification type NotificationNotification struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` + // Snmp default value is false + Snmp bool `json:"snmp"` + Comment string `json:"comment"` // Email default value is false Email bool `json:"email"` Id string `json:"id"` Name string `json:"name"` - // Snmp default value is false - Snmp bool `json:"snmp"` } var _ sophos.RestGetter = &NotificationNotification{} diff --git a/api/v1.3.0/objects/ospf.go b/api/v1.3.0/objects/ospf.go index 9d906aa..7050d7c 100644 --- a/api/v1.3.0/objects/ospf.go +++ b/api/v1.3.0/objects/ospf.go @@ -73,9 +73,12 @@ type OspfAreas []OspfArea // OspfArea represents a UTM OSPF area type OspfArea struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Name string `json:"name"` + Reference string `json:"_ref"` + // Id description: (IPADDR) + Id string `json:"id"` + Interfaces []interface{} `json:"interfaces"` + Name string `json:"name"` // Type can be one of: []string{"normal", "stub", "nssa", "stub no-summary", "nssa no-summary"} // Type default value is "normal" Type string `json:"type"` @@ -84,9 +87,6 @@ type OspfArea struct { Authentication string `json:"authentication"` Comment string `json:"comment"` DefaultCost int `json:"default_cost"` - // Id description: (IPADDR) - Id string `json:"id"` - Interfaces []interface{} `json:"interfaces"` } var _ sophos.RestGetter = &OspfArea{} @@ -141,10 +141,10 @@ type OspfGroups []OspfGroup // OspfGroup represents a UTM group type OspfGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Name string `json:"name"` + Reference string `json:"_ref"` Comment string `json:"comment"` + Name string `json:"name"` } var _ sophos.RestGetter = &OspfGroup{} @@ -199,27 +199,27 @@ type OspfInterfaces []OspfInterface // OspfInterface represents a UTM OSPF interface type OspfInterface struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // RetransmitInterval description: Constraints: 0, 3-65535 + RetransmitInterval int `json:"retransmit_interval"` // Authentication can be one of: []string{"message-digest", "plain-text", "null"} Authentication string `json:"authentication"` - Comment string `json:"comment"` - Name string `json:"name"` - Priority int `json:"priority"` - // TransmitDelay description: Constraints: 0, 1-65535 - TransmitDelay int `json:"transmit_delay"` // AuthenticationKey description: (REGEX) AuthenticationKey string `json:"authentication_key"` - Cost int `json:"cost"` - // DeadInterval description: Constraints: 0, 1-65535 - DeadInterval int `json:"dead_interval"` + Comment string `json:"comment"` // HelloInterval description: Constraints: 0, 1-65535 HelloInterval int `json:"hello_interval"` // Interface description: REF(interface/*) Interface string `json:"interface"` MessageDigestKeys []interface{} `json:"message_digest_keys"` - // RetransmitInterval description: Constraints: 0, 3-65535 - RetransmitInterval int `json:"retransmit_interval"` + Priority int `json:"priority"` + // TransmitDelay description: Constraints: 0, 1-65535 + TransmitDelay int `json:"transmit_delay"` + Cost int `json:"cost"` + // DeadInterval description: Constraints: 0, 1-65535 + DeadInterval int `json:"dead_interval"` + Name string `json:"name"` } var _ sophos.RestGetter = &OspfInterface{} @@ -275,14 +275,14 @@ type OspfMessageDigestKeys []OspfMessageDigestKey // OspfMessageDigestKey represents a UTM OSPF message digest key type OspfMessageDigestKey struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Comment string `json:"comment"` - // MessageDigestKey description: (REGEX) - MessageDigestKey string `json:"message_digest_key"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` MessageDigestKeyId int `json:"message_digest_key_id"` Name string `json:"name"` + Comment string `json:"comment"` + // MessageDigestKey description: (REGEX) + MessageDigestKey string `json:"message_digest_key"` } var _ sophos.RestGetter = &OspfMessageDigestKey{} diff --git a/api/v1.3.0/objects/override.go b/api/v1.3.0/objects/override.go index 2521bc0..038bf5a 100644 --- a/api/v1.3.0/objects/override.go +++ b/api/v1.3.0/objects/override.go @@ -61,8 +61,8 @@ type OverrideGroups []OverrideGroup // OverrideGroup represents a UTM group type OverrideGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -121,16 +121,16 @@ type OverrideObjrefs []OverrideObjref // OverrideObjref represents a UTM monitoring action type OverrideObjref struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Attr string `json:"attr"` - Comment string `json:"comment"` + Reference string `json:"_ref"` + Name string `json:"name"` + // Ref description: REF(/*) + Ref string `json:"ref"` + Value string `json:"value"` + Attr string `json:"attr"` + Comment string `json:"comment"` // Condition description: REF(condition/*) Condition string `json:"condition"` - Name string `json:"name"` - // Ref description: REF(/*) - Ref string `json:"ref"` - Value string `json:"value"` } var _ sophos.RestGetter = &OverrideObjref{} diff --git a/api/v1.3.0/objects/packetfilter.go b/api/v1.3.0/objects/packetfilter.go index e92875a..d2cc1ff 100644 --- a/api/v1.3.0/objects/packetfilter.go +++ b/api/v1.3.0/objects/packetfilter.go @@ -134,31 +134,31 @@ type Packetfilter1to1Nats []Packetfilter1to1Nat // Packetfilter1to1Nat represents a UTM 1to1nat type Packetfilter1to1Nat struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` // Service description: REF(service/*) Service string `json:"service"` // Source description: REF(network/*) Source string `json:"source"` - // Status default value is false - Status bool `json:"status"` // AutoPfIn description: REF(packetfilter/packetfilter) // AutoPfIn default value is "" AutoPfIn string `json:"auto_pf_in"` - // AutoPfrule default value is false - AutoPfrule bool `json:"auto_pfrule"` - Comment string `json:"comment"` // Destination description: REF(network/*) Destination string `json:"destination"` - // Mode can be one of: []string{"mapsrc", "mapdst"} - Mode string `json:"mode"` // Group default value is "" Group string `json:"group"` // Log default value is false Log bool `json:"log"` // MapTo description: REF(network/network) MapTo string `json:"map_to"` - Name string `json:"name"` + // AutoPfrule default value is false + AutoPfrule bool `json:"auto_pfrule"` + Comment string `json:"comment"` + // Mode can be one of: []string{"mapsrc", "mapdst"} + Mode string `json:"mode"` + Name string `json:"name"` + // Status default value is false + Status bool `json:"status"` } var _ sophos.RestGetter = &Packetfilter1to1Nat{} @@ -215,12 +215,8 @@ type PacketfilterGenericProxys []PacketfilterGenericProxy // PacketfilterGenericProxy represents a UTM generic proxy rule type PacketfilterGenericProxy struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Status default value is false - Status bool `json:"status"` - // Tohost description: REF(network/host), REF(network/dns_host), REF(network/availability_group) - Tohost string `json:"tohost"` + Reference string `json:"_ref"` // Toservice description: REF(service/*) Toservice string `json:"toservice"` AllowedNetworks []interface{} `json:"allowed_networks"` @@ -230,6 +226,10 @@ type PacketfilterGenericProxy struct { Name string `json:"name"` // Service description: REF(service/*) Service string `json:"service"` + // Status default value is false + Status bool `json:"status"` + // Tohost description: REF(network/host), REF(network/dns_host), REF(network/availability_group) + Tohost string `json:"tohost"` } var _ sophos.RestGetter = &PacketfilterGenericProxy{} @@ -286,10 +286,10 @@ type PacketfilterGroups []PacketfilterGroup // PacketfilterGroup represents a UTM group type PacketfilterGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Name string `json:"name"` + Reference string `json:"_ref"` Comment string `json:"comment"` + Name string `json:"name"` } var _ sophos.RestGetter = &PacketfilterGroup{} @@ -346,37 +346,37 @@ type PacketfilterLoadbalances []PacketfilterLoadbalance // PacketfilterLoadbalance represents a UTM load balancing rule type PacketfilterLoadbalance struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Service description: REF(service/*) - Service string `json:"service"` - Comment string `json:"comment"` - // DestinationNatStatus description: (HASH) - DestinationNatStatus interface{} `json:"destination_nat_status"` + Reference string `json:"_ref"` // Scheduler description: REF(scheduler/loadbalance) // Scheduler default value is "" Scheduler string `json:"scheduler"` - // AutoPfrule default value is true - AutoPfrule bool `json:"auto_pfrule"` - DestinationNatGroup []interface{} `json:"destination_nat_group"` - Name string `json:"name"` - // ShutdownOverride description: REF(override/objref) - // ShutdownOverride default value is "" - ShutdownOverride string `json:"shutdown_override"` - // DestinationNatStatus6 description: (HASH) - DestinationNatStatus6 interface{} `json:"destination_nat_status6"` - // ShutdownAddress default value is false - ShutdownAddress bool `json:"shutdown_address"` - // ShutdownCondition description: REF(condition/objref) - // ShutdownCondition default value is "" - ShutdownCondition string `json:"shutdown_condition"` // Status default value is false Status bool `json:"status"` // AutoPfIn description: REF(packetfilter/packetfilter) // AutoPfIn default value is "" AutoPfIn string `json:"auto_pf_in"` // Destination description: REF(network/*) - Destination string `json:"destination"` + Destination string `json:"destination"` + DestinationNatGroup []interface{} `json:"destination_nat_group"` + // ShutdownAddress default value is false + ShutdownAddress bool `json:"shutdown_address"` + // DestinationNatStatus description: (HASH) + DestinationNatStatus interface{} `json:"destination_nat_status"` + // DestinationNatStatus6 description: (HASH) + DestinationNatStatus6 interface{} `json:"destination_nat_status6"` + Name string `json:"name"` + // Service description: REF(service/*) + Service string `json:"service"` + // ShutdownCondition description: REF(condition/objref) + // ShutdownCondition default value is "" + ShutdownCondition string `json:"shutdown_condition"` + // ShutdownOverride description: REF(override/objref) + // ShutdownOverride default value is "" + ShutdownOverride string `json:"shutdown_override"` + // AutoPfrule default value is true + AutoPfrule bool `json:"auto_pfrule"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &PacketfilterLoadbalance{} @@ -433,8 +433,13 @@ type PacketfilterMangles []PacketfilterMangle // PacketfilterMangle represents a UTM packet mangle rule type PacketfilterMangle struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // Destination description: REF(network/*) + Destination string `json:"destination"` + // Direction can be one of: []string{"in", "out"} + Direction string `json:"direction"` + Name string `json:"name"` // Service description: REF(service/*) Service string `json:"service"` // Source description: REF(network/*) @@ -443,11 +448,6 @@ type PacketfilterMangle struct { Status bool `json:"status"` Action []interface{} `json:"action"` Comment string `json:"comment"` - // Destination description: REF(network/*) - Destination string `json:"destination"` - // Direction can be one of: []string{"in", "out"} - Direction string `json:"direction"` - Name string `json:"name"` } var _ sophos.RestGetter = &PacketfilterMangle{} @@ -725,15 +725,15 @@ type PacketfilterRulesets []PacketfilterRuleset // PacketfilterRuleset represents a UTM ruleset type PacketfilterRuleset struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` - Name string `json:"name"` + Reference string `json:"_ref"` Rules []interface{} `json:"rules"` // RulesStatus description: (HASH) RulesStatus interface{} `json:"rules_status"` // Status default value is false - Status bool `json:"status"` + Status bool `json:"status"` + Comment string `json:"comment"` + Name string `json:"name"` } var _ sophos.RestGetter = &PacketfilterRuleset{} diff --git a/api/v1.3.0/objects/pim_sm.go b/api/v1.3.0/objects/pim_sm.go index 57826fb..da743f1 100644 --- a/api/v1.3.0/objects/pim_sm.go +++ b/api/v1.3.0/objects/pim_sm.go @@ -77,8 +77,8 @@ type PimSmGroups []PimSmGroup // PimSmGroup represents a UTM group type PimSmGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -135,14 +135,14 @@ type PimSmInterfaces []PimSmInterface // PimSmInterface represents a UTM multicast routing interface type PimSmInterface struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` DrPriority int `json:"dr_priority"` IgmpVersions []interface{} `json:"igmp_versions"` // Interface description: REF(interface/*) Interface string `json:"interface"` Name string `json:"name"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &PimSmInterface{} @@ -199,8 +199,9 @@ type PimSmRoutes []PimSmRoute // PimSmRoute represents a UTM multicast route type PimSmRoute struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` // Gateway description: REF(network/host), REF(network/dns_host), REF(network/availability_group) // Gateway default value is "" Gateway string `json:"gateway"` @@ -213,8 +214,7 @@ type PimSmRoute struct { // Status default value is false Status bool `json:"status"` // Type can be one of: []string{"gateway", "interface"} - Type string `json:"type"` - Comment string `json:"comment"` + Type string `json:"type"` } var _ sophos.RestGetter = &PimSmRoute{} @@ -269,8 +269,8 @@ type PimSmRpRouters []PimSmRpRouter // PimSmRpRouter represents a UTM rendezvous point router type PimSmRpRouter struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` // Host description: REF(network/host), REF(network/dns_host), REF(network/interface_address) Host string `json:"host"` diff --git a/api/v1.3.0/objects/pop3.go b/api/v1.3.0/objects/pop3.go index bdd9c63..94ed285 100644 --- a/api/v1.3.0/objects/pop3.go +++ b/api/v1.3.0/objects/pop3.go @@ -100,14 +100,14 @@ type Pop3Accounts []Pop3Account // Pop3Account represents a UTM POP3 account type Pop3Account struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` Name string `json:"name"` Password string `json:"password"` // Server description: REF(pop3/server) Server string `json:"server"` Username string `json:"username"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &Pop3Account{} @@ -164,15 +164,15 @@ type Pop3Exceptions []Pop3Exception // Pop3Exception represents a UTM POP3 filter exception type Pop3Exception struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Client []interface{} `json:"client"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` Sender []interface{} `json:"sender"` Skiplist []interface{} `json:"skiplist"` // Status default value is false - Status bool `json:"status"` + Status bool `json:"status"` + Client []interface{} `json:"client"` } var _ sophos.RestGetter = &Pop3Exception{} @@ -229,8 +229,8 @@ type Pop3Groups []Pop3Group // Pop3Group represents a UTM group type Pop3Group struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -287,8 +287,8 @@ type Pop3Servers []Pop3Server // Pop3Server represents a UTM POP3 server type Pop3Server struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Hosts []interface{} `json:"hosts"` Name string `json:"name"` diff --git a/api/v1.3.0/objects/qos.go b/api/v1.3.0/objects/qos.go index e362678..b5905c7 100644 --- a/api/v1.3.0/objects/qos.go +++ b/api/v1.3.0/objects/qos.go @@ -88,22 +88,22 @@ type QosApplicationSelectors []QosApplicationSelector // QosApplicationSelector represents a UTM QoS application selector type QosApplicationSelector struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - // ConnbytesUpperlimit default value is false - ConnbytesUpperlimit bool `json:"connbytes_upperlimit"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + GroupFilterProductivity int `json:"group_filter_productivity"` + GroupFilterRisk int `json:"group_filter_risk"` // Source description: REF(network/*) - Source string `json:"source"` + Source string `json:"source"` + Comment string `json:"comment"` + Connbytes int `json:"connbytes"` + // Destination description: REF(network/*) + Destination string `json:"destination"` Groups []interface{} `json:"groups"` Name string `json:"name"` Applications []interface{} `json:"applications"` - Comment string `json:"comment"` - Connbytes int `json:"connbytes"` - // Destination description: REF(network/*) - Destination string `json:"destination"` - GroupFilterProductivity int `json:"group_filter_productivity"` - GroupFilterRisk int `json:"group_filter_risk"` + // ConnbytesUpperlimit default value is false + ConnbytesUpperlimit bool `json:"connbytes_upperlimit"` } var _ sophos.RestGetter = &QosApplicationSelector{} @@ -160,10 +160,10 @@ type QosGroups []QosGroup // QosGroup represents a UTM group type QosGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` Name string `json:"name"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &QosGroup{} @@ -218,8 +218,9 @@ type QosIngressRules []QosIngressRule // QosIngressRule represents a UTM QoS traffic throttling type QosIngressRule struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Name string `json:"name"` // Status default value is false Status bool `json:"status"` TrafficSelectors []interface{} `json:"traffic_selectors"` @@ -228,7 +229,6 @@ type QosIngressRule struct { // Mode can be one of: []string{",", "srcip", "dstip", "srcip,dstip"} // Mode default value is "" Mode string `json:"mode"` - Name string `json:"name"` } var _ sophos.RestGetter = &QosIngressRule{} @@ -357,8 +357,8 @@ type QosRules []QosRule // QosRule represents a UTM QoS bandwidth pool type QosRule struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Bandwidth int `json:"bandwidth"` Comment string `json:"comment"` Name string `json:"name"` @@ -422,36 +422,36 @@ type QosTrafficSelectors []QosTrafficSelector // QosTrafficSelector represents a UTM QoS traffic selector type QosTrafficSelector struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // ConnbytesUpperlimit default value is false - ConnbytesUpperlimit bool `json:"connbytes_upperlimit"` - TcpFlags []interface{} `json:"tcp_flags"` - // Tos can be one of: []string{"off", "normal", "min_cost", "max_reliable", "max_throughput", "min_delay"} - // Tos default value is "off" - Tos string `json:"tos"` - // Destination description: REF(network/*) - Destination string `json:"destination"` - DscpValue int `json:"dscp_value"` - Name string `json:"name"` + Reference string `json:"_ref"` // PacketLength default value is "" PacketLength string `json:"packet_length"` - Comment string `json:"comment"` - Connbytes int `json:"connbytes"` - // DscpString can be one of: []string{"BE", "AF11", "AF12", "AF13", "AF21", "AF22", "AF23", "AF31", "AF32", "AF33", "AF41", "AF42", "AF43", "CS1", "CS2", "CS3", "CS4", "CS5", "CS6", "CS7", "EF"} - // DscpString default value is "BE" - DscpString string `json:"dscp_string"` - // DscpType can be one of: []string{"off", "value", "class"} - // DscpType default value is "off" - DscpType string `json:"dscp_type"` - // Helper description: (REGEX) - // Helper default value is "" - Helper string `json:"helper"` // Service description: REF(service/*) // Service default value is "REF_ServiceAny" Service string `json:"service"` // Source description: REF(network/*) Source string `json:"source"` + // DscpType can be one of: []string{"off", "value", "class"} + // DscpType default value is "off" + DscpType string `json:"dscp_type"` + // Tos can be one of: []string{"off", "normal", "min_cost", "max_reliable", "max_throughput", "min_delay"} + // Tos default value is "off" + Tos string `json:"tos"` + Connbytes int `json:"connbytes"` + // ConnbytesUpperlimit default value is false + ConnbytesUpperlimit bool `json:"connbytes_upperlimit"` + DscpValue int `json:"dscp_value"` + // Helper description: (REGEX) + // Helper default value is "" + Helper string `json:"helper"` + TcpFlags []interface{} `json:"tcp_flags"` + Comment string `json:"comment"` + // Destination description: REF(network/*) + Destination string `json:"destination"` + // DscpString can be one of: []string{"BE", "AF11", "AF12", "AF13", "AF21", "AF22", "AF23", "AF31", "AF32", "AF33", "AF41", "AF42", "AF43", "CS1", "CS2", "CS3", "CS4", "CS5", "CS6", "CS7", "EF"} + // DscpString default value is "BE" + DscpString string `json:"dscp_string"` + Name string `json:"name"` } var _ sophos.RestGetter = &QosTrafficSelector{} @@ -508,11 +508,11 @@ type QosTrafficSelectorGroups []QosTrafficSelectorGroup // QosTrafficSelectorGroup represents a UTM QoS traffic selector group type QosTrafficSelectorGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` Members []interface{} `json:"members"` Name string `json:"name"` - Comment string `json:"comment"` } var _ sophos.RestGetter = &QosTrafficSelectorGroup{} diff --git a/api/v1.3.0/objects/remote_syslog.go b/api/v1.3.0/objects/remote_syslog.go index 8a49abb..877a61b 100644 --- a/api/v1.3.0/objects/remote_syslog.go +++ b/api/v1.3.0/objects/remote_syslog.go @@ -63,8 +63,8 @@ type RemoteSyslogGroups []RemoteSyslogGroup // RemoteSyslogGroup represents a UTM group type RemoteSyslogGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -123,18 +123,18 @@ type RemoteSyslogServers []RemoteSyslogServer // RemoteSyslogServer represents a UTM remote syslog server type RemoteSyslogServer struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Port description: REF(service/tcp), REF(service/udp) - // Port default value is "REF_SEzkPqGizE" - Port string `json:"port"` - // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) - Server string `json:"server"` - Comment string `json:"comment"` + Reference string `json:"_ref"` + Comment string `json:"comment"` // LocalAddr description: REF(network/interface_address), REF(network/any) // LocalAddr default value is "REF_NetworkAny" LocalAddr string `json:"local_addr"` Name string `json:"name"` + // Port description: REF(service/tcp), REF(service/udp) + // Port default value is "REF_SEzkPqGizE" + Port string `json:"port"` + // Server description: REF(network/host), REF(network/dns_host), REF(network/availability_group) + Server string `json:"server"` } var _ sophos.RestGetter = &RemoteSyslogServer{} diff --git a/api/v1.3.0/objects/reporting.go b/api/v1.3.0/objects/reporting.go index ee99473..53ac3db 100644 --- a/api/v1.3.0/objects/reporting.go +++ b/api/v1.3.0/objects/reporting.go @@ -107,8 +107,8 @@ type ReportingDepartments []ReportingDepartment // ReportingDepartment represents a UTM department type ReportingDepartment struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` Networks []interface{} `json:"networks"` @@ -243,8 +243,8 @@ type ReportingGroups []ReportingGroup // ReportingGroup represents a UTM group type ReportingGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -303,17 +303,17 @@ type ReportingMails []ReportingMail // ReportingMail represents a UTM scheduled report type ReportingMail struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Status default value is false - Status bool `json:"status"` - Comment string `json:"comment"` - Filters []interface{} `json:"filters"` + Reference string `json:"_ref"` // Interval can be one of: []string{"daily", "weekly", "monthly"} // Interval default value is "daily" Interval string `json:"interval"` Name string `json:"name"` Recipients []interface{} `json:"recipients"` + // Status default value is false + Status bool `json:"status"` + Comment string `json:"comment"` + Filters []interface{} `json:"filters"` } var _ sophos.RestGetter = &ReportingMail{} diff --git a/api/v1.3.0/objects/reverse_proxy.go b/api/v1.3.0/objects/reverse_proxy.go index d540c87..6279fe9 100644 --- a/api/v1.3.0/objects/reverse_proxy.go +++ b/api/v1.3.0/objects/reverse_proxy.go @@ -300,35 +300,35 @@ type ReverseProxyExceptions []ReverseProxyException // ReverseProxyException represents a UTM webserver protection exception type ReverseProxyException struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // Skiphtmlrewrite default value is false - Skiphtmlrewrite bool `json:"skiphtmlrewrite"` - // Skiptft default value is false - Skiptft bool `json:"skiptft"` - // Status default value is false - Status bool `json:"status"` - Comment string `json:"comment"` - Name string `json:"name"` - // Skipcookie default value is false - Skipcookie bool `json:"skipcookie"` - Path []interface{} `json:"path"` - SkipCustomThreatsFilters []interface{} `json:"skip_custom_threats_filters"` - SkipThreatsFilterCategories []interface{} `json:"skip_threats_filter_categories"` + Reference string `json:"_ref"` + Name string `json:"name"` // Skipav default value is false Skipav bool `json:"skipav"` // Skipbadclients default value is false Skipbadclients bool `json:"skipbadclients"` - // Skipform default value is false - Skipform bool `json:"skipform"` // SkipformMissingtoken default value is false SkipformMissingtoken bool `json:"skipform_missingtoken"` + // Skiphtmlrewrite default value is false + Skiphtmlrewrite bool `json:"skiphtmlrewrite"` + // Skipurl default value is false + Skipurl bool `json:"skipurl"` + Comment string `json:"comment"` // Op can be one of: []string{"AND", "OR"} // Op default value is "AND" Op string `json:"op"` - // Skipurl default value is false - Skipurl bool `json:"skipurl"` + // Skipform default value is false + Skipform bool `json:"skipform"` + // Skiptft default value is false + Skiptft bool `json:"skiptft"` Source []interface{} `json:"source"` + // Status default value is false + Status bool `json:"status"` + Path []interface{} `json:"path"` + SkipCustomThreatsFilters []interface{} `json:"skip_custom_threats_filters"` + SkipThreatsFilterCategories []interface{} `json:"skip_threats_filter_categories"` + // Skipcookie default value is false + Skipcookie bool `json:"skipcookie"` } var _ sophos.RestGetter = &ReverseProxyException{} @@ -385,8 +385,8 @@ type ReverseProxyFilters []ReverseProxyFilter // ReverseProxyFilter represents a UTM web application firewall filter rule type ReverseProxyFilter struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Expr string `json:"expr"` Name string `json:"name"` @@ -597,8 +597,8 @@ type ReverseProxyGroups []ReverseProxyGroup // ReverseProxyGroup represents a UTM group type ReverseProxyGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -827,8 +827,10 @@ type ReverseProxyRedirections []ReverseProxyRedirection // ReverseProxyRedirection represents a UTM request redirection type ReverseProxyRedirection struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` + Name string `json:"name"` // Status default value is false Status bool `json:"status"` TargetHost string `json:"target_host"` @@ -836,16 +838,14 @@ type ReverseProxyRedirection struct { TargetHostIpv6 bool `json:"target_host_ipv6"` // TargetPath default value is "/" TargetPath string `json:"target_path"` - TargetPort int `json:"target_port"` - Comment string `json:"comment"` + // Frontend description: REF(reverse_proxy/frontend) + Frontend string `json:"frontend"` // ResponseCode can be one of: []string{"301", "302", "303", "307", "308"} // ResponseCode default value is "302" ResponseCode string `json:"response_code"` // SourcePath default value is "/" SourcePath string `json:"source_path"` - // Frontend description: REF(reverse_proxy/frontend) - Frontend string `json:"frontend"` - Name string `json:"name"` + TargetPort int `json:"target_port"` // TargetProtocol can be one of: []string{"http", "https"} // TargetProtocol default value is "http" TargetProtocol string `json:"target_protocol"` @@ -904,14 +904,14 @@ type ReverseProxyThreatsFilters []ReverseProxyThreatsFilter // ReverseProxyThreatsFilter represents a UTM custom threat filter category type ReverseProxyThreatsFilter struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` - Comment string `json:"comment"` - // Files description: (HASH) - Files interface{} `json:"files"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` Name string `json:"name"` OrderedFilenames []interface{} `json:"ordered_filenames"` + Comment string `json:"comment"` + // Files description: (HASH) + Files interface{} `json:"files"` } var _ sophos.RestGetter = &ReverseProxyThreatsFilter{} diff --git a/api/v1.3.0/objects/right.go b/api/v1.3.0/objects/right.go index ed962e3..b0c0289 100644 --- a/api/v1.3.0/objects/right.go +++ b/api/v1.3.0/objects/right.go @@ -61,10 +61,10 @@ type RightGroups []RightGroup // RightGroup represents a UTM group type RightGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` + Reference string `json:"_ref"` Name string `json:"name"` + Comment string `json:"comment"` } var _ sophos.RestGetter = &RightGroup{} diff --git a/api/v1.3.0/objects/role.go b/api/v1.3.0/objects/role.go index 7a7c76f..4f34fdc 100644 --- a/api/v1.3.0/objects/role.go +++ b/api/v1.3.0/objects/role.go @@ -61,8 +61,8 @@ type RoleGroups []RoleGroup // RoleGroup represents a UTM group type RoleGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/route.go b/api/v1.3.0/objects/route.go index 7ff7c26..0a1aade 100644 --- a/api/v1.3.0/objects/route.go +++ b/api/v1.3.0/objects/route.go @@ -67,8 +67,8 @@ type RouteGroups []RouteGroup // RouteGroup represents a UTM group type RouteGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -125,24 +125,24 @@ type RoutePolicys []RoutePolicy // RoutePolicy represents a UTM policy route type RoutePolicy struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` // Destination description: REF(network/*) Destination string `json:"destination"` - Name string `json:"name"` + // Interface description: REF(interface/*) + Interface string `json:"interface"` + // Status default value is false + Status bool `json:"status"` + Name string `json:"name"` // Service description: REF(service/*) Service string `json:"service"` // Source description: REF(network/*) Source string `json:"source"` - // Status default value is false - Status bool `json:"status"` // Target description: REF(/*) Target string `json:"target"` // Type can be one of: []string{"itf", "host"} - Type string `json:"type"` - Comment string `json:"comment"` - // Interface description: REF(interface/*) - Interface string `json:"interface"` + Type string `json:"type"` } var _ sophos.RestGetter = &RoutePolicy{} diff --git a/api/v1.3.0/objects/scheduler.go b/api/v1.3.0/objects/scheduler.go index bfa9b81..f5c6cee 100644 --- a/api/v1.3.0/objects/scheduler.go +++ b/api/v1.3.0/objects/scheduler.go @@ -67,8 +67,8 @@ type SchedulerGroups []SchedulerGroup // SchedulerGroup represents a UTM group type SchedulerGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/service.go b/api/v1.3.0/objects/service.go index da703c8..643b000 100644 --- a/api/v1.3.0/objects/service.go +++ b/api/v1.3.0/objects/service.go @@ -109,8 +109,8 @@ type ServiceAhs []ServiceAh // ServiceAh represents a UTM AH service type ServiceAh struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Name string `json:"name"` SpiHigh int `json:"spi_high"` SpiLow int `json:"spi_low"` @@ -230,12 +230,12 @@ type ServiceEsps []ServiceEsp // ServiceEsp represents a UTM ESP service type ServiceEsp struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` Name string `json:"name"` SpiHigh int `json:"spi_high"` SpiLow int `json:"spi_low"` - Comment string `json:"comment"` } var _ sophos.RestGetter = &ServiceEsp{} @@ -420,12 +420,12 @@ type ServiceIcmpv6s []ServiceIcmpv6 // ServiceIcmpv6 represents a UTM ICMPv6 service type ServiceIcmpv6 struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Code int `json:"code"` Comment string `json:"comment"` Name string `json:"name"` Type int `json:"type"` - Code int `json:"code"` } var _ sophos.RestGetter = &ServiceIcmpv6{} diff --git a/api/v1.3.0/objects/smtp.go b/api/v1.3.0/objects/smtp.go index 9ad8869..bb2cb7b 100644 --- a/api/v1.3.0/objects/smtp.go +++ b/api/v1.3.0/objects/smtp.go @@ -125,17 +125,17 @@ type SmtpExceptions []SmtpException // SmtpException represents a UTM SMTP filter exception type SmtpException struct { - Locked string `json:"_locked"` - Reference string `json:"_ref"` - ObjectType string `json:"_type"` + Locked string `json:"_locked"` + ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // Status default value is false + Status bool `json:"status"` + Comment string `json:"comment"` Name string `json:"name"` Networks []interface{} `json:"networks"` Recipients []interface{} `json:"recipients"` Senders []interface{} `json:"senders"` Skiplist []interface{} `json:"skiplist"` - // Status default value is false - Status bool `json:"status"` - Comment string `json:"comment"` } var _ sophos.RestGetter = &SmtpException{} @@ -192,8 +192,8 @@ type SmtpGroups []SmtpGroup // SmtpGroup represents a UTM group type SmtpGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -250,16 +250,16 @@ type SmtpHeaderOperations []SmtpHeaderOperation // SmtpHeaderOperation represents a UTM Header modification operation type SmtpHeaderOperation struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` - HeaderName string `json:"header_name"` - Name string `json:"name"` + Reference string `json:"_ref"` // Operation can be one of: []string{"add", "delete"} // Operation default value is "add" Operation string `json:"operation"` // Parameter default value is "" - Parameter string `json:"parameter"` + Parameter string `json:"parameter"` + Comment string `json:"comment"` + HeaderName string `json:"header_name"` + Name string `json:"name"` } var _ sophos.RestGetter = &SmtpHeaderOperation{} diff --git a/api/v1.3.0/objects/snmp.go b/api/v1.3.0/objects/snmp.go index cdad616..1c455cb 100644 --- a/api/v1.3.0/objects/snmp.go +++ b/api/v1.3.0/objects/snmp.go @@ -73,8 +73,8 @@ type SnmpGroups []SnmpGroup // SnmpGroup represents a UTM group type SnmpGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -131,37 +131,37 @@ type SnmpTraps []SnmpTrap // SnmpTrap represents a UTM SNMP trap type SnmpTrap struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + Comment string `json:"comment"` // EncryptType can be one of: []string{"None", "DES", "AES"} // EncryptType default value is "None" EncryptType string `json:"encrypt_type"` - // Engineid default value is "" - Engineid string `json:"engineid"` // Host description: REF(network/host), REF(network/dns_host), REF(network/availability_group) Host string `json:"host"` + // Username description: (SNMPSTRING) + // Username default value is "" + Username string `json:"username"` // Version can be one of: []string{"v2c", "v3"} // Version default value is "v2c" Version string `json:"version"` + // AuthPassword description: (SNMPSTRING) + // AuthPassword default value is "" + AuthPassword string `json:"auth_password"` // AuthType can be one of: []string{"MD5", "SHA"} // AuthType default value is "MD5" AuthType string `json:"auth_type"` - Comment string `json:"comment"` // Community description: (SNMPSTRING) // Community default value is "public" Community string `json:"community"` - // Status default value is true - Status bool `json:"status"` - // Username description: (SNMPSTRING) - // Username default value is "" - Username string `json:"username"` - // AuthPassword description: (SNMPSTRING) - // AuthPassword default value is "" - AuthPassword string `json:"auth_password"` // EncryptPassword description: (SNMPSTRING) // EncryptPassword default value is "" EncryptPassword string `json:"encrypt_password"` - Name string `json:"name"` + // Engineid default value is "" + Engineid string `json:"engineid"` + Name string `json:"name"` + // Status default value is true + Status bool `json:"status"` } var _ sophos.RestGetter = &SnmpTrap{} diff --git a/api/v1.3.0/objects/spx.go b/api/v1.3.0/objects/spx.go index 29a6948..be499c7 100644 --- a/api/v1.3.0/objects/spx.go +++ b/api/v1.3.0/objects/spx.go @@ -88,8 +88,8 @@ type SpxGroups []SpxGroup // SpxGroup represents a UTM group type SpxGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/ssl_vpn.go b/api/v1.3.0/objects/ssl_vpn.go index 3184d56..dd223c9 100644 --- a/api/v1.3.0/objects/ssl_vpn.go +++ b/api/v1.3.0/objects/ssl_vpn.go @@ -176,8 +176,8 @@ type SslVpnGroups []SslVpnGroup // SslVpnGroup represents a UTM group type SslVpnGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } @@ -306,9 +306,26 @@ type SslVpnServerConnections []SslVpnServerConnection // SslVpnServerConnection represents a UTM SSL VPN site-to-site server connection type SslVpnServerConnection struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` + // AutoPfIn description: REF(packetfilter/packetfilter) + // AutoPfIn default value is "" + AutoPfIn string `json:"auto_pf_in"` + // AutoPfOut description: REF(packetfilter/packetfilter) + // AutoPfOut default value is "" + AutoPfOut string `json:"auto_pf_out"` + LocalNetworks []interface{} `json:"local_networks"` + // StaticIp description: (IPADDR) + // StaticIp default value is "0.0.0.0" + StaticIp string `json:"static_ip"` + // StaticIpStatus default value is false + StaticIpStatus bool `json:"static_ip_status"` + // Status default value is false + Status bool `json:"status"` + // AutoPfrule default value is false + AutoPfrule bool `json:"auto_pfrule"` Comment string `json:"comment"` + Name string `json:"name"` // Peer description: REF(aaa/user) // Peer default value is "" Peer string `json:"peer"` @@ -316,23 +333,6 @@ type SslVpnServerConnection struct { // StaticIp6 description: (IP6ADDR) // StaticIp6 default value is "::" StaticIp6 string `json:"static_ip6"` - // StaticIpStatus default value is false - StaticIpStatus bool `json:"static_ip_status"` - // Status default value is false - Status bool `json:"status"` - // AutoPfrule default value is false - AutoPfrule bool `json:"auto_pfrule"` - // AutoPfOut description: REF(packetfilter/packetfilter) - // AutoPfOut default value is "" - AutoPfOut string `json:"auto_pf_out"` - LocalNetworks []interface{} `json:"local_networks"` - Name string `json:"name"` - // StaticIp description: (IPADDR) - // StaticIp default value is "0.0.0.0" - StaticIp string `json:"static_ip"` - // AutoPfIn description: REF(packetfilter/packetfilter) - // AutoPfIn default value is "" - AutoPfIn string `json:"auto_pf_in"` } var _ sophos.RestGetter = &SslVpnServerConnection{} diff --git a/api/v1.3.0/objects/stas.go b/api/v1.3.0/objects/stas.go index 07ff6f4..b98eadc 100644 --- a/api/v1.3.0/objects/stas.go +++ b/api/v1.3.0/objects/stas.go @@ -61,15 +61,15 @@ type StasCollectors []StasCollector // StasCollector represents a UTM STAS Collector type StasCollector struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Comment string `json:"comment"` - // Host description: REF(network/host), REF(network/dns_host) - Host string `json:"host"` - Name string `json:"name"` + Reference string `json:"_ref"` + Name string `json:"name"` // Port description: REF(service/udp) // Port default value is "REF_ServiceSTASCollector" - Port string `json:"port"` + Port string `json:"port"` + Comment string `json:"comment"` + // Host description: REF(network/host), REF(network/dns_host) + Host string `json:"host"` } var _ sophos.RestGetter = &StasCollector{} @@ -126,8 +126,8 @@ type StasGroups []StasGroup // StasGroup represents a UTM stas->group type StasGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/api/v1.3.0/objects/time.go b/api/v1.3.0/objects/time.go index 43cde03..31b64cf 100644 --- a/api/v1.3.0/objects/time.go +++ b/api/v1.3.0/objects/time.go @@ -67,10 +67,10 @@ type TimeGroups []TimeGroup // TimeGroup represents a UTM group type TimeGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - Name string `json:"name"` + Reference string `json:"_ref"` Comment string `json:"comment"` + Name string `json:"name"` } var _ sophos.RestGetter = &TimeGroup{} @@ -191,18 +191,18 @@ type TimeSingles []TimeSingle // TimeSingle represents a UTM single time period type TimeSingle struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` - // StartDate description: (DATE) - StartDate string `json:"start_date"` - // StartTime description: (TIME) - StartTime string `json:"start_time"` - Comment string `json:"comment"` + Reference string `json:"_ref"` + Comment string `json:"comment"` // EndDate description: (DATE) EndDate string `json:"end_date"` // EndTime description: (TIME) EndTime string `json:"end_time"` Name string `json:"name"` + // StartDate description: (DATE) + StartDate string `json:"start_date"` + // StartTime description: (TIME) + StartTime string `json:"start_time"` } var _ sophos.RestGetter = &TimeSingle{} diff --git a/api/v1.3.0/objects/user_preferences.go b/api/v1.3.0/objects/user_preferences.go index 46fb7da..8840ddc 100644 --- a/api/v1.3.0/objects/user_preferences.go +++ b/api/v1.3.0/objects/user_preferences.go @@ -61,8 +61,8 @@ type UserPreferencesGroups []UserPreferencesGroup // UserPreferencesGroup represents a UTM group type UserPreferencesGroup struct { Locked string `json:"_locked"` - Reference string `json:"_ref"` ObjectType string `json:"_type"` + Reference string `json:"_ref"` Comment string `json:"comment"` Name string `json:"name"` } diff --git a/bin/gen.go b/bin/gen.go index f508c9d..fddc357 100644 --- a/bin/gen.go +++ b/bin/gen.go @@ -696,8 +696,8 @@ func makeStructBytes(s *subtype, path, name string) (*bytes.Buffer, error) { // Write the struct from the subtType outBuf.Write([]byte(newType)) outBuf.Write([]byte("Locked string `json:\"_locked\"`\n")) - outBuf.Write([]byte("Reference string `json:\"_ref\"`\n")) outBuf.Write([]byte("ObjectType string `json:\"_type\"`\n")) + outBuf.Write([]byte("Reference string `json:\"_ref\"`\n")) for k, p := range s.Type.Properties { if p.Description != "" { outBuf.Write([]byte(fmt.Sprintf("// %s description: %s\n", toCamelInitCase(k, true), p.Description))) diff --git a/client_test.go b/client_test.go index 203f51a..b4b430e 100644 --- a/client_test.go +++ b/client_test.go @@ -470,4 +470,4 @@ func (*dhcpServerMock) UsedByPath(ref string) string { } // GetType implements sophos.Object -func (d *dhcpServerMock) GetType() string { return d._type } +func (d *dhcpServerMock) GetType() string { return d.ObjectType }