你当前正在访问 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 文件共享的信息。
构造函数摘要
构造函数 | 说明 | |
---|---|---|
AzureFileShareConfiguration() |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
java.lang.String |
accountKey()
获取帐户 |
java.lang.String |
accountName()
获取帐户 |
java.lang.String |
azureFileUrl()
获取此格式为“https://{account}.file”。 |
java.lang.String |
mountOptions()
获取这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。 |
java.lang.String |
relativeMountPath()
获取相对于 Batch 装载目录装载的所有文件系统,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。 |
Azure |
withAccountKey(String accountKey)
设置帐户 |
Azure |
withAccountName(String accountName)
设置帐户 |
Azure |
withAzureFileUrl(String azureFileUrl)
将此项设置为格式为“https://{account}.file”。 |
Azure |
withMountOptions(String mountOptions)
设置这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。 |
Azure |
withRelativeMountPath(String relativeMountPath)
设置所有文件系统相对于 Batch 装载目录装载,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。 |
方法继承自 java.lang.Object
构造函数详细信息
AzureFileShareConfiguration
public AzureFileShareConfiguration()
方法详细信息
accountKey
public String accountKey()
获取 accountKey 值。
Returns:
accountName
public String accountName()
获取 accountName 值。
Returns:
azureFileUrl
public String azureFileUrl()
获取此格式为“https://{account}.file.core.windows.net/”。
Returns:
mountOptions
public String mountOptions()
获取这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。
Returns:
relativeMountPath
public String relativeMountPath()
获取相对于 Batch 装载目录装载的所有文件系统,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。
Returns:
withAccountKey
public AzureFileShareConfiguration withAccountKey(String accountKey)
设置 accountKey 值。
Parameters:
Returns:
withAccountName
public AzureFileShareConfiguration withAccountName(String accountName)
设置 accountName 值。
Parameters:
Returns:
withAzureFileUrl
public AzureFileShareConfiguration withAzureFileUrl(String azureFileUrl)
将此项设置为“https://{account}.file.core.windows.net/”。
Parameters:
Returns:
withMountOptions
public AzureFileShareConfiguration withMountOptions(String mountOptions)
设置这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。
Parameters:
Returns:
withRelativeMountPath
public AzureFileShareConfiguration withRelativeMountPath(String relativeMountPath)
设置所有文件系统相对于 Batch 装载目录装载,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。
Parameters:
Returns:
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈