add firewall logging controls (#3780) (#261)

* add firewall logging controls

* make backward compatible

* check enable_logging in expand

* update docs

* update expand logic to fix failing test

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2020-07-28 08:53:46 -07:00 committed by GitHub
commit c87bb52d1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 12 deletions

View file

@ -195,17 +195,23 @@ resources:
type: bool
logConfig:
description:
- This field denotes whether to enable logging for a particular firewall rule.
If logging is enabled, logs will be exported to Stackdriver.
- This field denotes the logging options for a particular firewall rule.
- If logging is enabled, logs will be exported to Cloud Logging.
returned: success
type: complex
contains:
enableLogging:
enable:
description:
- This field denotes whether to enable logging for a particular firewall
rule. If logging is enabled, logs will be exported to Stackdriver.
returned: success
type: bool
metadata:
description:
- This field denotes whether to include or exclude metadata for firewall
logs.
returned: success
type: str
id:
description:
- The unique identifier for the resource.