Interface LoadTestsClient
public interface LoadTestsClient
An instance of this class provides access to all the operations defined in LoadTestsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,
LoadTestResourceInner> beginCreateOrUpdate
(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource) Create or update LoadTest resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,
LoadTestResourceInner> beginCreateOrUpdate
(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource, com.azure.core.util.Context context) Create or update LoadTest resource.beginDelete
(String resourceGroupName, String loadTestName) Delete a LoadTest resource.beginDelete
(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) Delete a LoadTest resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,
LoadTestResourceInner> beginUpdate
(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody) Update a loadtest resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,
LoadTestResourceInner> beginUpdate
(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody, com.azure.core.util.Context context) Update a loadtest resource.createOrUpdate
(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource) Create or update LoadTest resource.createOrUpdate
(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource, com.azure.core.util.Context context) Create or update LoadTest resource.void
Delete a LoadTest resource.void
Delete a LoadTest resource.getByResourceGroup
(String resourceGroupName, String loadTestName) Get a LoadTest resource.com.azure.core.http.rest.Response<LoadTestResourceInner>
getByResourceGroupWithResponse
(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) Get a LoadTest resource.com.azure.core.http.rest.PagedIterable<LoadTestResourceInner>
list()
Lists loadtests resources in a subscription.com.azure.core.http.rest.PagedIterable<LoadTestResourceInner>
list
(com.azure.core.util.Context context) Lists loadtests resources in a subscription.com.azure.core.http.rest.PagedIterable<LoadTestResourceInner>
listByResourceGroup
(String resourceGroupName) Lists loadtest resources in a resource group.com.azure.core.http.rest.PagedIterable<LoadTestResourceInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Lists loadtest resources in a resource group.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpointInner>
listOutboundNetworkDependenciesEndpoints
(String resourceGroupName, String loadTestName) Lists the endpoints that agents may call as part of load testing.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpointInner>
listOutboundNetworkDependenciesEndpoints
(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) Lists the endpoints that agents may call as part of load testing.update
(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody) Update a loadtest resource.update
(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody, com.azure.core.util.Context context) Update a loadtest resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<LoadTestResourceInner> 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
com.azure.core.http.rest.PagedIterable<LoadTestResourceInner> list(com.azure.core.util.Context context) 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<LoadTestResourceInner> 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<LoadTestResourceInner> 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<LoadTestResourceInner> 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,LoadTestResourceInner> beginCreateOrUpdate(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource) Create or update LoadTest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResource
- LoadTest resource data.- Returns:
- the
SyncPoller
for polling of loadTest details. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,LoadTestResourceInner> beginCreateOrUpdate(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource, com.azure.core.util.Context context) Create or update LoadTest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResource
- LoadTest resource data.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of loadTest details. - 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.
-
createOrUpdate
LoadTestResourceInner createOrUpdate(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource) Create or update LoadTest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResource
- LoadTest resource data.- Returns:
- loadTest details.
- 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.
-
createOrUpdate
LoadTestResourceInner createOrUpdate(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource, com.azure.core.util.Context context) Create or update LoadTest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResource
- LoadTest resource data.context
- The context to associate with this operation.- Returns:
- loadTest details.
- 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,LoadTestResourceInner> beginUpdate(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody) Update a loadtest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResourcePatchRequestBody
- LoadTest resource update data.- Returns:
- the
SyncPoller
for polling of loadTest details. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LoadTestResourceInner>,LoadTestResourceInner> beginUpdate(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody, com.azure.core.util.Context context) Update a loadtest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResourcePatchRequestBody
- LoadTest resource update data.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of loadTest details. - 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.
-
update
LoadTestResourceInner update(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody) Update a loadtest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResourcePatchRequestBody
- LoadTest resource update data.- Returns:
- loadTest details.
- 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.
-
update
LoadTestResourceInner update(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody, com.azure.core.util.Context context) Update a loadtest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.loadTestResourcePatchRequestBody
- LoadTest resource update data.context
- The context to associate with this operation.- Returns:
- loadTest details.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String loadTestName) Delete a LoadTest resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.loadTestName
- Load Test name.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String loadTestName, com.azure.core.util.Context context) 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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
delete
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<OutboundEnvironmentEndpointInner> 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<OutboundEnvironmentEndpointInner> 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.
-