|
|
@ -52,10 +52,10 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- A reference to BackendService resource if none of the hostRules match.
|
|
|
|
- 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
|
|
|
|
- 'This field represents a link to a BackendService resource in GCP. It can be
|
|
|
|
specified in two ways. First, you can place in the selfLink of the resource
|
|
|
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
|
|
|
here as a string Alternatively, you can add `register: name-of-resource` to
|
|
|
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
|
|
|
a gcp_compute_backend_service task and then set this default_service field to
|
|
|
|
name-of-resource` to a gcp_compute_backend_service task and then set this default_service
|
|
|
|
"{{ name-of-resource }}"'
|
|
|
|
field to "{{ name-of-resource }}"'
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -102,10 +102,10 @@ options:
|
|
|
|
- A reference to a BackendService resource. This will be used if none of the
|
|
|
|
- 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.
|
|
|
|
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
|
|
|
|
- 'This field represents a link to a BackendService resource in GCP. It can
|
|
|
|
be specified in two ways. First, you can place in the selfLink of the resource
|
|
|
|
be specified in two ways. First, you can place a dictionary with key ''selfLink''
|
|
|
|
here as a string Alternatively, you can add `register: name-of-resource`
|
|
|
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
|
|
|
to a gcp_compute_backend_service task and then set this default_service
|
|
|
|
name-of-resource` to a gcp_compute_backend_service task and then set this
|
|
|
|
field to "{{ name-of-resource }}"'
|
|
|
|
default_service field to "{{ name-of-resource }}"'
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -131,10 +131,10 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- A reference to the BackendService resource if this rule is matched.
|
|
|
|
- A reference to the BackendService resource if this rule is matched.
|
|
|
|
- 'This field represents a link to a BackendService resource in GCP. It
|
|
|
|
- 'This field represents a link to a BackendService resource in GCP. It
|
|
|
|
can be specified in two ways. First, you can place in the selfLink of
|
|
|
|
can be specified in two ways. First, you can place a dictionary with
|
|
|
|
the resource here as a string Alternatively, you can add `register:
|
|
|
|
key ''selfLink'' and value of your resource''s selfLink Alternatively,
|
|
|
|
name-of-resource` to a gcp_compute_backend_service task and then set
|
|
|
|
you can add `register: name-of-resource` to a gcp_compute_backend_service
|
|
|
|
this service field to "{{ name-of-resource }}"'
|
|
|
|
task and then set this service field to "{{ name-of-resource }}"'
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
tests:
|
|
|
|
tests:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -159,10 +159,10 @@ options:
|
|
|
|
- A reference to expected BackendService resource the given URL should be
|
|
|
|
- A reference to expected BackendService resource the given URL should be
|
|
|
|
mapped to.
|
|
|
|
mapped to.
|
|
|
|
- 'This field represents a link to a BackendService resource in GCP. It can
|
|
|
|
- 'This field represents a link to a BackendService resource in GCP. It can
|
|
|
|
be specified in two ways. First, you can place in the selfLink of the resource
|
|
|
|
be specified in two ways. First, you can place a dictionary with key ''selfLink''
|
|
|
|
here as a string Alternatively, you can add `register: name-of-resource`
|
|
|
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
|
|
|
to a gcp_compute_backend_service task and then set this service field to
|
|
|
|
name-of-resource` to a gcp_compute_backend_service task and then set this
|
|
|
|
"{{ name-of-resource }}"'
|
|
|
|
service field to "{{ name-of-resource }}"'
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
extends_documentation_fragment: gcp
|
|
|
|
extends_documentation_fragment: gcp
|
|
|
|
'''
|
|
|
|
'''
|
|
|
@ -225,7 +225,7 @@ defaultService:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- A reference to BackendService resource if none of the hostRules match.
|
|
|
|
- A reference to BackendService resource if none of the hostRules match.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: str
|
|
|
|
type: dict
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- An optional description of this resource. Provide this property when you create
|
|
|
|
- An optional description of this resource. Provide this property when you create
|
|
|
@ -289,7 +289,7 @@ pathMatchers:
|
|
|
|
- A reference to a BackendService resource. This will be used if none of the
|
|
|
|
- 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.
|
|
|
|
pathRules defined by this PathMatcher is matched by the URL's path portion.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: str
|
|
|
|
type: dict
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- An optional description of this resource.
|
|
|
|
- An optional description of this resource.
|
|
|
@ -318,7 +318,7 @@ pathMatchers:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- A reference to the BackendService resource if this rule is matched.
|
|
|
|
- A reference to the BackendService resource if this rule is matched.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: str
|
|
|
|
type: dict
|
|
|
|
tests:
|
|
|
|
tests:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The list of expected URL mappings. Requests to update this UrlMap will succeed
|
|
|
|
- The list of expected URL mappings. Requests to update this UrlMap will succeed
|
|
|
@ -346,7 +346,7 @@ tests:
|
|
|
|
- A reference to expected BackendService resource the given URL should be mapped
|
|
|
|
- A reference to expected BackendService resource the given URL should be mapped
|
|
|
|
to.
|
|
|
|
to.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: str
|
|
|
|
type: dict
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
@ -368,7 +368,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'),
|
|
|
|
default_service=dict(required=True),
|
|
|
|
default_service=dict(required=True, type='dict'),
|
|
|
|
description=dict(type='str'),
|
|
|
|
description=dict(type='str'),
|
|
|
|
host_rules=dict(
|
|
|
|
host_rules=dict(
|
|
|
|
type='list',
|
|
|
|
type='list',
|
|
|
@ -382,11 +382,13 @@ def main():
|
|
|
|
type='list',
|
|
|
|
type='list',
|
|
|
|
elements='dict',
|
|
|
|
elements='dict',
|
|
|
|
options=dict(
|
|
|
|
options=dict(
|
|
|
|
default_service=dict(required=True),
|
|
|
|
default_service=dict(required=True, type='dict'),
|
|
|
|
description=dict(type='str'),
|
|
|
|
description=dict(type='str'),
|
|
|
|
name=dict(required=True, type='str'),
|
|
|
|
name=dict(required=True, type='str'),
|
|
|
|
path_rules=dict(
|
|
|
|
path_rules=dict(
|
|
|
|
type='list', elements='dict', options=dict(paths=dict(required=True, type='list', elements='str'), service=dict(required=True))
|
|
|
|
type='list',
|
|
|
|
|
|
|
|
elements='dict',
|
|
|
|
|
|
|
|
options=dict(paths=dict(required=True, type='list', elements='str'), service=dict(required=True, type='dict')),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -394,7 +396,10 @@ def main():
|
|
|
|
type='list',
|
|
|
|
type='list',
|
|
|
|
elements='dict',
|
|
|
|
elements='dict',
|
|
|
|
options=dict(
|
|
|
|
options=dict(
|
|
|
|
description=dict(type='str'), host=dict(required=True, type='str'), path=dict(required=True, type='str'), service=dict(required=True)
|
|
|
|
description=dict(type='str'),
|
|
|
|
|
|
|
|
host=dict(required=True, type='str'),
|
|
|
|
|
|
|
|
path=dict(required=True, type='str'),
|
|
|
|
|
|
|
|
service=dict(required=True, type='dict'),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|