Interface ElasticSans
public interface ElasticSans
Resource collection API of ElasticSans.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ElasticSan resource.voidDelete a Elastic San.voiddeleteById(String id) Delete a Elastic San.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a Elastic San.voiddeleteByResourceGroup(String resourceGroupName, String elasticSanName) Delete a Elastic San.Get a ElasticSan.com.azure.core.http.rest.Response<ElasticSan> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a ElasticSan.getByResourceGroup(String resourceGroupName, String elasticSanName) Get a ElasticSan.com.azure.core.http.rest.Response<ElasticSan> getByResourceGroupWithResponse(String resourceGroupName, String elasticSanName, com.azure.core.util.Context context) Get a ElasticSan.com.azure.core.http.rest.PagedIterable<ElasticSan> list()Gets a list of ElasticSans in a subscription.com.azure.core.http.rest.PagedIterable<ElasticSan> list(com.azure.core.util.Context context) Gets a list of ElasticSans in a subscription.com.azure.core.http.rest.PagedIterable<ElasticSan> listByResourceGroup(String resourceGroupName) Gets a list of ElasticSan in a resource group.com.azure.core.http.rest.PagedIterable<ElasticSan> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets a list of ElasticSan in a resource group.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ElasticSan> list()Gets a list of ElasticSans in a subscription.- Returns:
- a list of ElasticSans in a subscription 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
Gets a list of ElasticSans in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- a list of ElasticSans in a subscription 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
Gets a list of ElasticSan in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- a list of ElasticSan in a resource group 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<ElasticSan> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets a list of ElasticSan in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- a list of ElasticSan in a resource group 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.
-
deleteByResourceGroup
Delete a Elastic San.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.- 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
Delete a Elastic San.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ElasticSan> getByResourceGroupWithResponse(String resourceGroupName, String elasticSanName, com.azure.core.util.Context context) Get a ElasticSan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.context- The context to associate with this operation.- Returns:
- a ElasticSan 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.
-
getByResourceGroup
Get a ElasticSan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.- Returns:
- a ElasticSan.
- 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
Get a ElasticSan.- Parameters:
id- the resource ID.- Returns:
- a ElasticSan 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<ElasticSan> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a ElasticSan.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a ElasticSan 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
Delete a Elastic San.- 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
Delete a Elastic San.- Parameters:
id- the resource ID.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 ElasticSan resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new ElasticSan definition.
-