/
policyRestrictions.ts
54 lines (52 loc) · 2.3 KB
/
policyRestrictions.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
/*
* 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 {
CheckRestrictionsRequest,
PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams,
PolicyRestrictionsCheckAtSubscriptionScopeResponse,
PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams,
PolicyRestrictionsCheckAtResourceGroupScopeResponse,
CheckManagementGroupRestrictionsRequest,
PolicyRestrictionsCheckAtManagementGroupScopeOptionalParams,
PolicyRestrictionsCheckAtManagementGroupScopeResponse
} from "../models";
/** Interface representing a PolicyRestrictions. */
export interface PolicyRestrictions {
/**
* Checks what restrictions Azure Policy will place on a resource within a subscription.
* @param parameters The check policy restrictions parameters.
* @param options The options parameters.
*/
checkAtSubscriptionScope(
parameters: CheckRestrictionsRequest,
options?: PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams
): Promise<PolicyRestrictionsCheckAtSubscriptionScopeResponse>;
/**
* Checks what restrictions Azure Policy will place on a resource within a resource group. Use this
* when the resource group the resource will be created in is already known.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param parameters The check policy restrictions parameters.
* @param options The options parameters.
*/
checkAtResourceGroupScope(
resourceGroupName: string,
parameters: CheckRestrictionsRequest,
options?: PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams
): Promise<PolicyRestrictionsCheckAtResourceGroupScopeResponse>;
/**
* Checks what restrictions Azure Policy will place on resources within a management group.
* @param managementGroupId Management group ID.
* @param parameters The check policy restrictions parameters.
* @param options The options parameters.
*/
checkAtManagementGroupScope(
managementGroupId: string,
parameters: CheckManagementGroupRestrictionsRequest,
options?: PolicyRestrictionsCheckAtManagementGroupScopeOptionalParams
): Promise<PolicyRestrictionsCheckAtManagementGroupScopeResponse>;
}