
    Vh                     2    d dl mZmZmZ eZ G d de      Zy)    )absolute_importdivisionprint_functionc                       e Zd ZdZdZy)ModuleDocFragmenta  
options:
  hostname:
    description:
      - RouterOS hostname API.
    required: true
    type: str
  username:
    description:
      - RouterOS login user.
    required: true
    type: str
  password:
    description:
      - RouterOS user password.
    required: true
    type: str
  timeout:
    description:
      - Timeout for the request.
    type: int
    default: 10
    version_added: 2.3.0
  tls:
    description:
      - If is set TLS will be used for RouterOS API connection.
    required: false
    type: bool
    default: false
    aliases:
      - ssl
  port:
    description:
      - RouterOS API port. If O(tls) is set, port will apply to TLS/SSL connection.
      - Defaults are V(8728) for the HTTP API, and V(8729) for the HTTPS API.
    type: int
  force_no_cert:
    description:
      - Set to V(true) to connect without a certificate when O(tls=true).
      - See also O(validate_certs).
      - B(Note:) this forces the use of anonymous Diffie-Hellman (ADH) ciphers. The protocol is susceptible to Man-in-the-Middle
        attacks, because the keys used in the exchange are not authenticated. Instead of simply connecting without a certificate
        to "make things work" have a look at O(validate_certs) and O(ca_path).
    type: bool
    default: false
    version_added: 2.4.0
  validate_certs:
    description:
      - Set to V(false) to skip validation of TLS certificates.
      - See also O(validate_cert_hostname). Only used when O(tls=true).
      - B(Note:) instead of simply deactivating certificate validations to "make things work", please consider creating your
        own CA certificate and using it to sign certificates used for your router. You can tell the module about your CA certificate
        with the O(ca_path) option.
    type: bool
    default: true
    version_added: 1.2.0
  validate_cert_hostname:
    description:
      - Set to V(true) to validate hostnames in certificates.
      - See also O(validate_certs). Only used when O(tls=true) and O(validate_certs=true).
    type: bool
    default: false
    version_added: 1.2.0
  ca_path:
    description:
      - PEM formatted file that contains a CA certificate to be used for certificate validation.
      - See also O(validate_cert_hostname). Only used when O(tls=true) and O(validate_certs=true).
    type: path
    version_added: 1.2.0
  encoding:
    description:
      - Use the specified encoding when communicating with the RouterOS device.
      - Default is V(ASCII). Note that V(UTF-8) requires librouteros 3.2.1 or newer.
    type: str
    default: ASCII
    version_added: 2.1.0
requirements:
  - librouteros
  - Python >= 3.6 (for librouteros)
seealso:
  - ref: ansible_collections.community.routeros.docsite.api-guide
    description: How to connect to RouterOS devices with the RouterOS API.
aN  
options:
  restrict:
    type: list
    elements: dict
    suboptions:
      field:
        description:
          - The field whose values to restrict.
        required: true
        type: str
      match_disabled:
        description:
          - Whether disabled or not provided values should match.
        type: bool
        default: false
      values:
        description:
          - The values of the field to limit to.
          - 'Note that the types of the values are important. If you provide a string V("0"), and librouteros converts the
            value returned by the API to the integer V(0), then this will not match. If you are not sure, better include both
            variants: both the string and the integer.'
        type: list
        elements: raw
      regex:
        description:
          - A regular expression matching values of the field to limit to.
          - Note that all values will be converted to strings before matching.
          - It is not possible to match disabled values with regular expressions. Set O(restrict[].match_disabled=true) if
            you also want to match disabled values.
        type: str
      invert:
        description:
          - Invert the condition. This affects O(restrict[].match_disabled), O(restrict[].values), and O(restrict[].regex).
        type: bool
        default: false
N)__name__
__module____qualname__DOCUMENTATIONRESTRICT     p/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/routeros/plugins/doc_fragments/api.pyr   r      s    RMh$Hr   r   N)
__future__r   r   r   type__metaclass__objectr   r   r   r   <module>r      s!    C Bz zr   