Skip to content

Commit ece006a

Browse files
committed
Update PS Types
1 parent 8272409 commit ece006a

File tree

6 files changed

+93
-31
lines changed

6 files changed

+93
-31
lines changed

src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
<Compile Include="Models\PSVirtualMachineImage.cs" />
181181
<Compile Include="Models\PSVirtualMachineExtension.cs" />
182182
<Compile Include="Models\PSAvailabilitySet.cs" />
183+
<Compile Include="Models\PSVirtualMachineImageResource.cs" />
183184
<Compile Include="Models\PSVirtualMachineInstanceView.cs" />
184185
<Compile Include="Models\PSVirtualMachineSize.cs" />
185186
<Compile Include="Models\LocationStringExtensions.cs" />

src/ResourceManager/Compute/Commands.Compute/Models/PSAvailabilitySet.cs

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,34 @@ namespace Microsoft.Azure.Commands.Compute.Models
2020
{
2121
public class PSAvailabilitySet
2222
{
23+
// Gets or sets the property of 'Id'
2324
public string Id { get; set; }
2425

26+
// Gets or sets the property of 'Name'
27+
public string Name { get; set; }
28+
29+
// Gets or sets the property of 'Type'
30+
public string Type { get; set; }
31+
32+
// Gets or sets the property of 'Location'
2533
public string Location { get; set; }
2634

27-
public string Name { get; set; }
35+
// Gets or sets the property of 'Tags'
36+
public IDictionary<string,string> Tags { get; set; }
37+
38+
[JsonIgnore]
39+
public string TagsText
40+
{
41+
get { return JsonConvert.SerializeObject(Tags, Formatting.Indented); }
42+
}
2843

44+
// Gets or sets the property of 'PlatformFaultDomainCount'
2945
public int? PlatformFaultDomainCount { get; set; }
3046

47+
// Gets or sets the property of 'PlatformUpdateDomainCount'
3148
public int? PlatformUpdateDomainCount { get; set; }
3249

50+
// Gets or sets the property of 'Statuses'
3351
public IList<InstanceViewStatus> Statuses { get; set; }
3452

3553
[JsonIgnore]
@@ -38,16 +56,7 @@ public string StatusesText
3856
get { return JsonConvert.SerializeObject(Statuses, Formatting.Indented); }
3957
}
4058

41-
public IDictionary<string, string> Tags { get; set; }
42-
43-
[JsonIgnore]
44-
public string TagsText
45-
{
46-
get { return JsonConvert.SerializeObject(Tags, Formatting.Indented); }
47-
}
48-
49-
public string Type { get; set; }
50-
59+
// Gets or sets the property of 'VirtualMachinesReferences'
5160
public IList<VirtualMachineReference> VirtualMachinesReferences { get; set; }
5261

5362
[JsonIgnore]
@@ -57,4 +66,3 @@ public string VirtualMachinesReferencesText
5766
}
5867
}
5968
}
60-

src/ResourceManager/Compute/Commands.Compute/Models/PSUsage.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ namespace Microsoft.Azure.Commands.Compute.Models
2020
{
2121
public class PSUsage
2222
{
23+
// Gets or sets the property of 'CurrentValue'
2324
public int CurrentValue { get; set; }
2425

26+
// Gets or sets the property of 'Limit'
2527
public uint Limit { get; set; }
2628

29+
// Gets or sets the property of 'Name'
2730
public UsageName Name { get; set; }
2831

2932
[JsonIgnore]
@@ -32,6 +35,7 @@ public string NameText
3235
get { return JsonConvert.SerializeObject(Name, Formatting.Indented); }
3336
}
3437

38+
// Gets or sets the property of 'Unit'
3539
public UsageUnit Unit { get; set; }
3640

3741
[JsonIgnore]
@@ -41,4 +45,3 @@ public string UnitText
4145
}
4246
}
4347
}
44-

src/ResourceManager/Compute/Commands.Compute/Models/PSVirtualMachine.cs

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,28 @@ namespace Microsoft.Azure.Commands.Compute.Models
2020
{
2121
public class PSVirtualMachine
2222
{
23+
// Gets or sets the property of 'Id'
24+
public string Id { get; set; }
25+
26+
// Gets or sets the property of 'Name'
27+
public string Name { get; set; }
28+
29+
// Gets or sets the property of 'Type'
30+
public string Type { get; set; }
31+
32+
// Gets or sets the property of 'Location'
33+
public string Location { get; set; }
34+
35+
// Gets or sets the property of 'Tags'
36+
public IDictionary<string,string> Tags { get; set; }
37+
38+
[JsonIgnore]
39+
public string TagsText
40+
{
41+
get { return JsonConvert.SerializeObject(Tags, Formatting.Indented); }
42+
}
43+
44+
// Gets or sets the property of 'AvailabilitySetReference'
2345
public AvailabilitySetReference AvailabilitySetReference { get; set; }
2446

2547
[JsonIgnore]
@@ -28,6 +50,7 @@ public string AvailabilitySetReferenceText
2850
get { return JsonConvert.SerializeObject(AvailabilitySetReference, Formatting.Indented); }
2951
}
3052

53+
// Gets or sets the property of 'Extensions'
3154
public IList<VirtualMachineExtension> Extensions { get; set; }
3255

3356
[JsonIgnore]
@@ -36,6 +59,7 @@ public string ExtensionsText
3659
get { return JsonConvert.SerializeObject(Extensions, Formatting.Indented); }
3760
}
3861

62+
// Gets or sets the property of 'HardwareProfile'
3963
public HardwareProfile HardwareProfile { get; set; }
4064

4165
[JsonIgnore]
@@ -44,8 +68,7 @@ public string HardwareProfileText
4468
get { return JsonConvert.SerializeObject(HardwareProfile, Formatting.Indented); }
4569
}
4670

47-
public string Id { get; set; }
48-
71+
// Gets or sets the property of 'InstanceView'
4972
public VirtualMachineInstanceView InstanceView { get; set; }
5073

5174
[JsonIgnore]
@@ -54,10 +77,7 @@ public string InstanceViewText
5477
get { return JsonConvert.SerializeObject(InstanceView, Formatting.Indented); }
5578
}
5679

57-
public string Location { get; set; }
58-
59-
public string Name { get; set; }
60-
80+
// Gets or sets the property of 'NetworkProfile'
6181
public NetworkProfile NetworkProfile { get; set; }
6282

6383
[JsonIgnore]
@@ -66,6 +86,7 @@ public string NetworkProfileText
6686
get { return JsonConvert.SerializeObject(NetworkProfile, Formatting.Indented); }
6787
}
6888

89+
// Gets or sets the property of 'OSProfile'
6990
public OSProfile OSProfile { get; set; }
7091

7192
[JsonIgnore]
@@ -74,6 +95,7 @@ public string OSProfileText
7495
get { return JsonConvert.SerializeObject(OSProfile, Formatting.Indented); }
7596
}
7697

98+
// Gets or sets the property of 'Plan'
7799
public Plan Plan { get; set; }
78100

79101
[JsonIgnore]
@@ -82,25 +104,16 @@ public string PlanText
82104
get { return JsonConvert.SerializeObject(Plan, Formatting.Indented); }
83105
}
84106

107+
// Gets or sets the property of 'ProvisioningState'
85108
public string ProvisioningState { get; set; }
86109

110+
// Gets or sets the property of 'StorageProfile'
87111
public StorageProfile StorageProfile { get; set; }
88112

89113
[JsonIgnore]
90114
public string StorageProfileText
91115
{
92116
get { return JsonConvert.SerializeObject(StorageProfile, Formatting.Indented); }
93117
}
94-
95-
public IDictionary<string, string> Tags { get; set; }
96-
97-
[JsonIgnore]
98-
public string TagsText
99-
{
100-
get { return JsonConvert.SerializeObject(Tags, Formatting.Indented); }
101-
}
102-
103-
public string Type { get; set; }
104118
}
105119
}
106-
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Management.Compute.Models;
16+
using Newtonsoft.Json;
17+
using System.Collections.Generic;
18+
19+
namespace Microsoft.Azure.Commands.Compute.Models
20+
{
21+
public class PSVirtualMachineImageResource
22+
{
23+
// Gets or sets the property of 'Id'
24+
public string Id { get; set; }
25+
26+
// Gets or sets the property of 'Location'
27+
public string Location { get; set; }
28+
29+
// Gets or sets the property of 'Name'
30+
public string Name { get; set; }
31+
}
32+
}

src/ResourceManager/Compute/Commands.Compute/Models/PSVirtualMachineSize.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,22 @@ namespace Microsoft.Azure.Commands.Compute.Models
2020
{
2121
public class PSVirtualMachineSize
2222
{
23+
// Gets or sets the property of 'MaxDataDiskCount'
2324
public int? MaxDataDiskCount { get; set; }
2425

26+
// Gets or sets the property of 'MemoryInMB'
2527
public int MemoryInMB { get; set; }
2628

29+
// Gets or sets the property of 'Name'
2730
public string Name { get; set; }
2831

32+
// Gets or sets the property of 'NumberOfCores'
2933
public int NumberOfCores { get; set; }
3034

35+
// Gets or sets the property of 'OSDiskSizeInMB'
3136
public int OSDiskSizeInMB { get; set; }
3237

38+
// Gets or sets the property of 'ResourceDiskSizeInMB'
3339
public int ResourceDiskSizeInMB { get; set; }
3440
}
3541
}
36-

0 commit comments

Comments
 (0)