Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/cloudflare_teams_location: remove unusable policy_ids #4817

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/4817.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
resource/cloudflare_teams_location: remove unusable `policy_ids` attribute
```
1 change: 0 additions & 1 deletion docs/resources/teams_location.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ resource "cloudflare_teams_location" "example" {
- `id` (String) The ID of this resource.
- `ip` (String) Client IP address.
- `ipv4_destination` (String) IP to direct all IPv4 DNS queries to.
- `policy_ids` (List of String)

<a id="nestedblock--networks"></a>
### Nested Schema for `networks`
Expand Down
1 change: 0 additions & 1 deletion docs/resources/zero_trust_dns_location.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ resource "cloudflare_zero_trust_dns_location" "example" {
- `id` (String) The ID of this resource.
- `ip` (String) Client IP address.
- `ipv4_destination` (String) IP to direct all IPv4 DNS queries to.
- `policy_ids` (List of String)

<a id="nestedblock--networks"></a>
### Nested Schema for `networks`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ func resourceCloudflareTeamsLocationRead(ctx context.Context, d *schema.Resource
if err := d.Set("networks", flattenTeamsLocationNetworks(location.Networks)); err != nil {
return diag.FromErr(fmt.Errorf("error parsing Location networks"))
}
if err := d.Set("policy_ids", location.PolicyIDs); err != nil {
return diag.FromErr(fmt.Errorf("error parsing Location policy IDs"))
}
if err := d.Set("ip", location.Ip); err != nil {
return diag.FromErr(fmt.Errorf("error parsing Location IP"))
}
Expand Down
5 changes: 0 additions & 5 deletions internal/sdkv2provider/schema_cloudflare_teams_location.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ func resourceCloudflareTeamsLocationSchema() map[string]*schema.Schema {
Optional: true,
Description: "Indicator that this location needs to resolve EDNS queries.",
},
"policy_ids": {
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
Computed: true,
},
"ip": {
Type: schema.TypeString,
Computed: true,
Expand Down
Loading