/
VMwareCbtContainerMappingContent.cs
75 lines (67 loc) · 3.89 KB
/
VMwareCbtContainerMappingContent.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// 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.RecoveryServicesSiteRecovery.Models
{
/// <summary> VMwareCbt container mapping input. </summary>
public partial class VMwareCbtContainerMappingContent : ReplicationProviderSpecificContainerMappingContent
{
/// <summary> Initializes a new instance of <see cref="VMwareCbtContainerMappingContent"/>. </summary>
/// <param name="storageAccountId"> The storage account ARM Id. </param>
/// <param name="targetLocation"> The target location. </param>
/// <exception cref="ArgumentNullException"> <paramref name="storageAccountId"/> or <paramref name="targetLocation"/> is null. </exception>
public VMwareCbtContainerMappingContent(ResourceIdentifier storageAccountId, string targetLocation)
{
if (storageAccountId == null)
{
throw new ArgumentNullException(nameof(storageAccountId));
}
if (targetLocation == null)
{
throw new ArgumentNullException(nameof(targetLocation));
}
StorageAccountId = storageAccountId;
TargetLocation = targetLocation;
InstanceType = "VMwareCbt";
}
/// <summary> Initializes a new instance of <see cref="VMwareCbtContainerMappingContent"/>. </summary>
/// <param name="instanceType"> The class type. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="keyVaultId"> The target key vault ARM Id. </param>
/// <param name="keyVaultUri"> The target key vault URL. </param>
/// <param name="storageAccountId"> The storage account ARM Id. </param>
/// <param name="storageAccountSasSecretName"> The secret name of the storage account. </param>
/// <param name="serviceBusConnectionStringSecretName"> The secret name of the service bus connection string. </param>
/// <param name="targetLocation"> The target location. </param>
internal VMwareCbtContainerMappingContent(string instanceType, IDictionary<string, BinaryData> serializedAdditionalRawData, ResourceIdentifier keyVaultId, Uri keyVaultUri, ResourceIdentifier storageAccountId, string storageAccountSasSecretName, string serviceBusConnectionStringSecretName, string targetLocation) : base(instanceType, serializedAdditionalRawData)
{
KeyVaultId = keyVaultId;
KeyVaultUri = keyVaultUri;
StorageAccountId = storageAccountId;
StorageAccountSasSecretName = storageAccountSasSecretName;
ServiceBusConnectionStringSecretName = serviceBusConnectionStringSecretName;
TargetLocation = targetLocation;
InstanceType = instanceType ?? "VMwareCbt";
}
/// <summary> Initializes a new instance of <see cref="VMwareCbtContainerMappingContent"/> for deserialization. </summary>
internal VMwareCbtContainerMappingContent()
{
}
/// <summary> The target key vault ARM Id. </summary>
public ResourceIdentifier KeyVaultId { get; set; }
/// <summary> The target key vault URL. </summary>
public Uri KeyVaultUri { get; set; }
/// <summary> The storage account ARM Id. </summary>
public ResourceIdentifier StorageAccountId { get; }
/// <summary> The secret name of the storage account. </summary>
public string StorageAccountSasSecretName { get; set; }
/// <summary> The secret name of the service bus connection string. </summary>
public string ServiceBusConnectionStringSecretName { get; set; }
/// <summary> The target location. </summary>
public string TargetLocation { get; }
}
}