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

Views interface

表示视图的接口。

方法

createOrUpdate(string, string, string, ViewResourceFormat, ViewsCreateOrUpdateOptionalParams)

创建视图或更新中心中的现有视图。

delete(string, string, string, string, ViewsDeleteOptionalParams)

删除指定中心内的视图。

get(string, string, string, string, ViewsGetOptionalParams)

获取中心内的视图。

listByHub(string, string, string, ViewsListByHubOptionalParams)

获取指定中心中给定用户的所有可用视图。

方法详细信息

createOrUpdate(string, string, string, ViewResourceFormat, ViewsCreateOrUpdateOptionalParams)

创建视图或更新中心中的现有视图。

function createOrUpdate(resourceGroupName: string, hubName: string, viewName: string, parameters: ViewResourceFormat, options?: ViewsCreateOrUpdateOptionalParams): Promise<ViewResourceFormat>

参数

resourceGroupName

string

资源组的名称。

hubName

string

中心的名称。

viewName

string

视图的名称。

parameters
ViewResourceFormat

提供给 CreateOrUpdate 视图作的参数。

options
ViewsCreateOrUpdateOptionalParams

选项参数。

返回

delete(string, string, string, string, ViewsDeleteOptionalParams)

删除指定中心内的视图。

function delete(resourceGroupName: string, hubName: string, viewName: string, userId: string, options?: ViewsDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。

hubName

string

中心的名称。

viewName

string

视图的名称。

userId

string

用户 ID。 使用 * 检索中心级别视图。

options
ViewsDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, string, ViewsGetOptionalParams)

获取中心内的视图。

function get(resourceGroupName: string, hubName: string, viewName: string, userId: string, options?: ViewsGetOptionalParams): Promise<ViewResourceFormat>

参数

resourceGroupName

string

资源组的名称。

hubName

string

中心的名称。

viewName

string

视图的名称。

userId

string

用户 ID。 使用 * 检索中心级别视图。

options
ViewsGetOptionalParams

选项参数。

返回

listByHub(string, string, string, ViewsListByHubOptionalParams)

获取指定中心中给定用户的所有可用视图。

function listByHub(resourceGroupName: string, hubName: string, userId: string, options?: ViewsListByHubOptionalParams): PagedAsyncIterableIterator<ViewResourceFormat, ViewResourceFormat[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

hubName

string

中心的名称。

userId

string

用户 ID。 使用 * 检索中心级视图。

options
ViewsListByHubOptionalParams

选项参数。

返回