Permalink
Browse files

Change for NodeConfiguration build version feature (#3424)

  • Loading branch information...
vrdmr authored and shahabhijeet committed Jul 10, 2017
1 parent 9b0ca7b commit 7a44e44a5ec45cc2ee822b927cd91aa705e18549
@@ -730,23 +730,23 @@ protected override void Clone(ServiceClient<AutomationManagementClient> client)
{
result.RequestId = httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- if (statusCode == HttpStatusCode.BadRequest)
+ if (statusCode == HttpStatusCode.NotFound)
{
result.Status = OperationStatus.Failed;
}
- if (statusCode == HttpStatusCode.NotFound)
+ if (statusCode == HttpStatusCode.BadRequest)
{
result.Status = OperationStatus.Failed;
}
- if (statusCode == HttpStatusCode.Created)
+ if (statusCode == HttpStatusCode.OK)
{
result.Status = OperationStatus.Succeeded;
}
- if (statusCode == HttpStatusCode.NoContent)
+ if (statusCode == HttpStatusCode.Created)
{
result.Status = OperationStatus.Succeeded;
}
- if (statusCode == HttpStatusCode.OK)
+ if (statusCode == HttpStatusCode.NoContent)
{
result.Status = OperationStatus.Succeeded;
}
@@ -210,6 +210,8 @@ public AutomationManagementClient Client
}
}
+ propertiesValue["incrementNodeConfigurationBuild"] = parameters.Properties.IncrementNodeConfigurationBuild;
+
if (parameters.Name != null)
{
dscCompilationJobCreateParametersValue["name"] = parameters.Name;
@@ -236,6 +236,8 @@ public AutomationManagementClient Client
configurationValue["name"] = parameters.Configuration.Name;
}
+ dscNodeConfigurationCreateOrUpdateParametersValue["incrementNodeConfigurationBuild"] = parameters.IncrementNodeConfigurationBuild;
+
requestContent = requestDoc.ToString(Newtonsoft.Json.Formatting.Indented);
httpRequest.Content = new StringContent(requestContent, Encoding.UTF8);
httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
@@ -43,6 +43,18 @@ public DscConfigurationAssociationProperty Configuration
set { this._configuration = value; }
}
+ private bool _incrementNodeConfigurationBuild;
+
+ /// <summary>
+ /// Optional. Gets or sets the if a new build version of
+ /// NodeConfiguration is required.
+ /// </summary>
+ public bool IncrementNodeConfigurationBuild
+ {
+ get { return this._incrementNodeConfigurationBuild; }
+ set { this._incrementNodeConfigurationBuild = value; }
+ }
+
private IDictionary<string, string> _parameters;
/// <summary>
@@ -42,6 +42,18 @@ public DscConfigurationAssociationProperty Configuration
set { this._configuration = value; }
}
+ private bool _incrementNodeConfigurationBuild;
+
+ /// <summary>
+ /// Optional. Gets or sets the if a new build version of
+ /// NodeConfiguration is required.
+ /// </summary>
+ public bool IncrementNodeConfigurationBuild
+ {
+ get { return this._incrementNodeConfigurationBuild; }
+ set { this._incrementNodeConfigurationBuild = value; }
+ }
+
private string _name;
/// <summary>
@@ -5,7 +5,7 @@
Microsoft.Azure.Management.Automation
-->
<SdkNuGetPackage Include="Microsoft.Azure.Management.Automation">
- <PackageVersion>2.0.2</PackageVersion>
+ <PackageVersion>2.0.4</PackageVersion>
<Folder>$(MSBuildThisFileDirectory)</Folder>
</SdkNuGetPackage>
</ItemGroup>
@@ -20,7 +20,7 @@
[assembly: AssemblyDescription("Provides Microsoft Azure Automation management operations.")]
[assembly: AssemblyVersion("2.0.0.0")]
-[assembly: AssemblyFileVersion("2.0.2.0")]
+[assembly: AssemblyFileVersion("2.0.4.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]

0 comments on commit 7a44e44

Please sign in to comment.