add ids to vpn_tunnel and vpn_gateway outputs (#377)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-08-30 12:15:03 -07:00 committed by Alex Stephen
parent 6de35a194c
commit de1449829f
2 changed files with 12 additions and 0 deletions

View file

@ -182,6 +182,11 @@ EXAMPLES = '''
'''
RETURN = '''
id:
description:
- The unique identifier for the resource. This identifier is defined by the server.
returned: success
type: str
creationTimestamp:
description:
- Creation timestamp in RFC3339 text format.
@ -411,6 +416,7 @@ def is_different(module, response):
# This is for doing comparisons with Ansible's current parameters.
def response_to_hash(module, response):
return {
u'id': response.get(u'id'),
u'creationTimestamp': response.get(u'creationTimestamp'),
u'name': response.get(u'name'),
u'description': module.params.get('description'),

View file

@ -73,6 +73,12 @@ resources:
returned: always
type: complex
contains:
id:
description:
- The unique identifier for the resource. This identifier is defined by the
server.
returned: success
type: str
creationTimestamp:
description:
- Creation timestamp in RFC3339 text format.