...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/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/2015-05-01/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  // ComponentsClientAPI contains the set of methods on the ComponentsClient type.
    94  type ComponentsClientAPI interface {
    95  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, insightProperties insights.ApplicationInsightsComponent) (result insights.ApplicationInsightsComponent, err error)
    96  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
    97  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsComponent, err error)
    98  	GetPurgeStatus(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (result insights.ComponentPurgeStatusResponse, err error)
    99  	List(ctx context.Context) (result insights.ApplicationInsightsComponentListResultPage, err error)
   100  	ListComplete(ctx context.Context) (result insights.ApplicationInsightsComponentListResultIterator, err error)
   101  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultPage, err error)
   102  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.ApplicationInsightsComponentListResultIterator, err error)
   103  	Purge(ctx context.Context, resourceGroupName string, resourceName string, body insights.ComponentPurgeBody) (result insights.ComponentPurgeResponse, err error)
   104  	UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, componentTags insights.TagsResource) (result insights.ApplicationInsightsComponent, err error)
   105  }
   106  
   107  var _ ComponentsClientAPI = (*insights.ComponentsClient)(nil)
   108  
   109  // WorkItemConfigurationsClientAPI contains the set of methods on the WorkItemConfigurationsClient type.
   110  type WorkItemConfigurationsClientAPI interface {
   111  	Create(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigurationProperties insights.WorkItemCreateConfiguration) (result insights.WorkItemConfiguration, err error)
   112  	Delete(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string) (result autorest.Response, err error)
   113  	GetDefault(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkItemConfiguration, err error)
   114  	GetItem(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string) (result insights.WorkItemConfiguration, err error)
   115  	List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.WorkItemConfigurationsListResult, err error)
   116  	UpdateItem(ctx context.Context, resourceGroupName string, resourceName string, workItemConfigID string, workItemConfigurationProperties insights.WorkItemCreateConfiguration) (result insights.WorkItemConfiguration, err error)
   117  }
   118  
   119  var _ WorkItemConfigurationsClientAPI = (*insights.WorkItemConfigurationsClient)(nil)
   120  
   121  // FavoritesClientAPI contains the set of methods on the FavoritesClient type.
   122  type FavoritesClientAPI interface {
   123  	Add(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties insights.ApplicationInsightsComponentFavorite) (result insights.ApplicationInsightsComponentFavorite, err error)
   124  	Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error)
   125  	Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result insights.ApplicationInsightsComponentFavorite, err error)
   126  	List(ctx context.Context, resourceGroupName string, resourceName string, favoriteType insights.FavoriteType, sourceType insights.FavoriteSourceType, canFetchContent *bool, tags []string) (result insights.ListApplicationInsightsComponentFavorite, err error)
   127  	Update(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties insights.ApplicationInsightsComponentFavorite) (result insights.ApplicationInsightsComponentFavorite, err error)
   128  }
   129  
   130  var _ FavoritesClientAPI = (*insights.FavoritesClient)(nil)
   131  
   132  // WebTestLocationsClientAPI contains the set of methods on the WebTestLocationsClient type.
   133  type WebTestLocationsClientAPI interface {
   134  	List(ctx context.Context, resourceGroupName string, resourceName string) (result insights.ApplicationInsightsWebTestLocationsListResult, err error)
   135  }
   136  
   137  var _ WebTestLocationsClientAPI = (*insights.WebTestLocationsClient)(nil)
   138  
   139  // WebTestsClientAPI contains the set of methods on the WebTestsClient type.
   140  type WebTestsClientAPI interface {
   141  	CreateOrUpdate(ctx context.Context, resourceGroupName string, webTestName string, webTestDefinition insights.WebTest) (result insights.WebTest, err error)
   142  	Delete(ctx context.Context, resourceGroupName string, webTestName string) (result autorest.Response, err error)
   143  	Get(ctx context.Context, resourceGroupName string, webTestName string) (result insights.WebTest, err error)
   144  	List(ctx context.Context) (result insights.WebTestListResultPage, err error)
   145  	ListComplete(ctx context.Context) (result insights.WebTestListResultIterator, err error)
   146  	ListByComponent(ctx context.Context, componentName string, resourceGroupName string) (result insights.WebTestListResultPage, err error)
   147  	ListByComponentComplete(ctx context.Context, componentName string, resourceGroupName string) (result insights.WebTestListResultIterator, err error)
   148  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.WebTestListResultPage, err error)
   149  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.WebTestListResultIterator, err error)
   150  	UpdateTags(ctx context.Context, resourceGroupName string, webTestName string, webTestTags insights.TagsResource) (result insights.WebTest, err error)
   151  }
   152  
   153  var _ WebTestsClientAPI = (*insights.WebTestsClient)(nil)
   154  
   155  // AnalyticsItemsClientAPI contains the set of methods on the AnalyticsItemsClient type.
   156  type AnalyticsItemsClientAPI interface {
   157  	Delete(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, ID string, name string) (result autorest.Response, err error)
   158  	Get(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, ID string, name string) (result insights.ApplicationInsightsComponentAnalyticsItem, err error)
   159  	List(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, scope insights.ItemScope, typeParameter insights.ItemTypeParameter, includeContent *bool) (result insights.ListApplicationInsightsComponentAnalyticsItem, err error)
   160  	Put(ctx context.Context, resourceGroupName string, resourceName string, scopePath insights.ItemScopePath, itemProperties insights.ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (result insights.ApplicationInsightsComponentAnalyticsItem, err error)
   161  }
   162  
   163  var _ AnalyticsItemsClientAPI = (*insights.AnalyticsItemsClient)(nil)
   164  
   165  // WorkbooksClientAPI contains the set of methods on the WorkbooksClient type.
   166  type WorkbooksClientAPI interface {
   167  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.Workbook) (result insights.Workbook, err error)
   168  	Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)
   169  	Get(ctx context.Context, resourceGroupName string, resourceName string) (result insights.Workbook, err error)
   170  	ListByResourceGroup(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.WorkbooksListResult, err error)
   171  	Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.Workbook) (result insights.Workbook, err error)
   172  }
   173  
   174  var _ WorkbooksClientAPI = (*insights.WorkbooksClient)(nil)
   175  
   176  // MyWorkbooksClientAPI contains the set of methods on the MyWorkbooksClient type.
   177  type MyWorkbooksClientAPI interface {
   178  	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.MyWorkbook) (result insights.MyWorkbook, 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.MyWorkbook, err error)
   181  	ListByResourceGroup(ctx context.Context, resourceGroupName string, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.MyWorkbooksListResult, err error)
   182  	ListBySubscription(ctx context.Context, category insights.CategoryType, tags []string, canFetchContent *bool) (result insights.MyWorkbooksListResult, err error)
   183  	Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties insights.MyWorkbook) (result insights.MyWorkbook, err error)
   184  }
   185  
   186  var _ MyWorkbooksClientAPI = (*insights.MyWorkbooksClient)(nil)
   187  

View as plain text