-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
VirtualMachineResourceSettings.cs
56 lines (50 loc) · 3.42 KB
/
VirtualMachineResourceSettings.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
// 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;
namespace Azure.ResourceManager.ResourceMover.Models
{
/// <summary> Gets or sets the virtual machine resource settings. </summary>
public partial class VirtualMachineResourceSettings : MoverResourceSettings
{
/// <summary> Initializes a new instance of <see cref="VirtualMachineResourceSettings"/>. </summary>
public VirtualMachineResourceSettings()
{
Tags = new ChangeTrackingDictionary<string, string>();
UserManagedIdentities = new ChangeTrackingList<ResourceIdentifier>();
ResourceType = "Microsoft.Compute/virtualMachines";
}
/// <summary> Initializes a new instance of <see cref="VirtualMachineResourceSettings"/>. </summary>
/// <param name="resourceType"> The resource type. For example, the value can be Microsoft.Compute/virtualMachines. </param>
/// <param name="targetResourceName"> Gets or sets the target Resource name. </param>
/// <param name="targetResourceGroupName"> Gets or sets the target resource group name. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="tags"> Gets or sets the Resource tags. </param>
/// <param name="userManagedIdentities"> Gets or sets user-managed identities. </param>
/// <param name="targetAvailabilityZone"> Gets or sets the target availability zone. </param>
/// <param name="targetVmSize"> Gets or sets the target virtual machine size. </param>
/// <param name="targetAvailabilitySetId"> Gets or sets the target availability set id for virtual machines not in an availability set at source. </param>
internal VirtualMachineResourceSettings(string resourceType, string targetResourceName, string targetResourceGroupName, IDictionary<string, BinaryData> serializedAdditionalRawData, IDictionary<string, string> tags, IList<ResourceIdentifier> userManagedIdentities, MoverTargetAvailabilityZone? targetAvailabilityZone, string targetVmSize, ResourceIdentifier targetAvailabilitySetId) : base(resourceType, targetResourceName, targetResourceGroupName, serializedAdditionalRawData)
{
Tags = tags;
UserManagedIdentities = userManagedIdentities;
TargetAvailabilityZone = targetAvailabilityZone;
TargetVmSize = targetVmSize;
TargetAvailabilitySetId = targetAvailabilitySetId;
ResourceType = resourceType ?? "Microsoft.Compute/virtualMachines";
}
/// <summary> Gets or sets the Resource tags. </summary>
public IDictionary<string, string> Tags { get; }
/// <summary> Gets or sets user-managed identities. </summary>
public IList<ResourceIdentifier> UserManagedIdentities { get; }
/// <summary> Gets or sets the target availability zone. </summary>
public MoverTargetAvailabilityZone? TargetAvailabilityZone { get; set; }
/// <summary> Gets or sets the target virtual machine size. </summary>
public string TargetVmSize { get; set; }
/// <summary> Gets or sets the target availability set id for virtual machines not in an availability set at source. </summary>
public ResourceIdentifier TargetAvailabilitySetId { get; set; }
}
}