mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-27 07:01:32 -07:00
Better resourceref flexibility (#149)
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
3496923252
commit
982933cfe8
64 changed files with 569 additions and 526 deletions
|
@ -63,10 +63,9 @@ options:
|
|||
description:
|
||||
- A reference to the network to which this router belongs.
|
||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||
in two ways. You can add `register: name-of-resource` to a gcp_compute_network
|
||||
task and then set this network field to "{{ name-of-resource }}" Alternatively,
|
||||
you can set this network to a dictionary with the selfLink key where the value
|
||||
is the selfLink of your Network'
|
||||
in two ways. First, you can place in the selfLink of the resource here as a
|
||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
||||
task and then set this network field to "{{ name-of-resource }}"'
|
||||
required: true
|
||||
bgp:
|
||||
description:
|
||||
|
@ -182,7 +181,7 @@ network:
|
|||
description:
|
||||
- A reference to the network to which this router belongs.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
bgp:
|
||||
description:
|
||||
- BGP information specific to this router.
|
||||
|
@ -259,17 +258,17 @@ def main():
|
|||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||
name=dict(required=True, type='str'),
|
||||
description=dict(type='str'),
|
||||
network=dict(required=True, type='dict'),
|
||||
bgp=dict(
|
||||
type='dict',
|
||||
options=dict(
|
||||
asn=dict(required=True, type='int'),
|
||||
advertise_mode=dict(default='DEFAULT', type='str', choices=['DEFAULT', 'CUSTOM']),
|
||||
advertised_groups=dict(type='list', elements='str'),
|
||||
advertised_ip_ranges=dict(type='list', elements='dict', options=dict(range=dict(type='str'), description=dict(type='str'))),
|
||||
),
|
||||
),
|
||||
region=dict(required=True, type='str'),
|
||||
network=dict(required=True),
|
||||
bgp=dict(type='dict', options=dict(
|
||||
asn=dict(required=True, type='int'),
|
||||
advertise_mode=dict(default='DEFAULT', type='str', choices=['DEFAULT', 'CUSTOM']),
|
||||
advertised_groups=dict(type='list', elements='str'),
|
||||
advertised_ip_ranges=dict(type='list', elements='dict', options=dict(
|
||||
range=dict(type='str'),
|
||||
description=dict(type='str')
|
||||
))
|
||||
)),
|
||||
region=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue