refactor: Replace interface{} with any alias in Terraform provider code

- Replace interface{} with any in providerConfigure, doRequest, get, post, put method signatures
- Replace interface{} with any in dataSourceSubscriberRead, dataSourceSystemStatsRead functions
- Replace interface{} with any in resourceSubscriberCreate/Read/Update/Delete, resourceRatingPlanCreate/Read/Update/Delete functions
- Replace map[string]interface{} with map[string]any in subscriber create/update request bodies
- Update
This commit is contained in:
nutcas3
2026-04-20 18:25:22 +03:00
parent 0d8c1a8098
commit c7627d92ec
4 changed files with 52 additions and 50 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ func dataSourceSubscriber() *schema.Resource {
}
}
func dataSourceSubscriberRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func dataSourceSubscriberRead(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics {
client := meta.(*APIClient)
id := d.Get("id").(string)
@@ -126,7 +126,7 @@ func dataSourceSystemStats() *schema.Resource {
}
}
func dataSourceSystemStatsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func dataSourceSystemStatsRead(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics {
client := meta.(*APIClient)
var result SystemStats