Skip to content

Commit

Permalink
resource/cloudflare_teams_location: remove unusable policy_ids
Browse files Browse the repository at this point in the history
This field was removed from the product and API long ago and no longer
does anything. It should have been deprecated long ago.

Seeing how it's no longer usable, remove it from the schema to prevent
confusion.
  • Loading branch information
jacobbednarz committed Dec 26, 2024
1 parent b7ad19f commit 7f3cd67
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
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
3 changes: 0 additions & 3 deletions internal/sdkv2provider/resource_cloudflare_teams_location.go
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

0 comments on commit 7f3cd67

Please sign in to comment.