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

AzureFileShareConfiguration 类

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

public class AzureFileShareConfiguration

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

构造函数摘要

构造函数 说明
AzureFileShareConfiguration()

方法摘要

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

获取帐户密钥值。

java.lang.String accountName()

获取帐户名称值。

java.lang.String azureFileUrl()

获取此格式为“https://{account}.file”。核心。窗户。net/'.

java.lang.String mountOptions()

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

java.lang.String relativeMountPath()

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

AzureFileShareConfiguration withAccountKey(String accountKey)

设置帐户密钥值。

AzureFileShareConfiguration withAccountName(String accountName)

设置帐户名称值。

AzureFileShareConfiguration withAzureFileUrl(String azureFileUrl)

将此项设置为格式为“https://{account}.file”。核心。窗户。net/'.

AzureFileShareConfiguration withMountOptions(String mountOptions)

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

AzureFileShareConfiguration withRelativeMountPath(String relativeMountPath)

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

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

构造函数详细信息

AzureFileShareConfiguration

public AzureFileShareConfiguration()

方法详细信息

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 对象本身。

适用于