...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/appinsights/mgmt/2022-01-11-preview/insights/insightsapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/appinsights/mgmt/2022-01-11-preview/insights/insightsapi

     1  // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
     2  package insightsapi
     3  
     4  // Copyright (c) Microsoft Corporation. All rights reserved.
     5  // Licensed under the MIT License. See License.txt in the project root for license information.
     6  //
     7  // Code generated by Microsoft (R) AutoRest Code Generator.
     8  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     9  
    10  import (
    11  	"context"
    12  	"github.com/Azure/azure-sdk-for-go/services/preview/appinsights/mgmt/2022-01-11-preview/insights"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // OperationsClientAPI contains the set of methods on the OperationsClient type.
    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  }
    21  
    22  var _ OperationsClientAPI = (*insights.OperationsClient)(nil)
    23  
    24  // AnnotationsClientAPI contains the set of methods on the AnnotationsClient type.
    25  type AnnotationsClientAPI interface {
    26  	Create(ctx context.Context, resourceGroupName string, resourceName string, annotationProperties insights.Annotation) (result insights.ListAnnotation, err error)
    27  	Delete(ctx context.Context, resourceGroupName string, resourceName string, annotationID string) (result autorest.Response, err error)
    28  	Get(ctx context.Context, resourceGroupName string, resourceName string, annotationID string) (result insights.ListAnnotation, err error)
    29  	List(ctx context.Context, resourceGroupName string, resourceName string, start string, end string) (result insights.AnnotationsListResult, err error)
    30  }
    31  
    32  var _ AnnotationsClientAPI = (*insights.AnnotationsClient)(nil)
    33  
    34  // APIKeysClientAPI contains the set of methods on the APIKeysClient type.
    35  type APIKeysClientAPI interface {
    36  	Create(ctx context.Context, resourceGroupName string, resourceName string, APIKeyProperties insights.APIKeyRequest) (result insights.ApplicationInsightsComponentAPIKey, err error)
    37  	Delete(ctx context.Context, resourceGroupName string, resourceName string, keyID string) (result insights.ApplicationInsightsComponentAPIKey, err error)
    38  	Get(ctx context.Context, resourceGroupName string, resourceName string, keyID string) (result insights.ApplicationInsightsComponentAPIKey, err error)
    39  	List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentAPIKeyListResult, err error)
    40  }
    41  
    42  var _ APIKeysClientAPI = (*insights.APIKeysClient)(nil)
    43  
    44  // ExportConfigurationsClientAPI contains the set of methods on the ExportConfigurationsClient type.
    45  type ExportConfigurationsClientAPI interface {
    46  	Create(ctx context.Context, resourceGroupName string, resourceName string, exportProperties insights.ApplicationInsightsComponentExportRequest) (result insights.ListApplicationInsightsComponentExportConfiguration, err error)
    47  	Delete(ctx context.Context, resourceGroupName string, resourceName string, exportID string) (result insights.ApplicationInsightsComponentExportConfiguration, err error)
    48  	Get(ctx context.Context, resourceGroupName string, resourceName string, exportID string) (result insights.ApplicationInsightsComponentExportConfiguration, err error)
    49  	List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ListApplicationInsightsComponentExportConfiguration, err error)
    50  	Update(ctx context.Context, resourceGroupName string, resourceName string, exportID string, exportProperties insights.ApplicationInsightsComponentExportRequest) (result insights.ApplicationInsightsComponentExportConfiguration, err error)
    51  }
    52  
    53  var _ ExportConfigurationsClientAPI = (*insights.ExportConfigurationsClient)(nil)
    54  
    55  // ComponentCurrentBillingFeaturesClientAPI contains the set of methods on the ComponentCurrentBillingFeaturesClient type.
    56  type ComponentCurrentBillingFeaturesClientAPI interface {
    57  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentBillingFeatures, err error)
    58  	Update(ctx context.Context, resourceGroupName string, resourceName string, billingFeaturesProperties insights.ApplicationInsightsComponentBillingFeatures) (result insights.ApplicationInsightsComponentBillingFeatures, err error)
    59  }
    60  
    61  var _ ComponentCurrentBillingFeaturesClientAPI = (*insights.ComponentCurrentBillingFeaturesClient)(nil)
    62  
    63  // ComponentQuotaStatusClientAPI contains the set of methods on the ComponentQuotaStatusClient type.
    64  type ComponentQuotaStatusClientAPI interface {
    65  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentQuotaStatus, err error)
    66  }
    67  
    68  var _ ComponentQuotaStatusClientAPI = (*insights.ComponentQuotaStatusClient)(nil)
    69  
    70  // ComponentFeatureCapabilitiesClientAPI contains the set of methods on the ComponentFeatureCapabilitiesClient type.
    71  type ComponentFeatureCapabilitiesClientAPI interface {
    72  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentFeatureCapabilities, err error)
    73  }
    74  
    75  var _ ComponentFeatureCapabilitiesClientAPI = (*insights.ComponentFeatureCapabilitiesClient)(nil)
    76  
    77  // ComponentAvailableFeaturesClientAPI contains the set of methods on the ComponentAvailableFeaturesClient type.
    78  type ComponentAvailableFeaturesClientAPI interface {
    79  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponentAvailableFeatures, err error)
    80  }
    81  
    82  var _ ComponentAvailableFeaturesClientAPI = (*insights.ComponentAvailableFeaturesClient)(nil)
    83  
    84  // ProactiveDetectionConfigurationsClientAPI contains the set of methods on the ProactiveDetectionConfigurationsClient type.
    85  type ProactiveDetectionConfigurationsClientAPI interface {
    86  	Get(ctx context.Context, resourceGroupName string, resourceName string, configurationID string) (result insights.ApplicationInsightsComponentProactiveDetectionConfiguration, err error)
    87  	List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ListApplicationInsightsComponentProactiveDetectionConfiguration, err error)
    88  	Update(ctx context.Context, resourceGroupName string, resourceName string, configurationID string, proactiveDetectionProperties insights.ApplicationInsightsComponentProactiveDetectionConfiguration) (result insights.ApplicationInsightsComponentProactiveDetectionConfiguration, err error)
    89  }
    90  
    91  var _ ProactiveDetectionConfigurationsClientAPI = (*insights.ProactiveDetectionConfigurationsClient)(nil)
    92  
    93  // WorkItemConfigurationsClientAPI contains the set of methods on the WorkItemConfigurationsClient type.
    94  type WorkItemConfigurationsClientAPI interface {
    95  	Create(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigurationProperties insights.WorkItemCreateConfiguration) (result insights.WorkItemConfiguration, err error)
    96  	Delete(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string) (result autorest.Response, err error)
    97  	GetDefault(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkItemConfiguration, err error)
    98  	GetItem(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string) (result insights.WorkItemConfiguration, err error)
    99  	List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkItemConfigurationsListResult, err error)
   100  	UpdateItem(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string, workItemConfigurationProperties insights.WorkItemCreateConfiguration) (result insights.WorkItemConfiguration, err error)
   101  }
   102  
   103  var _ WorkItemConfigurationsClientAPI = (*insights.WorkItemConfigurationsClient)(nil)
   104  
   105  // FavoritesClientAPI contains the set of methods on the FavoritesClient type.
   106  type FavoritesClientAPI interface {
   107  	Add(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties insights.ApplicationInsightsComponentFavorite) (result insights.ApplicationInsightsComponentFavorite, err error)
   108  	Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error)
   109  	Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result insights.ApplicationInsightsComponentFavorite, err error)
   110  	List(ctx context.Context, resourceGroupName string, resourceName string, favoriteType insights.FavoriteType, sourceType insights.FavoriteSourceType, canFetchContent *bool, tags []string) (result insights.ListApplicationInsightsComponentFavorite, err error)
   111  	Update(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties insights.ApplicationInsightsComponentFavorite) (result insights.ApplicationInsightsComponentFavorite, err error)
   112  }
   113  
   114  var _ FavoritesClientAPI = (*insights.FavoritesClient)(nil)
   115  
   116  // WebTestLocationsClientAPI contains the set of methods on the WebTestLocationsClient type.
   117  type WebTestLocationsClientAPI interface {
   118  	List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsWebTestLocationsListResult, err error)
   119  }
   120  
   121  var _ WebTestLocationsClientAPI = (*insights.WebTestLocationsClient)(nil)
   122  
   123  // WebTestsClientAPI contains the set of methods on the WebTestsClient type.
   124  type WebTestsClientAPI interface {
   125  	CreateOrUpdate(ctx context.Context, resourceGroupName string, webTestName string, webTestDefinition insights.WebTest) (result insights.WebTest, err error)
   126  	Delete(ctx context.Context, resourceGroupName string, webTestName string) (result autorest.Response, err error)
   127  	Get(ctx context.Context, resourceGroupName string, webTestName string) (result insights.WebTest, err error)
   128  	List(ctx context.Context) (result insights.WebTestListResultPage, err error)
   129  	ListComplete(ctx context.Context) (result insights.WebTestListResultIterator, err error)
   130  	ListByComponent(ctx context.Context, componentName string, resourceGroupName string) (result insights.WebTestListResultPage, err error)
   131  	ListByComponentComplete(ctx context.Context, componentName string, resourceGroupName string) (result insights.WebTestListResultIterator, err error)
   132  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.WebTestListResultPage, err error)
   133  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.WebTestListResultIterator, err error)
   134  	UpdateTags(ctx context.Context, resourceGroupName string, webTestName string, webTestTags insights.TagsResource) (result insights.WebTest, err error)
   135  }
   136  
   137  var _ WebTestsClientAPI = (*insights.WebTestsClient)(nil)
   138  
   139  // AnalyticsItemsClientAPI contains the set of methods on the AnalyticsItemsClient type.
   140  type AnalyticsItemsClientAPI interface {
   141  	Delete(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, ID string, name string) (result autorest.Response, err error)
   142  	Get(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, ID string, name string) (result insights.ApplicationInsightsComponentAnalyticsItem, err error)
   143  	List(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, scope insights.ItemScope, typeParameter insights.ItemTypeParameter, includeContent *bool) (result insights.ListApplicationInsightsComponentAnalyticsItem, err error)
   144  	Put(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, itemProperties insights.ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (result insights.ApplicationInsightsComponentAnalyticsItem, err error)
   145  }
   146  
   147  var _ AnalyticsItemsClientAPI = (*insights.AnalyticsItemsClient)(nil)
   148  
   149  // WorkbookTemplatesClientAPI contains the set of methods on the WorkbookTemplatesClient type.
   150  type WorkbookTemplatesClientAPI interface {
   151  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookTemplateProperties insights.WorkbookTemplate) (result insights.WorkbookTemplate, err error)
   152  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
   153  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkbookTemplate, err error)
   154  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.WorkbookTemplatesListResult, err error)
   155  	Update(ctx context.Context, resourceGroupName string, resourceName string, workbookTemplateUpdateParameters *insights.WorkbookTemplateUpdateParameters) (result insights.WorkbookTemplate, err error)
   156  }
   157  
   158  var _ WorkbookTemplatesClientAPI = (*insights.WorkbookTemplatesClient)(nil)
   159  
   160  // MyWorkbooksClientAPI contains the set of methods on the MyWorkbooksClient type.
   161  type MyWorkbooksClientAPI interface {
   162  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.MyWorkbook, sourceID string) (result insights.MyWorkbook, err error)
   163  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
   164  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.MyWorkbook, err error)
   165  	ListByResourceGroup(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.MyWorkbooksListResultPage, err error)
   166  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.MyWorkbooksListResultIterator, err error)
   167  	ListBySubscription(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.MyWorkbooksListResultPage, err error)
   168  	ListBySubscriptionComplete(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.MyWorkbooksListResultIterator, err error)
   169  	Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.MyWorkbook, sourceID string) (result insights.MyWorkbook, err error)
   170  }
   171  
   172  var _ MyWorkbooksClientAPI = (*insights.MyWorkbooksClient)(nil)
   173  
   174  // WorkbooksClientAPI contains the set of methods on the WorkbooksClient type.
   175  type WorkbooksClientAPI interface {
   176  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.Workbook, sourceID string) (result insights.Workbook, err error)
   177  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
   178  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.Workbook, err error)
   179  	ListByResourceGroup(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.WorkbooksListResultPage, err error)
   180  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, sourceID string, canFetchContent *bool) (result insights.WorkbooksListResultIterator, err error)
   181  	ListBySubscription(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.WorkbooksListResultPage, err error)
   182  	ListBySubscriptionComplete(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.WorkbooksListResultIterator, err error)
   183  	RevisionGet(ctx context.Context, resourceGroupName string, resourceName string, revisionID string) (result insights.Workbook, err error)
   184  	RevisionsList(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkbooksListResultPage, err error)
   185  	RevisionsListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkbooksListResultIterator, err error)
   186  	Update(ctx context.Context, resourceGroupName string, resourceName string, sourceID string, workbookUpdateParameters *insights.WorkbookUpdateParameters) (result insights.Workbook, err error)
   187  }
   188  
   189  var _ WorkbooksClientAPI = (*insights.WorkbooksClient)(nil)
   190  
   191  // ComponentsClientAPI contains the set of methods on the ComponentsClient type.
   192  type ComponentsClientAPI interface {
   193  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, insightProperties insights.ApplicationInsightsComponent) (result insights.ApplicationInsightsComponent, err error)
   194  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
   195  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponent, err error)
   196  	GetPurgeStatus(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (result insights.ComponentPurgeStatusResponse, err error)
   197  	List(ctx context.Context) (result insights.ApplicationInsightsComponentListResultPage, err error)
   198  	ListComplete(ctx context.Context) (result insights.ApplicationInsightsComponentListResultIterator, err error)
   199  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultPage, err error)
   200  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultIterator, err error)
   201  	Purge(ctx context.Context, resourceGroupName string, resourceName string, body insights.ComponentPurgeBody) (result insights.ComponentPurgeResponse, err error)
   202  	UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, componentTags insights.TagsResource) (result insights.ApplicationInsightsComponent, err error)
   203  }
   204  
   205  var _ ComponentsClientAPI = (*insights.ComponentsClient)(nil)
   206  
   207  // ComponentLinkedStorageAccountsClientAPI contains the set of methods on the ComponentLinkedStorageAccountsClient type.
   208  type ComponentLinkedStorageAccountsClientAPI interface {
   209  	CreateAndUpdate(ctx context.Context, resourceGroupName string, resourceName string, linkedStorageAccountsProperties insights.ComponentLinkedStorageAccounts) (result insights.ComponentLinkedStorageAccounts, err error)
   210  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
   211  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ComponentLinkedStorageAccounts, err error)
   212  	Update(ctx context.Context, resourceGroupName string, resourceName string, linkedStorageAccountsProperties insights.ComponentLinkedStorageAccountsPatch) (result insights.ComponentLinkedStorageAccounts, err error)
   213  }
   214  
   215  var _ ComponentLinkedStorageAccountsClientAPI = (*insights.ComponentLinkedStorageAccountsClient)(nil)
   216  
   217  // LiveTokenClientAPI contains the set of methods on the LiveTokenClient type.
   218  type LiveTokenClientAPI interface {
   219  	Get(ctx context.Context, resourceURI string) (result insights.LiveTokenResponse, err error)
   220  }
   221  
   222  var _ LiveTokenClientAPI = (*insights.LiveTokenClient)(nil)
   223  

View as plain text