Class: Ansible::Ruby::Modules::Win_xml

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

Overview

Adds XML fragments formatted as strings to existing XML on remote servers.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#attribute ⇒ String?

Returns The attribute name if the type is 'attribute'. Required if C(type=attribute).

Returns:

  • (String, nil) —

    The attribute name if the type is 'attribute'. Required if C(type=attribute).



32
# File 'lib/ansible/ruby/modules/generated/windows/win_xml.rb', line 32

attribute :attribute

#backup ⇒ :yes, ...

Returns Whether to backup the remote server's XML before applying the change.

Returns:

  • (:yes, :no, nil) —

    Whether to backup the remote server's XML before applying the change.



24
# File 'lib/ansible/ruby/modules/generated/windows/win_xml.rb', line 24

attribute :backup

#fragment ⇒ Array<String>, String

Returns The string representation of the XML fragment to be added.

Returns:

  • (Array<String>, String) —

    The string representation of the XML fragment to be added.



16
# File 'lib/ansible/ruby/modules/generated/windows/win_xml.rb', line 16

attribute :fragment

#path ⇒ String

Returns The path of remote servers XML.

Returns:

  • (String) —

    The path of remote servers XML.



12
# File 'lib/ansible/ruby/modules/generated/windows/win_xml.rb', line 12

attribute :path

#type ⇒ :element, ...

Returns The type of XML you are working with.

Returns:

  • (:element, :attribute, :text) —

    The type of XML you are working with.



28
# File 'lib/ansible/ruby/modules/generated/windows/win_xml.rb', line 28

attribute :type

#xpath ⇒ String

Returns The node of the remote server XML where the fragment will go.

Returns:

  • (String) —

    The node of the remote server XML where the fragment will go.



20
# File 'lib/ansible/ruby/modules/generated/windows/win_xml.rb', line 20

attribute :xpath