Views interface
Interface representing a Views.
Methods
create |
Creates a view or updates an existing view in the hub. |
delete(string, string, string, string, Views |
Deletes a view in the specified hub. |
get(string, string, string, string, Views |
Gets a view in the hub. |
list |
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.
The options parameters.
Returns
Promise<ViewResourceFormat>
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
Promise<ViewResourceFormat>
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.