/*
* 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 { SimplePollerLike, OperationState } from "@azure/core-lro";
import {
ServerTrustGroup,
ServerTrustGroupsListByLocationOptionalParams,
ServerTrustGroupsListByInstanceOptionalParams,
ServerTrustGroupsGetOptionalParams,
ServerTrustGroupsGetResponse,
ServerTrustGroupsCreateOrUpdateOptionalParams,
ServerTrustGroupsCreateOrUpdateResponse,
ServerTrustGroupsDeleteOptionalParams
} from "../models";
///
/** Interface representing a ServerTrustGroups. */
export interface ServerTrustGroups {
/**
* Lists a server trust group.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
* this value from the Azure Resource Manager API or the portal.
* @param locationName The name of the region where the resource is located.
* @param options The options parameters.
*/
listByLocation(
resourceGroupName: string,
locationName: string,
options?: ServerTrustGroupsListByLocationOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a server trust groups by instance name.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
* this value from the Azure Resource Manager API or the portal.
* @param managedInstanceName The name of the managed instance.
* @param options The options parameters.
*/
listByInstance(
resourceGroupName: string,
managedInstanceName: string,
options?: ServerTrustGroupsListByInstanceOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a server trust group.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
* this value from the Azure Resource Manager API or the portal.
* @param locationName The name of the region where the resource is located.
* @param serverTrustGroupName The name of the server trust group.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
locationName: string,
serverTrustGroupName: string,
options?: ServerTrustGroupsGetOptionalParams
): Promise;
/**
* Creates or updates a server trust group.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
* this value from the Azure Resource Manager API or the portal.
* @param locationName The name of the region where the resource is located.
* @param serverTrustGroupName The name of the server trust group.
* @param parameters The server trust group parameters.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
locationName: string,
serverTrustGroupName: string,
parameters: ServerTrustGroup,
options?: ServerTrustGroupsCreateOrUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ServerTrustGroupsCreateOrUpdateResponse
>
>;
/**
* Creates or updates a server trust group.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
* this value from the Azure Resource Manager API or the portal.
* @param locationName The name of the region where the resource is located.
* @param serverTrustGroupName The name of the server trust group.
* @param parameters The server trust group parameters.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
locationName: string,
serverTrustGroupName: string,
parameters: ServerTrustGroup,
options?: ServerTrustGroupsCreateOrUpdateOptionalParams
): Promise;
/**
* Deletes a server trust group.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
* this value from the Azure Resource Manager API or the portal.
* @param locationName The name of the region where the resource is located.
* @param serverTrustGroupName The name of the server trust group.
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
locationName: string,
serverTrustGroupName: string,
options?: ServerTrustGroupsDeleteOptionalParams
): Promise, void>>;
/**
* Deletes a server trust group.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
* this value from the Azure Resource Manager API or the portal.
* @param locationName The name of the region where the resource is located.
* @param serverTrustGroupName The name of the server trust group.
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
locationName: string,
serverTrustGroupName: string,
options?: ServerTrustGroupsDeleteOptionalParams
): Promise;
}