terraform-provider-towerops/internal/provider
Graham McIntire 05530894ae
feat: towerops_coverage resource
Wraps the new /api/v1/coverages endpoints. Schema mirrors the cnHeat
mental model — antenna, frequency, height, azimuth, downtilt, radius
— with cnHeat-style imperial units (height_agl_ft, radius_mi,
frequency_ghz) the API converts to SI before validation.

Compute is asynchronous: 'terraform apply' returns once the prediction
is queued. The status / progress_pct / error_message / png_path /
raster_path / computed_at fields are computed and update on
'terraform refresh' as the worker progresses through queued →
computing → ready (or failed). Downstream resources that need a
ready heatmap can use a terraform_data trigger that polls the
status field.

Resource semantics:
- Create   POST   /api/v1/coverages           (auto-queues compute)
- Read     GET    /api/v1/coverages/:id
- Update   PATCH  /api/v1/coverages/:id       (does NOT auto-recompute)
- Delete   DELETE /api/v1/coverages/:id

Update doesn't auto-recompute because parameter tweaks may not
require a fresh heatmap; operators can call the recompute endpoint
directly via the existing client method when they want fresh
outputs.

ImportState supported via the standard UUID passthrough.
2026-05-06 17:21:30 -05:00
..
agent_resource.go add agent, integration, and maintenance window resources 2026-03-11 14:33:52 -05:00
check_resource.go refactor: remove device_role_source field 2026-03-22 11:20:04 -05:00
check_resource_test.go add towerops_check resource for service check management 2026-03-16 18:33:56 -05:00
client.go feat: towerops_coverage resource 2026-05-06 17:21:30 -05:00
client_test.go feat: allow setting organization name via Terraform 2026-03-10 13:32:56 -05:00
coverage_resource.go feat: towerops_coverage resource 2026-05-06 17:21:30 -05:00
device_resource.go refactor: remove device_role_source field 2026-03-22 11:20:04 -05:00
device_resource_test.go feat: allow setting organization name via Terraform 2026-03-10 13:32:56 -05:00
escalation_policy_resource.go feat: add schedule and escalation policy resources 2026-03-11 14:01:37 -05:00
integration_resource.go rename integration provider to provider_type 2026-03-13 17:41:06 -05:00
maintenance_window_resource.go add agent, integration, and maintenance window resources 2026-03-11 14:33:52 -05:00
organization_resource.go feat: add SNMP community string support to organization resource 2026-03-10 13:59:54 -05:00
organization_resource_test.go feat: allow setting organization name via Terraform 2026-03-10 13:32:56 -05:00
provider.go feat: towerops_coverage resource 2026-05-06 17:21:30 -05:00
provider_test.go allow creating entities when they dont exist 2026-01-29 13:25:00 -06:00
schedule_resource.go feat: add schedule and escalation policy resources 2026-03-11 14:01:37 -05:00
site_resource.go fix site lat/lng inconsistent result after apply 2026-03-18 09:33:22 -05:00
site_resource_test.go allow creating entities when they dont exist 2026-01-29 13:25:00 -06:00