mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 12:20:27 -07:00
adminEnabled on Interconnect Attachments (#361)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
56a8cc9157
commit
666a00b5b9
2 changed files with 22 additions and 0 deletions
|
@ -49,6 +49,13 @@ options:
|
||||||
- absent
|
- absent
|
||||||
default: present
|
default: present
|
||||||
type: str
|
type: str
|
||||||
|
admin_enabled:
|
||||||
|
description:
|
||||||
|
- Whether the VLAN attachment is enabled or disabled. When using PARTNER type
|
||||||
|
this will Pre-Activate the interconnect attachment .
|
||||||
|
required: false
|
||||||
|
type: bool
|
||||||
|
version_added: 2.9
|
||||||
interconnect:
|
interconnect:
|
||||||
description:
|
description:
|
||||||
- URL of the underlying Interconnect object that this attachment's traffic will
|
- URL of the underlying Interconnect object that this attachment's traffic will
|
||||||
|
@ -154,6 +161,12 @@ EXAMPLES = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
adminEnabled:
|
||||||
|
description:
|
||||||
|
- Whether the VLAN attachment is enabled or disabled. When using PARTNER type this
|
||||||
|
will Pre-Activate the interconnect attachment .
|
||||||
|
returned: success
|
||||||
|
type: bool
|
||||||
cloudRouterIpAddress:
|
cloudRouterIpAddress:
|
||||||
description:
|
description:
|
||||||
- IPv4 address + prefix length to be configured on Cloud Router Interface for this
|
- IPv4 address + prefix length to be configured on Cloud Router Interface for this
|
||||||
|
@ -312,6 +325,7 @@ def main():
|
||||||
module = GcpModule(
|
module = GcpModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
|
admin_enabled=dict(type='bool'),
|
||||||
interconnect=dict(type='str'),
|
interconnect=dict(type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
bandwidth=dict(type='str'),
|
bandwidth=dict(type='str'),
|
||||||
|
@ -374,6 +388,7 @@ def delete(module, link, kind):
|
||||||
def resource_to_request(module):
|
def resource_to_request(module):
|
||||||
request = {
|
request = {
|
||||||
u'kind': 'compute#interconnectAttachment',
|
u'kind': 'compute#interconnectAttachment',
|
||||||
|
u'adminEnabled': module.params.get('admin_enabled'),
|
||||||
u'interconnect': module.params.get('interconnect'),
|
u'interconnect': module.params.get('interconnect'),
|
||||||
u'description': module.params.get('description'),
|
u'description': module.params.get('description'),
|
||||||
u'bandwidth': module.params.get('bandwidth'),
|
u'bandwidth': module.params.get('bandwidth'),
|
||||||
|
@ -448,6 +463,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'adminEnabled': response.get(u'adminEnabled'),
|
||||||
u'cloudRouterIpAddress': response.get(u'cloudRouterIpAddress'),
|
u'cloudRouterIpAddress': response.get(u'cloudRouterIpAddress'),
|
||||||
u'customerRouterIpAddress': response.get(u'customerRouterIpAddress'),
|
u'customerRouterIpAddress': response.get(u'customerRouterIpAddress'),
|
||||||
u'interconnect': response.get(u'interconnect'),
|
u'interconnect': response.get(u'interconnect'),
|
||||||
|
|
|
@ -73,6 +73,12 @@ resources:
|
||||||
returned: always
|
returned: always
|
||||||
type: complex
|
type: complex
|
||||||
contains:
|
contains:
|
||||||
|
adminEnabled:
|
||||||
|
description:
|
||||||
|
- Whether the VLAN attachment is enabled or disabled. When using PARTNER type
|
||||||
|
this will Pre-Activate the interconnect attachment .
|
||||||
|
returned: success
|
||||||
|
type: bool
|
||||||
cloudRouterIpAddress:
|
cloudRouterIpAddress:
|
||||||
description:
|
description:
|
||||||
- IPv4 address + prefix length to be configured on Cloud Router Interface for
|
- IPv4 address + prefix length to be configured on Cloud Router Interface for
|
||||||
|
|
Loading…
Add table
Reference in a new issue