-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ContainerInstanceAzureFileVolume.cs
51 lines (44 loc) · 2.7 KB
/
ContainerInstanceAzureFileVolume.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.ContainerInstance.Models
{
/// <summary> The properties of the Azure File volume. Azure File shares are mounted as volumes. </summary>
public partial class ContainerInstanceAzureFileVolume
{
/// <summary> Initializes a new instance of ContainerInstanceAzureFileVolume. </summary>
/// <param name="shareName"> The name of the Azure File share to be mounted as a volume. </param>
/// <param name="storageAccountName"> The name of the storage account that contains the Azure File share. </param>
/// <exception cref="ArgumentNullException"> <paramref name="shareName"/> or <paramref name="storageAccountName"/> is null. </exception>
public ContainerInstanceAzureFileVolume(string shareName, string storageAccountName)
{
Argument.AssertNotNull(shareName, nameof(shareName));
Argument.AssertNotNull(storageAccountName, nameof(storageAccountName));
ShareName = shareName;
StorageAccountName = storageAccountName;
}
/// <summary> Initializes a new instance of ContainerInstanceAzureFileVolume. </summary>
/// <param name="shareName"> The name of the Azure File share to be mounted as a volume. </param>
/// <param name="isReadOnly"> The flag indicating whether the Azure File shared mounted as a volume is read-only. </param>
/// <param name="storageAccountName"> The name of the storage account that contains the Azure File share. </param>
/// <param name="storageAccountKey"> The storage account access key used to access the Azure File share. </param>
internal ContainerInstanceAzureFileVolume(string shareName, bool? isReadOnly, string storageAccountName, string storageAccountKey)
{
ShareName = shareName;
IsReadOnly = isReadOnly;
StorageAccountName = storageAccountName;
StorageAccountKey = storageAccountKey;
}
/// <summary> The name of the Azure File share to be mounted as a volume. </summary>
public string ShareName { get; set; }
/// <summary> The flag indicating whether the Azure File shared mounted as a volume is read-only. </summary>
public bool? IsReadOnly { get; set; }
/// <summary> The name of the storage account that contains the Azure File share. </summary>
public string StorageAccountName { get; set; }
/// <summary> The storage account access key used to access the Azure File share. </summary>
public string StorageAccountKey { get; set; }
}
}