@azure/arm-monitor
Version:
A generated SDK for MonitorClient.
67 lines (64 loc) • 2.24 kB
text/typescript
/*
* 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 {
DiagnosticSettingsGetOptionalParams,
DiagnosticSettingsGetResponse,
DiagnosticSettingsResource,
DiagnosticSettingsCreateOrUpdateOptionalParams,
DiagnosticSettingsCreateOrUpdateResponse,
DiagnosticSettingsDeleteOptionalParams,
DiagnosticSettingsListOptionalParams,
DiagnosticSettingsListResponse
} from "../models";
/** Interface representing a DiagnosticSettings. */
export interface DiagnosticSettings {
/**
* Gets the active diagnostic settings for the specified resource.
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param options The options parameters.
*/
get(
resourceUri: string,
name: string,
options?: DiagnosticSettingsGetOptionalParams
): Promise<DiagnosticSettingsGetResponse>;
/**
* Creates or updates diagnostic settings for the specified resource.
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param parameters Parameters supplied to the operation.
* @param options The options parameters.
*/
createOrUpdate(
resourceUri: string,
name: string,
parameters: DiagnosticSettingsResource,
options?: DiagnosticSettingsCreateOrUpdateOptionalParams
): Promise<DiagnosticSettingsCreateOrUpdateResponse>;
/**
* Deletes existing diagnostic settings for the specified resource.
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param options The options parameters.
*/
delete(
resourceUri: string,
name: string,
options?: DiagnosticSettingsDeleteOptionalParams
): Promise<void>;
/**
* Gets the active diagnostic settings list for the specified resource.
* @param resourceUri The identifier of the resource.
* @param options The options parameters.
*/
list(
resourceUri: string,
options?: DiagnosticSettingsListOptionalParams
): Promise<DiagnosticSettingsListResponse>;
}