Class: MicrosoftGraph::Models::WindowsFirewallNetworkProfile

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/windows_firewall_network_profile.rb

Overview

Windows Firewall Profile Policies.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a windows_firewall_network_profile

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



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_mergedObject

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.

Returns:

  • a boolean



72
73
74
# File 'lib/models/windows_firewall_network_profile.rb', line 72

def authorized_application_rules_from_group_policy_merged
    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.

Parameters:

  • value

    Value to set for the authorizedApplicationRulesFromGroupPolicyMerged property.

Returns:

  • a void



80
81
82
# File 'lib/models/windows_firewall_network_profile.rb', line 80

def authorized_application_rules_from_group_policy_merged=(value)
    @authorized_application_rules_from_group_policy_merged = value
end

#connection_security_rules_from_group_policy_mergedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the connectionSecurityRulesFromGroupPolicyMerged property.

Returns:

  • a void



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_enabledObject

Gets the firewallEnabled property value. State Management Setting.

Returns:

  • a 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.

Parameters:

  • value

    Value to set for the firewallEnabled property.

Returns:

  • a void



126
127
128
# File 'lib/models/windows_firewall_network_profile.rb', line 126

def firewall_enabled=(value)
    @firewall_enabled = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_mergedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the globalPortRulesFromGroupPolicyMerged property.

Returns:

  • a void



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_blockedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the inboundConnectionsBlocked property.

Returns:

  • a void



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_blockedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the inboundNotificationsBlocked property.

Returns:

  • a void



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_blockedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the incomingTrafficBlocked property.

Returns:

  • a void



207
208
209
# File 'lib/models/windows_firewall_network_profile.rb', line 207

def incoming_traffic_blocked=(value)
    @incoming_traffic_blocked = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



222
223
224
# File 'lib/models/windows_firewall_network_profile.rb', line 222

def odata_type=(value)
    @odata_type = value
end

#outbound_connections_blockedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the outboundConnectionsBlocked property.

Returns:

  • a void



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_mergedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the policyRulesFromGroupPolicyMerged property.

Returns:

  • a void



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_allowedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the securedPacketExemptionAllowed property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_blockedObject

Gets the stealthModeBlocked property value. Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the stealthModeBlocked property.

Returns:

  • a void



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_blockedObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the unicastResponsesToMulticastBroadcastsBlocked property.

Returns:

  • a void



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