mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-09 13:35:15 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user