Class: Ansible::Ruby::Modules::Twilio

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

Overview

Sends a text message to a phone number through the Twilio messaging API.

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

#account_sidString

Returns user’s Twilio account token found on the account page.

Returns:

  • (String)

    user’s Twilio account token found on the account page



12
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 12

attribute :account_sid

#auth_tokenString

Returns user’s Twilio authentication token.

Returns:

  • (String)

    user’s Twilio authentication token



16
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 16

attribute :auth_token

#from_numberInteger

Returns the Twilio number to send the text message from, format +15551112222.

Returns:

  • (Integer)

    the Twilio number to send the text message from, format +15551112222



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

attribute :from_number

#media_urlString?

Returns a URL with a picture, video or sound clip to send with an MMS (multimedia message) instead of a plain SMS.

Returns:

  • (String, nil)

    a URL with a picture, video or sound clip to send with an MMS (multimedia message) instead of a plain SMS



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

attribute :media_url

#msgString

Returns the body of the text message.

Returns:

  • (String)

    the body of the text message



20
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 20

attribute :msg

#to_numberArray<Integer>, Integer

Returns one or more phone numbers to send the text message to, format +15551112222.

Returns:

  • (Array<Integer>, Integer)

    one or more phone numbers to send the text message to, format +15551112222



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

attribute :to_number