UNPKG

@azure/arm-monitor

Version:
98 lines 6.19 kB
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ActionGroups } from "../operationsInterfaces"; import { MonitorClient } from "../monitorClient"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { ActionGroupResource, ActionGroupsListBySubscriptionIdOptionalParams, ActionGroupsListByResourceGroupOptionalParams, ActionGroupsCreateOrUpdateOptionalParams, ActionGroupsCreateOrUpdateResponse, ActionGroupsGetOptionalParams, ActionGroupsGetResponse, ActionGroupsDeleteOptionalParams, ActionGroupPatchBody, ActionGroupsUpdateOptionalParams, ActionGroupsUpdateResponse, NotificationRequestBody, ActionGroupsPostTestNotificationsOptionalParams, ActionGroupsPostTestNotificationsResponse, ActionGroupsGetTestNotificationsOptionalParams, ActionGroupsGetTestNotificationsResponse, EnableRequest, ActionGroupsEnableReceiverOptionalParams } from "../models"; /** Class containing ActionGroups operations. */ export declare class ActionGroupsImpl implements ActionGroups { private readonly client; /** * Initialize a new instance of the class ActionGroups class. * @param client Reference to the service client */ constructor(client: MonitorClient); /** * Get a list of all action groups in a subscription. * @param options The options parameters. */ listBySubscriptionId(options?: ActionGroupsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<ActionGroupResource>; private listBySubscriptionIdPagingPage; private listBySubscriptionIdPagingAll; /** * Get a list of all action groups 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?: ActionGroupsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ActionGroupResource>; private listByResourceGroupPagingPage; private listByResourceGroupPagingAll; /** * Create a new action group or update an existing one. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroup The action group to create or use for the update. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, actionGroupName: string, actionGroup: ActionGroupResource, options?: ActionGroupsCreateOrUpdateOptionalParams): Promise<ActionGroupsCreateOrUpdateResponse>; /** * Get an action group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param options The options parameters. */ get(resourceGroupName: string, actionGroupName: string, options?: ActionGroupsGetOptionalParams): Promise<ActionGroupsGetResponse>; /** * Delete an action group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param options The options parameters. */ delete(resourceGroupName: string, actionGroupName: string, options?: ActionGroupsDeleteOptionalParams): Promise<void>; /** * Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroupPatch Parameters supplied to the operation. * @param options The options parameters. */ update(resourceGroupName: string, actionGroupName: string, actionGroupPatch: ActionGroupPatchBody, options?: ActionGroupsUpdateOptionalParams): Promise<ActionGroupsUpdateResponse>; /** * Send test notifications to a set of provided receivers * @param notificationRequest The notification request body which includes the contact details * @param options The options parameters. */ beginPostTestNotifications(notificationRequest: NotificationRequestBody, options?: ActionGroupsPostTestNotificationsOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsPostTestNotificationsResponse>, ActionGroupsPostTestNotificationsResponse>>; /** * Send test notifications to a set of provided receivers * @param notificationRequest The notification request body which includes the contact details * @param options The options parameters. */ beginPostTestNotificationsAndWait(notificationRequest: NotificationRequestBody, options?: ActionGroupsPostTestNotificationsOptionalParams): Promise<ActionGroupsPostTestNotificationsResponse>; /** * Get the test notifications by the notification id * @param notificationId The notification id * @param options The options parameters. */ getTestNotifications(notificationId: string, options?: ActionGroupsGetTestNotificationsOptionalParams): Promise<ActionGroupsGetTestNotificationsResponse>; /** * Get a list of all action groups in a subscription. * @param options The options parameters. */ private _listBySubscriptionId; /** * Get a list of all action groups in a resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup; /** * Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. * This operation is only supported for Email or SMS receivers. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param enableRequest The receiver to re-enable. * @param options The options parameters. */ enableReceiver(resourceGroupName: string, actionGroupName: string, enableRequest: EnableRequest, options?: ActionGroupsEnableReceiverOptionalParams): Promise<void>; } //# sourceMappingURL=actionGroups.d.ts.map