import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RedisCacheAccessPolicy, AccessPolicyListOptionalParams, AccessPolicyCreateUpdateOptionalParams, AccessPolicyCreateUpdateResponse, AccessPolicyDeleteOptionalParams, AccessPolicyGetOptionalParams, AccessPolicyGetResponse } from "../models/index.js"; /** Interface representing a AccessPolicy. */ export interface AccessPolicy { /** * Gets the list of access policies associated with this redis cache * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cacheName The name of the Redis cache. * @param options The options parameters. */ list(resourceGroupName: string, cacheName: string, options?: AccessPolicyListOptionalParams): PagedAsyncIterableIterator; /** * Adds an access policy to the redis cache * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cacheName The name of the Redis cache. * @param accessPolicyName The name of the access policy that is being added to the Redis cache. * @param parameters Parameters supplied to the Create Update Access Policy operation. * @param options The options parameters. */ beginCreateUpdate(resourceGroupName: string, cacheName: string, accessPolicyName: string, parameters: RedisCacheAccessPolicy, options?: AccessPolicyCreateUpdateOptionalParams): Promise, AccessPolicyCreateUpdateResponse>>; /** * Adds an access policy to the redis cache * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cacheName The name of the Redis cache. * @param accessPolicyName The name of the access policy that is being added to the Redis cache. * @param parameters Parameters supplied to the Create Update Access Policy operation. * @param options The options parameters. */ beginCreateUpdateAndWait(resourceGroupName: string, cacheName: string, accessPolicyName: string, parameters: RedisCacheAccessPolicy, options?: AccessPolicyCreateUpdateOptionalParams): Promise; /** * Deletes the access policy from a redis cache * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cacheName The name of the Redis cache. * @param accessPolicyName The name of the access policy that is being added to the Redis cache. * @param options The options parameters. */ beginDelete(resourceGroupName: string, cacheName: string, accessPolicyName: string, options?: AccessPolicyDeleteOptionalParams): Promise, void>>; /** * Deletes the access policy from a redis cache * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cacheName The name of the Redis cache. * @param accessPolicyName The name of the access policy that is being added to the Redis cache. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, cacheName: string, accessPolicyName: string, options?: AccessPolicyDeleteOptionalParams): Promise; /** * Gets the detailed information about an access policy of a redis cache * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cacheName The name of the Redis cache. * @param accessPolicyName The name of the access policy that is being added to the Redis cache. * @param options The options parameters. */ get(resourceGroupName: string, cacheName: string, accessPolicyName: string, options?: AccessPolicyGetOptionalParams): Promise; } //# sourceMappingURL=accessPolicy.d.ts.map