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

RoleAssignments 接口

实现

SupportsGettingById<RoleAssignment> HasManager<com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager> SupportsBatchCreation<RoleAssignment> SupportsCreating<空白> SupportsDeletingById HasInner<com.microsoft.azure.management.graphrbac.implementation.RoleAssignmentsInner>

public interface RoleAssignments
extends SupportsGettingById<RoleAssignment>, SupportsCreating<Blank>, SupportsBatchCreation<RoleAssignment>, SupportsDeletingById, HasManager<com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager>, HasInner<com.microsoft.azure.management.graphrbac.implementation.RoleAssignmentsInner>

角色分配管理 API 的入口点。

方法摘要

修饰符和类型 方法和描述
abstract RoleAssignment getByScope(String scope, String name)

根据范围和名称获取有关角色分配的信息。

abstract rx.Observable<RoleAssignment> getByScopeAsync(String scope, String name)

根据范围和名称获取有关角色分配的信息。

abstract com.microsoft.rest.ServiceFuture<RoleAssignment> getByScopeAsync(String scope, String name, ServiceCallback<RoleAssignment> callback)

根据范围和名称获取有关角色分配的信息。

abstract com.microsoft.azure.PagedList<RoleAssignment> listByScope(String scope)

列出作用域中的角色分配。

abstract rx.Observable<RoleAssignment> listByScopeAsync(String scope)

列出作用域中的角色分配。

方法详细信息

getByScope

public abstract RoleAssignment getByScope(String scope, String name)

根据范围和名称获取有关角色分配的信息。

Parameters:

scope - 角色分配的范围
name - 角色分配的名称

Returns:

角色分配的不可变表示形式

getByScopeAsync

public abstract Observable getByScopeAsync(String scope, String name)

根据范围和名称获取有关角色分配的信息。

Parameters:

scope - 角色分配的范围
name - 角色分配的名称

Returns:

角色分配的不可变表示形式

getByScopeAsync

public abstract ServiceFuture getByScopeAsync(String scope, String name, ServiceCallback callback)

根据范围和名称获取有关角色分配的信息。

Parameters:

scope - 角色分配的范围
name - 角色分配的名称
callback - 操作完成时的回调

Returns:

角色分配的不可变表示形式

listByScope

public abstract PagedList listByScope(String scope)

列出作用域中的角色分配。

Parameters:

scope - 角色分配的范围

Returns:

角色分配列表

listByScopeAsync

public abstract Observable listByScopeAsync(String scope)

列出作用域中的角色分配。

Parameters:

scope - 角色分配的范围

Returns:

角色分配的可观测值

适用于