/
activityLogAlerts.ts
93 lines (91 loc) · 3.69 KB
/
activityLogAlerts.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ActivityLogAlertResource,
ActivityLogAlertsListBySubscriptionIdOptionalParams,
ActivityLogAlertsListByResourceGroupOptionalParams,
ActivityLogAlertsCreateOrUpdateOptionalParams,
ActivityLogAlertsCreateOrUpdateResponse,
ActivityLogAlertsGetOptionalParams,
ActivityLogAlertsGetResponse,
ActivityLogAlertsDeleteOptionalParams,
AlertRulePatchObject,
ActivityLogAlertsUpdateOptionalParams,
ActivityLogAlertsUpdateResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a ActivityLogAlerts. */
export interface ActivityLogAlerts {
/**
* Get a list of all Activity Log Alert rules in a subscription.
* @param options The options parameters.
*/
listBySubscriptionId(
options?: ActivityLogAlertsListBySubscriptionIdOptionalParams
): PagedAsyncIterableIterator<ActivityLogAlertResource>;
/**
* Get a list of all Activity Log Alert rules in a resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The options parameters.
*/
listByResourceGroup(
resourceGroupName: string,
options?: ActivityLogAlertsListByResourceGroupOptionalParams
): PagedAsyncIterableIterator<ActivityLogAlertResource>;
/**
* Create a new Activity Log Alert rule or update an existing one.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param activityLogAlertName The name of the Activity Log Alert rule.
* @param activityLogAlertRule The Activity Log Alert rule to create or use for the update.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
activityLogAlertName: string,
activityLogAlertRule: ActivityLogAlertResource,
options?: ActivityLogAlertsCreateOrUpdateOptionalParams
): Promise<ActivityLogAlertsCreateOrUpdateResponse>;
/**
* Get an Activity Log Alert rule.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param activityLogAlertName The name of the Activity Log Alert rule.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
activityLogAlertName: string,
options?: ActivityLogAlertsGetOptionalParams
): Promise<ActivityLogAlertsGetResponse>;
/**
* Delete an Activity Log Alert rule.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param activityLogAlertName The name of the Activity Log Alert rule.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
activityLogAlertName: string,
options?: ActivityLogAlertsDeleteOptionalParams
): Promise<void>;
/**
* Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the
* Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate
* operation.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param activityLogAlertName The name of the Activity Log Alert rule.
* @param activityLogAlertRulePatch Parameters supplied to the operation.
* @param options The options parameters.
*/
update(
resourceGroupName: string,
activityLogAlertName: string,
activityLogAlertRulePatch: AlertRulePatchObject,
options?: ActivityLogAlertsUpdateOptionalParams
): Promise<ActivityLogAlertsUpdateResponse>;
}