-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DataBoxEdgeStorageAccountCredentialData.cs
77 lines (70 loc) · 4.19 KB
/
DataBoxEdgeStorageAccountCredentialData.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
76
77
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
using Azure.ResourceManager.DataBoxEdge.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.DataBoxEdge
{
/// <summary>
/// A class representing the DataBoxEdgeStorageAccountCredential data model.
/// The storage account credential.
/// </summary>
public partial class DataBoxEdgeStorageAccountCredentialData : ResourceData
{
/// <summary> Initializes a new instance of DataBoxEdgeStorageAccountCredentialData. </summary>
/// <param name="alias"> Alias for the storage account. </param>
/// <param name="sslStatus"> Signifies whether SSL needs to be enabled or not. </param>
/// <param name="accountType"> Type of storage accessed on the storage account. </param>
/// <exception cref="ArgumentNullException"> <paramref name="alias"/> is null. </exception>
public DataBoxEdgeStorageAccountCredentialData(string @alias, DataBoxEdgeStorageAccountSslStatus sslStatus, DataBoxEdgeStorageAccountType accountType)
{
Argument.AssertNotNull(@alias, nameof(@alias));
Alias = @alias;
SslStatus = sslStatus;
AccountType = accountType;
}
/// <summary> Initializes a new instance of DataBoxEdgeStorageAccountCredentialData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="alias"> Alias for the storage account. </param>
/// <param name="userName"> Username for the storage account. </param>
/// <param name="accountKey"> Encrypted storage key. </param>
/// <param name="connectionString"> Connection string for the storage account. Use this string if username and account key are not specified. </param>
/// <param name="sslStatus"> Signifies whether SSL needs to be enabled or not. </param>
/// <param name="blobDomainName"> Blob end point for private clouds. </param>
/// <param name="accountType"> Type of storage accessed on the storage account. </param>
/// <param name="storageAccountId"> Id of the storage account. </param>
internal DataBoxEdgeStorageAccountCredentialData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string @alias, string userName, AsymmetricEncryptedSecret accountKey, string connectionString, DataBoxEdgeStorageAccountSslStatus sslStatus, string blobDomainName, DataBoxEdgeStorageAccountType accountType, ResourceIdentifier storageAccountId) : base(id, name, resourceType, systemData)
{
Alias = @alias;
UserName = userName;
AccountKey = accountKey;
ConnectionString = connectionString;
SslStatus = sslStatus;
BlobDomainName = blobDomainName;
AccountType = accountType;
StorageAccountId = storageAccountId;
}
/// <summary> Alias for the storage account. </summary>
public string Alias { get; set; }
/// <summary> Username for the storage account. </summary>
public string UserName { get; set; }
/// <summary> Encrypted storage key. </summary>
public AsymmetricEncryptedSecret AccountKey { get; set; }
/// <summary> Connection string for the storage account. Use this string if username and account key are not specified. </summary>
public string ConnectionString { get; set; }
/// <summary> Signifies whether SSL needs to be enabled or not. </summary>
public DataBoxEdgeStorageAccountSslStatus SslStatus { get; set; }
/// <summary> Blob end point for private clouds. </summary>
public string BlobDomainName { get; set; }
/// <summary> Type of storage accessed on the storage account. </summary>
public DataBoxEdgeStorageAccountType AccountType { get; set; }
/// <summary> Id of the storage account. </summary>
public ResourceIdentifier StorageAccountId { get; set; }
}
}