mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
Tidy up validate-modules:parameter-list-no-elements (batch 1) (#1795)
* fixed validation-modules for plugins/modules/storage/netapp/na_ontap_gather_facts.py * fixed validation-modules for plugins/modules/source_control/gitlab/gitlab_runner.py * fixed validation-modules for plugins/modules/packaging/os/redhat_subscription.py * fixed validation-modules for plugins/modules/notification/twilio.py * fixed validation-modules for plugins/modules/notification/slack.py * fixed validation-modules for plugins/modules/notification/sendgrid.py * fixed validation-modules for plugins/modules/notification/rocketchat.py * fixed validation-modules for plugins/modules/notification/office_365_connector_card.py * fixed validation-modules for plugins/modules/notification/nexmo.py * fixed validation-modules for plugins/modules/notification/mail.py * fixed validation-modules for plugins/modules/net_tools/omapi_host.py * fixed validation-modules for plugins/modules/net_tools/nsupdate.py * fixed validation-modules for plugins/modules/net_tools/dnsimple.py * fixed validation-modules for plugins/modules/monitoring/pagerduty.py * fixed validation-modules for plugins/modules/monitoring/librato_annotation.py * fixed validation-modules for plugins/modules/identity/onepassword_info.py * fixed validation-modules for plugins/modules/identity/keycloak/keycloak_client.py * fixed validation-modules for plugins/modules/files/xml.py * fixed validation-modules for plugins/modules/cloud/softlayer/sl_vm.py * fixed validation-modules for plugins/modules/cloud/smartos/vmadm.py * fixed validation-modules for plugins/modules/cloud/pubnub/pubnub_blocks.py * fixed validation-modules for plugins/modules/cloud/packet/packet_device.py * fixed validation-modules for plugins/modules/cloud/lxd/lxd_container.py * fixed validation-modules for plugins/module_utils/oracle/oci_utils.py * fixed validation-modules for plugins/doc_fragments/oracle_creatable_resource.py * Tidy up validate-modules:parameter-list-no-elements for some modules * fixed validation-modules for plugins/modules/monitoring/statusio_maintenance.py * Fixed pending issues from CI validation * Fixed xml module elements for add_children & set_children * added changelog fragment * typo * fix wording in changelog frag
This commit is contained in:
parent
5aac81bdd1
commit
f33323ca89
30 changed files with 156 additions and 118 deletions
|
@ -39,6 +39,7 @@ options:
|
|||
- The email-address(es) the mail is being sent to.
|
||||
- This is a list, which may contain address and phrase portions.
|
||||
type: list
|
||||
elements: str
|
||||
default: root
|
||||
aliases: [ recipients ]
|
||||
cc:
|
||||
|
@ -46,11 +47,13 @@ options:
|
|||
- The email-address(es) the mail is being copied to.
|
||||
- This is a list, which may contain address and phrase portions.
|
||||
type: list
|
||||
elements: str
|
||||
bcc:
|
||||
description:
|
||||
- The email-address(es) the mail is being 'blind' copied to.
|
||||
- This is a list, which may contain address and phrase portions.
|
||||
type: list
|
||||
elements: str
|
||||
subject:
|
||||
description:
|
||||
- The subject of the email being sent.
|
||||
|
@ -85,12 +88,14 @@ options:
|
|||
- A list of pathnames of files to attach to the message.
|
||||
- Attached files will have their content-type set to C(application/octet-stream).
|
||||
type: list
|
||||
elements: path
|
||||
default: []
|
||||
headers:
|
||||
description:
|
||||
- A list of headers which should be added to the message.
|
||||
- Each individual header is specified as C(header=value) (see example below).
|
||||
type: list
|
||||
elements: str
|
||||
default: []
|
||||
charset:
|
||||
description:
|
||||
|
@ -211,13 +216,13 @@ def main():
|
|||
host=dict(type='str', default='localhost'),
|
||||
port=dict(type='int', default=25),
|
||||
sender=dict(type='str', default='root', aliases=['from']),
|
||||
to=dict(type='list', default=['root'], aliases=['recipients']),
|
||||
cc=dict(type='list', default=[]),
|
||||
bcc=dict(type='list', default=[]),
|
||||
to=dict(type='list', elements='str', default=['root'], aliases=['recipients']),
|
||||
cc=dict(type='list', elements='str', default=[]),
|
||||
bcc=dict(type='list', elements='str', default=[]),
|
||||
subject=dict(type='str', required=True, aliases=['msg']),
|
||||
body=dict(type='str'),
|
||||
attach=dict(type='list', default=[]),
|
||||
headers=dict(type='list', default=[]),
|
||||
attach=dict(type='list', elements='path', default=[]),
|
||||
headers=dict(type='list', elements='str', default=[]),
|
||||
charset=dict(type='str', default='utf-8'),
|
||||
subtype=dict(type='str', default='plain', choices=['html', 'plain']),
|
||||
secure=dict(type='str', default='try', choices=['always', 'never', 'starttls', 'try']),
|
||||
|
|
|
@ -32,6 +32,7 @@ options:
|
|||
required: true
|
||||
dest:
|
||||
type: list
|
||||
elements: int
|
||||
description:
|
||||
- Phone number(s) to send SMS message to
|
||||
required: true
|
||||
|
@ -119,7 +120,7 @@ def main():
|
|||
api_key=dict(required=True, no_log=True),
|
||||
api_secret=dict(required=True, no_log=True),
|
||||
src=dict(required=True, type='int'),
|
||||
dest=dict(required=True, type='list'),
|
||||
dest=dict(required=True, type='list', elements='int'),
|
||||
msg=dict(required=True),
|
||||
),
|
||||
)
|
||||
|
|
|
@ -45,11 +45,13 @@ options:
|
|||
- and above any sections or actions present.
|
||||
actions:
|
||||
type: list
|
||||
elements: dict
|
||||
description:
|
||||
- This array of objects will power the action links
|
||||
- found at the bottom of the card.
|
||||
sections:
|
||||
type: list
|
||||
elements: dict
|
||||
description:
|
||||
- Contains a list of sections to display in the card.
|
||||
- For more information see https://dev.outlook.com/Connectors/reference.
|
||||
|
@ -264,8 +266,8 @@ def main():
|
|||
color=dict(type='str'),
|
||||
title=dict(type='str'),
|
||||
text=dict(type='str'),
|
||||
actions=dict(type='list'),
|
||||
sections=dict(type='list')
|
||||
actions=dict(type='list', elements='dict'),
|
||||
sections=dict(type='list', elements='dict')
|
||||
),
|
||||
supports_check_mode=True
|
||||
)
|
||||
|
|
|
@ -89,6 +89,7 @@ options:
|
|||
- 'danger'
|
||||
attachments:
|
||||
type: list
|
||||
elements: dict
|
||||
description:
|
||||
- Define a list of attachments.
|
||||
'''
|
||||
|
@ -215,7 +216,7 @@ def main():
|
|||
link_names=dict(type='int', default=1, choices=[0, 1]),
|
||||
validate_certs=dict(default=True, type='bool'),
|
||||
color=dict(type='str', default='normal', choices=['normal', 'good', 'warning', 'danger']),
|
||||
attachments=dict(type='list', required=False)
|
||||
attachments=dict(type='list', elements='dict', required=False)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ options:
|
|||
required: true
|
||||
to_addresses:
|
||||
type: list
|
||||
elements: str
|
||||
description:
|
||||
- A list with one or more recipient email addresses.
|
||||
required: true
|
||||
|
@ -58,14 +59,17 @@ options:
|
|||
- Sendgrid API key to use instead of username/password.
|
||||
cc:
|
||||
type: list
|
||||
elements: str
|
||||
description:
|
||||
- A list of email addresses to cc.
|
||||
bcc:
|
||||
type: list
|
||||
elements: str
|
||||
description:
|
||||
- A list of email addresses to bcc.
|
||||
attachments:
|
||||
type: list
|
||||
elements: path
|
||||
description:
|
||||
- A list of relative or explicit paths of files you want to attach (7MB limit as per SendGrid docs).
|
||||
from_name:
|
||||
|
@ -209,16 +213,16 @@ def main():
|
|||
username=dict(required=False),
|
||||
password=dict(required=False, no_log=True),
|
||||
api_key=dict(required=False, no_log=True),
|
||||
bcc=dict(required=False, type='list'),
|
||||
cc=dict(required=False, type='list'),
|
||||
bcc=dict(required=False, type='list', elements='str'),
|
||||
cc=dict(required=False, type='list', elements='str'),
|
||||
headers=dict(required=False, type='dict'),
|
||||
from_address=dict(required=True),
|
||||
from_name=dict(required=False),
|
||||
to_addresses=dict(required=True, type='list'),
|
||||
to_addresses=dict(required=True, type='list', elements='str'),
|
||||
subject=dict(required=True),
|
||||
body=dict(required=True),
|
||||
html_body=dict(required=False, default=False, type='bool'),
|
||||
attachments=dict(required=False, type='list')
|
||||
attachments=dict(required=False, type='list', elements='path')
|
||||
),
|
||||
supports_check_mode=True,
|
||||
mutually_exclusive=[
|
||||
|
|
|
@ -116,6 +116,7 @@ options:
|
|||
default: 'normal'
|
||||
attachments:
|
||||
type: list
|
||||
elements: dict
|
||||
description:
|
||||
- Define a list of attachments. This list mirrors the Slack JSON API.
|
||||
- For more information, see U(https://api.slack.com/docs/attachments).
|
||||
|
@ -420,7 +421,7 @@ def main():
|
|||
parse=dict(type='str', default=None, choices=['none', 'full']),
|
||||
validate_certs=dict(default=True, type='bool'),
|
||||
color=dict(type='str', default='normal'),
|
||||
attachments=dict(type='list', required=False, default=None),
|
||||
attachments=dict(type='list', elements='dict', required=False, default=None),
|
||||
blocks=dict(type='list', elements='dict'),
|
||||
message_id=dict(type='str', default=None),
|
||||
),
|
||||
|
|
|
@ -37,6 +37,7 @@ options:
|
|||
required: true
|
||||
to_numbers:
|
||||
type: list
|
||||
elements: str
|
||||
description:
|
||||
one or more phone numbers to send the text message to,
|
||||
format +15551112222
|
||||
|
@ -143,7 +144,7 @@ def main():
|
|||
auth_token=dict(required=True, no_log=True),
|
||||
msg=dict(required=True),
|
||||
from_number=dict(required=True),
|
||||
to_numbers=dict(required=True, aliases=['to_number'], type='list'),
|
||||
to_numbers=dict(required=True, aliases=['to_number'], type='list', elements='str'),
|
||||
media_url=dict(default=None, required=False),
|
||||
),
|
||||
supports_check_mode=True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue