mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -07:00
add ids to vpn_tunnel and vpn_gateway outputs (#377)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
6de35a194c
commit
de1449829f
2 changed files with 12 additions and 0 deletions
|
@ -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'),
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue