mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 20:30:27 -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 = '''
|
RETURN = '''
|
||||||
|
id:
|
||||||
|
description:
|
||||||
|
- The unique identifier for the resource. This identifier is defined by the server.
|
||||||
|
returned: success
|
||||||
|
type: str
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- 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.
|
# This is for doing comparisons with Ansible's current parameters.
|
||||||
def response_to_hash(module, response):
|
def response_to_hash(module, response):
|
||||||
return {
|
return {
|
||||||
|
u'id': response.get(u'id'),
|
||||||
u'creationTimestamp': response.get(u'creationTimestamp'),
|
u'creationTimestamp': response.get(u'creationTimestamp'),
|
||||||
u'name': response.get(u'name'),
|
u'name': response.get(u'name'),
|
||||||
u'description': module.params.get('description'),
|
u'description': module.params.get('description'),
|
||||||
|
|
|
@ -73,6 +73,12 @@ resources:
|
||||||
returned: always
|
returned: always
|
||||||
type: complex
|
type: complex
|
||||||
contains:
|
contains:
|
||||||
|
id:
|
||||||
|
description:
|
||||||
|
- The unique identifier for the resource. This identifier is defined by the
|
||||||
|
server.
|
||||||
|
returned: success
|
||||||
|
type: str
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
|
|
Loading…
Add table
Reference in a new issue