Class: Ansible::Ruby::Modules::Mqtt

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

Overview

Publish a message on an MQTT topic.

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

#client_idString?

Returns MQTT client identifier.

Returns:

  • (String, nil)

    MQTT client identifier



25
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 25

attribute :client_id

#passwordObject?

Returns Password for C(username) to authenticate against the broker.

Returns:

  • (Object, nil)

    Password for C(username) to authenticate against the broker.



22
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 22

attribute :password

#payloadString

Returns Payload. The special string C(“None”) may be used to send a NULL (i.e. empty) payload which is useful to simply notify with the I(topic) or to clear previously retained messages.

Returns:

  • (String)

    Payload. The special string C(“None”) may be used to send a NULL (i.e. empty) payload which is useful to simply notify with the I(topic) or to clear previously retained messages.



33
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 33

attribute :payload

#portInteger?

Returns MQTT broker port number.

Returns:

  • (Integer, nil)

    MQTT broker port number



15
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 15

attribute :port

#qos0, ...

Returns QoS (Quality of Service).

Returns:

  • (0, 1, 2, nil)

    QoS (Quality of Service)



37
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 37

attribute :qos

#retainBoolean?

Returns Setting this flag causes the broker to retain (i.e. keep) the message so that applications that subsequently subscribe to the topic can received the last retained message immediately.

Returns:

  • (Boolean, nil)

    Setting this flag causes the broker to retain (i.e. keep) the message so that applications that subsequently subscribe to the topic can received the last retained message immediately.



41
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 41

attribute :retain

#serverString?

Returns MQTT broker address/name.

Returns:

  • (String, nil)

    MQTT broker address/name



11
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 11

attribute :server

#topicString

Returns MQTT topic name.

Returns:

  • (String)

    MQTT topic name



29
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 29

attribute :topic

#usernameObject?

Returns Username to authenticate against the broker.

Returns:

  • (Object, nil)

    Username to authenticate against the broker.



19
# File 'lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb', line 19

attribute :username