cloudstack: improve required params

This commit is contained in:
Rene Moser 2015-05-29 10:07:00 +02:00 committed by Greg DeKoenigsberg
parent ce93a91a59
commit 93a1542cc1
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

@ -223,6 +223,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

@ -422,6 +422,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

@ -333,6 +333,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

@ -167,6 +167,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

@ -402,6 +402,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

@ -292,6 +292,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
)