Interface DevicesClient


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

      • listExtensionsAsync

        com.azure.core.http.rest.PagedFlux<MicrosoftGraphExtensionInner> listExtensionsAsync​(String deviceId,
                                                                                             Integer top,
                                                                                             Integer skip,
                                                                                             String search,
                                                                                             String filter,
                                                                                             Boolean count,
                                                                                             List<DevicesOrderby> orderby,
                                                                                             List<String> select,
                                                                                             List<String> expand)
        Get extensions from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        extensions from devices.
        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.
      • listExtensions

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphExtensionInner> listExtensions​(String deviceId,
                                                                                            Integer top,
                                                                                            Integer skip,
                                                                                            String search,
                                                                                            String filter,
                                                                                            Boolean count,
                                                                                            List<DevicesOrderby> orderby,
                                                                                            List<String> select,
                                                                                            List<String> expand,
                                                                                            com.azure.core.util.Context context)
        Get extensions from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        extensions from devices.
        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.
      • createExtensionsWithResponse

        com.azure.core.http.rest.Response<MicrosoftGraphExtensionInner> createExtensionsWithResponse​(String deviceId,
                                                                                                     MicrosoftGraphExtensionInner body,
                                                                                                     com.azure.core.util.Context context)
        Create new navigation property to extensions for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property.
        context - The context to associate with this operation.
        Returns:
        extension.
        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.
      • getExtensionsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<MicrosoftGraphExtensionInner>> getExtensionsWithResponseAsync​(String deviceId,
                                                                                                             String extensionId,
                                                                                                             List<String> select,
                                                                                                             List<String> expand)
        Get extensions from devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        select - Select properties to be returned.
        expand - Expand related entities.
        Returns:
        extensions from devices.
        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.
      • getExtensionsWithResponse

        com.azure.core.http.rest.Response<MicrosoftGraphExtensionInner> getExtensionsWithResponse​(String deviceId,
                                                                                                  String extensionId,
                                                                                                  List<String> select,
                                                                                                  List<String> expand,
                                                                                                  com.azure.core.util.Context context)
        Get extensions from devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        select - Select properties to be returned.
        expand - Expand related entities.
        context - The context to associate with this operation.
        Returns:
        extensions from devices.
        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.
      • updateExtensionsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> updateExtensionsWithResponseAsync​(String deviceId,
                                                                                        String extensionId,
                                                                                        MicrosoftGraphExtensionInner body)
        Update the navigation property extensions in devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • updateExtensionsAsync

        Mono<Void> updateExtensionsAsync​(String deviceId,
                                         String extensionId,
                                         MicrosoftGraphExtensionInner body)
        Update the navigation property extensions in devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • updateExtensions

        void updateExtensions​(String deviceId,
                              String extensionId,
                              MicrosoftGraphExtensionInner body)
        Update the navigation property extensions in devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • updateExtensionsWithResponse

        com.azure.core.http.rest.Response<Void> updateExtensionsWithResponse​(String deviceId,
                                                                             String extensionId,
                                                                             MicrosoftGraphExtensionInner body,
                                                                             com.azure.core.util.Context context)
        Update the navigation property extensions in devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • deleteExtensionsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteExtensionsWithResponseAsync​(String deviceId,
                                                                                        String extensionId,
                                                                                        String ifMatch)
        Delete navigation property extensions for devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • deleteExtensionsAsync

        Mono<Void> deleteExtensionsAsync​(String deviceId,
                                         String extensionId,
                                         String ifMatch)
        Delete navigation property extensions for devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • deleteExtensionsAsync

        Mono<Void> deleteExtensionsAsync​(String deviceId,
                                         String extensionId)
        Delete navigation property extensions for devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • deleteExtensions

        void deleteExtensions​(String deviceId,
                              String extensionId)
        Delete navigation property extensions for devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • deleteExtensionsWithResponse

        com.azure.core.http.rest.Response<Void> deleteExtensionsWithResponse​(String deviceId,
                                                                             String extensionId,
                                                                             String ifMatch,
                                                                             com.azure.core.util.Context context)
        Delete navigation property extensions for devices.
        Parameters:
        deviceId - key: id of device.
        extensionId - key: id of extension.
        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.
      • listMemberOfAsync

        com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listMemberOfAsync​(String deviceId,
                                                                                                 Integer top,
                                                                                                 Integer skip,
                                                                                                 String search,
                                                                                                 String filter,
                                                                                                 Boolean count,
                                                                                                 List<DevicesOrderby> orderby,
                                                                                                 List<DevicesSelect> select,
                                                                                                 List<String> expand)
        Get memberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        memberOf from devices.
        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.
      • listMemberOf

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listMemberOf​(String deviceId,
                                                                                                Integer top,
                                                                                                Integer skip,
                                                                                                String search,
                                                                                                String filter,
                                                                                                Boolean count,
                                                                                                List<DevicesOrderby> orderby,
                                                                                                List<DevicesSelect> select,
                                                                                                List<String> expand,
                                                                                                com.azure.core.util.Context context)
        Get memberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        memberOf from devices.
        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.
      • listRefMemberOfAsync

        com.azure.core.http.rest.PagedFlux<String> listRefMemberOfAsync​(String deviceId,
                                                                        Integer top,
                                                                        Integer skip,
                                                                        String search,
                                                                        String filter,
                                                                        Boolean count,
                                                                        List<DevicesOrderby> orderby)
        Get ref of memberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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 memberOf from devices.
        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.
      • listRefMemberOfAsync

        com.azure.core.http.rest.PagedFlux<String> listRefMemberOfAsync​(String deviceId)
        Get ref of memberOf from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of memberOf from devices.
        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.
      • listRefMemberOf

        com.azure.core.http.rest.PagedIterable<String> listRefMemberOf​(String deviceId)
        Get ref of memberOf from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of memberOf from devices.
        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.
      • listRefMemberOf

        com.azure.core.http.rest.PagedIterable<String> listRefMemberOf​(String deviceId,
                                                                       Integer top,
                                                                       Integer skip,
                                                                       String search,
                                                                       String filter,
                                                                       Boolean count,
                                                                       List<DevicesOrderby> orderby,
                                                                       com.azure.core.util.Context context)
        Get ref of memberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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 memberOf from devices.
        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.
      • createRefMemberOfWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Map<String,​Object>>> createRefMemberOfWithResponseAsync​(String deviceId,
                                                                                                             Map<String,​Object> body)
        Create new navigation property ref to memberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefMemberOfAsync

        Mono<Map<String,​Object>> createRefMemberOfAsync​(String deviceId,
                                                              Map<String,​Object> body)
        Create new navigation property ref to memberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefMemberOf

        Map<String,​Object> createRefMemberOf​(String deviceId,
                                                   Map<String,​Object> body)
        Create new navigation property ref to memberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefMemberOfWithResponse

        com.azure.core.http.rest.Response<Map<String,​Object>> createRefMemberOfWithResponse​(String deviceId,
                                                                                                  Map<String,​Object> body,
                                                                                                  com.azure.core.util.Context context)
        Create new navigation property ref to memberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        context - The context to associate with this operation.
        Returns:
        dictionary of <any>.
        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.
      • checkMemberGroupsWithResponse

        com.azure.core.http.rest.Response<List<String>> checkMemberGroupsWithResponse​(String deviceId,
                                                                                      DevicesCheckMemberGroupsRequestBody body,
                                                                                      com.azure.core.util.Context context)
        Invoke action checkMemberGroups.
        Parameters:
        deviceId - key: id of device.
        body - Action parameters.
        context - The context to associate with this operation.
        Returns:
        array of String.
        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.
      • checkMemberObjectsWithResponse

        com.azure.core.http.rest.Response<List<String>> checkMemberObjectsWithResponse​(String deviceId,
                                                                                       DevicesCheckMemberObjectsRequestBody body,
                                                                                       com.azure.core.util.Context context)
        Invoke action checkMemberObjects.
        Parameters:
        deviceId - key: id of device.
        body - Action parameters.
        context - The context to associate with this operation.
        Returns:
        array of String.
        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.
      • getMemberGroupsWithResponse

        com.azure.core.http.rest.Response<List<String>> getMemberGroupsWithResponse​(String deviceId,
                                                                                    DevicesGetMemberGroupsRequestBody body,
                                                                                    com.azure.core.util.Context context)
        Invoke action getMemberGroups.
        Parameters:
        deviceId - key: id of device.
        body - Action parameters.
        context - The context to associate with this operation.
        Returns:
        array of String.
        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.
      • getMemberObjectsWithResponse

        com.azure.core.http.rest.Response<List<String>> getMemberObjectsWithResponse​(String deviceId,
                                                                                     DevicesGetMemberObjectsRequestBody body,
                                                                                     com.azure.core.util.Context context)
        Invoke action getMemberObjects.
        Parameters:
        deviceId - key: id of device.
        body - Action parameters.
        context - The context to associate with this operation.
        Returns:
        array of String.
        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.
      • restoreWithResponse

        com.azure.core.http.rest.Response<MicrosoftGraphDirectoryObjectInner> restoreWithResponse​(String deviceId,
                                                                                                  com.azure.core.util.Context context)
        Invoke action restore.
        Parameters:
        deviceId - key: id of device.
        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.
      • listRegisteredOwnersAsync

        com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listRegisteredOwnersAsync​(String deviceId,
                                                                                                         Integer top,
                                                                                                         Integer skip,
                                                                                                         String search,
                                                                                                         String filter,
                                                                                                         Boolean count,
                                                                                                         List<DevicesOrderby> orderby,
                                                                                                         List<DevicesSelect> select,
                                                                                                         List<String> expand)
        Get registeredOwners from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        registeredOwners from devices.
        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.
      • listRegisteredOwners

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listRegisteredOwners​(String deviceId,
                                                                                                        Integer top,
                                                                                                        Integer skip,
                                                                                                        String search,
                                                                                                        String filter,
                                                                                                        Boolean count,
                                                                                                        List<DevicesOrderby> orderby,
                                                                                                        List<DevicesSelect> select,
                                                                                                        List<String> expand,
                                                                                                        com.azure.core.util.Context context)
        Get registeredOwners from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        registeredOwners from devices.
        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.
      • listRefRegisteredOwnersAsync

        com.azure.core.http.rest.PagedFlux<String> listRefRegisteredOwnersAsync​(String deviceId,
                                                                                Integer top,
                                                                                Integer skip,
                                                                                String search,
                                                                                String filter,
                                                                                Boolean count,
                                                                                List<DevicesOrderby> orderby)
        Get ref of registeredOwners from devices.
        Parameters:
        deviceId - key: id of device.
        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 registeredOwners from devices.
        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.
      • listRefRegisteredOwnersAsync

        com.azure.core.http.rest.PagedFlux<String> listRefRegisteredOwnersAsync​(String deviceId)
        Get ref of registeredOwners from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of registeredOwners from devices.
        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.
      • listRefRegisteredOwners

        com.azure.core.http.rest.PagedIterable<String> listRefRegisteredOwners​(String deviceId)
        Get ref of registeredOwners from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of registeredOwners from devices.
        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.
      • listRefRegisteredOwners

        com.azure.core.http.rest.PagedIterable<String> listRefRegisteredOwners​(String deviceId,
                                                                               Integer top,
                                                                               Integer skip,
                                                                               String search,
                                                                               String filter,
                                                                               Boolean count,
                                                                               List<DevicesOrderby> orderby,
                                                                               com.azure.core.util.Context context)
        Get ref of registeredOwners from devices.
        Parameters:
        deviceId - key: id of device.
        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 registeredOwners from devices.
        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.
      • createRefRegisteredOwnersWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Map<String,​Object>>> createRefRegisteredOwnersWithResponseAsync​(String deviceId,
                                                                                                                     Map<String,​Object> body)
        Create new navigation property ref to registeredOwners for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefRegisteredOwnersAsync

        Mono<Map<String,​Object>> createRefRegisteredOwnersAsync​(String deviceId,
                                                                      Map<String,​Object> body)
        Create new navigation property ref to registeredOwners for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefRegisteredOwners

        Map<String,​Object> createRefRegisteredOwners​(String deviceId,
                                                           Map<String,​Object> body)
        Create new navigation property ref to registeredOwners for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefRegisteredOwnersWithResponse

        com.azure.core.http.rest.Response<Map<String,​Object>> createRefRegisteredOwnersWithResponse​(String deviceId,
                                                                                                          Map<String,​Object> body,
                                                                                                          com.azure.core.util.Context context)
        Create new navigation property ref to registeredOwners for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        context - The context to associate with this operation.
        Returns:
        dictionary of <any>.
        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.
      • listRegisteredUsersAsync

        com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listRegisteredUsersAsync​(String deviceId,
                                                                                                        Integer top,
                                                                                                        Integer skip,
                                                                                                        String search,
                                                                                                        String filter,
                                                                                                        Boolean count,
                                                                                                        List<DevicesOrderby> orderby,
                                                                                                        List<DevicesSelect> select,
                                                                                                        List<String> expand)
        Get registeredUsers from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        registeredUsers from devices.
        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.
      • listRegisteredUsers

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listRegisteredUsers​(String deviceId,
                                                                                                       Integer top,
                                                                                                       Integer skip,
                                                                                                       String search,
                                                                                                       String filter,
                                                                                                       Boolean count,
                                                                                                       List<DevicesOrderby> orderby,
                                                                                                       List<DevicesSelect> select,
                                                                                                       List<String> expand,
                                                                                                       com.azure.core.util.Context context)
        Get registeredUsers from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        registeredUsers from devices.
        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.
      • listRefRegisteredUsersAsync

        com.azure.core.http.rest.PagedFlux<String> listRefRegisteredUsersAsync​(String deviceId,
                                                                               Integer top,
                                                                               Integer skip,
                                                                               String search,
                                                                               String filter,
                                                                               Boolean count,
                                                                               List<DevicesOrderby> orderby)
        Get ref of registeredUsers from devices.
        Parameters:
        deviceId - key: id of device.
        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 registeredUsers from devices.
        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.
      • listRefRegisteredUsersAsync

        com.azure.core.http.rest.PagedFlux<String> listRefRegisteredUsersAsync​(String deviceId)
        Get ref of registeredUsers from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of registeredUsers from devices.
        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.
      • listRefRegisteredUsers

        com.azure.core.http.rest.PagedIterable<String> listRefRegisteredUsers​(String deviceId)
        Get ref of registeredUsers from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of registeredUsers from devices.
        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.
      • listRefRegisteredUsers

        com.azure.core.http.rest.PagedIterable<String> listRefRegisteredUsers​(String deviceId,
                                                                              Integer top,
                                                                              Integer skip,
                                                                              String search,
                                                                              String filter,
                                                                              Boolean count,
                                                                              List<DevicesOrderby> orderby,
                                                                              com.azure.core.util.Context context)
        Get ref of registeredUsers from devices.
        Parameters:
        deviceId - key: id of device.
        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 registeredUsers from devices.
        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.
      • createRefRegisteredUsersWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Map<String,​Object>>> createRefRegisteredUsersWithResponseAsync​(String deviceId,
                                                                                                                    Map<String,​Object> body)
        Create new navigation property ref to registeredUsers for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefRegisteredUsersAsync

        Mono<Map<String,​Object>> createRefRegisteredUsersAsync​(String deviceId,
                                                                     Map<String,​Object> body)
        Create new navigation property ref to registeredUsers for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefRegisteredUsers

        Map<String,​Object> createRefRegisteredUsers​(String deviceId,
                                                          Map<String,​Object> body)
        Create new navigation property ref to registeredUsers for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefRegisteredUsersWithResponse

        com.azure.core.http.rest.Response<Map<String,​Object>> createRefRegisteredUsersWithResponse​(String deviceId,
                                                                                                         Map<String,​Object> body,
                                                                                                         com.azure.core.util.Context context)
        Create new navigation property ref to registeredUsers for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        context - The context to associate with this operation.
        Returns:
        dictionary of <any>.
        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.
      • listTransitiveMemberOfAsync

        com.azure.core.http.rest.PagedFlux<MicrosoftGraphDirectoryObjectInner> listTransitiveMemberOfAsync​(String deviceId,
                                                                                                           Integer top,
                                                                                                           Integer skip,
                                                                                                           String search,
                                                                                                           String filter,
                                                                                                           Boolean count,
                                                                                                           List<DevicesOrderby> orderby,
                                                                                                           List<DevicesSelect> select,
                                                                                                           List<String> expand)
        Get transitiveMemberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        transitiveMemberOf from devices.
        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.
      • listTransitiveMemberOf

        com.azure.core.http.rest.PagedIterable<MicrosoftGraphDirectoryObjectInner> listTransitiveMemberOf​(String deviceId,
                                                                                                          Integer top,
                                                                                                          Integer skip,
                                                                                                          String search,
                                                                                                          String filter,
                                                                                                          Boolean count,
                                                                                                          List<DevicesOrderby> orderby,
                                                                                                          List<DevicesSelect> select,
                                                                                                          List<String> expand,
                                                                                                          com.azure.core.util.Context context)
        Get transitiveMemberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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:
        transitiveMemberOf from devices.
        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.
      • listRefTransitiveMemberOfAsync

        com.azure.core.http.rest.PagedFlux<String> listRefTransitiveMemberOfAsync​(String deviceId,
                                                                                  Integer top,
                                                                                  Integer skip,
                                                                                  String search,
                                                                                  String filter,
                                                                                  Boolean count,
                                                                                  List<DevicesOrderby> orderby)
        Get ref of transitiveMemberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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 transitiveMemberOf from devices.
        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.
      • listRefTransitiveMemberOfAsync

        com.azure.core.http.rest.PagedFlux<String> listRefTransitiveMemberOfAsync​(String deviceId)
        Get ref of transitiveMemberOf from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of transitiveMemberOf from devices.
        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.
      • listRefTransitiveMemberOf

        com.azure.core.http.rest.PagedIterable<String> listRefTransitiveMemberOf​(String deviceId)
        Get ref of transitiveMemberOf from devices.
        Parameters:
        deviceId - key: id of device.
        Returns:
        ref of transitiveMemberOf from devices.
        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.
      • listRefTransitiveMemberOf

        com.azure.core.http.rest.PagedIterable<String> listRefTransitiveMemberOf​(String deviceId,
                                                                                 Integer top,
                                                                                 Integer skip,
                                                                                 String search,
                                                                                 String filter,
                                                                                 Boolean count,
                                                                                 List<DevicesOrderby> orderby,
                                                                                 com.azure.core.util.Context context)
        Get ref of transitiveMemberOf from devices.
        Parameters:
        deviceId - key: id of device.
        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 transitiveMemberOf from devices.
        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.
      • createRefTransitiveMemberOfWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Map<String,​Object>>> createRefTransitiveMemberOfWithResponseAsync​(String deviceId,
                                                                                                                       Map<String,​Object> body)
        Create new navigation property ref to transitiveMemberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefTransitiveMemberOfAsync

        Mono<Map<String,​Object>> createRefTransitiveMemberOfAsync​(String deviceId,
                                                                        Map<String,​Object> body)
        Create new navigation property ref to transitiveMemberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefTransitiveMemberOf

        Map<String,​Object> createRefTransitiveMemberOf​(String deviceId,
                                                             Map<String,​Object> body)
        Create new navigation property ref to transitiveMemberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        Returns:
        dictionary of <any>.
        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.
      • createRefTransitiveMemberOfWithResponse

        com.azure.core.http.rest.Response<Map<String,​Object>> createRefTransitiveMemberOfWithResponse​(String deviceId,
                                                                                                            Map<String,​Object> body,
                                                                                                            com.azure.core.util.Context context)
        Create new navigation property ref to transitiveMemberOf for devices.
        Parameters:
        deviceId - key: id of device.
        body - New navigation property ref value.
        context - The context to associate with this operation.
        Returns:
        dictionary of <any>.
        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.
      • validatePropertiesWithResponse

        com.azure.core.http.rest.Response<Void> validatePropertiesWithResponse​(DevicesValidatePropertiesRequestBody body,
                                                                               com.azure.core.util.Context context)
        Invoke action validateProperties.
        Parameters:
        body - Action parameters.
        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.