Interface InventoryItemsClient
public interface InventoryItemsClient
An instance of this class provides access to all the operations defined in InventoryItemsClient.
-
Method Summary
Modifier and TypeMethodDescriptionImplements InventoryItem PUT method.com.azure.core.http.rest.Response<InventoryItemInner>
createWithResponse
(String resourceGroupName, String vcenterName, String inventoryItemName, InventoryItemInner body, com.azure.core.util.Context context) Implements InventoryItem PUT method.void
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.com.azure.core.http.rest.Response<InventoryItemInner>
getWithResponse
(String resourceGroupName, String vcenterName, String inventoryItemName, com.azure.core.util.Context context) Gets InventoryItem.com.azure.core.http.rest.PagedIterable<InventoryItemInner>
listByVCenter
(String resourceGroupName, String vcenterName) Implements GET inventoryItems in a vCenter.com.azure.core.http.rest.PagedIterable<InventoryItemInner>
listByVCenter
(String resourceGroupName, String vcenterName, com.azure.core.util.Context context) Implements GET inventoryItems in a vCenter.
-
Method Details
-
create
Implements InventoryItem PUT method.Create Or Update InventoryItem.
- 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.
-
createWithResponse
com.azure.core.http.rest.Response<InventoryItemInner> createWithResponse(String resourceGroupName, String vcenterName, String inventoryItemName, InventoryItemInner body, com.azure.core.util.Context context) Implements InventoryItem PUT method.Create Or Update InventoryItem.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.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
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<InventoryItemInner> 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<InventoryItemInner> 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<InventoryItemInner> 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.
-