Interface AgentsClient
public interface AgentsClient
An instance of this class provides access to all the operations defined in AgentsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDelete(String resourceGroupName, String storageMoverName, String agentName) Deletes an Agent resource.beginDelete(String resourceGroupName, String storageMoverName, String agentName, com.azure.core.util.Context context) Deletes an Agent resource.createOrUpdate(String resourceGroupName, String storageMoverName, String agentName, AgentInner agent) Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs.com.azure.core.http.rest.Response<AgentInner> createOrUpdateWithResponse(String resourceGroupName, String storageMoverName, String agentName, AgentInner agent, com.azure.core.util.Context context) Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs.voidDeletes an Agent resource.voiddelete(String resourceGroupName, String storageMoverName, String agentName, com.azure.core.util.Context context) Deletes an Agent resource.Gets an Agent resource.com.azure.core.http.rest.Response<AgentInner> getWithResponse(String resourceGroupName, String storageMoverName, String agentName, com.azure.core.util.Context context) Gets an Agent resource.com.azure.core.http.rest.PagedIterable<AgentInner> Lists all Agents in a Storage Mover.com.azure.core.http.rest.PagedIterable<AgentInner> Lists all Agents in a Storage Mover.update(String resourceGroupName, String storageMoverName, String agentName, AgentUpdateParameters agent) Creates or updates an Agent resource.com.azure.core.http.rest.Response<AgentInner> updateWithResponse(String resourceGroupName, String storageMoverName, String agentName, AgentUpdateParameters agent, com.azure.core.util.Context context) Creates or updates an Agent resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<AgentInner> list(String resourceGroupName, String storageMoverName) Lists all Agents in a Storage Mover.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.- Returns:
- list of Agents 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.
-
list
com.azure.core.http.rest.PagedIterable<AgentInner> list(String resourceGroupName, String storageMoverName, com.azure.core.util.Context context) Lists all Agents in a Storage Mover.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.context- The context to associate with this operation.- Returns:
- list of Agents 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.
-
getWithResponse
com.azure.core.http.rest.Response<AgentInner> getWithResponse(String resourceGroupName, String storageMoverName, String agentName, com.azure.core.util.Context context) Gets an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.context- The context to associate with this operation.- Returns:
- an Agent 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.
-
get
Gets an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.- Returns:
- an Agent 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<AgentInner> createOrUpdateWithResponse(String resourceGroupName, String storageMoverName, String agentName, AgentInner agent, com.azure.core.util.Context context) Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.agent- The agent parameter.context- The context to associate with this operation.- Returns:
- the Agent 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.
-
createOrUpdate
AgentInner createOrUpdate(String resourceGroupName, String storageMoverName, String agentName, AgentInner agent) Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.agent- The agent parameter.- Returns:
- the Agent 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.
-
updateWithResponse
com.azure.core.http.rest.Response<AgentInner> updateWithResponse(String resourceGroupName, String storageMoverName, String agentName, AgentUpdateParameters agent, com.azure.core.util.Context context) Creates or updates an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.agent- The agent parameter.context- The context to associate with this operation.- Returns:
- the Agent 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.
-
update
AgentInner update(String resourceGroupName, String storageMoverName, String agentName, AgentUpdateParameters agent) Creates or updates an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.agent- The agent parameter.- Returns:
- the Agent 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String storageMoverName, String agentName) Deletes an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.- Returns:
- the
SyncPollerfor 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 storageMoverName, String agentName, com.azure.core.util.Context context) Deletes an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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
Deletes an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent 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.
-
delete
void delete(String resourceGroupName, String storageMoverName, String agentName, com.azure.core.util.Context context) Deletes an Agent resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.agentName- The name of the Agent resource.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.
-