mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-30 00:21:33 -07:00
* GA packet mirroring, add filter direction, ga mirroring collector flag * Exclude ansible Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
ab0280fcd8
commit
4d6fb3b2a8
2 changed files with 30 additions and 0 deletions
|
@ -49,6 +49,15 @@ options:
|
||||||
- absent
|
- absent
|
||||||
default: present
|
default: present
|
||||||
type: str
|
type: str
|
||||||
|
is_mirroring_collector:
|
||||||
|
description:
|
||||||
|
- Indicates whether or not this load balancer can be used as a collector for packet
|
||||||
|
mirroring. To prevent mirroring loops, instances behind this load balancer will
|
||||||
|
not have their traffic mirrored even if a PacketMirroring rule applies to them.
|
||||||
|
This can only be set to true for load balancers that have their loadBalancingScheme
|
||||||
|
set to INTERNAL.
|
||||||
|
required: false
|
||||||
|
type: bool
|
||||||
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
|
||||||
|
@ -309,6 +318,15 @@ creationTimestamp:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
|
isMirroringCollector:
|
||||||
|
description:
|
||||||
|
- Indicates whether or not this load balancer can be used as a collector for packet
|
||||||
|
mirroring. To prevent mirroring loops, instances behind this load balancer will
|
||||||
|
not have their traffic mirrored even if a PacketMirroring rule applies to them.
|
||||||
|
This can only be set to true for load balancers that have their loadBalancingScheme
|
||||||
|
set to INTERNAL.
|
||||||
|
returned: success
|
||||||
|
type: bool
|
||||||
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
|
||||||
|
@ -487,6 +505,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'),
|
||||||
|
is_mirroring_collector=dict(type='bool'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
ip_address=dict(type='str'),
|
ip_address=dict(type='str'),
|
||||||
ip_protocol=dict(type='str'),
|
ip_protocol=dict(type='str'),
|
||||||
|
@ -578,6 +597,7 @@ def delete(module, link, kind):
|
||||||
def resource_to_request(module):
|
def resource_to_request(module):
|
||||||
request = {
|
request = {
|
||||||
u'kind': 'compute#forwardingRule',
|
u'kind': 'compute#forwardingRule',
|
||||||
|
u'isMirroringCollector': module.params.get('is_mirroring_collector'),
|
||||||
u'description': module.params.get('description'),
|
u'description': module.params.get('description'),
|
||||||
u'IPAddress': module.params.get('ip_address'),
|
u'IPAddress': module.params.get('ip_address'),
|
||||||
u'IPProtocol': module.params.get('ip_protocol'),
|
u'IPProtocol': module.params.get('ip_protocol'),
|
||||||
|
@ -659,6 +679,7 @@ def is_different(module, response):
|
||||||
def response_to_hash(module, response):
|
def response_to_hash(module, response):
|
||||||
return {
|
return {
|
||||||
u'creationTimestamp': response.get(u'creationTimestamp'),
|
u'creationTimestamp': response.get(u'creationTimestamp'),
|
||||||
|
u'isMirroringCollector': response.get(u'isMirroringCollector'),
|
||||||
u'description': response.get(u'description'),
|
u'description': response.get(u'description'),
|
||||||
u'id': response.get(u'id'),
|
u'id': response.get(u'id'),
|
||||||
u'IPAddress': response.get(u'IPAddress'),
|
u'IPAddress': response.get(u'IPAddress'),
|
||||||
|
|
|
@ -125,6 +125,15 @@ resources:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
|
isMirroringCollector:
|
||||||
|
description:
|
||||||
|
- Indicates whether or not this load balancer can be used as a collector for
|
||||||
|
packet mirroring. To prevent mirroring loops, instances behind this load balancer
|
||||||
|
will not have their traffic mirrored even if a PacketMirroring rule applies
|
||||||
|
to them. This can only be set to true for load balancers that have their loadBalancingScheme
|
||||||
|
set to INTERNAL.
|
||||||
|
returned: success
|
||||||
|
type: bool
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue