Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #88 from modular-magician/codegen-pr-441
Browse files Browse the repository at this point in the history
make vpnTunnel.router into a ResourceRef
  • Loading branch information
danawillow authored Sep 7, 2018
2 parents 365732a + 29cd595 commit 152fe2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
description:
- URL of router resource to be used for dynamic routing.
returned: success
type: str
type: dict
peer_ip:
description:
- IP address of the peer VPN gateway. Only IPv4 is supported.
Expand Down Expand Up @@ -271,7 +271,7 @@ def main():
name=dict(required=True, type='str'),
description=dict(type='str'),
target_vpn_gateway=dict(required=True, type='dict'),
router=dict(type='str'),
router=dict(type='dict'),
peer_ip=dict(required=True, type='str'),
shared_secret=dict(required=True, type='str'),
ike_version=dict(default=2, type='int'),
Expand Down Expand Up @@ -354,7 +354,7 @@ def resource_to_request(module):
u'name': module.params.get('name'),
u'description': module.params.get('description'),
u'targetVpnGateway': replace_resource_dict(module.params.get(u'target_vpn_gateway', {}), 'selfLink'),
u'router': module.params.get('router'),
u'router': replace_resource_dict(module.params.get(u'router', {}), 'selfLink'),
u'peerIp': module.params.get('peer_ip'),
u'sharedSecret': module.params.get('shared_secret'),
u'ikeVersion': module.params.get('ike_version'),
Expand Down Expand Up @@ -430,7 +430,7 @@ def response_to_hash(module, response):
u'name': response.get(u'name'),
u'description': module.params.get('description'),
u'targetVpnGateway': replace_resource_dict(module.params.get(u'target_vpn_gateway', {}), 'selfLink'),
u'router': module.params.get('router'),
u'router': replace_resource_dict(module.params.get(u'router', {}), 'selfLink'),
u'peerIp': response.get(u'peerIp'),
u'sharedSecret': response.get(u'sharedSecret'),
u'sharedSecretHash': response.get(u'sharedSecretHash'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
description:
- URL of router resource to be used for dynamic routing.
returned: success
type: str
type: dict
peer_ip:
description:
- IP address of the peer VPN gateway. Only IPv4 is supported.
Expand Down

0 comments on commit 152fe2f

Please sign in to comment.