Skip to content

Commit

Permalink
fix: metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Nov 19, 2024
1 parent dd55857 commit b1121e8
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 132 deletions.
206 changes: 206 additions & 0 deletions pkg/sdk/runable/resource_type/resource_types_list.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
package configs

var ResourceTypesList = []string{
"Microsoft.App/containerApps",
"Microsoft.Blueprint/blueprints",
"Microsoft.Cdn/profiles",
"Microsoft.Compute/cloudServices",
"Microsoft.ContainerInstance/containerGroups",
"Microsoft.DataMigration/services",
"Microsoft.DataProtection/backupVaults",
"Microsoft.DataProtection/backupJobs",
"Microsoft.DataProtection/backupVaults/backupPolicies",
"Microsoft.Logic/integrationAccounts",
"Microsoft.Network/bastionHosts",
"Microsoft.Network/connections",
"Microsoft.Network/firewallPolicies",
"Microsoft.Network/localNetworkGateways",
"Microsoft.Network/privateLinkServices",
"Microsoft.Network/publicIPPrefixes",
"Microsoft.Network/virtualHubs",
"Microsoft.Network/virtualWans",
"Microsoft.Network/vpnGateways",
"Microsoft.Network/vpnGateways/vpnConnections",
"Microsoft.Network/vpnSites",
"Microsoft.OperationalInsights/workspaces",
"Microsoft.StreamAnalytics/cluster",
"Microsoft.TimeSeriesInsights/environments",
"Microsoft.VirtualMachineImages/imageTemplates",
"Microsoft.Web/serverFarms",
"Microsoft.Compute/virtualMachineScaleSets/virtualMachines",
"Microsoft.Automation/automationAccounts",
"Microsoft.Automation/automationAccounts/variables",
"Microsoft.Network/dnsZones",
"Microsoft.Databricks/workspaces",
"Microsoft.Network/privateDnsZones",
"Microsoft.Network/privateEndpoints",
"Microsoft.Network/networkWatchers",
"Microsoft.Resources/subscriptions/resourceGroups",
"Microsoft.Web/staticSites",
"Microsoft.Web/sites/slots",
"Microsoft.CognitiveServices/accounts",
"Microsoft.Sql/managedInstances",
"Microsoft.Sql/virtualclusters",
"Microsoft.Sql/managedInstances/databases",
"Microsoft.Sql/servers/databases",
"Microsoft.Storage/storageAccounts/largeFileSharesState",
"Microsoft.DBforPostgreSQL/servers",
"Microsoft.DBforPostgreSQL/flexibleservers",
"Microsoft.AnalysisServices/servers",
"Microsoft.Security/pricings",
"Microsoft.Insights/guestDiagnosticSettings",
"Microsoft.Insights/autoscaleSettings",
"Microsoft.Web/hostingEnvironments",
"Microsoft.Cache/redis",
"Microsoft.ContainerRegistry/registries",
"Microsoft.DataFactory/factories/pipelines",
"Microsoft.Compute/resourceSku",
"Microsoft.Network/expressRouteCircuits",
"Microsoft.Management/managementgroups",
"microsoft.SqlVirtualMachine/SqlVirtualMachines",
"Microsoft.SqlVirtualMachine/SqlVirtualMachineGroups",
"Microsoft.Storage/storageAccounts/tableServices",
"Microsoft.Synapse/workspaces",
"Microsoft.Synapse/workspaces/bigdatapools",
"Microsoft.Synapse/workspaces/sqlpools",
"Microsoft.StreamAnalytics/streamingJobs",
"Microsoft.CostManagement/CostBySubscription",
"Microsoft.ContainerService/managedClusters",
"Microsoft.ContainerService/serviceVersions",
"Microsoft.DataFactory/factories",
"Microsoft.Sql/servers",
"Microsoft.Sql/servers/jobagents",
"Microsoft.Security/autoProvisioningSettings",
"Microsoft.Insights/logProfiles",
"Microsoft.DataBoxEdge/dataBoxEdgeDevices",
"Microsoft.Network/loadBalancers",
"Microsoft.Network/azureFirewalls",
"Microsoft.Management/locks",
"Microsoft.Compute/virtualMachineScaleSets/networkInterfaces",
"Microsoft.Network/frontDoors",
"Microsoft.Authorization/policyAssignments",
"Microsoft.Authorization/userEffectiveAccess",
"Microsoft.Search/searchServices",
"Microsoft.Security/settings",
"Microsoft.RecoveryServices/vaults",
"Microsoft.RecoveryServices/vaults/backupJobs",
"Microsoft.RecoveryServices/vaults/backupPolicies",
"Microsoft.RecoveryServices/vaults/backupItems",
"Microsoft.Compute/diskEncryptionSets",
"Microsoft.DocumentDB/databaseAccounts/sqlDatabases",
"Microsoft.EventGrid/topics",
"Microsoft.EventHub/namespaces",
"Microsoft.EventHub/namespaces/eventHubs",
"Microsoft.MachineLearningServices/workspaces",
"Microsoft.Dashboard/grafana",
"Microsoft.DesktopVirtualization/workspaces",
"Microsoft.Network/trafficManagerProfiles",
"Microsoft.Network/dnsResolvers",
"Microsoft.CostManagement/CostByResourceType",
"Microsoft.Network/networkInterfaces",
"Microsoft.Network/publicIPAddresses",
"Microsoft.HealthcareApis/services",
"Microsoft.ServiceBus/namespaces",
"Microsoft.Web/sites",
"Microsoft.Compute/availabilitySets",
"Microsoft.Network/virtualNetworks",
"Microsoft.Security/securityContacts",
"Microsoft.EventGrid/domains",
"Microsoft.KeyVault/deletedVaults",
"Microsoft.Storage/storageAccounts/tableServices/tables",
"Microsoft.Compute/snapshots",
"Microsoft.Kusto/clusters",
"Microsoft.StorageSync/storageSyncServices",
"Microsoft.Security/locations/jitNetworkAccessPolicies",
"Microsoft.Network/virtualNetworks/subnets",
"Microsoft.Network/loadBalancers/backendAddressPools",
"Microsoft.Network/loadBalancers/loadBalancingRules",
"Microsoft.DataLakeStore/accounts",
"Microsoft.StorageCache/caches",
"Microsoft.Batch/batchAccounts",
"Microsoft.Network/networkSecurityGroups",
"Microsoft.Authorization/roleDefinitions",
"Microsoft.Network/applicationSecurityGroups",
"Microsoft.Authorization/roleAssignment",
"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases",
"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections",
"Microsoft.Network/networkWatchers/flowLogs",
"microsoft.Sql/servers/elasticpools",
"Microsoft.Security/subAssessments",
"Microsoft.Compute/disks",
"Microsoft.Devices/ProvisioningServices",
"Microsoft.HDInsight/clusters",
"Microsoft.ServiceFabric/clusters",
"Microsoft.SignalRService/signalR",
"Microsoft.Storage/storageAccounts/blob",
"Microsoft.Storage/storageaccounts/blobservices/containers",
"Microsoft.Storage/storageAccounts/blobServices",
"Microsoft.Storage/storageAccounts/queueServices",
"Microsoft.ApiManagement/service",
"Microsoft.ApiManagement/backend",
"Microsoft.Compute/virtualMachineScaleSets",
"Microsoft.DataFactory/factories/datasets",
"Microsoft.Authorization/policyDefinitions",
"Microsoft.Resources/subscriptions/locations",
"Microsoft.Compute/diskAccesses",
"Microsoft.DBforMySQL/servers",
"Microsoft.DBforMySQL/flexibleservers",
"Microsoft.Cache/redisenterprise",
"Microsoft.DataLakeAnalytics/accounts",
"Microsoft.Insights/activityLogAlerts",
"Microsoft.Network/loadBalancers/outboundRules",
"Microsoft.HybridCompute/machines",
"Microsoft.Network/loadBalancers/inboundNatRules",
"Microsoft.Resources/providers",
"Microsoft.Network/routeTables",
"Microsoft.DocumentDB/databaseAccounts",
"Microsoft.DocumentDB/restorableDatabaseAccounts",
"Microsoft.Network/applicationGateways",
"Microsoft.Security/automations",
"Microsoft.Kubernetes/connectedClusters",
"Microsoft.KeyVault/vaults/keys",
"Microsoft.KeyVault/vaults/certificates",
"Microsoft.KeyVault/vaults/keys/Versions",
"Microsoft.DBforMariaDB/servers",
"Microsoft.DBforMariaDB/servers/databases",
"Microsoft.Web/plan",
"Microsoft.Resources/tenants",
"Microsoft.Network/virtualNetworkGateways",
"Microsoft.Devices/iotHubs",
"Microsoft.Logic/workflows",
"Microsoft.Sql/flexibleServers",
"Microsoft.Resources/links",
"Microsoft.Resources/subscriptions",
"Microsoft.Compute/images",
"Microsoft.Compute/virtualMachines",
"Microsoft.Network/natGateways",
"Microsoft.Network/loadBalancers/probes",
"Microsoft.KeyVault/vaults",
"Microsoft.KeyVault/managedHsms",
"Microsoft.KeyVault/vaults/secrets",
"Microsoft.AppConfiguration/configurationStores",
"Microsoft.Storage/storageAccounts",
"Microsoft.AppPlatform/Spring",
"Microsoft.Compute/galleries",
"Microsoft.Compute/hostGroups",
"Microsoft.Compute/hostGroups/hosts",
"Microsoft.Compute/restorePointCollections",
"Microsoft.Compute/sshPublicKeys",
"Microsoft.Cdn/profiles/endpoints",
"Microsoft.BotService/botServices",
"Microsoft.DocumentDB/cassandraClusters",
"Microsoft.Network/ddosProtectionPlans",
"microsoft.Sql/instancePools",
"microsoft.NetApp/netAppAccounts",
"Microsoft.NetApp/netAppAccounts/capacityPools",
"Microsoft.DesktopVirtualization/hostpools",
"Microsoft.Devtestlab/labs",
"Microsoft.Purview/Accounts",
"Microsoft.PowerBIDedicated/capacities",
"Microsoft.Insights/components",
"Microsoft.Lighthouse/definition",
"Microsoft.Lighthouse/assignment",
"Microsoft.Maintenance/maintenanceConfigurations",
"Microsoft.Monitor/logProfiles",
"Microsoft.Resources/subscriptions/resources",
}
117 changes: 0 additions & 117 deletions provider/resource_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1520,32 +1520,6 @@ var ResourceTypes = map[string]model.ResourceType{
GetDescriber: nil,
},

"Microsoft.Compute/diskswriteops": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/diskswriteops",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeDiskWriteOps),
GetDescriber: nil,
},

"Microsoft.Compute/diskswriteopshourly": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/diskswriteopshourly",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeDiskWriteOpsHourly),
GetDescriber: nil,
},

"Microsoft.EventGrid/domains": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.EventGrid/domains",
Expand Down Expand Up @@ -1693,19 +1667,6 @@ var ResourceTypes = map[string]model.ResourceType{
GetDescriber: nil,
},

"Microsoft.Compute/virtualMachineCpuUtilizationDaily": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/virtualMachineCpuUtilizationDaily",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeVirtualMachineCpuUtilizationDaily),
GetDescriber: nil,
},

"Microsoft.DataLakeStore/accounts": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.DataLakeStore/accounts",
Expand Down Expand Up @@ -2044,19 +2005,6 @@ var ResourceTypes = map[string]model.ResourceType{
GetDescriber: nil,
},

"Microsoft.Compute/disksreadops": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/disksreadops",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeDiskReadOps),
GetDescriber: nil,
},

"Microsoft.Compute/virtualMachineScaleSets": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/virtualMachineScaleSets",
Expand Down Expand Up @@ -2203,19 +2151,6 @@ var ResourceTypes = map[string]model.ResourceType{
GetDescriber: nil,
},

"Microsoft.Compute/virtualMachineCpuUtilizationHourly": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/virtualMachineCpuUtilizationHourly",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeVirtualMachineCpuUtilizationHourly),
GetDescriber: nil,
},

"Microsoft.Network/loadBalancers/outboundRules": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Network/loadBalancers/outboundRules",
Expand Down Expand Up @@ -2436,19 +2371,6 @@ var ResourceTypes = map[string]model.ResourceType{
GetDescriber: nil,
},

"Microsoft.Compute/disksreadopsdaily": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/disksreadopsdaily",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeDiskReadOpsDaily),
GetDescriber: nil,
},

"Microsoft.Web/plan": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Web/plan",
Expand All @@ -2463,32 +2385,6 @@ var ResourceTypes = map[string]model.ResourceType{
GetDescriber: nil,
},

"Microsoft.Compute/disksreadopshourly": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/disksreadopshourly",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeDiskReadOpsHourly),
GetDescriber: nil,
},

"Microsoft.Compute/diskswriteopsdaily": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/diskswriteopsdaily",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeDiskWriteOpsDaily),
GetDescriber: nil,
},

"Microsoft.Resources/tenants": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Resources/tenants",
Expand Down Expand Up @@ -2709,19 +2605,6 @@ var ResourceTypes = map[string]model.ResourceType{
GetDescriber: nil,
},

"Microsoft.Compute/virtualMachineCpuUtilization": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Compute/virtualMachineCpuUtilization",
Tags: map[string][]string{
},
Labels: map[string]string{
},
Annotations: map[string]string{
},
ListDescriber: DescribeBySubscription(describer.ComputeVirtualMachineCpuUtilization),
GetDescriber: nil,
},

"Microsoft.Storage/storageAccounts": {
IntegrationType: configs.IntegrationName,
ResourceName: "Microsoft.Storage/storageAccounts",
Expand Down
Loading

0 comments on commit b1121e8

Please sign in to comment.