Interface DirectoriesClient


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

      • listAdministrativeUnitsAsync

        com.azure.core.http.rest.PagedFlux<MicrosoftGraphAdministrativeUnitInner> listAdministrativeUnitsAsync()
        Get administrativeUnits from directory.
        Returns:
        administrativeUnits from directory.
        Throws:
        OdataErrorMainException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAdministrativeUnits

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphAdministrativeUnitInner> listAdministrativeUnits()
        Get administrativeUnits from directory.
        Returns:
        administrativeUnits from directory.
        Throws:
        OdataErrorMainException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAdministrativeUnits

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphAdministrativeUnitInner> listAdministrativeUnits​(Integer top,
                                                                                                              Integer skip,
                                                                                                              String search,
                                                                                                              String filter,
                                                                                                              Boolean count,
                                                                                                              List<DirectoryOrderby> orderby,
                                                                                                              List<DirectorySelect> select,
                                                                                                              List<DirectoryExpand> expand,
                                                                                                              com.azure.core.util.Context context)
        Get administrativeUnits from directory.
        Parameters:
        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:
        administrativeUnits from directory.
        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.
      • createAdministrativeUnitsWithResponse

        com.azure.core.http.rest.Response<MicrosoftGraphAdministrativeUnitInner> createAdministrativeUnitsWithResponse​(MicrosoftGraphAdministrativeUnitInner body,
                                                                                                                       com.azure.core.util.Context context)
        Create new navigation property to administrativeUnits for directory.
        Parameters:
        body - New navigation property.
        context - The context to associate with this operation.
        Returns:
        represents an Azure Active Directory object.
        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.
      • getAdministrativeUnitsWithResponse

        com.azure.core.http.rest.Response<MicrosoftGraphAdministrativeUnitInner> getAdministrativeUnitsWithResponse​(String administrativeUnitId,
                                                                                                                    List<DirectorySelect> select,
                                                                                                                    List<DirectoryExpand> expand,
                                                                                                                    com.azure.core.util.Context context)
        Get administrativeUnits from directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        select - Select properties to be returned.
        expand - Expand related entities.
        context - The context to associate with this operation.
        Returns:
        administrativeUnits from directory.
        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.
      • updateAdministrativeUnitsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> updateAdministrativeUnitsWithResponseAsync​(String administrativeUnitId,
                                                                                                 MicrosoftGraphAdministrativeUnitInner body)
        Update the navigation property administrativeUnits in directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        body - New navigation property values.
        Returns:
        the completion.
        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.
      • updateAdministrativeUnitsAsync

        Mono<Void> updateAdministrativeUnitsAsync​(String administrativeUnitId,
                                                  MicrosoftGraphAdministrativeUnitInner body)
        Update the navigation property administrativeUnits in directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        body - New navigation property values.
        Returns:
        the completion.
        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.
      • updateAdministrativeUnits

        void updateAdministrativeUnits​(String administrativeUnitId,
                                       MicrosoftGraphAdministrativeUnitInner body)
        Update the navigation property administrativeUnits in directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        body - New navigation property values.
        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.
      • updateAdministrativeUnitsWithResponse

        com.azure.core.http.rest.Response<Void> updateAdministrativeUnitsWithResponse​(String administrativeUnitId,
                                                                                      MicrosoftGraphAdministrativeUnitInner body,
                                                                                      com.azure.core.util.Context context)
        Update the navigation property administrativeUnits in directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        body - New navigation property values.
        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.
      • deleteAdministrativeUnitsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteAdministrativeUnitsWithResponseAsync​(String administrativeUnitId,
                                                                                                 String ifMatch)
        Delete navigation property administrativeUnits for directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        ifMatch - ETag.
        Returns:
        the completion.
        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.
      • deleteAdministrativeUnitsAsync

        Mono<Void> deleteAdministrativeUnitsAsync​(String administrativeUnitId,
                                                  String ifMatch)
        Delete navigation property administrativeUnits for directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        ifMatch - ETag.
        Returns:
        the completion.
        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.
      • deleteAdministrativeUnitsAsync

        Mono<Void> deleteAdministrativeUnitsAsync​(String administrativeUnitId)
        Delete navigation property administrativeUnits for directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        Returns:
        the completion.
        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.
      • deleteAdministrativeUnits

        void deleteAdministrativeUnits​(String administrativeUnitId)
        Delete navigation property administrativeUnits for directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        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.
      • deleteAdministrativeUnitsWithResponse

        com.azure.core.http.rest.Response<Void> deleteAdministrativeUnitsWithResponse​(String administrativeUnitId,
                                                                                      String ifMatch,
                                                                                      com.azure.core.util.Context context)
        Delete navigation property administrativeUnits for directory.
        Parameters:
        administrativeUnitId - key: id of administrativeUnit.
        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.
      • listDeletedItemsAsync

        com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listDeletedItemsAsync​(Integer top,
                                                                                                     Integer skip,
                                                                                                     String search,
                                                                                                     String filter,
                                                                                                     Boolean count,
                                                                                                     List<DirectoryOrderby> orderby,
                                                                                                     List<DirectorySelect> select,
                                                                                                     List<String> expand)
        Get deletedItems from directory.
        Parameters:
        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:
        deletedItems from directory.
        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.
      • listDeletedItems

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listDeletedItems​(Integer top,
                                                                                                    Integer skip,
                                                                                                    String search,
                                                                                                    String filter,
                                                                                                    Boolean count,
                                                                                                    List<DirectoryOrderby> orderby,
                                                                                                    List<DirectorySelect> select,
                                                                                                    List<String> expand,
                                                                                                    com.azure.core.util.Context context)
        Get deletedItems from directory.
        Parameters:
        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:
        deletedItems from directory.
        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.
      • createDeletedItemsWithResponse

        com.azure.core.http.rest.Response<MicrosoftGraphDirectoryObjectInner> createDeletedItemsWithResponse​(MicrosoftGraphDirectoryObjectInner body,
                                                                                                             com.azure.core.util.Context context)
        Create new navigation property to deletedItems for directory.
        Parameters:
        body - New navigation property.
        context - The context to associate with this operation.
        Returns:
        represents an Azure Active Directory object.
        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.
      • getDeletedItemsWithResponse

        com.azure.core.http.rest.Response<MicrosoftGraphDirectoryObjectInner> getDeletedItemsWithResponse​(String directoryObjectId,
                                                                                                          List<DirectorySelect> select,
                                                                                                          List<String> expand,
                                                                                                          com.azure.core.util.Context context)
        Get deletedItems from directory.
        Parameters:
        directoryObjectId - key: id of directoryObject.
        select - Select properties to be returned.
        expand - Expand related entities.
        context - The context to associate with this operation.
        Returns:
        deletedItems from directory.
        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.
      • updateDeletedItemsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> updateDeletedItemsWithResponseAsync​(String directoryObjectId,
                                                                                          MicrosoftGraphDirectoryObjectInner body)
        Update the navigation property deletedItems in directory.
        Parameters:
        directoryObjectId - key: id of directoryObject.
        body - New navigation property values.
        Returns:
        the completion.
        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.
      • updateDeletedItemsWithResponse

        com.azure.core.http.rest.Response<Void> updateDeletedItemsWithResponse​(String directoryObjectId,
                                                                               MicrosoftGraphDirectoryObjectInner body,
                                                                               com.azure.core.util.Context context)
        Update the navigation property deletedItems in directory.
        Parameters:
        directoryObjectId - key: id of directoryObject.
        body - New navigation property values.
        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.
      • deleteDeletedItemsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteDeletedItemsWithResponseAsync​(String directoryObjectId,
                                                                                          String ifMatch)
        Delete navigation property deletedItems for directory.
        Parameters:
        directoryObjectId - key: id of directoryObject.
        ifMatch - ETag.
        Returns:
        the completion.
        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.
      • deleteDeletedItemsAsync

        Mono<Void> deleteDeletedItemsAsync​(String directoryObjectId,
                                           String ifMatch)
        Delete navigation property deletedItems for directory.
        Parameters:
        directoryObjectId - key: id of directoryObject.
        ifMatch - ETag.
        Returns:
        the completion.
        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.
      • deleteDeletedItemsAsync

        Mono<Void> deleteDeletedItemsAsync​(String directoryObjectId)
        Delete navigation property deletedItems for directory.
        Parameters:
        directoryObjectId - key: id of directoryObject.
        Returns:
        the completion.
        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.
      • deleteDeletedItems

        void deleteDeletedItems​(String directoryObjectId)
        Delete navigation property deletedItems for directory.
        Parameters:
        directoryObjectId - key: id of 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.
      • deleteDeletedItemsWithResponse

        com.azure.core.http.rest.Response<Void> deleteDeletedItemsWithResponse​(String directoryObjectId,
                                                                               String ifMatch,
                                                                               com.azure.core.util.Context context)
        Delete navigation property deletedItems for directory.
        Parameters:
        directoryObjectId - key: id of directoryObject.
        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.