forked from Infinite-Blue-1042/V-Term
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.cs
41 lines (35 loc) · 1.52 KB
/
data.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using Microsoft.Azure.Management.DataBox.Models;
using Microsoft.WindowsAzure.Commands.Common.Attributes;
using Microsoft.Azure.Commands.DataBox.Common;
using System.Text;
namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models
{
public class PSDataBoxJob
{
[Ps1Xml(Label = "JobResource.Name", Target = ViewControl.Table, ScriptBlock = "$_.JobResource.Name")]
[Ps1Xml(Label = "JobResource.Sku.Name", Target = ViewControl.Table, ScriptBlock = "$_.JobResource.Sku.Name")]
[Ps1Xml(Label = "JobResource.Status", Target = ViewControl.Table, ScriptBlock = "$_.JobResource.Status")]
[Ps1Xml(Label = "JobResource.StartTime", Target = ViewControl.Table, ScriptBlock = "$_.JobResource.StartTime")]
[Ps1Xml(Label = "JobResource.Location", Target = ViewControl.Table, ScriptBlock = "$_.JobResource.Location")]
public JobResource JobResource;
[Ps1Xml(Label = "ResourceGroup", Target = ViewControl.Table)]
public string ResourceGroup;
public string Id;
public PSDataBoxJob()
{
JobResource = new JobResource();
}
public PSDataBoxJob(JobResource jobResource)
{
if (jobResource == null)
{
throw new ArgumentNullException("jobResource");
}
this.JobResource = jobResource;
this.ResourceGroup = ResourceIdHandler.GetResourceGroupName(jobResource.Id);
this.Id = jobResource.Id;
}
}
}