Interface DevicesDevicesClient
-
public interface DevicesDevicesClient
An instance of this class provides access to all the operations defined in DevicesDevicesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MicrosoftGraphDeviceInner
createDevice(MicrosoftGraphDeviceInner body)
Add new entity to devices.Mono<MicrosoftGraphDeviceInner>
createDeviceAsync(MicrosoftGraphDeviceInner body)
Add new entity to devices.com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner>
createDeviceWithResponse(MicrosoftGraphDeviceInner body, com.azure.core.util.Context context)
Add new entity to devices.Mono<com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner>>
createDeviceWithResponseAsync(MicrosoftGraphDeviceInner body)
Add new entity to devices.void
deleteDevice(String deviceId)
Delete entity from devices.Mono<Void>
deleteDeviceAsync(String deviceId)
Delete entity from devices.Mono<Void>
deleteDeviceAsync(String deviceId, String ifMatch)
Delete entity from devices.com.azure.core.http.rest.Response<Void>
deleteDeviceWithResponse(String deviceId, String ifMatch, com.azure.core.util.Context context)
Delete entity from devices.Mono<com.azure.core.http.rest.Response<Void>>
deleteDeviceWithResponseAsync(String deviceId, String ifMatch)
Delete entity from devices.MicrosoftGraphDeviceInner
getDevice(String deviceId)
Get entity from devices by key.Mono<MicrosoftGraphDeviceInner>
getDeviceAsync(String deviceId)
Get entity from devices by key.Mono<MicrosoftGraphDeviceInner>
getDeviceAsync(String deviceId, String consistencyLevel, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand)
Get entity from devices by key.com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner>
getDeviceWithResponse(String deviceId, String consistencyLevel, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand, com.azure.core.util.Context context)
Get entity from devices by key.Mono<com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner>>
getDeviceWithResponseAsync(String deviceId, String consistencyLevel, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand)
Get entity from devices by key.com.azure.core.http.rest.PagedIterable<MicrosoftGraphDeviceInner>
listDevice()
Get entities from devices.com.azure.core.http.rest.PagedIterable<MicrosoftGraphDeviceInner>
listDevice(String consistencyLevel, Integer top, Integer skip, String search, String filter, Boolean count, List<DevicesDeviceOrderby> orderby, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand, com.azure.core.util.Context context)
Get entities from devices.com.azure.core.http.rest.PagedFlux<MicrosoftGraphDeviceInner>
listDeviceAsync()
Get entities from devices.com.azure.core.http.rest.PagedFlux<MicrosoftGraphDeviceInner>
listDeviceAsync(String consistencyLevel, Integer top, Integer skip, String search, String filter, Boolean count, List<DevicesDeviceOrderby> orderby, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand)
Get entities from devices.void
updateDevice(String deviceId, MicrosoftGraphDeviceInner body)
Update entity in devices.Mono<Void>
updateDeviceAsync(String deviceId, MicrosoftGraphDeviceInner body)
Update entity in devices.com.azure.core.http.rest.Response<Void>
updateDeviceWithResponse(String deviceId, MicrosoftGraphDeviceInner body, com.azure.core.util.Context context)
Update entity in devices.Mono<com.azure.core.http.rest.Response<Void>>
updateDeviceWithResponseAsync(String deviceId, MicrosoftGraphDeviceInner body)
Update entity in devices.
-
-
-
Method Detail
-
listDeviceAsync
com.azure.core.http.rest.PagedFlux<MicrosoftGraphDeviceInner> listDeviceAsync(String consistencyLevel, Integer top, Integer skip, String search, String filter, Boolean count, List<DevicesDeviceOrderby> orderby, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand)
Get entities from devices.- Parameters:
consistencyLevel
- Indicates the requested consistency level.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:
- entities 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.
-
listDeviceAsync
com.azure.core.http.rest.PagedFlux<MicrosoftGraphDeviceInner> listDeviceAsync()
Get entities from devices.- Returns:
- entities from devices.
- Throws:
OdataErrorMainException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listDevice
com.azure.core.http.rest.PagedIterable<MicrosoftGraphDeviceInner> listDevice()
Get entities from devices.- Returns:
- entities from devices.
- Throws:
OdataErrorMainException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listDevice
com.azure.core.http.rest.PagedIterable<MicrosoftGraphDeviceInner> listDevice(String consistencyLevel, Integer top, Integer skip, String search, String filter, Boolean count, List<DevicesDeviceOrderby> orderby, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand, com.azure.core.util.Context context)
Get entities from devices.- Parameters:
consistencyLevel
- Indicates the requested consistency level.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:
- entities 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.
-
createDeviceWithResponseAsync
Mono<com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner>> createDeviceWithResponseAsync(MicrosoftGraphDeviceInner body)
Add new entity to devices.- Parameters:
body
- New entity.- 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.
-
createDeviceAsync
Mono<MicrosoftGraphDeviceInner> createDeviceAsync(MicrosoftGraphDeviceInner body)
Add new entity to devices.- Parameters:
body
- New entity.- 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.
-
createDevice
MicrosoftGraphDeviceInner createDevice(MicrosoftGraphDeviceInner body)
Add new entity to devices.- Parameters:
body
- New entity.- 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.
-
createDeviceWithResponse
com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner> createDeviceWithResponse(MicrosoftGraphDeviceInner body, com.azure.core.util.Context context)
Add new entity to devices.- Parameters:
body
- New entity.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.
-
getDeviceWithResponseAsync
Mono<com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner>> getDeviceWithResponseAsync(String deviceId, String consistencyLevel, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand)
Get entity from devices by key.- Parameters:
deviceId
- key: id of device.consistencyLevel
- Indicates the requested consistency level.select
- Select properties to be returned.expand
- Expand related entities.- Returns:
- entity from devices by key.
- 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.
-
getDeviceAsync
Mono<MicrosoftGraphDeviceInner> getDeviceAsync(String deviceId, String consistencyLevel, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand)
Get entity from devices by key.- Parameters:
deviceId
- key: id of device.consistencyLevel
- Indicates the requested consistency level.select
- Select properties to be returned.expand
- Expand related entities.- Returns:
- entity from devices by key.
- 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.
-
getDeviceAsync
Mono<MicrosoftGraphDeviceInner> getDeviceAsync(String deviceId)
Get entity from devices by key.- Parameters:
deviceId
- key: id of device.- Returns:
- entity from devices by key.
- 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.
-
getDevice
MicrosoftGraphDeviceInner getDevice(String deviceId)
Get entity from devices by key.- Parameters:
deviceId
- key: id of device.- Returns:
- entity from devices by key.
- 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.
-
getDeviceWithResponse
com.azure.core.http.rest.Response<MicrosoftGraphDeviceInner> getDeviceWithResponse(String deviceId, String consistencyLevel, List<DevicesDeviceSelect> select, List<DevicesDeviceExpand> expand, com.azure.core.util.Context context)
Get entity from devices by key.- Parameters:
deviceId
- key: id of device.consistencyLevel
- Indicates the requested consistency level.select
- Select properties to be returned.expand
- Expand related entities.context
- The context to associate with this operation.- Returns:
- entity from devices by key.
- 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.
-
updateDeviceWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> updateDeviceWithResponseAsync(String deviceId, MicrosoftGraphDeviceInner body)
Update entity in devices.- Parameters:
deviceId
- key: id of device.body
- New 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.
-
updateDeviceAsync
Mono<Void> updateDeviceAsync(String deviceId, MicrosoftGraphDeviceInner body)
Update entity in devices.- Parameters:
deviceId
- key: id of device.body
- New 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.
-
updateDevice
void updateDevice(String deviceId, MicrosoftGraphDeviceInner body)
Update entity in devices.- Parameters:
deviceId
- key: id of device.body
- New 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.
-
updateDeviceWithResponse
com.azure.core.http.rest.Response<Void> updateDeviceWithResponse(String deviceId, MicrosoftGraphDeviceInner body, com.azure.core.util.Context context)
Update entity in devices.- Parameters:
deviceId
- key: id of device.body
- New 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.
-
deleteDeviceWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteDeviceWithResponseAsync(String deviceId, String ifMatch)
Delete entity from devices.- Parameters:
deviceId
- key: id of device.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.
-
deleteDeviceAsync
Mono<Void> deleteDeviceAsync(String deviceId, String ifMatch)
Delete entity from devices.- Parameters:
deviceId
- key: id of device.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.
-
deleteDeviceAsync
Mono<Void> deleteDeviceAsync(String deviceId)
Delete entity from devices.- Parameters:
deviceId
- key: id of device.- 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.
-
deleteDevice
void deleteDevice(String deviceId)
Delete entity from devices.- Parameters:
deviceId
- key: id of device.- 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.
-
deleteDeviceWithResponse
com.azure.core.http.rest.Response<Void> deleteDeviceWithResponse(String deviceId, String ifMatch, com.azure.core.util.Context context)
Delete entity from devices.- Parameters:
deviceId
- key: id of device.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.
-
-