/
AzureBlobFileSystemConfiguration.cs
47 lines (44 loc) · 2.45 KB
/
AzureBlobFileSystemConfiguration.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace Microsoft.Azure.Batch
{
using System;
public partial class AzureBlobFileSystemConfiguration
{
/// <summary>
/// Initializes a new instance of the <see cref="AzureBlobFileSystemConfiguration"/> class.
/// </summary>
/// <param name='accountName'>The Azure Storage account name.</param>
/// <param name='containerName'>The Azure Blob Storage Container name.</param>
/// <param name='relativeMountPath'>The relative path on the compute node where the file system will be mounted.</param>
/// <param name='key'>The key to use to authenticate with Azure Storage. This can be either a SAS key or a Storage Account Key.</param>
/// <param name='blobfuseOptions'>Additional command line options to pass to the mount command.</param>
public AzureBlobFileSystemConfiguration(
string accountName,
string containerName,
string relativeMountPath,
AzureStorageAuthenticationKey key,
string blobfuseOptions = default(string)) : this(accountName, containerName, relativeMountPath, blobfuseOptions: blobfuseOptions)
{
SasKey = key.SasKey;
AccountKey = key.AccountKey;
}
/// <summary>
/// Initializes a new instance of the <see cref="AzureBlobFileSystemConfiguration"/> class.
/// </summary>
/// <param name='accountName'>The Azure Storage account name.</param>
/// <param name='containerName'>The Azure Blob Storage Container name.</param>
/// <param name='relativeMountPath'>The relative path on the compute node where the file system will be mounted.</param>
/// <param name='identityReference'>The managed identity to use to authenticate with Azure Storage.</param>
/// <param name='blobfuseOptions'>Additional command line options to pass to the mount command.</param>
public AzureBlobFileSystemConfiguration(
string accountName,
string containerName,
string relativeMountPath,
ComputeNodeIdentityReference identityReference,
string blobfuseOptions = default(string)) : this(accountName, containerName, relativeMountPath, blobfuseOptions: blobfuseOptions)
{
IdentityReference = identityReference;
}
}
}