你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureFileShareConfiguration 类

  • java.lang.Object
    • com.microsoft.azure.management.batch.AzureFileShareConfiguration

public class AzureFileShareConfiguration

用于连接到 Azure 文件共享的信息。

方法摘要

修饰符和类型 方法和描述
String accountKey()

获取 accountKey 值。

String accountName()

获取 accountName 值。

String azureFileUrl()

获取此格式为“https://{account}.file.core.windows.net/”。

String mountOptions()

获取这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

String relativeMountPath()

获取相对于 Batch 装载目录装载的所有文件系统,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。

AzureFileShareConfiguration withAccountKey(String accountKey)

设置 accountKey 值。

AzureFileShareConfiguration withAccountName(String accountName)

设置 accountName 值。

AzureFileShareConfiguration withAzureFileUrl(String azureFileUrl)

将此项设置为“https://{account}.file.core.windows.net/”。

AzureFileShareConfiguration withMountOptions(String mountOptions)

设置这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

AzureFileShareConfiguration withRelativeMountPath(String relativeMountPath)

设置所有文件系统相对于 Batch 装载目录装载,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。

方法详细信息

accountKey

public String accountKey()

获取 accountKey 值。

Returns:

accountKey 值

accountName

public String accountName()

获取 accountName 值。

Returns:

accountName 值

azureFileUrl

public String azureFileUrl()

获取此格式为“https://{account}.file.core.windows.net/”。

Returns:

azureFileUrl 值

mountOptions

public String mountOptions()

获取这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

Returns:

mountOptions 值

relativeMountPath

public String relativeMountPath()

获取相对于 Batch 装载目录装载的所有文件系统,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。

Returns:

relativeMountPath 值

withAccountKey

public AzureFileShareConfiguration withAccountKey(String accountKey)

设置 accountKey 值。

Parameters:

accountKey - 要设置的 accountKey 值

Returns:

AzureFileShareConfiguration 对象本身。

withAccountName

public AzureFileShareConfiguration withAccountName(String accountName)

设置 accountName 值。

Parameters:

accountName - 要设置的 accountName 值

Returns:

AzureFileShareConfiguration 对象本身。

withAzureFileUrl

public AzureFileShareConfiguration withAzureFileUrl(String azureFileUrl)

将此项设置为“https://{account}.file.core.windows.net/”。

Parameters:

azureFileUrl - 要设置的 azureFileUrl 值

Returns:

AzureFileShareConfiguration 对象本身。

withMountOptions

public AzureFileShareConfiguration withMountOptions(String mountOptions)

设置这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

Parameters:

mountOptions - 要设置的 mountOptions 值

Returns:

AzureFileShareConfiguration 对象本身。

withRelativeMountPath

public AzureFileShareConfiguration withRelativeMountPath(String relativeMountPath)

设置所有文件系统相对于 Batch 装载目录装载,可通过AZ_BATCH_NODE_MOUNTS_DIR环境变量进行访问。

Parameters:

relativeMountPath - 要设置的 relativeMountPath 值

Returns:

AzureFileShareConfiguration 对象本身。

适用于