Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(azure): Consumption legacy usage details (#11242)
Fixes cloudquery/cloudquery-issues#565 This fix ignores all returned types except `LegacyUsageDetail` from the API call (which can sometimes include `ModernUsageDetail` for some undocumented reason, to our understanding) but since we have another resource listing those (`azure_consumption_billing_account_modern_usage_details`) we don't want them here. ```go // UsageDetailClassification provides polymorphic access to related types. // Call the interface's GetUsageDetail() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: // - *LegacyUsageDetail, *ModernUsageDetail, *UsageDetail type UsageDetailClassification interface { // GetUsageDetail returns the UsageDetail content of the underlying type. GetUsageDetail() *UsageDetail } ```
- Loading branch information