...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2022-06-01-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/monitor/armmonitor](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor). 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/monitor/mgmt/2022-06-01-preview/insights"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // AutoscaleSettingsClientAPI contains the set of methods on the AutoscaleSettingsClient type.
    17  type AutoscaleSettingsClientAPI interface {
    18  	CreateOrUpdate(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters insights.AutoscaleSettingResource) (result insights.AutoscaleSettingResource, err error)
    19  	Delete(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result autorest.Response, err error)
    20  	Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result insights.AutoscaleSettingResource, err error)
    21  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AutoscaleSettingResourceCollectionPage, err error)
    22  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AutoscaleSettingResourceCollectionIterator, err error)
    23  	ListBySubscription(ctx context.Context) (result insights.AutoscaleSettingResourceCollectionPage, err error)
    24  	ListBySubscriptionComplete(ctx context.Context) (result insights.AutoscaleSettingResourceCollectionIterator, err error)
    25  	Update(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource insights.AutoscaleSettingResourcePatch) (result insights.AutoscaleSettingResource, err error)
    26  }
    27  
    28  var _ AutoscaleSettingsClientAPI = (*insights.AutoscaleSettingsClient)(nil)
    29  
    30  // OperationsClientAPI contains the set of methods on the OperationsClient type.
    31  type OperationsClientAPI interface {
    32  	List(ctx context.Context) (result insights.OperationListResult, err error)
    33  }
    34  
    35  var _ OperationsClientAPI = (*insights.OperationsClient)(nil)
    36  
    37  // AlertRuleIncidentsClientAPI contains the set of methods on the AlertRuleIncidentsClient type.
    38  type AlertRuleIncidentsClientAPI interface {
    39  	Get(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (result insights.Incident, err error)
    40  	ListByAlertRule(ctx context.Context, resourceGroupName string, ruleName string) (result insights.IncidentListResult, err error)
    41  }
    42  
    43  var _ AlertRuleIncidentsClientAPI = (*insights.AlertRuleIncidentsClient)(nil)
    44  
    45  // AlertRulesClientAPI contains the set of methods on the AlertRulesClient type.
    46  type AlertRulesClientAPI interface {
    47  	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.AlertRuleResource) (result insights.AlertRuleResource, err error)
    48  	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
    49  	Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.AlertRuleResource, err error)
    50  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AlertRuleResourceCollection, err error)
    51  	ListBySubscription(ctx context.Context) (result insights.AlertRuleResourceCollection, err error)
    52  	Update(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource insights.AlertRuleResourcePatch) (result insights.AlertRuleResource, err error)
    53  }
    54  
    55  var _ AlertRulesClientAPI = (*insights.AlertRulesClient)(nil)
    56  
    57  // LogProfilesClientAPI contains the set of methods on the LogProfilesClient type.
    58  type LogProfilesClientAPI interface {
    59  	CreateOrUpdate(ctx context.Context, logProfileName string, parameters insights.LogProfileResource) (result insights.LogProfileResource, err error)
    60  	Delete(ctx context.Context, logProfileName string) (result autorest.Response, err error)
    61  	Get(ctx context.Context, logProfileName string) (result insights.LogProfileResource, err error)
    62  	List(ctx context.Context) (result insights.LogProfileCollection, err error)
    63  	Update(ctx context.Context, logProfileName string, logProfilesResource insights.LogProfileResourcePatch) (result insights.LogProfileResource, err error)
    64  }
    65  
    66  var _ LogProfilesClientAPI = (*insights.LogProfilesClient)(nil)
    67  
    68  // DiagnosticSettingsClientAPI contains the set of methods on the DiagnosticSettingsClient type.
    69  type DiagnosticSettingsClientAPI interface {
    70  	CreateOrUpdate(ctx context.Context, resourceURI string, parameters insights.DiagnosticSettingsResource, name string) (result insights.DiagnosticSettingsResource, err error)
    71  	Delete(ctx context.Context, resourceURI string, name string) (result autorest.Response, err error)
    72  	Get(ctx context.Context, resourceURI string, name string) (result insights.DiagnosticSettingsResource, err error)
    73  	List(ctx context.Context, resourceURI string) (result insights.DiagnosticSettingsResourceCollection, err error)
    74  }
    75  
    76  var _ DiagnosticSettingsClientAPI = (*insights.DiagnosticSettingsClient)(nil)
    77  
    78  // DiagnosticSettingsCategoryClientAPI contains the set of methods on the DiagnosticSettingsCategoryClient type.
    79  type DiagnosticSettingsCategoryClientAPI interface {
    80  	Get(ctx context.Context, resourceURI string, name string) (result insights.DiagnosticSettingsCategoryResource, err error)
    81  	List(ctx context.Context, resourceURI string) (result insights.DiagnosticSettingsCategoryResourceCollection, err error)
    82  }
    83  
    84  var _ DiagnosticSettingsCategoryClientAPI = (*insights.DiagnosticSettingsCategoryClient)(nil)
    85  
    86  // ActionGroupsClientAPI contains the set of methods on the ActionGroupsClient type.
    87  type ActionGroupsClientAPI interface {
    88  	CreateNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, err error)
    89  	CreateNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
    90  	CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup insights.ActionGroupResource) (result insights.ActionGroupResource, err error)
    91  	Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error)
    92  	EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest insights.EnableRequest) (result autorest.Response, err error)
    93  	Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result insights.ActionGroupResource, err error)
    94  	GetTestNotifications(ctx context.Context, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
    95  	GetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
    96  	GetTestNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
    97  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ActionGroupList, err error)
    98  	ListBySubscriptionID(ctx context.Context) (result insights.ActionGroupList, err error)
    99  	PostTestNotifications(ctx context.Context, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsPostTestNotificationsFuture, err error)
   100  	Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch insights.ActionGroupPatchBody) (result insights.ActionGroupResource, err error)
   101  }
   102  
   103  var _ ActionGroupsClientAPI = (*insights.ActionGroupsClient)(nil)
   104  
   105  // ActivityLogsClientAPI contains the set of methods on the ActivityLogsClient type.
   106  type ActivityLogsClientAPI interface {
   107  	List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
   108  	ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
   109  }
   110  
   111  var _ ActivityLogsClientAPI = (*insights.ActivityLogsClient)(nil)
   112  
   113  // EventCategoriesClientAPI contains the set of methods on the EventCategoriesClient type.
   114  type EventCategoriesClientAPI interface {
   115  	List(ctx context.Context) (result insights.EventCategoryCollection, err error)
   116  }
   117  
   118  var _ EventCategoriesClientAPI = (*insights.EventCategoriesClient)(nil)
   119  
   120  // TenantActivityLogsClientAPI contains the set of methods on the TenantActivityLogsClient type.
   121  type TenantActivityLogsClientAPI interface {
   122  	List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
   123  	ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
   124  }
   125  
   126  var _ TenantActivityLogsClientAPI = (*insights.TenantActivityLogsClient)(nil)
   127  
   128  // MetricDefinitionsClientAPI contains the set of methods on the MetricDefinitionsClient type.
   129  type MetricDefinitionsClientAPI interface {
   130  	List(ctx context.Context, resourceURI string, metricnamespace string) (result insights.MetricDefinitionCollection, err error)
   131  }
   132  
   133  var _ MetricDefinitionsClientAPI = (*insights.MetricDefinitionsClient)(nil)
   134  
   135  // MetricsClientAPI contains the set of methods on the MetricsClient type.
   136  type MetricsClientAPI interface {
   137  	List(ctx context.Context, resourceURI string, timespan string, interval *string, metricnames string, aggregation string, top *int32, orderby string, filter string, resultType insights.ResultType, metricnamespace string) (result insights.Response, err error)
   138  }
   139  
   140  var _ MetricsClientAPI = (*insights.MetricsClient)(nil)
   141  
   142  // BaselinesClientAPI contains the set of methods on the BaselinesClient type.
   143  type BaselinesClientAPI interface {
   144  	List(ctx context.Context, resourceURI string, metricnames string, metricnamespace string, timespan string, interval *string, aggregation string, sensitivities string, filter string, resultType insights.ResultType) (result insights.MetricBaselinesResponse, err error)
   145  }
   146  
   147  var _ BaselinesClientAPI = (*insights.BaselinesClient)(nil)
   148  
   149  // MetricAlertsClientAPI contains the set of methods on the MetricAlertsClient type.
   150  type MetricAlertsClientAPI interface {
   151  	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResource) (result insights.MetricAlertResource, err error)
   152  	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
   153  	Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertResource, err error)
   154  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.MetricAlertResourceCollection, err error)
   155  	ListBySubscription(ctx context.Context) (result insights.MetricAlertResourceCollection, err error)
   156  	Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResourcePatch) (result insights.MetricAlertResource, err error)
   157  }
   158  
   159  var _ MetricAlertsClientAPI = (*insights.MetricAlertsClient)(nil)
   160  
   161  // MetricAlertsStatusClientAPI contains the set of methods on the MetricAlertsStatusClient type.
   162  type MetricAlertsStatusClientAPI interface {
   163  	List(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertStatusCollection, err error)
   164  	ListByName(ctx context.Context, resourceGroupName string, ruleName string, statusName string) (result insights.MetricAlertStatusCollection, err error)
   165  }
   166  
   167  var _ MetricAlertsStatusClientAPI = (*insights.MetricAlertsStatusClient)(nil)
   168  
   169  // ScheduledQueryRulesClientAPI contains the set of methods on the ScheduledQueryRulesClient type.
   170  type ScheduledQueryRulesClientAPI interface {
   171  	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.ScheduledQueryRuleResource) (result insights.ScheduledQueryRuleResource, err error)
   172  	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
   173  	Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.ScheduledQueryRuleResource, err error)
   174  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ScheduledQueryRuleResourceCollectionPage, err error)
   175  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.ScheduledQueryRuleResourceCollectionIterator, err error)
   176  	ListBySubscription(ctx context.Context) (result insights.ScheduledQueryRuleResourceCollectionPage, err error)
   177  	ListBySubscriptionComplete(ctx context.Context) (result insights.ScheduledQueryRuleResourceCollectionIterator, err error)
   178  	Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.ScheduledQueryRuleResourcePatch) (result insights.ScheduledQueryRuleResource, err error)
   179  }
   180  
   181  var _ ScheduledQueryRulesClientAPI = (*insights.ScheduledQueryRulesClient)(nil)
   182  
   183  // MetricNamespacesClientAPI contains the set of methods on the MetricNamespacesClient type.
   184  type MetricNamespacesClientAPI interface {
   185  	List(ctx context.Context, resourceURI string, startTime string) (result insights.MetricNamespaceCollection, err error)
   186  }
   187  
   188  var _ MetricNamespacesClientAPI = (*insights.MetricNamespacesClient)(nil)
   189  
   190  // VMInsightsClientAPI contains the set of methods on the VMInsightsClient type.
   191  type VMInsightsClientAPI interface {
   192  	GetOnboardingStatus(ctx context.Context, resourceURI string) (result insights.VMInsightsOnboardingStatus, err error)
   193  }
   194  
   195  var _ VMInsightsClientAPI = (*insights.VMInsightsClient)(nil)
   196  
   197  // PrivateLinkScopesClientAPI contains the set of methods on the PrivateLinkScopesClient type.
   198  type PrivateLinkScopesClientAPI interface {
   199  	CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload insights.AzureMonitorPrivateLinkScope) (result insights.AzureMonitorPrivateLinkScope, err error)
   200  	Delete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkScopesDeleteFuture, err error)
   201  	Get(ctx context.Context, resourceGroupName string, scopeName string) (result insights.AzureMonitorPrivateLinkScope, err error)
   202  	List(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
   203  	ListComplete(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
   204  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
   205  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
   206  	UpdateTags(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags insights.TagsResource) (result insights.AzureMonitorPrivateLinkScope, err error)
   207  }
   208  
   209  var _ PrivateLinkScopesClientAPI = (*insights.PrivateLinkScopesClient)(nil)
   210  
   211  // PrivateLinkScopeOperationStatusClientAPI contains the set of methods on the PrivateLinkScopeOperationStatusClient type.
   212  type PrivateLinkScopeOperationStatusClientAPI interface {
   213  	Get(ctx context.Context, asyncOperationID string, resourceGroupName string) (result insights.OperationStatus, err error)
   214  }
   215  
   216  var _ PrivateLinkScopeOperationStatusClientAPI = (*insights.PrivateLinkScopeOperationStatusClient)(nil)
   217  
   218  // PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type.
   219  type PrivateLinkResourcesClientAPI interface {
   220  	Get(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (result insights.PrivateLinkResource, err error)
   221  	ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultPage, err error)
   222  	ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultIterator, err error)
   223  }
   224  
   225  var _ PrivateLinkResourcesClientAPI = (*insights.PrivateLinkResourcesClient)(nil)
   226  
   227  // PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type.
   228  type PrivateEndpointConnectionsClientAPI interface {
   229  	CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters insights.PrivateEndpointConnection) (result insights.PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
   230  	Delete(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnectionsDeleteFuture, err error)
   231  	Get(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnection, err error)
   232  	ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultPage, err error)
   233  	ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultIterator, err error)
   234  }
   235  
   236  var _ PrivateEndpointConnectionsClientAPI = (*insights.PrivateEndpointConnectionsClient)(nil)
   237  
   238  // PrivateLinkScopedResourcesClientAPI contains the set of methods on the PrivateLinkScopedResourcesClient type.
   239  type PrivateLinkScopedResourcesClientAPI interface {
   240  	CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters insights.ScopedResource) (result insights.PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
   241  	Delete(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.PrivateLinkScopedResourcesDeleteFuture, err error)
   242  	Get(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.ScopedResource, err error)
   243  	ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultPage, err error)
   244  	ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultIterator, err error)
   245  }
   246  
   247  var _ PrivateLinkScopedResourcesClientAPI = (*insights.PrivateLinkScopedResourcesClient)(nil)
   248  
   249  // ActivityLogAlertsClientAPI contains the set of methods on the ActivityLogAlertsClient type.
   250  type ActivityLogAlertsClientAPI interface {
   251  	CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRule insights.ActivityLogAlertResource) (result insights.ActivityLogAlertResource, err error)
   252  	Delete(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error)
   253  	Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result insights.ActivityLogAlertResource, err error)
   254  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListPage, err error)
   255  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListIterator, err error)
   256  	ListBySubscriptionID(ctx context.Context) (result insights.AlertRuleListPage, err error)
   257  	ListBySubscriptionIDComplete(ctx context.Context) (result insights.AlertRuleListIterator, err error)
   258  	Update(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRulePatch insights.AlertRulePatchObject) (result insights.ActivityLogAlertResource, err error)
   259  }
   260  
   261  var _ ActivityLogAlertsClientAPI = (*insights.ActivityLogAlertsClient)(nil)
   262  
   263  // DataCollectionEndpointsClientAPI contains the set of methods on the DataCollectionEndpointsClient type.
   264  type DataCollectionEndpointsClientAPI interface {
   265  	Create(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.DataCollectionEndpointResource) (result insights.DataCollectionEndpointResource, err error)
   266  	Delete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result autorest.Response, err error)
   267  	Get(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionEndpointResource, err error)
   268  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultPage, err error)
   269  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
   270  	ListBySubscription(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultPage, err error)
   271  	ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
   272  	Update(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.ResourceForUpdate) (result insights.DataCollectionEndpointResource, err error)
   273  }
   274  
   275  var _ DataCollectionEndpointsClientAPI = (*insights.DataCollectionEndpointsClient)(nil)
   276  
   277  // DataCollectionRuleAssociationsClientAPI contains the set of methods on the DataCollectionRuleAssociationsClient type.
   278  type DataCollectionRuleAssociationsClientAPI interface {
   279  	Create(ctx context.Context, resourceURI string, associationName string, body *insights.DataCollectionRuleAssociationProxyOnlyResource) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
   280  	Delete(ctx context.Context, resourceURI string, associationName string) (result autorest.Response, err error)
   281  	Get(ctx context.Context, resourceURI string, associationName string) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
   282  	ListByDataCollectionEndpoint(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
   283  	ListByDataCollectionEndpointComplete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
   284  	ListByResource(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
   285  	ListByResourceComplete(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
   286  	ListByRule(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
   287  	ListByRuleComplete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
   288  }
   289  
   290  var _ DataCollectionRuleAssociationsClientAPI = (*insights.DataCollectionRuleAssociationsClient)(nil)
   291  
   292  // DataCollectionRulesClientAPI contains the set of methods on the DataCollectionRulesClient type.
   293  type DataCollectionRulesClientAPI interface {
   294  	Create(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.DataCollectionRuleResource) (result insights.DataCollectionRuleResource, err error)
   295  	Delete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result autorest.Response, err error)
   296  	Get(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleResource, err error)
   297  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultPage, err error)
   298  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultIterator, err error)
   299  	ListBySubscription(ctx context.Context) (result insights.DataCollectionRuleResourceListResultPage, err error)
   300  	ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionRuleResourceListResultIterator, err error)
   301  	Update(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.ResourceForUpdate) (result insights.DataCollectionRuleResource, err error)
   302  }
   303  
   304  var _ DataCollectionRulesClientAPI = (*insights.DataCollectionRulesClient)(nil)
   305  

View as plain text