你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AzureFileShareConfiguration 类
- java.
lang. Object - com.
microsoft. azure. management. batch. AzureFileShareConfiguration
- com.
public class AzureFileShareConfiguration
用于连接到 Azure 文件共享的信息。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
String |
accountKey()
获取 accountKey 值。 |
String |
accountName()
获取 accountName 值。 |
String | azureFileUrl() |
String |
mountOptions()
获取这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。 |
String |
relativeMountPath()
获取相对于 Batch 装载目录装载的所有文件系统,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。 |
Azure |
withAccountKey(String accountKey)
设置 accountKey 值。 |
Azure |
withAccountName(String accountName)
设置 accountName 值。 |
Azure |
withAzureFileUrl(String azureFileUrl) |
Azure |
withMountOptions(String mountOptions)
设置这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。 |
Azure |
withRelativeMountPath(String relativeMountPath)
设置所有文件系统相对于 Batch 装载目录装载,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。 |
方法详细信息
accountKey
public String accountKey()
获取 accountKey 值。
返回:
accountName
public String accountName()
获取 accountName 值。
返回:
azureFileUrl
mountOptions
public String mountOptions()
获取这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。
返回:
relativeMountPath
public String relativeMountPath()
获取相对于 Batch 装载目录装载的所有文件系统,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。
返回:
withAccountKey
public AzureFileShareConfiguration withAccountKey(String accountKey)
设置 accountKey 值。
参数:
返回:
withAccountName
public AzureFileShareConfiguration withAccountName(String accountName)
设置 accountName 值。
参数:
返回:
withAzureFileUrl
public AzureFileShareConfiguration withAzureFileUrl(String azureFileUrl)
将此项设置为“https://{account}.file.core.windows.net/”。
参数:
返回:
withMountOptions
public AzureFileShareConfiguration withMountOptions(String mountOptions)
设置这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。
参数:
返回:
withRelativeMountPath
public AzureFileShareConfiguration withRelativeMountPath(String relativeMountPath)
设置所有文件系统相对于 Batch 装载目录装载,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。
参数:
返回: