Interface LoadTestsClient
-
public interface LoadTestsClient
An instance of this class provides access to all the operations defined in LoadTestsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String loadTestName)
Delete a LoadTest resource.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.LoadTestResourceInner
createOrUpdate(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource)
Create or update LoadTest resource.com.azure.core.http.rest.Response<LoadTestResourceInner>
createOrUpdateWithResponse(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource, com.azure.core.util.Context context)
Create or update LoadTest resource.void
delete(String resourceGroupName, String loadTestName)
Delete a LoadTest resource.void
delete(String resourceGroupName, String loadTestName, com.azure.core.util.Context context)
Delete a LoadTest resource.LoadTestResourceInner
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.LoadTestResourceInner
update(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody)
Update a loadtest resource.com.azure.core.http.rest.Response<LoadTestResourceInner>
updateWithResponse(String resourceGroupName, String loadTestName, LoadTestResourcePatchRequestBody loadTestResourcePatchRequestBody, com.azure.core.util.Context context)
Update a loadtest resource.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<LoadTestResourceInner> list()
Lists loadtests resources in a subscription.- Returns:
- list of resources page result.
- 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.
- 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.
- 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.
- 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
LoadTestResourceInner getByResourceGroup(String resourceGroupName, String loadTestName)
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.
-
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.
- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<LoadTestResourceInner> createOrUpdateWithResponse(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.
-
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.
-
updateWithResponse
com.azure.core.http.rest.Response<LoadTestResourceInner> updateWithResponse(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 completion.
- 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 completion.
- 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 loadTestName)
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
void delete(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.- 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.
-
-