com.azure.resourcemanager.hdinsight.models.VirtualMachines Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-hdinsight Show documentation
Show all versions of azure-resourcemanager-hdinsight Show documentation
This package contains Microsoft Azure SDK for HDInsight Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. HDInsight Management Client. Package tag package-2024-08-preview.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hdinsight.models;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import java.util.List;
/**
* Resource collection API of VirtualMachines.
*/
public interface VirtualMachines {
/**
* Lists the HDInsight clusters hosts.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list cluster hosts along with {@link Response}.
*/
Response> listHostsWithResponse(String resourceGroupName, String clusterName, Context context);
/**
* Lists the HDInsight clusters hosts.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list cluster hosts.
*/
List listHosts(String resourceGroupName, String clusterName);
/**
* Restarts the specified HDInsight cluster hosts.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param hosts The list of hosts to restart.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void restartHosts(String resourceGroupName, String clusterName, List hosts);
/**
* Restarts the specified HDInsight cluster hosts.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param hosts The list of hosts to restart.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void restartHosts(String resourceGroupName, String clusterName, List hosts, Context context);
/**
* Gets the async operation status.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param operationId The long running operation id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the async operation status along with {@link Response}.
*/
Response getAsyncOperationStatusWithResponse(String resourceGroupName, String clusterName,
String operationId, Context context);
/**
* Gets the async operation status.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param operationId The long running operation id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the async operation status.
*/
AsyncOperationResult getAsyncOperationStatus(String resourceGroupName, String clusterName, String operationId);
}