Class: Ansible::Ruby::Modules::Sendgrid
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Sendgrid
- Defined in:
- lib/ansible/ruby/modules/generated/notification/sendgrid.rb
Overview
Sends an email with a SendGrid account through their API, not through the SMTP service.
Instance Method Summary collapse
-
#api_key ⇒ Object?
Sendgrid API key to use instead of username/password.
-
#attachments ⇒ Object?
A list of relative or explicit paths of files you want to attach (7MB limit as per SendGrid docs).
-
#bcc ⇒ Object?
A list of email addresses to bcc.
-
#cc ⇒ Object?
A list of email addresses to cc.
-
#from_address ⇒ String
The address in the “from” field for the email.
-
#from_name ⇒ Object?
The name you want to appear in the from field, i.e ‘John Doe’.
-
#headers ⇒ Object?
A dict to pass on as headers.
-
#html_body ⇒ :yes, ...
Whether the body is html content that should be rendered.
-
#password ⇒ String?
Password that corresponds to the username,Since 2.2 it is only required if api_key is not supplied.
-
#subject ⇒ String
The desired subject for the email.
-
#to_addresses ⇒ Array<String>, String
A list with one or more recipient email addresses.
-
#username ⇒ String?
Username for logging into the SendGrid account.,Since 2.2 it is only required if api_key is not supplied.
Methods inherited from Base
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
#api_key ⇒ Object?
32 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 32 attribute :api_key |
#attachments ⇒ Object?
41 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 41 attribute :attachments |
#bcc ⇒ Object?
38 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 38 attribute :bcc |
#cc ⇒ Object?
35 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 35 attribute :cc |
#from_address ⇒ String
20 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 20 attribute :from_address |
#from_name ⇒ Object?
44 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 44 attribute :from_name |
#headers ⇒ Object?
51 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 51 attribute :headers |
#html_body ⇒ :yes, ...
47 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 47 attribute :html_body |
#password ⇒ String?
16 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 16 attribute :password |
#subject ⇒ String
28 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 28 attribute :subject |
#to_addresses ⇒ Array<String>, String
24 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 24 attribute :to_addresses |
#username ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/notification/sendgrid.rb', line 12 attribute :username |