RoleAssignments interface
Interface representing a RoleAssignments.
Methods
begin |
Creates or updates a role assignment in the hub. |
begin |
Creates or updates a role assignment in the hub. |
delete(string, string, string, Role |
Deletes the role assignment in the hub. |
get(string, string, string, Role |
Gets the role assignment in the hub. |
list |
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.
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.
The options parameters.
Returns
Promise<RoleAssignmentResourceFormat>
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.
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
Promise<RoleAssignmentResourceFormat>
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.
The options parameters.