Interface LoadTests
public interface LoadTests
Resource collection API of LoadTests.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new LoadTestResource resource.voidDelete a LoadTest resource.voiddeleteById(String id) Delete a LoadTest resource.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a LoadTest resource.voiddeleteByResourceGroup(String resourceGroupName, String loadTestName) Delete a LoadTest resource.Get a LoadTest resource.com.azure.core.http.rest.Response<LoadTestResource>getByIdWithResponse(String id, com.azure.core.util.Context context) Get a LoadTest resource.getByResourceGroup(String resourceGroupName, String loadTestName) Get a LoadTest resource.com.azure.core.http.rest.Response<LoadTestResource>getByResourceGroupWithResponse(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) Get a LoadTest resource.com.azure.core.http.rest.PagedIterable<LoadTestResource>list()Lists loadtests resources in a subscription.com.azure.core.http.rest.PagedIterable<LoadTestResource>list(com.azure.core.util.Context context) Lists loadtests resources in a subscription.com.azure.core.http.rest.PagedIterable<LoadTestResource>listByResourceGroup(String resourceGroupName) Lists loadtest resources in a resource group.com.azure.core.http.rest.PagedIterable<LoadTestResource>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists loadtest resources in a resource group.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint>listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String loadTestName) Lists the endpoints that agents may call as part of load testing.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint>listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) Lists the endpoints that agents may call as part of load testing.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<LoadTestResource> list()Lists loadtests resources in a subscription.- Returns:
- list of resources page result 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
Lists loadtests resources in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- list of resources page result 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<LoadTestResource> listByResourceGroup(String resourceGroupName) Lists loadtest resources in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- list of resources page result 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<LoadTestResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists loadtest resources 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:
- list of resources page result 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<LoadTestResource> getByResourceGroupWithResponse(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) Get a LoadTest resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.loadTestName- Load Test name.context- The context to associate with this operation.- Returns:
- a LoadTest resource 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 LoadTest resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.loadTestName- Load Test name.- Returns:
- a LoadTest resource.
- 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 LoadTest resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.loadTestName- Load Test name.- 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 LoadTest resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.loadTestName- Load Test name.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.
-
listOutboundNetworkDependenciesEndpoints
com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint> listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String loadTestName) Lists the endpoints that agents may call as part of load testing.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.loadTestName- Load Test name.- Returns:
- values returned by the List operation 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.
-
listOutboundNetworkDependenciesEndpoints
com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint> listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) Lists the endpoints that agents may call as part of load testing.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.loadTestName- Load Test name.context- The context to associate with this operation.- Returns:
- values returned by the List operation 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
Get a LoadTest resource.- Parameters:
id- the resource ID.- Returns:
- a LoadTest resource 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<LoadTestResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a LoadTest resource.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a LoadTest resource 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 LoadTest resource.- 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 LoadTest resource.- 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 LoadTestResource resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new LoadTestResource definition.
-