com.azure.resourcemanager.hybridcompute.fluent.MachinesClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-hybridcompute Show documentation
Show all versions of azure-resourcemanager-hybridcompute Show documentation
This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2024-05.
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.hybridcompute.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.hybridcompute.fluent.models.MachineAssessPatchesResultInner;
import com.azure.resourcemanager.hybridcompute.fluent.models.MachineInner;
import com.azure.resourcemanager.hybridcompute.fluent.models.MachineInstallPatchesResultInner;
import com.azure.resourcemanager.hybridcompute.models.InstanceViewTypes;
import com.azure.resourcemanager.hybridcompute.models.MachineInstallPatchesParameters;
/**
* An instance of this class provides access to all the operations defined in MachinesClient.
*/
public interface MachinesClient {
/**
* The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String machineName, Context context);
/**
* The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String machineName);
/**
* Retrieves information about the model view or the instance view of a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @param expand The expand expression to apply on the operation.
* @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 describes a hybrid machine along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String machineName,
InstanceViewTypes expand, Context context);
/**
* Retrieves information about the model view or the instance view of a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @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 describes a hybrid machine.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MachineInner getByResourceGroup(String resourceGroupName, String machineName);
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @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 {@link SyncPoller} for polling of describes the properties of an AssessPatches result.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineAssessPatchesResultInner>
beginAssessPatches(String resourceGroupName, String name);
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @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 {@link SyncPoller} for polling of describes the properties of an AssessPatches result.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineAssessPatchesResultInner>
beginAssessPatches(String resourceGroupName, String name, Context context);
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @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 describes the properties of an AssessPatches result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name);
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @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 describes the properties of an AssessPatches result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name, Context context);
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @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 {@link SyncPoller} for polling of the result summary of an installation operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineInstallPatchesResultInner>
beginInstallPatches(String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput);
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @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 {@link SyncPoller} for polling of the result summary of an installation operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineInstallPatchesResultInner> beginInstallPatches(
String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput, Context context);
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @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 result summary of an installation operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MachineInstallPatchesResultInner installPatches(String resourceGroupName, String name,
MachineInstallPatchesParameters installPatchesInput);
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
* @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @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 result summary of an installation operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MachineInstallPatchesResultInner installPatches(String resourceGroupName, String name,
MachineInstallPatchesParameters installPatchesInput, Context context);
/**
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
* the next page of hybrid machines.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
* the next page of hybrid machines.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param expand Expands referenced resources.
* @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 List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, String expand, Context context);
/**
* Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the
* next page of hybrid machines.
*
* @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 List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the
* next page of hybrid machines.
*
* @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 List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
}