1
2 package insightsapi
3
4
5
6
7
8
9
10 import (
11 "context"
12 "github.com/Azure/azure-sdk-for-go/services/preview/appinsights/mgmt/2021-11-01-preview/insights"
13 "github.com/Azure/go-autorest/autorest"
14 )
15
16
17 type OperationsClientAPI interface {
18 List(ctx context.Context) (result insights.OperationListResultPage, err error)
19 ListComplete(ctx context.Context) (result insights.OperationListResultIterator, err error)
20 List1(ctx context.Context) (result insights.OperationsListResultPage, err error)
21 List1Complete(ctx context.Context) (result insights.OperationsListResultIterator, err error)
22 }
23
24 var _ OperationsClientAPI = (*insights.OperationsClient)(nil)
25
26
27 type AnnotationsClientAPI interface {
28 Create(ctx context.Context, resourceGroupName string, resourceName string, annotationProperties insights.Annotation) (result insights.ListAnnotation, err error)
29 Delete(ctx context.Context, resourceGroupName string, resourceName string, annotationID string) (result autorest.Response, err error)
30 Get(ctx context.Context, resourceGroupName string, resourceName string, annotationID string) (result insights.ListAnnotation, err error)
31 List(ctx context.Context, resourceGroupName string, resourceName string, start string, end string) (result insights.AnnotationsListResult, err error)
32 }
33
34 var _ AnnotationsClientAPI = (*insights.AnnotationsClient)(nil)
35
36
37 type APIKeysClientAPI interface {
38 Create(ctx context.Context, resourceGroupName string, resourceName string, APIKeyProperties insights.APIKeyRequest) (result insights.ApplicationInsightsComponentAPIKey, err error)
39 Delete(ctx context.Context, resourceGroupName string, resourceName string, keyID string) (result insights.ApplicationInsightsComponentAPIKey, err error)
40 Get(ctx context.Context, resourceGroupName string, resourceName string, keyID string) (result insights.ApplicationInsightsComponentAPIKey, err error)
41 List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentAPIKeyListResult, err error)
42 }
43
44 var _ APIKeysClientAPI = (*insights.APIKeysClient)(nil)
45
46
47 type ExportConfigurationsClientAPI interface {
48 Create(ctx context.Context, resourceGroupName string, resourceName string, exportProperties insights.ApplicationInsightsComponentExportRequest) (result insights.ListApplicationInsightsComponentExportConfiguration, err error)
49 Delete(ctx context.Context, resourceGroupName string, resourceName string, exportID string) (result insights.ApplicationInsightsComponentExportConfiguration, err error)
50 Get(ctx context.Context, resourceGroupName string, resourceName string, exportID string) (result insights.ApplicationInsightsComponentExportConfiguration, err error)
51 List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ListApplicationInsightsComponentExportConfiguration, err error)
52 Update(ctx context.Context, resourceGroupName string, resourceName string, exportID string, exportProperties insights.ApplicationInsightsComponentExportRequest) (result insights.ApplicationInsightsComponentExportConfiguration, err error)
53 }
54
55 var _ ExportConfigurationsClientAPI = (*insights.ExportConfigurationsClient)(nil)
56
57
58 type ComponentCurrentBillingFeaturesClientAPI interface {
59 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentBillingFeatures, err error)
60 Update(ctx context.Context, resourceGroupName string, resourceName string, billingFeaturesProperties insights.ApplicationInsightsComponentBillingFeatures) (result insights.ApplicationInsightsComponentBillingFeatures, err error)
61 }
62
63 var _ ComponentCurrentBillingFeaturesClientAPI = (*insights.ComponentCurrentBillingFeaturesClient)(nil)
64
65
66 type ComponentQuotaStatusClientAPI interface {
67 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentQuotaStatus, err error)
68 }
69
70 var _ ComponentQuotaStatusClientAPI = (*insights.ComponentQuotaStatusClient)(nil)
71
72
73 type ComponentFeatureCapabilitiesClientAPI interface {
74 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentFeatureCapabilities, err error)
75 }
76
77 var _ ComponentFeatureCapabilitiesClientAPI = (*insights.ComponentFeatureCapabilitiesClient)(nil)
78
79
80 type ComponentAvailableFeaturesClientAPI interface {
81 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentAvailableFeatures, err error)
82 }
83
84 var _ ComponentAvailableFeaturesClientAPI = (*insights.ComponentAvailableFeaturesClient)(nil)
85
86
87 type ProactiveDetectionConfigurationsClientAPI interface {
88 Get(ctx context.Context, resourceGroupName string, resourceName string, configurationID string) (result insights.ApplicationInsightsComponentProactiveDetectionConfiguration, err error)
89 List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ListApplicationInsightsComponentProactiveDetectionConfiguration, err error)
90 Update(ctx context.Context, resourceGroupName string, resourceName string, configurationID string, proactiveDetectionProperties insights.ApplicationInsightsComponentProactiveDetectionConfiguration) (result insights.ApplicationInsightsComponentProactiveDetectionConfiguration, err error)
91 }
92
93 var _ ProactiveDetectionConfigurationsClientAPI = (*insights.ProactiveDetectionConfigurationsClient)(nil)
94
95
96 type WorkItemConfigurationsClientAPI interface {
97 Create(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigurationProperties insights.WorkItemCreateConfiguration) (result insights.WorkItemConfiguration, err error)
98 Delete(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string) (result autorest.Response, err error)
99 GetDefault(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkItemConfiguration, err error)
100 GetItem(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string) (result insights.WorkItemConfiguration, err error)
101 List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkItemConfigurationsListResult, err error)
102 UpdateItem(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string, workItemConfigurationProperties insights.WorkItemCreateConfiguration) (result insights.WorkItemConfiguration, err error)
103 }
104
105 var _ WorkItemConfigurationsClientAPI = (*insights.WorkItemConfigurationsClient)(nil)
106
107
108 type FavoritesClientAPI interface {
109 Add(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties insights.ApplicationInsightsComponentFavorite) (result insights.ApplicationInsightsComponentFavorite, err error)
110 Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error)
111 Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result insights.ApplicationInsightsComponentFavorite, err error)
112 List(ctx context.Context, resourceGroupName string, resourceName string, favoriteType insights.FavoriteType, sourceType insights.FavoriteSourceType, canFetchContent *bool, tags []string) (result insights.ListApplicationInsightsComponentFavorite, err error)
113 Update(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties insights.ApplicationInsightsComponentFavorite) (result insights.ApplicationInsightsComponentFavorite, err error)
114 }
115
116 var _ FavoritesClientAPI = (*insights.FavoritesClient)(nil)
117
118
119 type WebTestLocationsClientAPI interface {
120 List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsWebTestLocationsListResult, err error)
121 }
122
123 var _ WebTestLocationsClientAPI = (*insights.WebTestLocationsClient)(nil)
124
125
126 type WebTestsClientAPI interface {
127 CreateOrUpdate(ctx context.Context, resourceGroupName string, webTestName string, webTestDefinition insights.WebTest) (result insights.WebTest, err error)
128 Delete(ctx context.Context, resourceGroupName string, webTestName string) (result autorest.Response, err error)
129 Get(ctx context.Context, resourceGroupName string, webTestName string) (result insights.WebTest, err error)
130 List(ctx context.Context) (result insights.WebTestListResultPage, err error)
131 ListComplete(ctx context.Context) (result insights.WebTestListResultIterator, err error)
132 ListByComponent(ctx context.Context, componentName string, resourceGroupName string) (result insights.WebTestListResultPage, err error)
133 ListByComponentComplete(ctx context.Context, componentName string, resourceGroupName string) (result insights.WebTestListResultIterator, err error)
134 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.WebTestListResultPage, err error)
135 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.WebTestListResultIterator, err error)
136 UpdateTags(ctx context.Context, resourceGroupName string, webTestName string, webTestTags insights.TagsResource) (result insights.WebTest, err error)
137 }
138
139 var _ WebTestsClientAPI = (*insights.WebTestsClient)(nil)
140
141
142 type AnalyticsItemsClientAPI interface {
143 Delete(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, ID string, name string) (result autorest.Response, err error)
144 Get(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, ID string, name string) (result insights.ApplicationInsightsComponentAnalyticsItem, err error)
145 List(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, scope insights.ItemScope, typeParameter insights.ItemTypeParameter, includeContent *bool) (result insights.ListApplicationInsightsComponentAnalyticsItem, err error)
146 Put(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, itemProperties insights.ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (result insights.ApplicationInsightsComponentAnalyticsItem, err error)
147 }
148
149 var _ AnalyticsItemsClientAPI = (*insights.AnalyticsItemsClient)(nil)
150
151
152 type WorkbookTemplatesClientAPI interface {
153 CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookTemplateProperties insights.WorkbookTemplate) (result insights.WorkbookTemplate, err error)
154 Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
155 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkbookTemplate, err error)
156 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.WorkbookTemplatesListResult, err error)
157 Update(ctx context.Context, resourceGroupName string, resourceName string, workbookTemplateUpdateParameters *insights.WorkbookTemplateUpdateParameters) (result insights.WorkbookTemplate, err error)
158 }
159
160 var _ WorkbookTemplatesClientAPI = (*insights.WorkbookTemplatesClient)(nil)
161
162
163 type MyWorkbooksClientAPI interface {
164 CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.MyWorkbook, sourceID string) (result insights.MyWorkbook, err error)
165 Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
166 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.MyWorkbook, err error)
167 ListByResourceGroup(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.MyWorkbooksListResultPage, err error)
168 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.MyWorkbooksListResultIterator, err error)
169 ListBySubscription(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.MyWorkbooksListResultPage, err error)
170 ListBySubscriptionComplete(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.MyWorkbooksListResultIterator, err error)
171 Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.MyWorkbook, sourceID string) (result insights.MyWorkbook, err error)
172 }
173
174 var _ MyWorkbooksClientAPI = (*insights.MyWorkbooksClient)(nil)
175
176
177 type WorkbooksClientAPI interface {
178 CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.Workbook, sourceID string) (result insights.Workbook, err error)
179 Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
180 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.Workbook, err error)
181 ListByResourceGroup(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.WorkbooksListResultPage, err error)
182 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.WorkbooksListResultIterator, err error)
183 ListBySubscription(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.WorkbooksListResultPage, err error)
184 ListBySubscriptionComplete(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.WorkbooksListResultIterator, err error)
185 RevisionGet(ctx context.Context, resourceGroupName string, resourceName string, revisionID string) (result insights.Workbook, err error)
186 RevisionsList(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkbooksListResultPage, err error)
187 RevisionsListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkbooksListResultIterator, err error)
188 Update(ctx context.Context, resourceGroupName string, resourceName string, sourceID string, workbookUpdateParameters *insights.WorkbookUpdateParameters) (result insights.Workbook, err error)
189 }
190
191 var _ WorkbooksClientAPI = (*insights.WorkbooksClient)(nil)
192
193
194 type ComponentsClientAPI interface {
195 CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, insightProperties insights.ApplicationInsightsComponent) (result insights.ApplicationInsightsComponent, err error)
196 Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
197 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponent, err error)
198 GetPurgeStatus(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (result insights.ComponentPurgeStatusResponse, err error)
199 List(ctx context.Context) (result insights.ApplicationInsightsComponentListResultPage, err error)
200 ListComplete(ctx context.Context) (result insights.ApplicationInsightsComponentListResultIterator, err error)
201 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultPage, err error)
202 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultIterator, err error)
203 Purge(ctx context.Context, resourceGroupName string, resourceName string, body insights.ComponentPurgeBody) (result insights.ComponentPurgeResponse, err error)
204 UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, componentTags insights.TagsResource) (result insights.ApplicationInsightsComponent, err error)
205 }
206
207 var _ ComponentsClientAPI = (*insights.ComponentsClient)(nil)
208
209
210 type ComponentLinkedStorageAccountsClientAPI interface {
211 CreateAndUpdate(ctx context.Context, resourceGroupName string, resourceName string, linkedStorageAccountsProperties insights.ComponentLinkedStorageAccounts) (result insights.ComponentLinkedStorageAccounts, err error)
212 Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
213 Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ComponentLinkedStorageAccounts, err error)
214 Update(ctx context.Context, resourceGroupName string, resourceName string, linkedStorageAccountsProperties insights.ComponentLinkedStorageAccountsPatch) (result insights.ComponentLinkedStorageAccounts, err error)
215 }
216
217 var _ ComponentLinkedStorageAccountsClientAPI = (*insights.ComponentLinkedStorageAccountsClient)(nil)
218
219
220 type LiveTokenClientAPI interface {
221 Get(ctx context.Context, resourceURI string) (result insights.LiveTokenResponse, err error)
222 }
223
224 var _ LiveTokenClientAPI = (*insights.LiveTokenClient)(nil)
225
View as plain text