Interface InventoryItemsClient
-
public interface InventoryItemsClient
An instance of this class provides access to all the operations defined in InventoryItemsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InventoryItemInner
create(String resourceGroupName, String vmmServerName, String inventoryItemName)
Create Or Update InventoryItem.com.azure.core.http.rest.Response<InventoryItemInner>
createWithResponse(String resourceGroupName, String vmmServerName, String inventoryItemName, InventoryItemInner body, com.azure.core.util.Context context)
Create Or Update InventoryItem.void
delete(String resourceGroupName, String vmmServerName, String inventoryItemName)
Deletes an inventoryItem.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String resourceGroupName, String vmmServerName, String inventoryItemName, com.azure.core.util.Context context)
Deletes an inventoryItem.InventoryItemInner
get(String resourceGroupName, String vmmServerName, String inventoryItemName)
Shows an inventory item.com.azure.core.http.rest.Response<InventoryItemInner>
getWithResponse(String resourceGroupName, String vmmServerName, String inventoryItemName, com.azure.core.util.Context context)
Shows an inventory item.com.azure.core.http.rest.PagedIterable<InventoryItemInner>
listByVmmServer(String resourceGroupName, String vmmServerName)
Returns the list of inventoryItems in the given VMMServer.com.azure.core.http.rest.PagedIterable<InventoryItemInner>
listByVmmServer(String resourceGroupName, String vmmServerName, com.azure.core.util.Context context)
Returns the list of inventoryItems in the given VMMServer.
-
-
-
Method Detail
-
create
InventoryItemInner create(String resourceGroupName, String vmmServerName, String inventoryItemName)
Create Or Update InventoryItem.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.inventoryItemName
- Name of the inventoryItem.- Returns:
- defines the inventory item.
- 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.
-
createWithResponse
com.azure.core.http.rest.Response<InventoryItemInner> createWithResponse(String resourceGroupName, String vmmServerName, String inventoryItemName, InventoryItemInner body, com.azure.core.util.Context context)
Create Or Update InventoryItem.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.inventoryItemName
- Name of the inventoryItem.body
- Request payload.context
- The context to associate with this operation.- Returns:
- defines the inventory item 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
InventoryItemInner get(String resourceGroupName, String vmmServerName, String inventoryItemName)
Shows an inventory item.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.inventoryItemName
- Name of the inventoryItem.- Returns:
- defines the inventory item.
- 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<InventoryItemInner> getWithResponse(String resourceGroupName, String vmmServerName, String inventoryItemName, com.azure.core.util.Context context)
Shows an inventory item.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.inventoryItemName
- Name of the inventoryItem.context
- The context to associate with this operation.- Returns:
- defines the inventory item 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.
-
delete
void delete(String resourceGroupName, String vmmServerName, String inventoryItemName)
Deletes an inventoryItem.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.inventoryItemName
- Name of the inventoryItem.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String vmmServerName, String inventoryItemName, com.azure.core.util.Context context)
Deletes an inventoryItem.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.inventoryItemName
- Name of the inventoryItem.context
- The context to associate with this operation.- Returns:
- the
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.
-
listByVmmServer
com.azure.core.http.rest.PagedIterable<InventoryItemInner> listByVmmServer(String resourceGroupName, String vmmServerName)
Returns the list of inventoryItems in the given VMMServer.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.- Returns:
- list of InventoryItems 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.
-
listByVmmServer
com.azure.core.http.rest.PagedIterable<InventoryItemInner> listByVmmServer(String resourceGroupName, String vmmServerName, com.azure.core.util.Context context)
Returns the list of inventoryItems in the given VMMServer.- Parameters:
resourceGroupName
- The name of the resource group.vmmServerName
- Name of the VMMServer.context
- The context to associate with this operation.- Returns:
- list of InventoryItems 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.
-
-