Interface GroupsClient


public interface GroupsClient
An instance of this class provides access to all the operations defined in GroupsClient.
  • Method Details

    • listAcceptedSendersAsync

      com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listAcceptedSendersAsync(String groupId, Integer top, Integer skip, String search, String filter, Boolean count, List<GroupsOrderby> orderby, List<GroupsSelect> select, List<String> expand)
      Get acceptedSenders from groups.
      Parameters:
      groupId - key: id of group.
      top - Show only the first n items.
      skip - Skip the first n items.
      search - Search items by search phrases.
      filter - Filter items by property values.
      count - Include count of items.
      orderby - Order items by property values.
      select - Select properties to be returned.
      expand - Expand related entities.
      Returns:
      acceptedSenders from groups as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAcceptedSendersAsync

      com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listAcceptedSendersAsync(String groupId)
      Get acceptedSenders from groups.
      Parameters:
      groupId - key: id of group.
      Returns:
      acceptedSenders from groups as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAcceptedSenders

      com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listAcceptedSenders(String groupId)
      Get acceptedSenders from groups.
      Parameters:
      groupId - key: id of group.
      Returns:
      acceptedSenders from groups as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAcceptedSenders

      com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listAcceptedSenders(String groupId, Integer top, Integer skip, String search, String filter, Boolean count, List<GroupsOrderby> orderby, List<GroupsSelect> select, List<String> expand, com.azure.core.util.Context context)
      Get acceptedSenders from groups.
      Parameters:
      groupId - key: id of group.
      top - Show only the first n items.
      skip - Skip the first n items.
      search - Search items by search phrases.
      filter - Filter items by property values.
      count - Include count of items.
      orderby - Order items by property values.
      select - Select properties to be returned.
      expand - Expand related entities.
      context - The context to associate with this operation.
      Returns:
      acceptedSenders from groups as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createAcceptedSendersWithResponseAsync

      Mono<com.azure.core.http.rest.Response<MicrosoftGraphDirectoryObjectInner>> createAcceptedSendersWithResponseAsync(String groupId, MicrosoftGraphDirectoryObjectInner body)
      Create new navigation property to acceptedSenders for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property.
      Returns:
      directoryObject along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createAcceptedSendersAsync

      Create new navigation property to acceptedSenders for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property.
      Returns:
      directoryObject on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createAcceptedSendersWithResponse

      com.azure.core.http.rest.Response<MicrosoftGraphDirectoryObjectInner> createAcceptedSendersWithResponse(String groupId, MicrosoftGraphDirectoryObjectInner body, com.azure.core.util.Context context)
      Create new navigation property to acceptedSenders for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property.
      context - The context to associate with this operation.
      Returns:
      directoryObject along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createAcceptedSenders

      Create new navigation property to acceptedSenders for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property.
      Returns:
      directoryObject.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listMembersAsync

      com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listMembersAsync(String groupId, Integer top, Integer skip, String search, String filter, Boolean count, List<GroupsOrderby> orderby, List<GroupsSelect> select, List<String> expand)
      Get members from groups.
      Parameters:
      groupId - key: id of group.
      top - Show only the first n items.
      skip - Skip the first n items.
      search - Search items by search phrases.
      filter - Filter items by property values.
      count - Include count of items.
      orderby - Order items by property values.
      select - Select properties to be returned.
      expand - Expand related entities.
      Returns:
      members from groups as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listMembersAsync

      com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listMembersAsync(String groupId)
      Get members from groups.
      Parameters:
      groupId - key: id of group.
      Returns:
      members from groups as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listMembers

      com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listMembers(String groupId)
      Get members from groups.
      Parameters:
      groupId - key: id of group.
      Returns:
      members from groups as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listMembers

      com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listMembers(String groupId, Integer top, Integer skip, String search, String filter, Boolean count, List<GroupsOrderby> orderby, List<GroupsSelect> select, List<String> expand, com.azure.core.util.Context context)
      Get members from groups.
      Parameters:
      groupId - key: id of group.
      top - Show only the first n items.
      skip - Skip the first n items.
      search - Search items by search phrases.
      filter - Filter items by property values.
      count - Include count of items.
      orderby - Order items by property values.
      select - Select properties to be returned.
      expand - Expand related entities.
      context - The context to associate with this operation.
      Returns:
      members from groups as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listRefMembersAsync

      com.azure.core.http.rest.PagedFlux<String> listRefMembersAsync(String groupId, Integer top, Integer skip, String search, String filter, Boolean count, List<GroupsOrderby> orderby)
      Get ref of members from groups.
      Parameters:
      groupId - key: id of group.
      top - Show only the first n items.
      skip - Skip the first n items.
      search - Search items by search phrases.
      filter - Filter items by property values.
      count - Include count of items.
      orderby - Order items by property values.
      Returns:
      ref of members from groups as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listRefMembersAsync

      com.azure.core.http.rest.PagedFlux<String> listRefMembersAsync(String groupId)
      Get ref of members from groups.
      Parameters:
      groupId - key: id of group.
      Returns:
      ref of members from groups as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listRefMembers

      com.azure.core.http.rest.PagedIterable<String> listRefMembers(String groupId)
      Get ref of members from groups.
      Parameters:
      groupId - key: id of group.
      Returns:
      ref of members from groups as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listRefMembers

      com.azure.core.http.rest.PagedIterable<String> listRefMembers(String groupId, Integer top, Integer skip, String search, String filter, Boolean count, List<GroupsOrderby> orderby, com.azure.core.util.Context context)
      Get ref of members from groups.
      Parameters:
      groupId - key: id of group.
      top - Show only the first n items.
      skip - Skip the first n items.
      search - Search items by search phrases.
      filter - Filter items by property values.
      count - Include count of items.
      orderby - Order items by property values.
      context - The context to associate with this operation.
      Returns:
      ref of members from groups as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createRefMembersWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> createRefMembersWithResponseAsync(String groupId, Map<String,Object> body)
      Create new navigation property ref to members for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property ref value.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createRefMembersAsync

      Mono<Void> createRefMembersAsync(String groupId, Map<String,Object> body)
      Create new navigation property ref to members for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property ref value.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createRefMembersWithResponse

      com.azure.core.http.rest.Response<Void> createRefMembersWithResponse(String groupId, Map<String,Object> body, com.azure.core.util.Context context)
      Create new navigation property ref to members for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property ref value.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createRefMembers

      void createRefMembers(String groupId, Map<String,Object> body)
      Create new navigation property ref to members for groups.
      Parameters:
      groupId - key: id of group.
      body - New navigation property ref value.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteRefMemberWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteRefMemberWithResponseAsync(String groupId, String directoryObjectId, String ifMatch)
      Delete ref of member from groups.
      Parameters:
      groupId - key: id of group.
      directoryObjectId - key: directoryObject-id.
      ifMatch - ETag.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteRefMemberAsync

      Mono<Void> deleteRefMemberAsync(String groupId, String directoryObjectId)
      Delete ref of member from groups.
      Parameters:
      groupId - key: id of group.
      directoryObjectId - key: directoryObject-id.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteRefMemberWithResponse

      com.azure.core.http.rest.Response<Void> deleteRefMemberWithResponse(String groupId, String directoryObjectId, String ifMatch, com.azure.core.util.Context context)
      Delete ref of member from groups.
      Parameters:
      groupId - key: id of group.
      directoryObjectId - key: directoryObject-id.
      ifMatch - ETag.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteRefMember

      void deleteRefMember(String groupId, String directoryObjectId)
      Delete ref of member from groups.
      Parameters:
      groupId - key: id of group.
      directoryObjectId - key: directoryObject-id.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      OdataErrorMainException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.