-
Notifications
You must be signed in to change notification settings - Fork 51
/
model_azure_service.go
165 lines (162 loc) · 16.5 KB
/
model_azure_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
package integration
type AzureService string
const (
AZURE_MICROSOFT_ANALYSISSERVICES_SERVERS AzureService = "microsoft.analysisservices/servers"
AZURE_MICROSOFT_APIMANAGEMENT_SERVICE AzureService = "microsoft.apimanagement/service"
AZURE_MICROSOFT_AUTOMATION_AUTOMATIONACCOUNTS AzureService = "microsoft.automation/automationaccounts"
AZURE_BATCH_BATCHACCOUNTS AzureService = "microsoft.batch/batchaccounts"
AZURE_CACHE_REDIS AzureService = "microsoft.cache/redis"
AZURE_MICROSOFT_CDN_CDNWEBAPPLICATIONFIREWALLPOLICIES AzureService = "microsoft.cdn/cdnwebapplicationfirewallpolicies"
AZURE_MICROSOFT_CDN_CDNPROFILES AzureService = "microsoft.cdn/profiles"
AZURE_MICROSOFT_CLASSICCOMPUTE_VIRTUALMACHINES AzureService = "microsoft.classiccompute/virtualmachines"
AZURE_MICROSOFT_COGNITIVESERVICES_ACCOUNTS AzureService = "microsoft.cognitiveservices/accounts"
AZURE_COMPUTE_VIRTUALMACHINES AzureService = "microsoft.compute/virtualmachines"
AZURE_COMPUTE_VIRTUALMACHINESCALESETS AzureService = "microsoft.compute/virtualmachinescalesets"
AZURE_COMPUTE_VIRTUALMACHINESCALESETS_VIRTUALMACHINES AzureService = "microsoft.compute/virtualmachinescalesets/virtualmachines"
AZURE_MICROSOFT_CONTAINERINSTANCE_CONTAINERGROUPS AzureService = "microsoft.containerinstance/containergroups"
AZURE_MICROSOFT_CONTAINERREGISTRY_REGISTRIES AzureService = "microsoft.containerregistry/registries"
AZURE_MICROSOFT_CONTAINERINSTANCE_MANAGEDCLUSTERS AzureService = "microsoft.containerservice/managedclusters"
AZURE_MICROSOFT_CUSTOMERINSIGHTS_HUBS AzureService = "microsoft.customerinsights/hubs"
AZURE_MICROSOFT_DATAFACTORY AzureService = "microsoft.datafactory"
AZURE_MICROSOFT_DATAFACTORY_DATAFACTORIES AzureService = "microsoft.datafactory/datafactories"
AZURE_MICROSOFT_DATAFACTORY_FACTORIES AzureService = "microsoft.datafactory/factories"
AZURE_MICROSOFT_DATALAKEANALYTICS_ACCOUNTS AzureService = "microsoft.datalakeanalytics/accounts"
AZURE_MICROSOFT_DATALAKESTORE_ACCOUNTS AzureService = "microsoft.datalakestore/accounts"
AZURE_MICROSOFT_DBFORMARIADB_SERVERS AzureService = "microsoft.dbformariadb/servers"
AZURE_MICROSOFT_DBFORMYSQL_SERVERS AzureService = "microsoft.dbformysql/servers"
AZURE_MICROSOFT_DBFORMYSQL_FLEXIBLESERVERS AzureService = "microsoft.dbformysql/flexibleservers"
AZURE_MICROSOFT_DBFORPOSTGRESQL_SERVERS AzureService = "microsoft.dbforpostgresql/servers"
AZURE_DEVICES AzureService = "microsoft.devices"
AZURE_DEVICES_ELASTICPOOLS AzureService = "microsoft.devices/elasticpools"
AZURE_DEVICES_ELASTICPOOLS_IOHUBTENANTS AzureService = "microsoft.devices/elasticpools/iothubtenants"
AZURE_DEVICES_IOTHUBS AzureService = "microsoft.devices/iothubs"
AZURE_MICROSOFT_DEVICES_PROVISIONINGSERVICES AzureService = "microsoft.devices/provisioningservices"
AZURE_MICROSOFT_DOCUMENTDB_DATABASEACCOUNTS AzureService = "microsoft.documentdb/databaseaccounts"
AZURE_MICROSOFT_EVENTGRID_DOMAINS AzureService = "microsoft.eventgrid/domains"
AZURE_MICROSOFT_EVENTGRID_EVENTSSUBSCRIPTIONS AzureService = "microsoft.eventgrid/eventsubscriptions"
AZURE_MICROSOFT_EVENTGRID_EXTENSIONTOPICS AzureService = "microsoft.eventgrid/extensiontopics"
AZURE_MICROSOFT_EVENTGRID_SYSTEMTOPICS AzureService = "microsoft.eventgrid/systemtopics"
AZURE_MICROSOFT_EVENTGRID_TOPICS AzureService = "microsoft.eventgrid/topics"
AZURE_EVENTHUB_NAMESPACES AzureService = "microsoft.eventhub/namespaces"
AZURE_MICROSOFT_HDINSIGHT_CLUSTERS AzureService = "microsoft.hdinsight/clusters"
AZURE_MICROSOFT_INSIGHTS_AUTOSCALESETTINGS AzureService = "microsoft.insights/autoscalesettings"
AZURE_MICROSOFT_KEYVAULT_VAULTS AzureService = "microsoft.keyvault/vaults"
AZURE_MICROSOFT_KUSTO_CLUSTERS AzureService = "microsoft.kusto/clusters"
AZURE_MICROSOFT_LOCATIONBASEDSERVICES_ACCOUNTS AzureService = "microsoft.locationbasedservices/accounts"
AZURE_LOGIC_WORKFLOWS AzureService = "microsoft.logic/workflows"
AZURE_MICROSOFT_MACHINELEARNINGSERVICES_WORKSPACES AzureService = "microsoft.machinelearningservices/workspaces"
AZURE_MICROSOFT_MAPS_ACCOUNTS AzureService = "microsoft.maps/accounts"
AZURE_MICROSOFT_NETWORK_APPLICATIONGATEWAYS AzureService = "microsoft.network/applicationgateways"
AZURE_MICROSOFT_NETWORK_AZUREFIREWALLS AzureService = "microsoft.network/azurefirewalls"
AZURE_MICROSOFT_NETWORK_DNSZONES AzureService = "microsoft.network/dnszones"
AZURE_MICROSOFT_NETWORK_EXPRESSROUTECIRCUITS AzureService = "microsoft.network/expressroutecircuits"
AZURE_MICROSOFT_NETWORK_FRONTDOORS AzureService = "microsoft.network/frontdoors"
AZURE_MICROSOFT_NETWORK_LOADBALANCERS AzureService = "microsoft.network/loadbalancers"
AZURE_MICROSOFT_NETWORK_NETWORKINTERFACES AzureService = "microsoft.network/networkinterfaces"
AZURE_MICROSOFT_NETWORK_PUBLICIPADDRESSES AzureService = "microsoft.network/publicipaddresses"
AZURE_MICROSOFT_NETWORK_TRAFFICMANAGERPROFILES AzureService = "microsoft.network/trafficmanagerprofiles"
AZURE_MICROSOFT_NETWORK_VIRTUALNETWORKGATEWAYS AzureService = "microsoft.network/virtualnetworkgateways"
AZURE_MICROSOFT_NOTIFICATIONHUBS_NAMESPACES_NOTIFICATIONHUBS AzureService = "microsoft.notificationhubs/namespaces/notificationhubs"
AZURE_MICROSOFT_POWERBIDEDICATED_CAPACITIES AzureService = "microsoft.powerbidedicated/capacities"
AZURE_MICROSOFT_RELAY_NAMESPACES AzureService = "microsoft.relay/namespaces"
AZURE_MICROSOFT_SEARCH_SEARCHSERVICES AzureService = "microsoft.search/searchservices"
AZURE_MICROSOFT_SERVICEBUS_NAMESPACES AzureService = "microsoft.servicebus/namespaces"
AZURE_MICROSOFT_SIGNALRSERVICE_SIGNALR AzureService = "microsoft.signalrservice/signalr"
AZURE_MICROSOFT_SIGNALRSERVICE_WEBPUBSUB AzureService = "microsoft.signalrservice/webpubsub"
AZURE_MICROSOFT_SQL_MANAGED_INSTANCES AzureService = "microsoft.sql/managedinstances"
AZURE_MICROSOFT_SQL_SERVERS AzureService = "microsoft.sql/servers"
AZURE_SQL_SERVERS_DATABASES AzureService = "microsoft.sql/servers/databases"
AZURE_SQL_SERVERS_ELASTICPOOLS AzureService = "microsoft.sql/servers/elasticpools"
AZURE_STORAGE_STORAGEACCOUNTS AzureService = "microsoft.storage/storageaccounts"
AZURE_STORAGE_STORAGEACCOUNTS_BLOBSERVICES AzureService = "microsoft.storage/storageaccounts/blobservices"
AZURE_STORAGE_STORAGEACCOUNTS_FILESERVICES AzureService = "microsoft.storage/storageaccounts/fileservices"
AZURE_STORAGE_STORAGEACCOUNTS_QUEUESERVICES AzureService = "microsoft.storage/storageaccounts/queueservices"
AZURE_STORAGE_STORAGEACCOUNTS_TABLESERVICES AzureService = "microsoft.storage/storageaccounts/tableservices"
AZURE_MICROSOFT_STREAMANALYTICS_STREAMINGJOBS AzureService = "microsoft.streamanalytics/streamingjobs"
AZURE_MICROSOFT_WEB AzureService = "microsoft.web"
AZURE_MICROSOFT_WEB_HOSTINGENVIRONMENTS_MULTIROLEPOOLS AzureService = "microsoft.web/hostingenvironments/multirolepools"
AZURE_MICROSOFT_WEB_HOSTINGENVIRONMENTS_WORKERPOOLS AzureService = "microsoft.web/hostingenvironments/workerpools"
AZURE_MICROSOFT_WEB_SERVERFARMS AzureService = "microsoft.web/serverfarms"
AZURE_MICROSOFT_WEB_SITES AzureService = "microsoft.web/sites"
AZURE_MICROSOFT_WEB_SITES_SLOTS AzureService = "microsoft.web/sites/slots"
)
var AzureServiceNames = map[string]AzureService{
"microsoft.analysisservices/servers": AZURE_MICROSOFT_ANALYSISSERVICES_SERVERS,
"microsoft.apimanagement/service": AZURE_MICROSOFT_APIMANAGEMENT_SERVICE,
"microsoft.automation/automationaccounts": AZURE_MICROSOFT_AUTOMATION_AUTOMATIONACCOUNTS,
"microsoft.batch/batchaccounts": AZURE_BATCH_BATCHACCOUNTS,
"microsoft.cache/redis": AZURE_CACHE_REDIS,
"microsoft.cdn/cdnwebapplicationfirewallpolicies": AZURE_MICROSOFT_CDN_CDNWEBAPPLICATIONFIREWALLPOLICIES,
"microsoft.cdn/profiles": AZURE_MICROSOFT_CDN_CDNPROFILES,
"microsoft.classiccompute/virtualmachines": AZURE_MICROSOFT_CLASSICCOMPUTE_VIRTUALMACHINES,
"microsoft.cognitiveservices/accounts": AZURE_MICROSOFT_COGNITIVESERVICES_ACCOUNTS,
"microsoft.compute/virtualmachines": AZURE_COMPUTE_VIRTUALMACHINES,
"microsoft.compute/virtualmachinescalesets": AZURE_COMPUTE_VIRTUALMACHINESCALESETS,
"microsoft.compute/virtualmachinescalesets/virtualmachines": AZURE_COMPUTE_VIRTUALMACHINESCALESETS_VIRTUALMACHINES,
"microsoft.containerinstance/containergroups": AZURE_MICROSOFT_CONTAINERINSTANCE_CONTAINERGROUPS,
"microsoft.containerregistry/registries": AZURE_MICROSOFT_CONTAINERREGISTRY_REGISTRIES,
"microsoft.containerservice/managedclusters": AZURE_MICROSOFT_CONTAINERINSTANCE_MANAGEDCLUSTERS,
"microsoft.customerinsights/hubs": AZURE_MICROSOFT_CUSTOMERINSIGHTS_HUBS,
"microsoft.datafactory": AZURE_MICROSOFT_DATAFACTORY,
"microsoft.datafactory/datafactories": AZURE_MICROSOFT_DATAFACTORY_DATAFACTORIES,
"microsoft.datafactory/factories": AZURE_MICROSOFT_DATAFACTORY_FACTORIES,
"microsoft.datalakeanalytics/accounts": AZURE_MICROSOFT_DATALAKEANALYTICS_ACCOUNTS,
"microsoft.datalakestore/accounts": AZURE_MICROSOFT_DATALAKESTORE_ACCOUNTS,
"microsoft.dbformariadb/servers": AZURE_MICROSOFT_DBFORMARIADB_SERVERS,
"microsoft.dbformysql/servers": AZURE_MICROSOFT_DBFORMYSQL_SERVERS,
"microsoft.dbformysql/flexibleservers": AZURE_MICROSOFT_DBFORMYSQL_FLEXIBLESERVERS,
"microsoft.dbforpostgresql/servers": AZURE_MICROSOFT_DBFORPOSTGRESQL_SERVERS,
"microsoft.devices": AZURE_DEVICES,
"microsoft.devices/elasticpools": AZURE_DEVICES_ELASTICPOOLS,
"microsoft.devices/elasticpools/iothubtenants": AZURE_DEVICES_ELASTICPOOLS_IOHUBTENANTS,
"microsoft.devices/iothubs": AZURE_DEVICES_IOTHUBS,
"microsoft.devices/provisioningservices": AZURE_MICROSOFT_DEVICES_PROVISIONINGSERVICES,
"microsoft.documentdb/databaseaccounts": AZURE_MICROSOFT_DOCUMENTDB_DATABASEACCOUNTS,
"microsoft.eventgrid/domains": AZURE_MICROSOFT_EVENTGRID_DOMAINS,
"microsoft.eventgrid/eventsubscriptions": AZURE_MICROSOFT_EVENTGRID_EVENTSSUBSCRIPTIONS,
"microsoft.eventgrid/extensiontopics": AZURE_MICROSOFT_EVENTGRID_EXTENSIONTOPICS,
"microsoft.eventgrid/systemtopics": AZURE_MICROSOFT_EVENTGRID_SYSTEMTOPICS,
"microsoft.eventgrid/topics": AZURE_MICROSOFT_EVENTGRID_TOPICS,
"microsoft.eventhub/namespaces": AZURE_EVENTHUB_NAMESPACES,
"microsoft.hdinsight/clusters": AZURE_MICROSOFT_HDINSIGHT_CLUSTERS,
"microsoft.insights/autoscalesettings": AZURE_MICROSOFT_INSIGHTS_AUTOSCALESETTINGS,
"microsoft.keyvault/vaults": AZURE_MICROSOFT_KEYVAULT_VAULTS,
"microsoft.kusto/clusters": AZURE_MICROSOFT_KUSTO_CLUSTERS,
"microsoft.locationbasedservices/accounts": AZURE_MICROSOFT_LOCATIONBASEDSERVICES_ACCOUNTS,
"microsoft.logic/workflows": AZURE_LOGIC_WORKFLOWS,
"microsoft.machinelearningservices/workspaces": AZURE_MICROSOFT_MACHINELEARNINGSERVICES_WORKSPACES,
"microsoft.maps/accounts": AZURE_MICROSOFT_MAPS_ACCOUNTS,
"microsoft.network/applicationgateways": AZURE_MICROSOFT_NETWORK_APPLICATIONGATEWAYS,
"microsoft.network/azurefirewalls": AZURE_MICROSOFT_NETWORK_AZUREFIREWALLS,
"microsoft.network/dnszones": AZURE_MICROSOFT_NETWORK_DNSZONES,
"microsoft.network/expressroutecircuits": AZURE_MICROSOFT_NETWORK_EXPRESSROUTECIRCUITS,
"microsoft.network/frontdoors": AZURE_MICROSOFT_NETWORK_FRONTDOORS,
"microsoft.network/loadbalancers": AZURE_MICROSOFT_NETWORK_LOADBALANCERS,
"microsoft.network/networkinterfaces": AZURE_MICROSOFT_NETWORK_NETWORKINTERFACES,
"microsoft.network/publicipaddresses": AZURE_MICROSOFT_NETWORK_PUBLICIPADDRESSES,
"microsoft.network/trafficmanagerprofiles": AZURE_MICROSOFT_NETWORK_TRAFFICMANAGERPROFILES,
"microsoft.network/virtualnetworkgateways": AZURE_MICROSOFT_NETWORK_VIRTUALNETWORKGATEWAYS,
"microsoft.notificationhubs/namespaces/notificationhubs": AZURE_MICROSOFT_NOTIFICATIONHUBS_NAMESPACES_NOTIFICATIONHUBS,
"microsoft.powerbidedicated/capacities": AZURE_MICROSOFT_POWERBIDEDICATED_CAPACITIES,
"microsoft.relay/namespaces": AZURE_MICROSOFT_RELAY_NAMESPACES,
"microsoft.search/searchservices": AZURE_MICROSOFT_SEARCH_SEARCHSERVICES,
"microsoft.servicebus/namespaces": AZURE_MICROSOFT_SERVICEBUS_NAMESPACES,
"microsoft.signalrservice/signalr": AZURE_MICROSOFT_SIGNALRSERVICE_SIGNALR,
"microsoft.signalrservice/webpubsub": AZURE_MICROSOFT_SIGNALRSERVICE_WEBPUBSUB,
"microsoft.sql/managedinstances": AZURE_MICROSOFT_SQL_MANAGED_INSTANCES,
"microsoft.sql/servers": AZURE_MICROSOFT_SQL_SERVERS,
"microsoft.sql/servers/databases": AZURE_SQL_SERVERS_DATABASES,
"microsoft.sql/servers/elasticpools": AZURE_SQL_SERVERS_ELASTICPOOLS,
"microsoft.storage/storageaccounts": AZURE_STORAGE_STORAGEACCOUNTS,
"microsoft.storage/storageaccounts/blobservices": AZURE_STORAGE_STORAGEACCOUNTS_BLOBSERVICES,
"microsoft.storage/storageaccounts/fileservices": AZURE_STORAGE_STORAGEACCOUNTS_FILESERVICES,
"microsoft.storage/storageaccounts/queueservices": AZURE_STORAGE_STORAGEACCOUNTS_QUEUESERVICES,
"microsoft.storage/storageaccounts/tableservices": AZURE_STORAGE_STORAGEACCOUNTS_TABLESERVICES,
"microsoft.streamanalytics/streamingjobs": AZURE_MICROSOFT_STREAMANALYTICS_STREAMINGJOBS,
"microsoft.web": AZURE_MICROSOFT_WEB,
"microsoft.web/hostingenvironments/multirolepools": AZURE_MICROSOFT_WEB_HOSTINGENVIRONMENTS_MULTIROLEPOOLS,
"microsoft.web/hostingenvironments/workerpools": AZURE_MICROSOFT_WEB_HOSTINGENVIRONMENTS_WORKERPOOLS,
"microsoft.web/serverfarms": AZURE_MICROSOFT_WEB_SERVERFARMS,
"microsoft.web/sites": AZURE_MICROSOFT_WEB_SITES,
"microsoft.web/sites/slots": AZURE_MICROSOFT_WEB_SITES_SLOTS,
}