-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
VirtualMachineImageBase.cs
60 lines (52 loc) · 3.15 KB
/
VirtualMachineImageBase.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Compute.Models
{
/// <summary> Virtual machine image resource information. </summary>
public partial class VirtualMachineImageBase : ComputeWriteableSubResourceData
{
/// <summary> Initializes a new instance of <see cref="VirtualMachineImageBase"/>. </summary>
/// <param name="name"> The name of the resource. </param>
/// <param name="location"> The supported Azure location of the resource. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
public VirtualMachineImageBase(string name, AzureLocation location)
{
Argument.AssertNotNull(name, nameof(name));
Name = name;
Location = location;
Tags = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of <see cref="VirtualMachineImageBase"/>. </summary>
/// <param name="id"> Resource Id. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="name"> The name of the resource. </param>
/// <param name="location"> The supported Azure location of the resource. </param>
/// <param name="tags"> Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). </param>
/// <param name="extendedLocation"> The extended location of the Virtual Machine. </param>
internal VirtualMachineImageBase(ResourceIdentifier id, IDictionary<string, BinaryData> serializedAdditionalRawData, string name, AzureLocation location, IDictionary<string, string> tags, ExtendedLocation extendedLocation) : base(id, serializedAdditionalRawData)
{
Name = name;
Location = location;
Tags = tags;
ExtendedLocation = extendedLocation;
}
/// <summary> Initializes a new instance of <see cref="VirtualMachineImageBase"/> for deserialization. </summary>
internal VirtualMachineImageBase()
{
}
/// <summary> The name of the resource. </summary>
public string Name { get; set; }
/// <summary> The supported Azure location of the resource. </summary>
public AzureLocation Location { get; set; }
/// <summary> Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). </summary>
public IDictionary<string, string> Tags { get; }
/// <summary> The extended location of the Virtual Machine. </summary>
public ExtendedLocation ExtendedLocation { get; set; }
}
}