Skip to content

Commit 1d78227

Browse files
authored
Merge pull request Azure#144 from aashish1987/master
Create Policy Insights management dll for API version 2018-04-04
2 parents 05d3ed6 + 3d3c632 commit 1d78227

31 files changed

+11296
-0
lines changed

Azure.PowerShell.Common.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ResourceManager.Test", "src
3939
EndProject
4040
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Monitor", "src\Monitor\Monitor.csproj", "{F27EF17C-CE35-4F25-8B6E-013FDE8B9761}"
4141
EndProject
42+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PolicyInsights", "src\PolicyInsights\PolicyInsights.csproj", "{36D99B99-B59B-4464-9832-7C3C4A82E7F4}"
43+
EndProject
4244
Global
4345
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4446
Debug|Any CPU = Debug|Any CPU
@@ -113,6 +115,10 @@ Global
113115
{F27EF17C-CE35-4F25-8B6E-013FDE8B9761}.Debug|Any CPU.Build.0 = Debug|Any CPU
114116
{F27EF17C-CE35-4F25-8B6E-013FDE8B9761}.Release|Any CPU.ActiveCfg = Release|Any CPU
115117
{F27EF17C-CE35-4F25-8B6E-013FDE8B9761}.Release|Any CPU.Build.0 = Release|Any CPU
118+
{36D99B99-B59B-4464-9832-7C3C4A82E7F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
119+
{36D99B99-B59B-4464-9832-7C3C4A82E7F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
120+
{36D99B99-B59B-4464-9832-7C3C4A82E7F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
121+
{36D99B99-B59B-4464-9832-7C3C4A82E7F4}.Release|Any CPU.Build.0 = Release|Any CPU
116122
EndGlobalSection
117123
GlobalSection(SolutionProperties) = preSolution
118124
HideSolutionNode = FALSE
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<Import Project="$(ProjectDir)..\Dependencies.Client.targets" />
4+
5+
<PropertyGroup>
6+
<TargetFramework>netstandard2.0</TargetFramework>
7+
<AssemblyName>Microsoft.Azure.PowerShell.Clients.PolicyInsights</AssemblyName>
8+
<RootNamespace>Microsoft.Azure.Commands.Common.PolicyInsights</RootNamespace>
9+
<OutputPath>$(ProjectDir)..\..\artifacts\$(Configuration)</OutputPath>
10+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
11+
<WarningsAsErrors />
12+
</PropertyGroup>
13+
14+
<PropertyGroup>
15+
<Title>Microsoft Azure PowerShell Clients PolicyInsights</Title>
16+
<Description>Microsoft Azure PowerShell Clients PolicyInsights library. Only for use with the Azure PowerShell runtime. Not intended for general development use.</Description>
17+
<PackageTags>azure;powershell;clients;policyInsights</PackageTags>
18+
<Authors>Microsoft Corporation</Authors>
19+
<Copyright>Copyright © Microsoft Corporation</Copyright>
20+
<PackageLicenseUrl>https://aka.ms/azps-common-license</PackageLicenseUrl>
21+
<PackageProjectUrl>https://github.com/Azure/azure-powershell-common</PackageProjectUrl>
22+
<PackageOutputPath>$(ProjectDir)..\..\artifacts\Package\$(Configuration)</PackageOutputPath>
23+
</PropertyGroup>
24+
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
26+
<DelaySign>false</DelaySign>
27+
<DefineConstants>TRACE;DEBUG;NETSTANDARD</DefineConstants>
28+
</PropertyGroup>
29+
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
31+
<SignAssembly>true</SignAssembly>
32+
<DelaySign>true</DelaySign>
33+
<AssemblyOriginatorKeyFile>..\MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
34+
<DefineConstants>TRACE;RELEASE;NETSTANDARD;SIGN</DefineConstants>
35+
</PropertyGroup>
36+
37+
</Project>

src/PolicyInsights/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PolicyInsights
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.PolicyInsights_2018_04
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// Operations operations.
23+
/// </summary>
24+
public partial interface IOperations
25+
{
26+
/// <summary>
27+
/// Lists available operations.
28+
/// </summary>
29+
/// <param name='customHeaders'>
30+
/// The headers that will be added to request.
31+
/// </param>
32+
/// <param name='cancellationToken'>
33+
/// The cancellation token.
34+
/// </param>
35+
/// <exception cref="QueryFailureException">
36+
/// Thrown when the operation returned an invalid status code
37+
/// </exception>
38+
/// <exception cref="Microsoft.Rest.SerializationException">
39+
/// Thrown when unable to deserialize the response
40+
/// </exception>
41+
/// <exception cref="Microsoft.Rest.ValidationException">
42+
/// Thrown when a required parameter is null
43+
/// </exception>
44+
Task<AzureOperationResponse<OperationsListResults>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
45+
}
46+
}
Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.PolicyInsights_2018_04
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// PolicyEventsOperations operations.
23+
/// </summary>
24+
public partial interface IPolicyEventsOperations
25+
{
26+
/// <summary>
27+
/// Queries policy events for the resources under the management group.
28+
/// </summary>
29+
/// <param name='managementGroupName'>
30+
/// Management group name.
31+
/// </param>
32+
/// <param name='queryOptions'>
33+
/// Additional parameters for the operation
34+
/// </param>
35+
/// <param name='customHeaders'>
36+
/// The headers that will be added to request.
37+
/// </param>
38+
/// <param name='cancellationToken'>
39+
/// The cancellation token.
40+
/// </param>
41+
/// <exception cref="QueryFailureException">
42+
/// Thrown when the operation returned an invalid status code
43+
/// </exception>
44+
/// <exception cref="Microsoft.Rest.SerializationException">
45+
/// Thrown when unable to deserialize the response
46+
/// </exception>
47+
/// <exception cref="Microsoft.Rest.ValidationException">
48+
/// Thrown when a required parameter is null
49+
/// </exception>
50+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForManagementGroupWithHttpMessagesAsync(string managementGroupName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
51+
/// <summary>
52+
/// Queries policy events for the resources under the subscription.
53+
/// </summary>
54+
/// <param name='subscriptionId'>
55+
/// Microsoft Azure subscription ID.
56+
/// </param>
57+
/// <param name='queryOptions'>
58+
/// Additional parameters for the operation
59+
/// </param>
60+
/// <param name='customHeaders'>
61+
/// The headers that will be added to request.
62+
/// </param>
63+
/// <param name='cancellationToken'>
64+
/// The cancellation token.
65+
/// </param>
66+
/// <exception cref="QueryFailureException">
67+
/// Thrown when the operation returned an invalid status code
68+
/// </exception>
69+
/// <exception cref="Microsoft.Rest.SerializationException">
70+
/// Thrown when unable to deserialize the response
71+
/// </exception>
72+
/// <exception cref="Microsoft.Rest.ValidationException">
73+
/// Thrown when a required parameter is null
74+
/// </exception>
75+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForSubscriptionWithHttpMessagesAsync(string subscriptionId, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
76+
/// <summary>
77+
/// Queries policy events for the resources under the resource group.
78+
/// </summary>
79+
/// <param name='subscriptionId'>
80+
/// Microsoft Azure subscription ID.
81+
/// </param>
82+
/// <param name='resourceGroupName'>
83+
/// Resource group name.
84+
/// </param>
85+
/// <param name='queryOptions'>
86+
/// Additional parameters for the operation
87+
/// </param>
88+
/// <param name='customHeaders'>
89+
/// The headers that will be added to request.
90+
/// </param>
91+
/// <param name='cancellationToken'>
92+
/// The cancellation token.
93+
/// </param>
94+
/// <exception cref="QueryFailureException">
95+
/// Thrown when the operation returned an invalid status code
96+
/// </exception>
97+
/// <exception cref="Microsoft.Rest.SerializationException">
98+
/// Thrown when unable to deserialize the response
99+
/// </exception>
100+
/// <exception cref="Microsoft.Rest.ValidationException">
101+
/// Thrown when a required parameter is null
102+
/// </exception>
103+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceGroupWithHttpMessagesAsync(string subscriptionId, string resourceGroupName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
104+
/// <summary>
105+
/// Queries policy events for the resource.
106+
/// </summary>
107+
/// <param name='resourceId'>
108+
/// Resource ID.
109+
/// </param>
110+
/// <param name='queryOptions'>
111+
/// Additional parameters for the operation
112+
/// </param>
113+
/// <param name='customHeaders'>
114+
/// The headers that will be added to request.
115+
/// </param>
116+
/// <param name='cancellationToken'>
117+
/// The cancellation token.
118+
/// </param>
119+
/// <exception cref="QueryFailureException">
120+
/// Thrown when the operation returned an invalid status code
121+
/// </exception>
122+
/// <exception cref="Microsoft.Rest.SerializationException">
123+
/// Thrown when unable to deserialize the response
124+
/// </exception>
125+
/// <exception cref="Microsoft.Rest.ValidationException">
126+
/// Thrown when a required parameter is null
127+
/// </exception>
128+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceWithHttpMessagesAsync(string resourceId, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
129+
/// <summary>
130+
/// Queries policy events for the subscription level policy set
131+
/// definition.
132+
/// </summary>
133+
/// <param name='subscriptionId'>
134+
/// Microsoft Azure subscription ID.
135+
/// </param>
136+
/// <param name='policySetDefinitionName'>
137+
/// Policy set definition name.
138+
/// </param>
139+
/// <param name='queryOptions'>
140+
/// Additional parameters for the operation
141+
/// </param>
142+
/// <param name='customHeaders'>
143+
/// The headers that will be added to request.
144+
/// </param>
145+
/// <param name='cancellationToken'>
146+
/// The cancellation token.
147+
/// </param>
148+
/// <exception cref="QueryFailureException">
149+
/// Thrown when the operation returned an invalid status code
150+
/// </exception>
151+
/// <exception cref="Microsoft.Rest.SerializationException">
152+
/// Thrown when unable to deserialize the response
153+
/// </exception>
154+
/// <exception cref="Microsoft.Rest.ValidationException">
155+
/// Thrown when a required parameter is null
156+
/// </exception>
157+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForPolicySetDefinitionWithHttpMessagesAsync(string subscriptionId, string policySetDefinitionName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
158+
/// <summary>
159+
/// Queries policy events for the subscription level policy definition.
160+
/// </summary>
161+
/// <param name='subscriptionId'>
162+
/// Microsoft Azure subscription ID.
163+
/// </param>
164+
/// <param name='policyDefinitionName'>
165+
/// Policy definition name.
166+
/// </param>
167+
/// <param name='queryOptions'>
168+
/// Additional parameters for the operation
169+
/// </param>
170+
/// <param name='customHeaders'>
171+
/// The headers that will be added to request.
172+
/// </param>
173+
/// <param name='cancellationToken'>
174+
/// The cancellation token.
175+
/// </param>
176+
/// <exception cref="QueryFailureException">
177+
/// Thrown when the operation returned an invalid status code
178+
/// </exception>
179+
/// <exception cref="Microsoft.Rest.SerializationException">
180+
/// Thrown when unable to deserialize the response
181+
/// </exception>
182+
/// <exception cref="Microsoft.Rest.ValidationException">
183+
/// Thrown when a required parameter is null
184+
/// </exception>
185+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForPolicyDefinitionWithHttpMessagesAsync(string subscriptionId, string policyDefinitionName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
186+
/// <summary>
187+
/// Queries policy events for the subscription level policy assignment.
188+
/// </summary>
189+
/// <param name='subscriptionId'>
190+
/// Microsoft Azure subscription ID.
191+
/// </param>
192+
/// <param name='policyAssignmentName'>
193+
/// Policy assignment name.
194+
/// </param>
195+
/// <param name='queryOptions'>
196+
/// Additional parameters for the operation
197+
/// </param>
198+
/// <param name='customHeaders'>
199+
/// The headers that will be added to request.
200+
/// </param>
201+
/// <param name='cancellationToken'>
202+
/// The cancellation token.
203+
/// </param>
204+
/// <exception cref="QueryFailureException">
205+
/// Thrown when the operation returned an invalid status code
206+
/// </exception>
207+
/// <exception cref="Microsoft.Rest.SerializationException">
208+
/// Thrown when unable to deserialize the response
209+
/// </exception>
210+
/// <exception cref="Microsoft.Rest.ValidationException">
211+
/// Thrown when a required parameter is null
212+
/// </exception>
213+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForSubscriptionLevelPolicyAssignmentWithHttpMessagesAsync(string subscriptionId, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
214+
/// <summary>
215+
/// Queries policy events for the resource group level policy
216+
/// assignment.
217+
/// </summary>
218+
/// <param name='subscriptionId'>
219+
/// Microsoft Azure subscription ID.
220+
/// </param>
221+
/// <param name='resourceGroupName'>
222+
/// Resource group name.
223+
/// </param>
224+
/// <param name='policyAssignmentName'>
225+
/// Policy assignment name.
226+
/// </param>
227+
/// <param name='queryOptions'>
228+
/// Additional parameters for the operation
229+
/// </param>
230+
/// <param name='customHeaders'>
231+
/// The headers that will be added to request.
232+
/// </param>
233+
/// <param name='cancellationToken'>
234+
/// The cancellation token.
235+
/// </param>
236+
/// <exception cref="QueryFailureException">
237+
/// Thrown when the operation returned an invalid status code
238+
/// </exception>
239+
/// <exception cref="Microsoft.Rest.SerializationException">
240+
/// Thrown when unable to deserialize the response
241+
/// </exception>
242+
/// <exception cref="Microsoft.Rest.ValidationException">
243+
/// Thrown when a required parameter is null
244+
/// </exception>
245+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceGroupLevelPolicyAssignmentWithHttpMessagesAsync(string subscriptionId, string resourceGroupName, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
246+
/// <summary>
247+
/// Gets OData metadata XML document.
248+
/// </summary>
249+
/// <param name='scope'>
250+
/// A valid scope, i.e. management group, subscription, resource group,
251+
/// or resource ID. Scope used has no effect on metadata returned.
252+
/// </param>
253+
/// <param name='customHeaders'>
254+
/// The headers that will be added to request.
255+
/// </param>
256+
/// <param name='cancellationToken'>
257+
/// The cancellation token.
258+
/// </param>
259+
/// <exception cref="QueryFailureException">
260+
/// Thrown when the operation returned an invalid status code
261+
/// </exception>
262+
/// <exception cref="Microsoft.Rest.SerializationException">
263+
/// Thrown when unable to deserialize the response
264+
/// </exception>
265+
/// <exception cref="Microsoft.Rest.ValidationException">
266+
/// Thrown when a required parameter is null
267+
/// </exception>
268+
Task<AzureOperationResponse<string>> GetMetadataWithHttpMessagesAsync(string scope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
269+
}
270+
}

0 commit comments

Comments
 (0)