Skip to content

Commit

Permalink
Merge pull request #4817 from cloudflare/remove-policy-ids
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Dec 26, 2024
2 parents b7ad19f + 7f3cd67 commit 5b2a0cd
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 5b2a0cd

Please sign in to comment.