RoleAssignments interface

Interface representing a RoleAssignments.

Methods

beginCreateOrUpdate(string, string, string, RoleAssignmentResourceFormat, RoleAssignmentsCreateOrUpdateOptionalParams)

Creates or updates a role assignment in the hub.

beginCreateOrUpdateAndWait(string, string, string, RoleAssignmentResourceFormat, RoleAssignmentsCreateOrUpdateOptionalParams)

Creates or updates a role assignment in the hub.

delete(string, string, string, RoleAssignmentsDeleteOptionalParams)

Deletes the role assignment in the hub.

get(string, string, string, RoleAssignmentsGetOptionalParams)

Gets the role assignment in the hub.

listByHub(string, string, RoleAssignmentsListByHubOptionalParams)

Gets all the role assignments for the specified hub.

Method Details

beginCreateOrUpdate(string, string, string, RoleAssignmentResourceFormat, RoleAssignmentsCreateOrUpdateOptionalParams)

Creates or updates a role assignment in the hub.

function beginCreateOrUpdate(resourceGroupName: string, hubName: string, assignmentName: string, parameters: RoleAssignmentResourceFormat, options?: RoleAssignmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<RoleAssignmentResourceFormat>, RoleAssignmentResourceFormat>>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

assignmentName

string

The assignment name

parameters
RoleAssignmentResourceFormat

Parameters supplied to the CreateOrUpdate RoleAssignment operation.

options
RoleAssignmentsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<RoleAssignmentResourceFormat>, RoleAssignmentResourceFormat>>

beginCreateOrUpdateAndWait(string, string, string, RoleAssignmentResourceFormat, RoleAssignmentsCreateOrUpdateOptionalParams)

Creates or updates a role assignment in the hub.

function beginCreateOrUpdateAndWait(resourceGroupName: string, hubName: string, assignmentName: string, parameters: RoleAssignmentResourceFormat, options?: RoleAssignmentsCreateOrUpdateOptionalParams): Promise<RoleAssignmentResourceFormat>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

assignmentName

string

The assignment name

parameters
RoleAssignmentResourceFormat

Parameters supplied to the CreateOrUpdate RoleAssignment operation.

options
RoleAssignmentsCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, RoleAssignmentsDeleteOptionalParams)

Deletes the role assignment in the hub.

function delete(resourceGroupName: string, hubName: string, assignmentName: string, options?: RoleAssignmentsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

assignmentName

string

The name of the role assignment.

options
RoleAssignmentsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, RoleAssignmentsGetOptionalParams)

Gets the role assignment in the hub.

function get(resourceGroupName: string, hubName: string, assignmentName: string, options?: RoleAssignmentsGetOptionalParams): Promise<RoleAssignmentResourceFormat>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

assignmentName

string

The name of the role assignment.

options
RoleAssignmentsGetOptionalParams

The options parameters.

Returns

listByHub(string, string, RoleAssignmentsListByHubOptionalParams)

Gets all the role assignments for the specified hub.

function listByHub(resourceGroupName: string, hubName: string, options?: RoleAssignmentsListByHubOptionalParams): PagedAsyncIterableIterator<RoleAssignmentResourceFormat, RoleAssignmentResourceFormat[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

options
RoleAssignmentsListByHubOptionalParams

The options parameters.

Returns