From b276f2234290fb01c05096d4b90e24cfc4c96eb3 Mon Sep 17 00:00:00 2001 From: candiduslynx Date: Mon, 30 Jan 2023 17:17:32 +0200 Subject: [PATCH] Drop `subscription_id` from `azure_cdn_edge_nodes` --- plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md | 3 +-- plugins/source/azure/resources/services/cdn/edge_nodes.go | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md b/plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md index 4fe94ee8ea6226..d71dd4ce071e76 100644 --- a/plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md +++ b/plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md @@ -2,7 +2,7 @@ https://learn.microsoft.com/en-us/rest/api/cdn/edge-nodes/list?tabs=HTTP#edgenode -The composite primary key for this table is (**subscription_id**, **id**). +The primary key for this table is **id**. ## Columns @@ -12,7 +12,6 @@ The composite primary key for this table is (**subscription_id**, **id**). |_cq_sync_time|Timestamp| |_cq_id|UUID| |_cq_parent_id|UUID| -|subscription_id (PK)|String| |properties|JSON| |id (PK)|String| |name|String| diff --git a/plugins/source/azure/resources/services/cdn/edge_nodes.go b/plugins/source/azure/resources/services/cdn/edge_nodes.go index ff556aab6be985..f18d745f95c5b5 100644 --- a/plugins/source/azure/resources/services/cdn/edge_nodes.go +++ b/plugins/source/azure/resources/services/cdn/edge_nodes.go @@ -14,9 +14,7 @@ func EdgeNodes() *schema.Table { Name: "azure_cdn_edge_nodes", Resolver: fetchEdgeNodes, Description: "https://learn.microsoft.com/en-us/rest/api/cdn/edge-nodes/list?tabs=HTTP#edgenode", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cdn_edge_nodes", client.Namespacemicrosoft_cdn), Transform: transformers.TransformWithStruct(&armcdn.EdgeNode{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, } }