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 #146 from modular-magician/codegen-pr-1014
Browse files Browse the repository at this point in the history
Allowing GlobalAddress.address to be settable
  • Loading branch information
chrisst authored Dec 11, 2018
2 parents 807b879 + eacb799 commit 659fbbb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
- present
- absent
default: present
address:
description:
- The static external IP address represented by this resource.
required: false
version_added: 2.8
description:
description:
- An optional description of this resource.
Expand Down Expand Up @@ -170,6 +175,7 @@ def main():
module = GcpModule(
argument_spec=dict(
state=dict(default='present', choices=['present', 'absent'], type='str'),
address=dict(type='str'),
description=dict(type='str'),
name=dict(required=True, type='str'),
ip_version=dict(type='str', choices=['IPV4', 'IPV6']),
Expand Down Expand Up @@ -225,6 +231,7 @@ def delete(module, link, kind):
def resource_to_request(module):
request = {
u'kind': 'compute#address',
u'address': module.params.get('address'),
u'description': module.params.get('description'),
u'name': module.params.get('name'),
u'ipVersion': module.params.get('ip_version'),
Expand Down

0 comments on commit 659fbbb

Please sign in to comment.