Skip to content

Commit 006dfbb

Browse files
authored
Marked dashboard_json as covering the entire monitoring dashboard resource (#15258)
1 parent 4c5ef7e commit 006dfbb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/content/reference/metadata.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ The list of fields used by this resource. Each field can contain the following a
4242
- `field`: The name of the field in Terraform, including the path e.g., "build_config.source.storage_source.bucket"
4343
- `api_field`: The name of the field in the API, including the path e.g., "build_config.source.storage_source.bucket". Defaults to the value of `field`.
4444
- `provider_only`: If true, the field is only present in the provider. This primarily applies for virtual fields and url-only parameters. When set to true, `api_field` should be left empty, as it will be ignored. Default: `false`.
45+
- `json`: If true, this is a JSON field which "covers" all child API fields. As a special case, JSON fields which cover an entire resource can have `api_field` set to `*`.

mmv1/third_party/terraform/services/monitoring/resource_monitoring_dashboard_meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ api_version: 'v1'
55
api_resource_type_kind: 'Dashboard'
66
fields:
77
- field: 'dashboard_json'
8+
api_field: '*'
89
json: true
910
- field: 'project'

0 commit comments

Comments
 (0)