Interface InventoryItems
public interface InventoryItems
Resource collection API of InventoryItems.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new InventoryItem resource.void
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 vcenterName, String inventoryItemName, com.azure.core.util.Context context) Deletes an inventoryItem.Gets InventoryItem.Gets InventoryItem.com.azure.core.http.rest.Response<InventoryItem>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets InventoryItem.com.azure.core.http.rest.Response<InventoryItem>
getWithResponse
(String resourceGroupName, String vcenterName, String inventoryItemName, com.azure.core.util.Context context) Gets InventoryItem.com.azure.core.http.rest.PagedIterable<InventoryItem>
listByVCenter
(String resourceGroupName, String vcenterName) Implements GET inventoryItems in a vCenter.com.azure.core.http.rest.PagedIterable<InventoryItem>
listByVCenter
(String resourceGroupName, String vcenterName, com.azure.core.util.Context context) Implements GET inventoryItems in a vCenter.
-
Method Details
-
get
Gets InventoryItem.Implements InventoryItem GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.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 vcenterName, String inventoryItemName, com.azure.core.util.Context context) Gets InventoryItem.Implements InventoryItem GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.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
Deletes an inventoryItem.Implements inventoryItem DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.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 vcenterName, String inventoryItemName, com.azure.core.util.Context context) Deletes an inventoryItem.Implements inventoryItem DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.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.
-
listByVCenter
com.azure.core.http.rest.PagedIterable<InventoryItem> listByVCenter(String resourceGroupName, String vcenterName) Implements GET inventoryItems in a vCenter.Returns the list of inventoryItems of the given vCenter.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.- 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.
-
listByVCenter
com.azure.core.http.rest.PagedIterable<InventoryItem> listByVCenter(String resourceGroupName, String vcenterName, com.azure.core.util.Context context) Implements GET inventoryItems in a vCenter.Returns the list of inventoryItems of the given vCenter.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.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
Gets InventoryItem.Implements InventoryItem GET method.
- 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) Gets InventoryItem.Implements InventoryItem GET method.
- 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
Deletes an inventoryItem.Implements inventoryItem DELETE method.
- 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.Implements inventoryItem DELETE method.
- 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
Begins definition for a new InventoryItem resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new InventoryItem definition.
-