Skip to content

Commit

Permalink
Doc string updates for v1.0.0-rc2 (#318)
Browse files Browse the repository at this point in the history
* Doc string updates

* make docs
  • Loading branch information
alexmensch authored Apr 13, 2023
1 parent 9ee13a4 commit 422f0aa
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "twingate_connector" "foo" {

### Required

- `id` (String) The ID of the Connector. The ID for the Connector must be obtained from the Admin API.
- `id` (String) The ID of the Connector. The ID for the Connector can be obtained from the Admin API or the URL string in the Admin Console.

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "twingate_group" "foo" {

### Required

- `id` (String) The ID of the Group. The ID for the Group must be obtained from the Admin API.
- `id` (String) The ID of the Group. The ID for the Group can be obtained from the Admin API or the URL string in the Admin Console.

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "twingate_resource" "foo" {

### Required

- `id` (String) The ID of the Resource. The ID for the Resource must be obtained from the Admin API.
- `id` (String) The ID of the Resource. The ID for the Resource can be obtained from the Admin API or the URL string in the Admin Console.

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/security_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data "twingate_security_policies" "all" {}

Read-Only:

- `id` (String) Return a matching Security Policy by its ID. The ID for the Security Policy must be obtained from the Admin API.
- `id` (String) Return a matching Security Policy by its ID. The ID for the Security Policy can be obtained from the Admin API or the URL string in the Admin Console.
- `name` (String) Return a Security Policy that exactly matches this name.


2 changes: 1 addition & 1 deletion docs/data-sources/security_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "twingate_security_policy" "foo" {

### Optional

- `id` (String) Return a Security Policy by its ID. The ID for the Security Policy must be obtained from the Admin API.
- `id` (String) Return a Security Policy by its ID. The ID for the Security Policy can be obtained from the Admin API or the URL string in the Admin Console.
- `name` (String) Return a Security Policy that exactly matches this name.


2 changes: 1 addition & 1 deletion docs/data-sources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "twingate_user" "foo" {

### Required

- `id` (String) The ID of the User. The ID for the User must be obtained from the Admin API.
- `id` (String) The ID of the User. The ID for the User can be obtained from the Admin API or the URL string in the Admin Console.

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "twingate_resource" "resource" {
### Optional

- `access` (Block List, Max: 1) Restrict access to certain groups or service accounts (see [below for nested schema](#nestedblock--access))
- `alias` (String) Resource alias address
- `alias` (String) Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- `is_authoritative` (Boolean) Determines whether assignments in the access block will override any existing assignments. Default is `true`. If set to `false`, assignments made outside of Terraform will be ignored.
- `is_browser_shortcut_enabled` (Boolean) Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client.
- `is_visible` (Boolean) Controls whether this Resource will be visible in the main Resource list in the Twingate Client.
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/provider/datasource/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func Connector() *schema.Resource {
attr.ID: {
Type: schema.TypeString,
Required: true,
Description: "The ID of the Connector. The ID for the Connector must be obtained from the Admin API.",
Description: "The ID of the Connector. The ID for the Connector can be obtained from the Admin API or the URL string in the Admin Console.",
},
// computed
attr.Name: {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/provider/datasource/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func Group() *schema.Resource {
attr.ID: {
Type: schema.TypeString,
Required: true,
Description: "The ID of the Group. The ID for the Group must be obtained from the Admin API.",
Description: "The ID of the Group. The ID for the Group can be obtained from the Admin API or the URL string in the Admin Console.",
},
attr.Name: {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/provider/datasource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func Resource() *schema.Resource { //nolint:funlen
attr.ID: {
Type: schema.TypeString,
Required: true,
Description: "The ID of the Resource. The ID for the Resource must be obtained from the Admin API.",
Description: "The ID of the Resource. The ID for the Resource can be obtained from the Admin API or the URL string in the Admin Console.",
},
// computed
attr.Name: {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/provider/datasource/security-policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func SecurityPolicies() *schema.Resource {
attr.ID: {
Type: schema.TypeString,
Computed: true,
Description: "Return a matching Security Policy by its ID. The ID for the Security Policy must be obtained from the Admin API.",
Description: "Return a matching Security Policy by its ID. The ID for the Security Policy can be obtained from the Admin API or the URL string in the Admin Console.",
},
attr.Name: {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/provider/datasource/security-policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func SecurityPolicy() *schema.Resource {
attr.ID: {
Type: schema.TypeString,
Optional: true,
Description: "Return a Security Policy by its ID. The ID for the Security Policy must be obtained from the Admin API.",
Description: "Return a Security Policy by its ID. The ID for the Security Policy can be obtained from the Admin API or the URL string in the Admin Console.",
ExactlyOneOf: []string{attr.Name},
},
attr.Name: {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/provider/datasource/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func User() *schema.Resource {
attr.ID: {
Type: schema.TypeString,
Required: true,
Description: "The ID of the User. The ID for the User must be obtained from the Admin API.",
Description: "The ID of the User. The ID for the User can be obtained from the Admin API or the URL string in the Admin Console.",
},
// computed
attr.FirstName: {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/provider/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func Resource() *schema.Resource { //nolint:funlen
attr.Alias: {
Type: schema.TypeString,
Optional: true,
Description: "Resource alias address",
Description: "Set a DNS alias address for the Resource. Must be a DNS-valid name string.",
DiffSuppressFunc: aliasDiff,
},
attr.ID: {
Expand Down

0 comments on commit 422f0aa

Please sign in to comment.