Skip to content

Commit

Permalink
Regenerate PolicyInsights based on latest spec for 2018-04-04 (GA ver…
Browse files Browse the repository at this point in the history
…sion)

Regenerate PolicyInsights based on latest spec for 2018-04-04 (GA version)
  • Loading branch information
dsgouda authored May 23, 2018
2 parents 112409e + c906097 commit 6fa11c3
Show file tree
Hide file tree
Showing 49 changed files with 900 additions and 972 deletions.
2 changes: 1 addition & 1 deletion src/SDKs/PolicyInsights/Management/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>PolicyInsights_2017-12-12-preview;</AzureApiTag>
<AzureApiTag>PolicyInsights_2018-04-04;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ public PolicyDefinitionSummary()
/// Initializes a new instance of the PolicyDefinitionSummary class.
/// </summary>
/// <param name="policyDefinitionId">Policy definition ID.</param>
/// <param name="policyDefinitionReferenceId">Policy definition
/// reference ID.</param>
/// <param name="effect">Policy effect, i.e. policy definition
/// action.</param>
/// <param name="results">Non-compliance summary for the policy
/// definition.</param>
public PolicyDefinitionSummary(string policyDefinitionId = default(string), string effect = default(string), SummaryResults results = default(SummaryResults))
public PolicyDefinitionSummary(string policyDefinitionId = default(string), string policyDefinitionReferenceId = default(string), string effect = default(string), SummaryResults results = default(SummaryResults))
{
PolicyDefinitionId = policyDefinitionId;
PolicyDefinitionReferenceId = policyDefinitionReferenceId;
Effect = effect;
Results = results;
CustomInit();
Expand All @@ -53,6 +56,12 @@ public PolicyDefinitionSummary()
[JsonProperty(PropertyName = "policyDefinitionId")]
public string PolicyDefinitionId { get; set; }

/// <summary>
/// Gets or sets policy definition reference ID.
/// </summary>
[JsonProperty(PropertyName = "policyDefinitionReferenceId")]
public string PolicyDefinitionReferenceId { get; set; }

/// <summary>
/// Gets or sets policy effect, i.e. policy definition action.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private void Initialize()
PolicyStates = new PolicyStatesOperations(this);
Operations = new Operations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2017-12-12-preview";
ApiVersion = "2018-04-04";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@

using System;
using System.Collections.Generic;
using System.Linq;
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

internal static partial class SdkInfo
namespace Microsoft.Azure.Management.PolicyInsights
{
public static IEnumerable<Tuple<string, string, string>> ApiInfo_PolicyInsightsClient
{
get
{
return new Tuple<string, string, string>[]
{
new Tuple<string, string, string>("PolicyInsights", "Operations", "2017-12-12-preview"),
new Tuple<string, string, string>("PolicyInsights", "PolicyEvents", "2017-12-12-preview"),
new Tuple<string, string, string>("PolicyInsights", "PolicyStates", "2017-12-12-preview"),
}.AsEnumerable();
}
}
using System;
using System.Collections.Generic;
using System.Linq;

internal static partial class SdkInfo
{
public static IEnumerable<Tuple<string, string, string>> ApiInfo_PolicyInsightsClient
{
get
{
return new Tuple<string, string, string>[]
{
new Tuple<string, string, string>("PolicyInsights", "Operations", "2018-04-04"),
new Tuple<string, string, string>("PolicyInsights", "PolicyEvents", "2018-04-04"),
new Tuple<string, string, string>("PolicyInsights", "PolicyStates", "2018-04-04"),
}.AsEnumerable();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<PackageId>Microsoft.Azure.Management.PolicyInsights</PackageId>
<Description>Provides policy insights operations for Microsoft Azure.</Description>
<AssemblyName>Microsoft.Azure.Management.PolicyInsights</AssemblyName>
<Version>0.9.0-preview</Version>
<Version>1.0.0</Version>
<PackageTags>Azure;Policy;PolicyInsights;PolicyEvent;PolicyState;Compliance;</PackageTags>
<PackageReleaseNotes>
<![CDATA[
This is the public preview release of the Microsoft Azure Policy Insights SDK.
This is the public release of the Microsoft Azure Policy Insights SDK.
]]>
</PackageReleaseNotes>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
[assembly: AssemblyTitle("Microsoft Azure Policy Insights Library")]
[assembly: AssemblyDescription("Provides Microsoft Azure policy insights operations.")]

[assembly: AssemblyVersion("0.9.0.0")]
[assembly: AssemblyFileVersion("0.9.0.0")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File "$(split-path $SCRIPT:MyInvocation.MyCommand.Path -parent)\..\..\..\..\..\tools\generateTool.ps1" -ResourceProvider "policyinsights/resource-manager" -PowershellInvoker -AutoRestVersion "latest"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PackageId>PolicyInsights.Tests</PackageId>
<Description>PolicyInsights.Tests Class Library</Description>
<AssemblyName>PolicyInsights.Tests</AssemblyName>
<VersionPrefix>0.9.0-preview</VersionPrefix>
<Version>1.0.0</Version>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>netcoreapp1.1</TargetFrameworks>
Expand Down
Loading

0 comments on commit 6fa11c3

Please sign in to comment.