Class: Ansible::Ruby::Modules::Win_firewall_rule

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb

Overview

allows you to create/remove/update firewall rules

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#action:allow, :block

Returns what to do with the items this rule is for.

Returns:

  • (:allow, :block)

    what to do with the items this rule is for



27
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 27

attribute :action

#descriptionObject?

Returns description for the firewall rule.

Returns:

  • (Object, nil)

    description for the firewall rule



31
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 31

attribute :description

#direction:In, :Out

Returns is this rule for inbound or outbound trafic.

Returns:

  • (:In, :Out)

    is this rule for inbound or outbound trafic



23
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 23

attribute :direction

#enable:yes, ...

Returns is this firewall rule enabled or disabled.

Returns:

  • (:yes, :no, nil)

    is this firewall rule enabled or disabled



11
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 11

attribute :enable

#forceBoolean?

Returns Enforces the change if a rule with different values exists.

Returns:

  • (Boolean, nil)

    Enforces the change if a rule with different values exists



60
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 60

attribute :force

#localipObject?

Returns the local ip address this rule applies to.

Returns:

  • (Object, nil)

    the local ip address this rule applies to



34
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 34

attribute :localip

#localportInteger?

Returns the local port this rule applies to.

Returns:

  • (Integer, nil)

    the local port this rule applies to



40
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 40

attribute :localport

#nameString

Returns the rules name.

Returns:

  • (String)

    the rules name



19
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 19

attribute :name

#profileObject?

Returns the profile this rule applies to.

Returns:

  • (Object, nil)

    the profile this rule applies to



57
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 57

attribute :profile

#programObject?

Returns the program this rule applies to.

Returns:

  • (Object, nil)

    the program this rule applies to



47
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 47

attribute :program

#protocolString?

Returns the protocol this rule applies to.

Returns:

  • (String, nil)

    the protocol this rule applies to



53
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 53

attribute :protocol

#remoteipObject?

Returns the remote ip address/range this rule applies to.

Returns:

  • (Object, nil)

    the remote ip address/range this rule applies to



37
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 37

attribute :remoteip

#remoteportObject?

Returns the remote port this rule applies to.

Returns:

  • (Object, nil)

    the remote port this rule applies to



44
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 44

attribute :remoteport

#serviceObject?

Returns the service this rule applies to.

Returns:

  • (Object, nil)

    the service this rule applies to



50
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 50

attribute :service

#state:present, :absent

Returns should this rule be added or removed.

Returns:

  • (:present, :absent)

    should this rule be added or removed



15
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb', line 15

attribute :state