Interface InventoryItems
-
public interface InventoryItems
Resource collection API of InventoryItems.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InventoryItem.DefinitionStages.Blank
define(String name)
Begins definition for a new InventoryItem resource.void
delete(String resourceGroupName, String vmmServerName, String inventoryItemName)
Deletes an inventoryItem.void
deleteById(String id)
Deletes an inventoryItem.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse(String id, com.azure.core.util.Context context)
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.InventoryItem
get(String resourceGroupName, String vmmServerName, String inventoryItemName)
Shows an inventory item.InventoryItem
getById(String id)
Shows an inventory item.com.azure.core.http.rest.Response<InventoryItem>
getByIdWithResponse(String id, com.azure.core.util.Context context)
Shows an inventory item.com.azure.core.http.rest.Response<InventoryItem>
getWithResponse(String resourceGroupName, String vmmServerName, String inventoryItemName, com.azure.core.util.Context context)
Shows an inventory item.com.azure.core.http.rest.PagedIterable<InventoryItem>
listByVmmServer(String resourceGroupName, String vmmServerName)
Returns the list of inventoryItems in the given VMMServer.com.azure.core.http.rest.PagedIterable<InventoryItem>
listByVmmServer(String resourceGroupName, String vmmServerName, com.azure.core.util.Context context)
Returns the list of inventoryItems in the given VMMServer.
-
-
-
Method Detail
-
get
InventoryItem 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<InventoryItem> 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<InventoryItem> 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<InventoryItem> 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.
-
getById
InventoryItem getById(String id)
Shows an inventory item.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<InventoryItem> getByIdWithResponse(String id, com.azure.core.util.Context context)
Shows an inventory item.- Parameters:
id
- the resource ID.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.
-
deleteById
void deleteById(String id)
Deletes an inventoryItem.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes an inventoryItem.- Parameters:
id
- the resource ID.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.
-
define
InventoryItem.DefinitionStages.Blank define(String name)
Begins definition for a new InventoryItem resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new InventoryItem definition.
-
-