Fix docs/comments for unifi_network data source

This commit is contained in:
Paul Tyng
2021-08-31 09:06:35 -04:00
parent 361d52e5bd
commit 7805f69f3f
2 changed files with 10 additions and 8 deletions

View File

@@ -15,13 +15,16 @@ description: |-
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- **name** (String) The name of the network to look up.
### Optional
- **name** (String) The name of the user group to look up. Defaults to `Default`.
- **site** (String) The name of the site the user group is associated with.
- **site** (String) The name of the site the network is associated with.
### Read-Only
- **id** (String) The ID of this AP group.
- **id** (String) The ID of this network.

View File

@@ -15,21 +15,20 @@ func dataNetwork() *schema.Resource {
Schema: map[string]*schema.Schema{
"id": {
Description: "The ID of this AP group.",
Description: "The ID of this network.",
Type: schema.TypeString,
Computed: true,
},
"site": {
Description: "The name of the site the user group is associated with.",
Description: "The name of the site the network is associated with.",
Type: schema.TypeString,
Computed: true,
Optional: true,
},
"name": {
Description: "The name of the user group to look up.",
Description: "The name of the network to look up.",
Type: schema.TypeString,
Optional: true,
Default: "Default",
Required: true,
},
},
}