共用方式為


Views interface

Interface representing a Views.

Methods

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

Creates a view or updates an existing view in the hub.

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

Deletes a view in the specified hub.

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

Gets a view in the hub.

listByHub(string, string, string, ViewsListByHubOptionalParams)

Gets all available views for given user in the specified hub.

Method Details

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

Creates a view or updates an existing view in the hub.

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

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

viewName

string

The name of the view.

parameters
ViewResourceFormat

Parameters supplied to the CreateOrUpdate View operation.

options
ViewsCreateOrUpdateOptionalParams

The options parameters.

Returns

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

Deletes a view in the specified hub.

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

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

viewName

string

The name of the view.

userId

string

The user ID. Use * to retrieve hub level view.

options
ViewsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

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

Gets a view in the hub.

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

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

viewName

string

The name of the view.

userId

string

The user ID. Use * to retrieve hub level view.

options
ViewsGetOptionalParams

The options parameters.

Returns

listByHub(string, string, string, ViewsListByHubOptionalParams)

Gets all available views for given user in the specified hub.

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

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

userId

string

The user ID. Use * to retrieve hub level views.

options
ViewsListByHubOptionalParams

The options parameters.

Returns