Class ScopedRoleMembersRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.directory.administrativeunits.item.scopedrolemembers.ScopedRoleMembersRequestBuilder

@Generated("com.microsoft.kiota") public class ScopedRoleMembersRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the scopedRoleMembers property of the microsoft.graph.administrativeUnit entity.
  • Constructor Details

    • ScopedRoleMembersRequestBuilder

      public ScopedRoleMembersRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ScopedRoleMembersRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • ScopedRoleMembersRequestBuilder

      public ScopedRoleMembersRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ScopedRoleMembersRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • byScopedRoleMembershipId

      @Nonnull public ScopedRoleMembershipItemRequestBuilder byScopedRoleMembershipId(@Nonnull String scopedRoleMembershipId)
      Provides operations to manage the scopedRoleMembers property of the microsoft.graph.administrativeUnit entity.
      Parameters:
      scopedRoleMembershipId - The unique identifier of scopedRoleMembership
      Returns:
      a ScopedRoleMembershipItemRequestBuilder
    • get

      List Microsoft Entra role assignments with administrative unit scope.
      Returns:
      a ScopedRoleMembershipCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      List Microsoft Entra role assignments with administrative unit scope.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a ScopedRoleMembershipCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public ScopedRoleMembership post(@Nonnull ScopedRoleMembership body)
      Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope.
      Parameters:
      body - The request body
      Returns:
      a ScopedRoleMembership
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public ScopedRoleMembership post(@Nonnull ScopedRoleMembership body, @Nullable Consumer<ScopedRoleMembersRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a ScopedRoleMembership
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      List Microsoft Entra role assignments with administrative unit scope.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ScopedRoleMembersRequestBuilder.GetRequestConfiguration> requestConfiguration)
      List Microsoft Entra role assignments with administrative unit scope.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ScopedRoleMembership body)
      Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ScopedRoleMembership body, @Nullable Consumer<ScopedRoleMembersRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public ScopedRoleMembersRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a ScopedRoleMembersRequestBuilder