Skip to content

Commit 3d3c632

Browse files
author
Aashish Rajaram Salokhe
committed
Updated the PolicyInsights client .netSDK
1 parent 0542431 commit 3d3c632

32 files changed

+1364
-644
lines changed

src/PolicyInsights/Version_2018_04_04/IOperations.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
// <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+
//
26
// Code generated by Microsoft (R) AutoRest Code Generator.
37
// Changes may cause incorrect behavior and will be lost if the code is
48
// regenerated.
59
// </auto-generated>
610

7-
namespace Microsoft.Azure.Management.PolicyInsights_2018_04_04
11+
namespace Microsoft.Azure.Management.PolicyInsights_2018_04
812
{
913
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
1015
using Models;
1116
using System.Collections;
1217
using System.Collections.Generic;
@@ -36,6 +41,6 @@ public partial interface IOperations
3641
/// <exception cref="Microsoft.Rest.ValidationException">
3742
/// Thrown when a required parameter is null
3843
/// </exception>
39-
Task<HttpOperationResponse<OperationsListResults>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
44+
Task<AzureOperationResponse<OperationsListResults>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
4045
}
4146
}

src/PolicyInsights/Version_2018_04_04/IPolicyEventsClient.cs

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/PolicyInsights/Version_2018_04_04/IPolicyEvents.cs renamed to src/PolicyInsights/Version_2018_04_04/IPolicyEventsOperations.cs

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
// <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+
//
26
// Code generated by Microsoft (R) AutoRest Code Generator.
37
// Changes may cause incorrect behavior and will be lost if the code is
48
// regenerated.
59
// </auto-generated>
610

7-
namespace Microsoft.Azure.Management.PolicyInsights_2018_04_04
11+
namespace Microsoft.Azure.Management.PolicyInsights_2018_04
812
{
913
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
1015
using Models;
1116
using System.Collections;
1217
using System.Collections.Generic;
1318
using System.Threading;
1419
using System.Threading.Tasks;
1520

1621
/// <summary>
17-
/// PolicyEvents operations.
22+
/// PolicyEventsOperations operations.
1823
/// </summary>
19-
public partial interface IPolicyEvents
24+
public partial interface IPolicyEventsOperations
2025
{
2126
/// <summary>
2227
/// Queries policy events for the resources under the management group.
@@ -42,7 +47,7 @@ public partial interface IPolicyEvents
4247
/// <exception cref="Microsoft.Rest.ValidationException">
4348
/// Thrown when a required parameter is null
4449
/// </exception>
45-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForManagementGroupWithHttpMessagesAsync(string managementGroupName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
50+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForManagementGroupWithHttpMessagesAsync(string managementGroupName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
4651
/// <summary>
4752
/// Queries policy events for the resources under the subscription.
4853
/// </summary>
@@ -67,7 +72,7 @@ public partial interface IPolicyEvents
6772
/// <exception cref="Microsoft.Rest.ValidationException">
6873
/// Thrown when a required parameter is null
6974
/// </exception>
70-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForSubscriptionWithHttpMessagesAsync(string subscriptionId, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
75+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForSubscriptionWithHttpMessagesAsync(string subscriptionId, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
7176
/// <summary>
7277
/// Queries policy events for the resources under the resource group.
7378
/// </summary>
@@ -95,7 +100,7 @@ public partial interface IPolicyEvents
95100
/// <exception cref="Microsoft.Rest.ValidationException">
96101
/// Thrown when a required parameter is null
97102
/// </exception>
98-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceGroupWithHttpMessagesAsync(string subscriptionId, string resourceGroupName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
103+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceGroupWithHttpMessagesAsync(string subscriptionId, string resourceGroupName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
99104
/// <summary>
100105
/// Queries policy events for the resource.
101106
/// </summary>
@@ -120,7 +125,7 @@ public partial interface IPolicyEvents
120125
/// <exception cref="Microsoft.Rest.ValidationException">
121126
/// Thrown when a required parameter is null
122127
/// </exception>
123-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceWithHttpMessagesAsync(string resourceId, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
128+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceWithHttpMessagesAsync(string resourceId, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
124129
/// <summary>
125130
/// Queries policy events for the subscription level policy set
126131
/// definition.
@@ -149,7 +154,7 @@ public partial interface IPolicyEvents
149154
/// <exception cref="Microsoft.Rest.ValidationException">
150155
/// Thrown when a required parameter is null
151156
/// </exception>
152-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForPolicySetDefinitionWithHttpMessagesAsync(string subscriptionId, string policySetDefinitionName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
157+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForPolicySetDefinitionWithHttpMessagesAsync(string subscriptionId, string policySetDefinitionName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
153158
/// <summary>
154159
/// Queries policy events for the subscription level policy definition.
155160
/// </summary>
@@ -177,7 +182,7 @@ public partial interface IPolicyEvents
177182
/// <exception cref="Microsoft.Rest.ValidationException">
178183
/// Thrown when a required parameter is null
179184
/// </exception>
180-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForPolicyDefinitionWithHttpMessagesAsync(string subscriptionId, string policyDefinitionName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
185+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForPolicyDefinitionWithHttpMessagesAsync(string subscriptionId, string policyDefinitionName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
181186
/// <summary>
182187
/// Queries policy events for the subscription level policy assignment.
183188
/// </summary>
@@ -205,7 +210,7 @@ public partial interface IPolicyEvents
205210
/// <exception cref="Microsoft.Rest.ValidationException">
206211
/// Thrown when a required parameter is null
207212
/// </exception>
208-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForSubscriptionLevelPolicyAssignmentWithHttpMessagesAsync(string subscriptionId, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
213+
Task<AzureOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForSubscriptionLevelPolicyAssignmentWithHttpMessagesAsync(string subscriptionId, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
209214
/// <summary>
210215
/// Queries policy events for the resource group level policy
211216
/// assignment.
@@ -237,7 +242,7 @@ public partial interface IPolicyEvents
237242
/// <exception cref="Microsoft.Rest.ValidationException">
238243
/// Thrown when a required parameter is null
239244
/// </exception>
240-
Task<HttpOperationResponse<PolicyEventsQueryResults>> ListQueryResultsForResourceGroupLevelPolicyAssignmentWithHttpMessagesAsync(string subscriptionId, string resourceGroupName, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
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));
241246
/// <summary>
242247
/// Gets OData metadata XML document.
243248
/// </summary>
@@ -260,6 +265,6 @@ public partial interface IPolicyEvents
260265
/// <exception cref="Microsoft.Rest.ValidationException">
261266
/// Thrown when a required parameter is null
262267
/// </exception>
263-
Task<HttpOperationResponse<string>> GetMetadataWithHttpMessagesAsync(string scope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
268+
Task<AzureOperationResponse<string>> GetMetadataWithHttpMessagesAsync(string scope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
264269
}
265270
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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 Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// </summary>
20+
public partial interface IPolicyInsightsClient : System.IDisposable
21+
{
22+
/// <summary>
23+
/// The base URI of the service.
24+
/// </summary>
25+
System.Uri BaseUri { get; set; }
26+
27+
/// <summary>
28+
/// Gets or sets json serialization settings.
29+
/// </summary>
30+
JsonSerializerSettings SerializationSettings { get; }
31+
32+
/// <summary>
33+
/// Gets or sets json deserialization settings.
34+
/// </summary>
35+
JsonSerializerSettings DeserializationSettings { get; }
36+
37+
/// <summary>
38+
/// Credentials needed for the client to connect to Azure.
39+
/// </summary>
40+
ServiceClientCredentials Credentials { get; }
41+
42+
/// <summary>
43+
/// API version to use with the client requests.
44+
/// </summary>
45+
string ApiVersion { get; }
46+
47+
/// <summary>
48+
/// The preferred language for the response.
49+
/// </summary>
50+
string AcceptLanguage { get; set; }
51+
52+
/// <summary>
53+
/// The retry timeout in seconds for Long Running Operations. Default
54+
/// value is 30.
55+
/// </summary>
56+
int? LongRunningOperationRetryTimeout { get; set; }
57+
58+
/// <summary>
59+
/// Whether a unique x-ms-client-request-id should be generated. When
60+
/// set to true a unique x-ms-client-request-id value is generated and
61+
/// included in each request. Default is true.
62+
/// </summary>
63+
bool? GenerateClientRequestId { get; set; }
64+
65+
66+
/// <summary>
67+
/// Gets the IPolicyEventsOperations.
68+
/// </summary>
69+
IPolicyEventsOperations PolicyEvents { get; }
70+
71+
/// <summary>
72+
/// Gets the IPolicyStatesOperations.
73+
/// </summary>
74+
IPolicyStatesOperations PolicyStates { get; }
75+
76+
/// <summary>
77+
/// Gets the IOperations.
78+
/// </summary>
79+
IOperations Operations { get; }
80+
81+
}
82+
}

src/PolicyInsights/Version_2018_04_04/IPolicyStatesClient.cs

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)