Interface Orders
public interface Orders
Resource collection API of Orders.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String deviceName, String resourceGroupName, OrderInner order) Creates or updates an order.createOrUpdate
(String deviceName, String resourceGroupName, OrderInner order, com.azure.core.util.Context context) Creates or updates an order.void
Deletes the order related to the device.void
deleteByResourceGroup
(String deviceName, String resourceGroupName) Deletes the order related to the device.Gets a specific order by name.com.azure.core.http.rest.Response<Order>
getWithResponse
(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Gets a specific order by name.com.azure.core.http.rest.PagedIterable<Order>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName) Lists all the orders related to a Data Box Edge/Data Box Gateway device.com.azure.core.http.rest.PagedIterable<Order>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Lists all the orders related to a Data Box Edge/Data Box Gateway device.
-
Method Details
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<Order> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName) Lists all the orders related to a Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.- Returns:
- list of order entities as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<Order> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Lists all the orders related to a Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- list of order entities as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<Order> getWithResponse(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Gets a specific order by name.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- a specific order by name along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets a specific order by name.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.- Returns:
- a specific order by name.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
Creates or updates an order.- Parameters:
deviceName
- The order details of a device.resourceGroupName
- The resource group name.order
- The order to be created or updated.- Returns:
- the order details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
Order createOrUpdate(String deviceName, String resourceGroupName, OrderInner order, com.azure.core.util.Context context) Creates or updates an order.- Parameters:
deviceName
- The order details of a device.resourceGroupName
- The resource group name.order
- The order to be created or updated.context
- The context to associate with this operation.- Returns:
- the order details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroup
Deletes the order related to the device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes the order related to the device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-