mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-09-30 05:23:29 -07:00
Bug fixes for GCP modules (as of 2019-01-09T15:35:45-08:00) (#50785)
This commit is contained in:
parent
899cc535cf
commit
d856bd0c29
32 changed files with 282 additions and 188 deletions
|
@ -53,10 +53,10 @@ options:
|
|||
description:
|
||||
- A reference to BackendService resource if none of the hostRules match.
|
||||
- 'This field represents a link to a BackendService resource in GCP. It can be
|
||||
specified in two ways. You can add `register: name-of-resource` to a gcp_compute_backend_service
|
||||
task and then set this default_service field to "{{ name-of-resource }}" Alternatively,
|
||||
you can set this default_service to a dictionary with the selfLink key where
|
||||
the value is the selfLink of your BackendService'
|
||||
specified 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_backend_service task and then set this default_service field to
|
||||
"{{ name-of-resource }}"'
|
||||
required: true
|
||||
description:
|
||||
description:
|
||||
|
@ -103,11 +103,10 @@ options:
|
|||
- A reference to a BackendService resource. This will be used if none of the
|
||||
pathRules defined by this PathMatcher is matched by the URL's path portion.
|
||||
- 'This field represents a link to a BackendService resource in GCP. It can
|
||||
be specified in two ways. You can add `register: name-of-resource` to a
|
||||
gcp_compute_backend_service task and then set this default_service field
|
||||
to "{{ name-of-resource }}" Alternatively, you can set this default_service
|
||||
to a dictionary with the selfLink key where the value is the selfLink of
|
||||
your BackendService'
|
||||
be specified 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_backend_service task and then set this default_service
|
||||
field to "{{ name-of-resource }}"'
|
||||
required: true
|
||||
description:
|
||||
description:
|
||||
|
@ -133,11 +132,10 @@ options:
|
|||
description:
|
||||
- A reference to the BackendService resource if this rule is matched.
|
||||
- 'This field represents a link to a BackendService resource in GCP. It
|
||||
can be specified in two ways. You can add `register: name-of-resource`
|
||||
to a gcp_compute_backend_service task and then set this service field
|
||||
to "{{ name-of-resource }}" Alternatively, you can set this service
|
||||
to a dictionary with the selfLink key where the value is the selfLink
|
||||
of your BackendService'
|
||||
can be specified 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_backend_service task and then set
|
||||
this service field to "{{ name-of-resource }}"'
|
||||
required: true
|
||||
tests:
|
||||
description:
|
||||
|
@ -162,10 +160,10 @@ options:
|
|||
- A reference to expected BackendService resource the given URL should be
|
||||
mapped to.
|
||||
- 'This field represents a link to a BackendService resource in GCP. It can
|
||||
be specified in two ways. You can add `register: name-of-resource` to a
|
||||
gcp_compute_backend_service task and then set this service field to "{{
|
||||
name-of-resource }}" Alternatively, you can set this service to a dictionary
|
||||
with the selfLink key where the value is the selfLink of your BackendService'
|
||||
be specified 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_backend_service task and then set this service field to
|
||||
"{{ name-of-resource }}"'
|
||||
required: true
|
||||
extends_documentation_fragment: gcp
|
||||
'''
|
||||
|
@ -228,7 +226,7 @@ defaultService:
|
|||
description:
|
||||
- A reference to BackendService resource if none of the hostRules match.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
description:
|
||||
description:
|
||||
- An optional description of this resource. Provide this property when you create
|
||||
|
@ -292,7 +290,7 @@ pathMatchers:
|
|||
- A reference to a BackendService resource. This will be used if none of the
|
||||
pathRules defined by this PathMatcher is matched by the URL's path portion.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
description:
|
||||
description:
|
||||
- An optional description of this resource.
|
||||
|
@ -321,7 +319,7 @@ pathMatchers:
|
|||
description:
|
||||
- A reference to the BackendService resource if this rule is matched.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
tests:
|
||||
description:
|
||||
- The list of expected URL mappings. Requests to update this UrlMap will succeed
|
||||
|
@ -349,7 +347,7 @@ tests:
|
|||
- A reference to expected BackendService resource the given URL should be mapped
|
||||
to.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
'''
|
||||
|
||||
################################################################################
|
||||
|
@ -371,7 +369,7 @@ def main():
|
|||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||
default_service=dict(required=True, type='dict'),
|
||||
default_service=dict(required=True),
|
||||
description=dict(type='str'),
|
||||
host_rules=dict(type='list', elements='dict', options=dict(
|
||||
description=dict(type='str'),
|
||||
|
@ -380,19 +378,19 @@ def main():
|
|||
)),
|
||||
name=dict(required=True, type='str'),
|
||||
path_matchers=dict(type='list', elements='dict', options=dict(
|
||||
default_service=dict(required=True, type='dict'),
|
||||
default_service=dict(required=True),
|
||||
description=dict(type='str'),
|
||||
name=dict(required=True, type='str'),
|
||||
path_rules=dict(type='list', elements='dict', options=dict(
|
||||
paths=dict(required=True, type='list', elements='str'),
|
||||
service=dict(required=True, type='dict')
|
||||
service=dict(required=True)
|
||||
))
|
||||
)),
|
||||
tests=dict(type='list', elements='dict', options=dict(
|
||||
description=dict(type='str'),
|
||||
host=dict(required=True, type='str'),
|
||||
path=dict(required=True, type='str'),
|
||||
service=dict(required=True, type='dict')
|
||||
service=dict(required=True)
|
||||
))
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue