-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
TrackedResource.cs
44 lines (37 loc) · 2.05 KB
/
TrackedResource.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
42
43
44
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. </summary>
public partial class TrackedResource : Resource
{
/// <summary> Initializes a new instance of <see cref="TrackedResource"/>. </summary>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <exception cref="ArgumentNullException"> <paramref name="location"/> is null. </exception>
public TrackedResource(string location)
{
Argument.AssertNotNull(location, nameof(location));
Tags = new ChangeTrackingDictionary<string, string>();
Location = location;
}
/// <summary> Initializes a new instance of <see cref="TrackedResource"/>. </summary>
/// <param name="id"> Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. </param>
/// <param name="name"> The name of the resource. </param>
/// <param name="type"> The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". </param>
/// <param name="tags"> Resource tags. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
internal TrackedResource(string id, string name, string type, IDictionary<string, string> tags, string location) : base(id, name, type)
{
Tags = tags;
Location = location;
}
/// <summary> Resource tags. </summary>
public IDictionary<string, string> Tags { get; }
/// <summary> The geo-location where the resource lives. </summary>
public string Location { get; set; }
}
}