...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/diagnostics/diagnosticsapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/diagnostics/diagnosticsapi

     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 diagnosticsapi
     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/2021-05-01-preview/diagnostics"
    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 diagnostics.AutoscaleSettingResource) (result diagnostics.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 diagnostics.AutoscaleSettingResource, err error)
    21  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result diagnostics.AutoscaleSettingResourceCollectionPage, err error)
    22  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result diagnostics.AutoscaleSettingResourceCollectionIterator, err error)
    23  	ListBySubscription(ctx context.Context) (result diagnostics.AutoscaleSettingResourceCollectionPage, err error)
    24  	ListBySubscriptionComplete(ctx context.Context) (result diagnostics.AutoscaleSettingResourceCollectionIterator, err error)
    25  	Update(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource diagnostics.AutoscaleSettingResourcePatch) (result diagnostics.AutoscaleSettingResource, err error)
    26  }
    27  
    28  var _ AutoscaleSettingsClientAPI = (*diagnostics.AutoscaleSettingsClient)(nil)
    29  
    30  // PredictiveMetricClientAPI contains the set of methods on the PredictiveMetricClient type.
    31  type PredictiveMetricClientAPI interface {
    32  	Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string, timespan string, interval string, metricNamespace string, metricName string, aggregation string) (result diagnostics.PredictiveResponse, err error)
    33  }
    34  
    35  var _ PredictiveMetricClientAPI = (*diagnostics.PredictiveMetricClient)(nil)
    36  
    37  // SettingsClientAPI contains the set of methods on the SettingsClient type.
    38  type SettingsClientAPI interface {
    39  	CreateOrUpdate(ctx context.Context, resourceURI string, parameters diagnostics.SettingsResource, name string) (result diagnostics.SettingsResource, err error)
    40  	Delete(ctx context.Context, resourceURI string, name string) (result autorest.Response, err error)
    41  	Get(ctx context.Context, resourceURI string, name string) (result diagnostics.SettingsResource, err error)
    42  	List(ctx context.Context, resourceURI string) (result diagnostics.SettingsResourceCollection, err error)
    43  }
    44  
    45  var _ SettingsClientAPI = (*diagnostics.SettingsClient)(nil)
    46  
    47  // SettingsCategoryClientAPI contains the set of methods on the SettingsCategoryClient type.
    48  type SettingsCategoryClientAPI interface {
    49  	Get(ctx context.Context, resourceURI string, name string) (result diagnostics.SettingsCategoryResource, err error)
    50  	List(ctx context.Context, resourceURI string) (result diagnostics.SettingsCategoryResourceCollection, err error)
    51  }
    52  
    53  var _ SettingsCategoryClientAPI = (*diagnostics.SettingsCategoryClient)(nil)
    54  
    55  // ManagementGroupDiagnosticSettingsClientAPI contains the set of methods on the ManagementGroupDiagnosticSettingsClient type.
    56  type ManagementGroupDiagnosticSettingsClientAPI interface {
    57  	CreateOrUpdate(ctx context.Context, managementGroupID string, parameters diagnostics.ManagementGroupDiagnosticSettingsResource, name string) (result diagnostics.ManagementGroupDiagnosticSettingsResource, err error)
    58  	Delete(ctx context.Context, managementGroupID string, name string) (result autorest.Response, err error)
    59  	Get(ctx context.Context, managementGroupID string, name string) (result diagnostics.ManagementGroupDiagnosticSettingsResource, err error)
    60  	List(ctx context.Context, managementGroupID string) (result diagnostics.ManagementGroupDiagnosticSettingsResourceCollection, err error)
    61  }
    62  
    63  var _ ManagementGroupDiagnosticSettingsClientAPI = (*diagnostics.ManagementGroupDiagnosticSettingsClient)(nil)
    64  
    65  // SubscriptionDiagnosticSettingsClientAPI contains the set of methods on the SubscriptionDiagnosticSettingsClient type.
    66  type SubscriptionDiagnosticSettingsClientAPI interface {
    67  	CreateOrUpdate(ctx context.Context, parameters diagnostics.SubscriptionDiagnosticSettingsResource, name string) (result diagnostics.SubscriptionDiagnosticSettingsResource, err error)
    68  	Delete(ctx context.Context, name string) (result autorest.Response, err error)
    69  	Get(ctx context.Context, name string) (result diagnostics.SubscriptionDiagnosticSettingsResource, err error)
    70  	List(ctx context.Context) (result diagnostics.SubscriptionDiagnosticSettingsResourceCollection, err error)
    71  }
    72  
    73  var _ SubscriptionDiagnosticSettingsClientAPI = (*diagnostics.SubscriptionDiagnosticSettingsClient)(nil)
    74  
    75  // PrivateLinkScopesClientAPI contains the set of methods on the PrivateLinkScopesClient type.
    76  type PrivateLinkScopesClientAPI interface {
    77  	CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload diagnostics.AzureMonitorPrivateLinkScope) (result diagnostics.AzureMonitorPrivateLinkScope, err error)
    78  	Delete(ctx context.Context, resourceGroupName string, scopeName string) (result diagnostics.PrivateLinkScopesDeleteFuture, err error)
    79  	Get(ctx context.Context, resourceGroupName string, scopeName string) (result diagnostics.AzureMonitorPrivateLinkScope, err error)
    80  	List(ctx context.Context) (result diagnostics.AzureMonitorPrivateLinkScopeListResultPage, err error)
    81  	ListComplete(ctx context.Context) (result diagnostics.AzureMonitorPrivateLinkScopeListResultIterator, err error)
    82  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result diagnostics.AzureMonitorPrivateLinkScopeListResultPage, err error)
    83  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result diagnostics.AzureMonitorPrivateLinkScopeListResultIterator, err error)
    84  	UpdateTags(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags diagnostics.TagsResource) (result diagnostics.AzureMonitorPrivateLinkScope, err error)
    85  }
    86  
    87  var _ PrivateLinkScopesClientAPI = (*diagnostics.PrivateLinkScopesClient)(nil)
    88  
    89  // PrivateLinkScopeOperationStatusClientAPI contains the set of methods on the PrivateLinkScopeOperationStatusClient type.
    90  type PrivateLinkScopeOperationStatusClientAPI interface {
    91  	Get(ctx context.Context, asyncOperationID string, resourceGroupName string) (result diagnostics.OperationStatus, err error)
    92  }
    93  
    94  var _ PrivateLinkScopeOperationStatusClientAPI = (*diagnostics.PrivateLinkScopeOperationStatusClient)(nil)
    95  
    96  // PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type.
    97  type PrivateLinkResourcesClientAPI interface {
    98  	Get(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (result diagnostics.PrivateLinkResource, err error)
    99  	ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result diagnostics.PrivateLinkResourceListResult, err error)
   100  }
   101  
   102  var _ PrivateLinkResourcesClientAPI = (*diagnostics.PrivateLinkResourcesClient)(nil)
   103  
   104  // PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type.
   105  type PrivateEndpointConnectionsClientAPI interface {
   106  	CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters diagnostics.PrivateEndpointConnection) (result diagnostics.PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
   107  	Delete(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result diagnostics.PrivateEndpointConnectionsDeleteFuture, err error)
   108  	Get(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result diagnostics.PrivateEndpointConnection, err error)
   109  	ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result diagnostics.PrivateEndpointConnectionListResult, err error)
   110  }
   111  
   112  var _ PrivateEndpointConnectionsClientAPI = (*diagnostics.PrivateEndpointConnectionsClient)(nil)
   113  
   114  // PrivateLinkScopedResourcesClientAPI contains the set of methods on the PrivateLinkScopedResourcesClient type.
   115  type PrivateLinkScopedResourcesClientAPI interface {
   116  	CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters diagnostics.ScopedResource) (result diagnostics.PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
   117  	Delete(ctx context.Context, resourceGroupName string, scopeName string, name string) (result diagnostics.PrivateLinkScopedResourcesDeleteFuture, err error)
   118  	Get(ctx context.Context, resourceGroupName string, scopeName string, name string) (result diagnostics.ScopedResource, err error)
   119  	ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result diagnostics.ScopedResourceListResultPage, err error)
   120  	ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result diagnostics.ScopedResourceListResultIterator, err error)
   121  }
   122  
   123  var _ PrivateLinkScopedResourcesClientAPI = (*diagnostics.PrivateLinkScopedResourcesClient)(nil)
   124  
   125  // ActionGroupsClientAPI contains the set of methods on the ActionGroupsClient type.
   126  type ActionGroupsClientAPI interface {
   127  	CreateNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationRequest diagnostics.NotificationRequestBody) (result diagnostics.ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, err error)
   128  	CreateNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationRequest diagnostics.NotificationRequestBody) (result diagnostics.ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
   129  	CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup diagnostics.ActionGroupResource) (result diagnostics.ActionGroupResource, err error)
   130  	Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error)
   131  	EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest diagnostics.EnableRequest) (result autorest.Response, err error)
   132  	Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result diagnostics.ActionGroupResource, err error)
   133  	GetTestNotifications(ctx context.Context, notificationID string) (result diagnostics.TestNotificationDetailsResponse, err error)
   134  	GetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationID string) (result diagnostics.TestNotificationDetailsResponse, err error)
   135  	GetTestNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationID string) (result diagnostics.TestNotificationDetailsResponse, err error)
   136  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result diagnostics.ActionGroupList, err error)
   137  	ListBySubscriptionID(ctx context.Context) (result diagnostics.ActionGroupList, err error)
   138  	PostTestNotifications(ctx context.Context, notificationRequest diagnostics.NotificationRequestBody) (result diagnostics.ActionGroupsPostTestNotificationsFuture, err error)
   139  	Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch diagnostics.ActionGroupPatchBody) (result diagnostics.ActionGroupResource, err error)
   140  }
   141  
   142  var _ ActionGroupsClientAPI = (*diagnostics.ActionGroupsClient)(nil)
   143  

View as plain text