Class: MicrosoftGraph::Models::WindowsFirewallNetworkProfile
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::WindowsFirewallNetworkProfile
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_firewall_network_profile.rb
Overview
Windows Firewall Profile Policies.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#authorized_application_rules_from_group_policy_merged ⇒ Object
Gets the authorizedApplicationRulesFromGroupPolicyMerged property value.
-
#authorized_application_rules_from_group_policy_merged=(value) ⇒ Object
Sets the authorizedApplicationRulesFromGroupPolicyMerged property value.
-
#connection_security_rules_from_group_policy_merged ⇒ Object
Gets the connectionSecurityRulesFromGroupPolicyMerged property value.
-
#connection_security_rules_from_group_policy_merged=(value) ⇒ Object
Sets the connectionSecurityRulesFromGroupPolicyMerged property value.
-
#firewall_enabled ⇒ Object
Gets the firewallEnabled property value.
-
#firewall_enabled=(value) ⇒ Object
Sets the firewallEnabled property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#global_port_rules_from_group_policy_merged ⇒ Object
Gets the globalPortRulesFromGroupPolicyMerged property value.
-
#global_port_rules_from_group_policy_merged=(value) ⇒ Object
Sets the globalPortRulesFromGroupPolicyMerged property value.
-
#inbound_connections_blocked ⇒ Object
Gets the inboundConnectionsBlocked property value.
-
#inbound_connections_blocked=(value) ⇒ Object
Sets the inboundConnectionsBlocked property value.
-
#inbound_notifications_blocked ⇒ Object
Gets the inboundNotificationsBlocked property value.
-
#inbound_notifications_blocked=(value) ⇒ Object
Sets the inboundNotificationsBlocked property value.
-
#incoming_traffic_blocked ⇒ Object
Gets the incomingTrafficBlocked property value.
-
#incoming_traffic_blocked=(value) ⇒ Object
Sets the incomingTrafficBlocked property value.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsFirewallNetworkProfile and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#outbound_connections_blocked ⇒ Object
Gets the outboundConnectionsBlocked property value.
-
#outbound_connections_blocked=(value) ⇒ Object
Sets the outboundConnectionsBlocked property value.
-
#policy_rules_from_group_policy_merged ⇒ Object
Gets the policyRulesFromGroupPolicyMerged property value.
-
#policy_rules_from_group_policy_merged=(value) ⇒ Object
Sets the policyRulesFromGroupPolicyMerged property value.
-
#secured_packet_exemption_allowed ⇒ Object
Gets the securedPacketExemptionAllowed property value.
-
#secured_packet_exemption_allowed=(value) ⇒ Object
Sets the securedPacketExemptionAllowed property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#stealth_mode_blocked ⇒ Object
Gets the stealthModeBlocked property value.
-
#stealth_mode_blocked=(value) ⇒ Object
Sets the stealthModeBlocked property value.
-
#unicast_responses_to_multicast_broadcasts_blocked ⇒ Object
Gets the unicastResponsesToMulticastBroadcastsBlocked property value.
-
#unicast_responses_to_multicast_broadcasts_blocked=(value) ⇒ Object
Sets the unicastResponsesToMulticastBroadcastsBlocked property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsFirewallNetworkProfile and sets the default values.
102 103 104 |
# File 'lib/models/windows_firewall_network_profile.rb', line 102 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
110 111 112 113 |
# File 'lib/models/windows_firewall_network_profile.rb', line 110 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsFirewallNetworkProfile.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
57 58 59 |
# File 'lib/models/windows_firewall_network_profile.rb', line 57 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
65 66 67 |
# File 'lib/models/windows_firewall_network_profile.rb', line 65 def additional_data=(value) @additional_data = value end |
#authorized_application_rules_from_group_policy_merged ⇒ Object
Gets the authorizedApplicationRulesFromGroupPolicyMerged property value. Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.
72 73 74 |
# File 'lib/models/windows_firewall_network_profile.rb', line 72 def return @authorized_application_rules_from_group_policy_merged end |
#authorized_application_rules_from_group_policy_merged=(value) ⇒ Object
Sets the authorizedApplicationRulesFromGroupPolicyMerged property value. Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.
80 81 82 |
# File 'lib/models/windows_firewall_network_profile.rb', line 80 def (value) @authorized_application_rules_from_group_policy_merged = value end |
#connection_security_rules_from_group_policy_merged ⇒ Object
Gets the connectionSecurityRulesFromGroupPolicyMerged property value. Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.
87 88 89 |
# File 'lib/models/windows_firewall_network_profile.rb', line 87 def connection_security_rules_from_group_policy_merged return @connection_security_rules_from_group_policy_merged end |
#connection_security_rules_from_group_policy_merged=(value) ⇒ Object
Sets the connectionSecurityRulesFromGroupPolicyMerged property value. Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.
95 96 97 |
# File 'lib/models/windows_firewall_network_profile.rb', line 95 def connection_security_rules_from_group_policy_merged=(value) @connection_security_rules_from_group_policy_merged = value end |
#firewall_enabled ⇒ Object
Gets the firewallEnabled property value. State Management Setting.
118 119 120 |
# File 'lib/models/windows_firewall_network_profile.rb', line 118 def firewall_enabled return @firewall_enabled end |
#firewall_enabled=(value) ⇒ Object
Sets the firewallEnabled property value. State Management Setting.
126 127 128 |
# File 'lib/models/windows_firewall_network_profile.rb', line 126 def firewall_enabled=(value) @firewall_enabled = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/models/windows_firewall_network_profile.rb', line 133 def get_field_deserializers() return { "authorizedApplicationRulesFromGroupPolicyMerged" => lambda {|n| @authorized_application_rules_from_group_policy_merged = n.get_boolean_value() }, "connectionSecurityRulesFromGroupPolicyMerged" => lambda {|n| @connection_security_rules_from_group_policy_merged = n.get_boolean_value() }, "firewallEnabled" => lambda {|n| @firewall_enabled = n.get_enum_value(MicrosoftGraph::Models::StateManagementSetting) }, "globalPortRulesFromGroupPolicyMerged" => lambda {|n| @global_port_rules_from_group_policy_merged = n.get_boolean_value() }, "inboundConnectionsBlocked" => lambda {|n| @inbound_connections_blocked = n.get_boolean_value() }, "inboundNotificationsBlocked" => lambda {|n| @inbound_notifications_blocked = n.get_boolean_value() }, "incomingTrafficBlocked" => lambda {|n| @incoming_traffic_blocked = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "outboundConnectionsBlocked" => lambda {|n| @outbound_connections_blocked = n.get_boolean_value() }, "policyRulesFromGroupPolicyMerged" => lambda {|n| @policy_rules_from_group_policy_merged = n.get_boolean_value() }, "securedPacketExemptionAllowed" => lambda {|n| @secured_packet_exemption_allowed = n.get_boolean_value() }, "stealthModeBlocked" => lambda {|n| @stealth_mode_blocked = n.get_boolean_value() }, "unicastResponsesToMulticastBroadcastsBlocked" => lambda {|n| @unicast_responses_to_multicast_broadcasts_blocked = n.get_boolean_value() }, } end |
#global_port_rules_from_group_policy_merged ⇒ Object
Gets the globalPortRulesFromGroupPolicyMerged property value. Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.
154 155 156 |
# File 'lib/models/windows_firewall_network_profile.rb', line 154 def global_port_rules_from_group_policy_merged return @global_port_rules_from_group_policy_merged end |
#global_port_rules_from_group_policy_merged=(value) ⇒ Object
Sets the globalPortRulesFromGroupPolicyMerged property value. Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.
162 163 164 |
# File 'lib/models/windows_firewall_network_profile.rb', line 162 def global_port_rules_from_group_policy_merged=(value) @global_port_rules_from_group_policy_merged = value end |
#inbound_connections_blocked ⇒ Object
Gets the inboundConnectionsBlocked property value. Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.
169 170 171 |
# File 'lib/models/windows_firewall_network_profile.rb', line 169 def inbound_connections_blocked return @inbound_connections_blocked end |
#inbound_connections_blocked=(value) ⇒ Object
Sets the inboundConnectionsBlocked property value. Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.
177 178 179 |
# File 'lib/models/windows_firewall_network_profile.rb', line 177 def inbound_connections_blocked=(value) @inbound_connections_blocked = value end |
#inbound_notifications_blocked ⇒ Object
Gets the inboundNotificationsBlocked property value. Prevents the firewall from displaying notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.
184 185 186 |
# File 'lib/models/windows_firewall_network_profile.rb', line 184 def inbound_notifications_blocked return @inbound_notifications_blocked end |
#inbound_notifications_blocked=(value) ⇒ Object
Sets the inboundNotificationsBlocked property value. Prevents the firewall from displaying notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.
192 193 194 |
# File 'lib/models/windows_firewall_network_profile.rb', line 192 def inbound_notifications_blocked=(value) @inbound_notifications_blocked = value end |
#incoming_traffic_blocked ⇒ Object
Gets the incomingTrafficBlocked property value. Configures the firewall to block all incoming traffic regardless of other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.
199 200 201 |
# File 'lib/models/windows_firewall_network_profile.rb', line 199 def incoming_traffic_blocked return @incoming_traffic_blocked end |
#incoming_traffic_blocked=(value) ⇒ Object
Sets the incomingTrafficBlocked property value. Configures the firewall to block all incoming traffic regardless of other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.
207 208 209 |
# File 'lib/models/windows_firewall_network_profile.rb', line 207 def incoming_traffic_blocked=(value) @incoming_traffic_blocked = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
214 215 216 |
# File 'lib/models/windows_firewall_network_profile.rb', line 214 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
222 223 224 |
# File 'lib/models/windows_firewall_network_profile.rb', line 222 def odata_type=(value) @odata_type = value end |
#outbound_connections_blocked ⇒ Object
Gets the outboundConnectionsBlocked property value. Configures the firewall to block all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.
229 230 231 |
# File 'lib/models/windows_firewall_network_profile.rb', line 229 def outbound_connections_blocked return @outbound_connections_blocked end |
#outbound_connections_blocked=(value) ⇒ Object
Sets the outboundConnectionsBlocked property value. Configures the firewall to block all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.
237 238 239 |
# File 'lib/models/windows_firewall_network_profile.rb', line 237 def outbound_connections_blocked=(value) @outbound_connections_blocked = value end |
#policy_rules_from_group_policy_merged ⇒ Object
Gets the policyRulesFromGroupPolicyMerged property value. Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.
244 245 246 |
# File 'lib/models/windows_firewall_network_profile.rb', line 244 def policy_rules_from_group_policy_merged return @policy_rules_from_group_policy_merged end |
#policy_rules_from_group_policy_merged=(value) ⇒ Object
Sets the policyRulesFromGroupPolicyMerged property value. Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.
252 253 254 |
# File 'lib/models/windows_firewall_network_profile.rb', line 252 def policy_rules_from_group_policy_merged=(value) @policy_rules_from_group_policy_merged = value end |
#secured_packet_exemption_allowed ⇒ Object
Gets the securedPacketExemptionAllowed property value. Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.
259 260 261 |
# File 'lib/models/windows_firewall_network_profile.rb', line 259 def secured_packet_exemption_allowed return @secured_packet_exemption_allowed end |
#secured_packet_exemption_allowed=(value) ⇒ Object
Sets the securedPacketExemptionAllowed property value. Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.
267 268 269 |
# File 'lib/models/windows_firewall_network_profile.rb', line 267 def secured_packet_exemption_allowed=(value) @secured_packet_exemption_allowed = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/models/windows_firewall_network_profile.rb', line 275 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("authorizedApplicationRulesFromGroupPolicyMerged", @authorized_application_rules_from_group_policy_merged) writer.write_boolean_value("connectionSecurityRulesFromGroupPolicyMerged", @connection_security_rules_from_group_policy_merged) writer.write_enum_value("firewallEnabled", @firewall_enabled) writer.write_boolean_value("globalPortRulesFromGroupPolicyMerged", @global_port_rules_from_group_policy_merged) writer.write_boolean_value("inboundConnectionsBlocked", @inbound_connections_blocked) writer.write_boolean_value("inboundNotificationsBlocked", @inbound_notifications_blocked) writer.write_boolean_value("incomingTrafficBlocked", @incoming_traffic_blocked) writer.write_string_value("@odata.type", @odata_type) writer.write_boolean_value("outboundConnectionsBlocked", @outbound_connections_blocked) writer.write_boolean_value("policyRulesFromGroupPolicyMerged", @policy_rules_from_group_policy_merged) writer.write_boolean_value("securedPacketExemptionAllowed", @secured_packet_exemption_allowed) writer.write_boolean_value("stealthModeBlocked", @stealth_mode_blocked) writer.write_boolean_value("unicastResponsesToMulticastBroadcastsBlocked", @unicast_responses_to_multicast_broadcasts_blocked) writer.write_additional_data(@additional_data) end |
#stealth_mode_blocked ⇒ Object
Gets the stealthModeBlocked property value. Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.
296 297 298 |
# File 'lib/models/windows_firewall_network_profile.rb', line 296 def stealth_mode_blocked return @stealth_mode_blocked end |
#stealth_mode_blocked=(value) ⇒ Object
Sets the stealthModeBlocked property value. Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.
304 305 306 |
# File 'lib/models/windows_firewall_network_profile.rb', line 304 def stealth_mode_blocked=(value) @stealth_mode_blocked = value end |
#unicast_responses_to_multicast_broadcasts_blocked ⇒ Object
Gets the unicastResponsesToMulticastBroadcastsBlocked property value. Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.
311 312 313 |
# File 'lib/models/windows_firewall_network_profile.rb', line 311 def unicast_responses_to_multicast_broadcasts_blocked return @unicast_responses_to_multicast_broadcasts_blocked end |
#unicast_responses_to_multicast_broadcasts_blocked=(value) ⇒ Object
Sets the unicastResponsesToMulticastBroadcastsBlocked property value. Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.
319 320 321 |
# File 'lib/models/windows_firewall_network_profile.rb', line 319 def unicast_responses_to_multicast_broadcasts_blocked=(value) @unicast_responses_to_multicast_broadcasts_blocked = value end |