Bug fixes for GCP modules (#64826)

This commit is contained in:
The Magician 2019-11-25 16:19:33 -08:00 committed by ansibot
parent 01249b7fb1
commit 954ce8d21e
2 changed files with 7 additions and 5 deletions

View file

@ -162,7 +162,7 @@ options:
networks:
description:
- The list of VPC networks that can see this zone.
required: false
required: true
type: list
suboptions:
network_url:
@ -170,7 +170,7 @@ options:
- The fully qualified URL of the VPC network to bind to.
- This should be formatted like `U(https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`)
.
required: false
required: true
type: str
project:
description:
@ -405,7 +405,9 @@ def main():
name_server_set=dict(type='str'),
labels=dict(type='dict'),
visibility=dict(default='public', type='str'),
private_visibility_config=dict(type='dict', options=dict(networks=dict(type='list', elements='dict', options=dict(network_url=dict(type='str'))))),
private_visibility_config=dict(
type='dict', options=dict(networks=dict(required=True, type='list', elements='dict', options=dict(network_url=dict(required=True, type='str'))))
),
)
)

View file

@ -223,7 +223,7 @@ options:
bounds:
description:
- The values must be monotonically increasing.
required: false
required: true
type: list
project:
description:
@ -520,7 +520,7 @@ def main():
exponential_buckets=dict(
type='dict', options=dict(num_finite_buckets=dict(type='int'), growth_factor=dict(type='int'), scale=dict(type='str'))
),
explicit_buckets=dict(type='dict', options=dict(bounds=dict(type='list', elements='str'))),
explicit_buckets=dict(type='dict', options=dict(bounds=dict(required=True, type='list', elements='str'))),
),
),
)