From 6f1eb02314efecb76f94277a61db0941e35c79ef Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Fri, 12 Oct 2018 23:02:26 +0000 Subject: [PATCH] Minor docs changes for UrlMap --- plugins/modules/gcp_compute_url_map.py | 13 +++++++------ plugins/modules/gcp_compute_url_map_facts.py | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/plugins/modules/gcp_compute_url_map.py b/plugins/modules/gcp_compute_url_map.py index 5067a75..6c9054c 100644 --- a/plugins/modules/gcp_compute_url_map.py +++ b/plugins/modules/gcp_compute_url_map.py @@ -112,7 +112,7 @@ options: suboptions: description: description: - - An optional description of this resource. Provide this property when you create + - An optional description of this HostRule. Provide this property when you create the resource. required: false hosts: @@ -168,7 +168,7 @@ options: - 'The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.' - required: false + required: true service: description: - A reference to the BackendService resource if this rule is matched. @@ -180,7 +180,8 @@ options: required: true tests: description: - - Description of this test case. + - The list of expected URL mappings. Requests to update this UrlMap will succeed only + if all of the test cases pass. required: false suboptions: description: @@ -280,7 +281,7 @@ RETURN = ''' contains: description: description: - - An optional description of this resource. Provide this property when you create + - An optional description of this HostRule. Provide this property when you create the resource. returned: success type: str @@ -360,7 +361,7 @@ RETURN = ''' type: dict tests: description: - - The list of expected URL mappings. Request to update this UrlMap will succeed only + - The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. returned: success type: complex @@ -419,7 +420,7 @@ def main(): description=dict(type='str'), name=dict(required=True, type='str'), path_rules=dict(type='list', elements='dict', options=dict( - paths=dict(type='list', elements='str'), + paths=dict(required=True, type='list', elements='str'), service=dict(required=True, type='dict') )) )), diff --git a/plugins/modules/gcp_compute_url_map_facts.py b/plugins/modules/gcp_compute_url_map_facts.py index 9d02235..3cee632 100644 --- a/plugins/modules/gcp_compute_url_map_facts.py +++ b/plugins/modules/gcp_compute_url_map_facts.py @@ -88,7 +88,7 @@ items: contains: description: description: - - An optional description of this resource. Provide this property when you create + - An optional description of this HostRule. Provide this property when you create the resource. returned: success type: str @@ -168,7 +168,7 @@ items: type: dict tests: description: - - The list of expected URL mappings. Request to update this UrlMap will succeed only + - The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. returned: success type: complex