-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResourceGroupsClasses.cs
More file actions
48 lines (45 loc) · 1.17 KB
/
ResourceGroupsClasses.cs
File metadata and controls
48 lines (45 loc) · 1.17 KB
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
42
43
44
45
46
47
48
namespace AzureIntegration.Services
{
public class ResourceGroup
{
public string? Name { get; set; }
public string? Location { get; set; }
}
public class AzureManagementGroup
{
public string? Id { get; set; }
public string? Type { get; set; }
public string? Name { get; set; }
}
public class AzureResource
{
public string? Id { get; set; }
public string? Name { get; set; }
public string? Type { get; set; }
public string? Location { get; set; }
public Dictionary<string, string>? Tags { get; set; }
public string? Url
{
get
{
string[] parts = Type?.Split('/') ?? new string[0];
return $"/images/{parts[0]}/{parts[1]}.svg";
}
}
}
public class Subscription
{
public string SubscriptionId { get; set; }
public Subscription(string subscriptionId)
{
SubscriptionId = subscriptionId;
}
public string GetSubscriptionId
{
get
{
return SubscriptionId;
}
}
}
}