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

BatchAccountIdentity 类

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

public class BatchAccountIdentity

Batch 帐户的标识(如果已配置)。 当用户指定“Microsoft.KeyVault”作为其 Batch 帐户加密配置或选择“ManagedIdentity”作为自动存储身份验证模式时,会使用此选项。

方法摘要

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

获取 Batch 帐户的主体 ID。 仅为系统分配的标识提供此属性。

String tenantId()

获取与 Batch 帐户关联的租户 ID。 仅为系统分配的标识提供此属性。

ResourceIdentityType type()

获取用于 Batch 帐户的标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“None”。

Map<String, UserAssignedIdentities> userAssignedIdentities()

获取与 Batch 帐户关联的用户标识列表。

BatchAccountIdentity withType(ResourceIdentityType type)

设置用于 Batch 帐户的标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“None”。

BatchAccountIdentity withUserAssignedIdentities(Map<String, UserAssignedIdentities> userAssignedIdentities)

设置与 Batch 帐户关联的用户标识列表。

方法详细信息

principalId

public String principalId()

获取 Batch 帐户的主体 ID。 仅为系统分配的标识提供此属性。

Returns:

principalId 值

tenantId

public String tenantId()

获取与 Batch 帐户关联的租户 ID。 仅为系统分配的标识提供此属性。

Returns:

tenantId 值

type

public ResourceIdentityType type()

获取用于 Batch 帐户的标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“None”。

Returns:

类型值

userAssignedIdentities

public Map userAssignedIdentities()

获取与 Batch 帐户关联的用户标识列表。

Returns:

userAssignedIdentities 值

withType

public BatchAccountIdentity withType(ResourceIdentityType type)

设置用于 Batch 帐户的标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“None”。

Parameters:

type - 要设置的类型值

Returns:

BatchAccountIdentity 对象本身。

withUserAssignedIdentities

public BatchAccountIdentity withUserAssignedIdentities(Map userAssignedIdentities)

设置与 Batch 帐户关联的用户标识列表。

Parameters:

userAssignedIdentities - 要设置的 userAssignedIdentities 值

Returns:

BatchAccountIdentity 对象本身。

适用于