...

Source file src/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/insightsapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/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/appinsights/mgmt/2020-02-02/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  // WorkbooksClientAPI contains the set of methods on the WorkbooksClient type.
   150  type WorkbooksClientAPI interface {
   151  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.Workbook) (result insights.Workbook, 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.Workbook, err error)
   154  	ListByResourceGroup(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.WorkbooksListResult, err error)
   155  	Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.Workbook) (result insights.Workbook, err error)
   156  }
   157  
   158  var _ WorkbooksClientAPI = (*insights.WorkbooksClient)(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) (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, canFetchContent *bool) (result insights.MyWorkbooksListResult, err error)
   166  	ListBySubscription(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.MyWorkbooksListResult, err error)
   167  	Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.MyWorkbook) (result insights.MyWorkbook, err error)
   168  }
   169  
   170  var _ MyWorkbooksClientAPI = (*insights.MyWorkbooksClient)(nil)
   171  
   172  // ComponentsClientAPI contains the set of methods on the ComponentsClient type.
   173  type ComponentsClientAPI interface {
   174  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, insightProperties insights.ApplicationInsightsComponent) (result insights.ApplicationInsightsComponent, err error)
   175  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
   176  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponent, err error)
   177  	GetPurgeStatus(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (result insights.ComponentPurgeStatusResponse, err error)
   178  	List(ctx context.Context) (result insights.ApplicationInsightsComponentListResultPage, err error)
   179  	ListComplete(ctx context.Context) (result insights.ApplicationInsightsComponentListResultIterator, err error)
   180  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultPage, err error)
   181  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultIterator, err error)
   182  	Purge(ctx context.Context, resourceGroupName string, resourceName string, body insights.ComponentPurgeBody) (result insights.ComponentPurgeResponse, err error)
   183  	UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, componentTags insights.TagsResource) (result insights.ApplicationInsightsComponent, err error)
   184  }
   185  
   186  var _ ComponentsClientAPI = (*insights.ComponentsClient)(nil)
   187  

View as plain text