Skip to content

Commit

Permalink
Fix docs/comments for unifi_network data source
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng committed Aug 31, 2021
1 parent 0a8c9dd commit fec024e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 6 additions & 3 deletions docs/data-sources/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


9 changes: 4 additions & 5 deletions internal/provider/data_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}
Expand Down

0 comments on commit fec024e

Please sign in to comment.