Skip to content

Commit

Permalink
Adding IP type support for cloudflare teams list
Browse files Browse the repository at this point in the history
  • Loading branch information
serghei-cg committed Apr 6, 2022
1 parent 1c8bb9f commit 9c33864
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/1550.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/cloudflare_teams_list: Add support for IP type
```
2 changes: 1 addition & 1 deletion cloudflare/schema_cloudflare_teams_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourceCloudflareTeamsListSchema() map[string]*schema.Schema {
"type": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"SERIAL", "URL", "DOMAIN", "EMAIL"}, false),
ValidateFunc: validation.StringInSlice([]string{"IP", "SERIAL", "URL", "DOMAIN", "EMAIL"}, false),
},
"description": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
_ "github.com/bflad/tfproviderlint/cmd/tfproviderlintx"
_ "github.com/client9/misspell/cmd/misspell"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/google/go-github/github"
_ "github.com/hashicorp/go-changelog/cmd/changelog-build"
_ "github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs"
_ "github.com/google/go-github/github"
_ "golang.org/x/oauth2"
)
2 changes: 1 addition & 1 deletion website/docs/r/teams_list.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The following arguments are supported:

* `account_id` - (Required) The account to which the teams list should be added.
* `name` - (Required) Name of the teams list.
* `type` - (Required) The teams list type. Valid values are `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
* `type` - (Required) The teams list type. Valid values are `IP`, `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
* `items` - (Required) The items of the teams list.
* `description` - (Optional) The description of the teams list.

Expand Down

0 comments on commit 9c33864

Please sign in to comment.