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

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

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

attr_option, attr_options, attribute, #initialize, #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



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

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.



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

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.



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

attribute :payload

#portInteger?

Returns MQTT broker port number.

Returns:

  • (Integer, nil)

    MQTT broker port number



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

attribute :port

#qos0, ...

Returns QoS (Quality of Service).

Returns:

  • (0, 1, 2, nil)

    QoS (Quality of Service)



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

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.



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

attribute :retain

#serverString?

Returns MQTT broker address/name.

Returns:

  • (String, nil)

    MQTT broker address/name



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

attribute :server

#topicString

Returns MQTT topic name.

Returns:

  • (String)

    MQTT topic name



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

attribute :topic

#usernameObject?

Returns Username to authenticate against the broker.

Returns:

  • (Object, nil)

    Username to authenticate against the broker.



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

attribute :username