Skip to content

Commit ebb7b94

Browse files
Saving changes before pull
1 parent 1015341 commit ebb7b94

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJobOutputRecord.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
2323
/// Gets azure automation job stream record for a given job.
2424
/// </summary>
2525
[Cmdlet(VerbsCommon.Get, "AzureRmAutomationJobOutputRecord")]
26-
[OutputType(typeof(JobStream))]
26+
[OutputType(typeof(JobStreamRecord))]
2727
public class GetAzureAutomationJobOutputRecord : AzureAutomationBaseCmdlet
2828
{
2929
/// <summary>
@@ -37,7 +37,7 @@ public class GetAzureAutomationJobOutputRecord : AzureAutomationBaseCmdlet
3737
/// Gets or sets the job stream id
3838
/// </summary>
3939
[Alias("OutputRecordId")]
40-
[Parameter(Mandatory = true, Position = 3, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream id")]
40+
[Parameter(Mandatory = true, Position = 3, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream record id")]
4141
[ValidateNotNullOrEmpty]
4242
public string JobStreamId { get; set; }
4343

src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228
<Compile Include="Model\DscOnboardingMetaconfig.cs" />
229229
<Compile Include="Model\Job.cs" />
230230
<Compile Include="Model\JobSchedule.cs" />
231+
<Compile Include="Model\JobStreamRecord.cs" />
231232
<Compile Include="Model\JobStream.cs" />
232233
<Compile Include="Model\Module.cs" />
233234
<Compile Include="Model\NodeConfiguration.cs" />

src/ResourceManager/Automation/Commands.Automation/Model/JobStreamRecord.cs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace Microsoft.Azure.Commands.Automation.Model
2323
{
2424
/// <summary>
25-
/// The Job Stream.
25+
/// The Job Stream Record.
2626
/// </summary>
2727
public class JobStreamRecord : JobStream
2828
{
@@ -43,24 +43,8 @@ public class JobStreamRecord : JobStream
4343
/// </param>
4444
/// <exception cref="System.ArgumentException">
4545
/// </exception>
46-
public JobStreamRecord(AutomationManagement.Models.JobStream jobStream, string resourceGroupName, string automationAccountName, Guid jobId )
46+
public JobStreamRecord(AutomationManagement.Models.JobStream jobStream, string resourceGroupName, string automationAccountName, Guid jobId ) : base (jobStream, resourceGroupName, automationAccountName, jobId)
4747
{
48-
Requires.Argument("jobStream", jobStream).NotNull();
49-
50-
this.JobStreamId = jobStream.Properties.JobStreamId;
51-
this.Type = jobStream.Properties.StreamType;
52-
this.Time = jobStream.Properties.Time;
53-
this.AutomationAccountName = automationAccountName;
54-
this.ResourceGroupName = resourceGroupName;
55-
this.Id = jobId;
56-
57-
if (!String.IsNullOrWhiteSpace(jobStream.Properties.Summary))
58-
{
59-
this.Summary = jobStream.Properties.Summary.Length > Constants.JobSummaryLength ?
60-
jobStream.Properties.Summary.Substring(0, Constants.JobSummaryLength) + "..." :
61-
jobStream.Properties.Summary;
62-
}
63-
6448
this.Value = new Hashtable(StringComparer.InvariantCultureIgnoreCase);
6549
foreach (var kvp in jobStream.Properties.Value)
6650
{

0 commit comments

Comments
 (0)