Skip to content

Commit 2321215

Browse files
committed
add resource types
1 parent 9e5719a commit 2321215

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/Support/Support/Helpers/ModelExtensions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public static PSSupportService ToPSSupportService(this Service sdkService)
3030
Id = sdkService.Id,
3131
Name = sdkService.Name,
3232
Type = sdkService.Type,
33-
DisplayName = sdkService.DisplayName
33+
DisplayName = sdkService.DisplayName,
34+
ResourceTypes = sdkService.ResourceTypes?.ToArray()
3435
};
3536
}
3637

@@ -43,7 +44,7 @@ public static PSSupportProblemClassification ToPSSupportProblemClassification(th
4344
Id = sdkProblemClassification.Id,
4445
Name = sdkProblemClassification.Name,
4546
Type = sdkProblemClassification.Type,
46-
DisplayName = sdkProblemClassification.DisplayName
47+
DisplayName = sdkProblemClassification.DisplayName,
4748
};
4849
}
4950

src/Support/Support/Models/PSSupportService.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class PSSupportService
2828
/// </summary>
2929
[Ps1Xml(Target = ViewControl.Table)]
3030
public string Name { get; set; }
31-
31+
3232
/// <summary>
3333
/// Gets or sets the type of the resource.
3434
/// </summary>
@@ -39,5 +39,11 @@ public class PSSupportService
3939
/// </summary>
4040
[Ps1Xml(Target = ViewControl.Table)]
4141
public string DisplayName { get; set; }
42+
43+
/// <summary>
44+
/// Gets or sets display name
45+
/// </summary>
46+
[Ps1Xml(Target = ViewControl.Table)]
47+
public string[] ResourceTypes { get; set; }
4248
}
4349
}

src/Support/Support/Services/GetAzSupportService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ public class GetAzSupportService : AzSupportCmdletBase
3434
[ValidateNotNullOrEmpty]
3535
public string Id { get; set; }
3636

37-
[Parameter(Mandatory = true, ParameterSetName = GetByNameParameterSet, HelpMessage = "Resource types.")]
38-
[Alias("ResourceTypes")]
39-
[ValidateNotNullOrEmpty]
40-
public List<string> TypesOfResources { get; set; }
41-
4237
public override void ExecuteCmdlet()
4338
{
4439
try

0 commit comments

Comments
 (0)