cloudstack: improve required params

This commit is contained in:
Rene Moser 2015-05-29 10:07:00 +02:00 committed by Matt Clay
parent b2e60b7cde
commit 30feb9d387
11 changed files with 39 additions and 0 deletions

View file

@ -369,6 +369,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -222,6 +222,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -421,6 +421,13 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_one_of = (
['ip_address', 'network'],
),
required_together = (
['icmp_type', 'icmp_code'],
['api_key', 'api_secret', 'api_url'],
),
mutually_exclusive = (
['icmp_type', 'start_port'],
['icmp_type', 'end_port'],

View file

@ -788,6 +788,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -200,6 +200,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -332,6 +332,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -407,6 +407,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -165,6 +165,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -401,6 +401,10 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['icmp_type', 'icmp_code'],
['api_key', 'api_secret', 'api_url'],
),
mutually_exclusive = (
['icmp_type', 'start_port'],
['icmp_type', 'end_port'],

View file

@ -219,6 +219,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

View file

@ -291,6 +291,10 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['icmp_type', 'icmp_code'],
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)