Interface VCenters
public interface VCenters
Resource collection API of VCenters.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VCenter resource.void
Deletes an vCenter.void
Deletes an vCenter.void
delete
(String resourceGroupName, String vcenterName, Boolean force, com.azure.core.util.Context context) Deletes an vCenter.void
deleteById
(String id) Deletes an vCenter.void
deleteByIdWithResponse
(String id, Boolean force, com.azure.core.util.Context context) Deletes an vCenter.Gets a vCenter.com.azure.core.http.rest.Response<VCenter>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a vCenter.getByResourceGroup
(String resourceGroupName, String vcenterName) Gets a vCenter.com.azure.core.http.rest.Response<VCenter>
getByResourceGroupWithResponse
(String resourceGroupName, String vcenterName, com.azure.core.util.Context context) Gets a vCenter.com.azure.core.http.rest.PagedIterable<VCenter>
list()
Implements GET vCenters in a subscription.com.azure.core.http.rest.PagedIterable<VCenter>
list
(com.azure.core.util.Context context) Implements GET vCenters in a subscription.com.azure.core.http.rest.PagedIterable<VCenter>
listByResourceGroup
(String resourceGroupName) Implements GET vCenters in a resource group.com.azure.core.http.rest.PagedIterable<VCenter>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Implements GET vCenters in a resource group.
-
Method Details
-
getByResourceGroup
Gets a vCenter.Implements vCenter GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.- Returns:
- defines the vCenter.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<VCenter> getByResourceGroupWithResponse(String resourceGroupName, String vcenterName, com.azure.core.util.Context context) Gets a vCenter.Implements vCenter GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.context
- The context to associate with this operation.- Returns:
- defines the vCenter 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 vCenter.Implements vCenter DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.force
- Whether force delete was specified.- 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 vCenter.Implements vCenter DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.- 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 vcenterName, Boolean force, com.azure.core.util.Context context) Deletes an vCenter.Implements vCenter DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.vcenterName
- Name of the vCenter.force
- Whether force delete was specified.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.
-
list
com.azure.core.http.rest.PagedIterable<VCenter> list()Implements GET vCenters in a subscription.List of vCenters in a subscription.
- Returns:
- list of VCenters as paginated response with
PagedIterable
. - Throws:
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.
-
list
Implements GET vCenters in a subscription.List of vCenters in a subscription.
- Parameters:
context
- The context to associate with this operation.- Returns:
- list of VCenters 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.
-
listByResourceGroup
Implements GET vCenters in a resource group.List of vCenters in a resource group.
- Parameters:
resourceGroupName
- The Resource Group Name.- Returns:
- list of VCenters 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<VCenter> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Implements GET vCenters in a resource group.List of vCenters in a resource group.
- Parameters:
resourceGroupName
- The Resource Group Name.context
- The context to associate with this operation.- Returns:
- list of VCenters 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 a vCenter.Implements vCenter GET method.
- Parameters:
id
- the resource ID.- Returns:
- defines the vCenter 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<VCenter> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a vCenter.Implements vCenter GET method.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- defines the vCenter 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 vCenter.Implements vCenter 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
Deletes an vCenter.Implements vCenter DELETE method.
- Parameters:
id
- the resource ID.force
- Whether force delete was specified.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.
-
define
Begins definition for a new VCenter resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new VCenter definition.
-