com.azure.resourcemanager.compute.fluent.DedicatedHostGroupsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-compute Show documentation
Show all versions of azure-resourcemanager-compute Show documentation
This package contains Microsoft Azure Compute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.compute.fluent.models.DedicatedHostGroupInner;
import com.azure.resourcemanager.compute.models.DedicatedHostGroupUpdate;
import com.azure.resourcemanager.compute.models.InstanceViewTypes;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in DedicatedHostGroupsClient.
*/
public interface DedicatedHostGroupsClient extends InnerSupportsGet,
InnerSupportsListing, InnerSupportsDelete {
/**
* Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see
* [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596).
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Create Dedicated Host Group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to along
* with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
String hostGroupName, DedicatedHostGroupInner parameters);
/**
* Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see
* [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596).
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Create Dedicated Host Group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String hostGroupName,
DedicatedHostGroupInner parameters);
/**
* Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see
* [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596).
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Create Dedicated Host Group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to along
* with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String resourceGroupName, String hostGroupName,
DedicatedHostGroupInner parameters, Context context);
/**
* Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see
* [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596).
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Create Dedicated Host Group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DedicatedHostGroupInner createOrUpdate(String resourceGroupName, String hostGroupName,
DedicatedHostGroupInner parameters);
/**
* Update an dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Update Dedicated Host Group operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to along
* with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> updateWithResponseAsync(String resourceGroupName, String hostGroupName,
DedicatedHostGroupUpdate parameters);
/**
* Update an dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Update Dedicated Host Group operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String resourceGroupName, String hostGroupName,
DedicatedHostGroupUpdate parameters);
/**
* Update an dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Update Dedicated Host Group operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to along
* with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(String resourceGroupName, String hostGroupName,
DedicatedHostGroupUpdate parameters, Context context);
/**
* Update an dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param parameters Parameters supplied to the Update Dedicated Host Group operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DedicatedHostGroupInner update(String resourceGroupName, String hostGroupName, DedicatedHostGroupUpdate parameters);
/**
* Delete a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> deleteWithResponseAsync(String resourceGroupName, String hostGroupName);
/**
* Delete a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String resourceGroupName, String hostGroupName);
/**
* Delete a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 hostGroupName, Context context);
/**
* Delete a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 hostGroupName);
/**
* Retrieves information about a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param expand The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance
* views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host
* group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to along
* with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String hostGroupName, InstanceViewTypes expand);
/**
* Retrieves information about a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getByResourceGroupAsync(String resourceGroupName, String hostGroupName);
/**
* Retrieves information about a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @param expand The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance
* views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host
* group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to along
* with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String hostGroupName,
InstanceViewTypes expand, Context context);
/**
* Retrieves information about a dedicated host group.
*
* @param resourceGroupName The name of the resource group.
* @param hostGroupName The name of the dedicated host group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DedicatedHostGroupInner getByResourceGroup(String resourceGroupName, String hostGroupName);
/**
* Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response
* to get the next page of dedicated host groups.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 Dedicated Host Group with resource group response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupAsync(String resourceGroupName);
/**
* Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response
* to get the next page of dedicated host groups.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 Dedicated Host Group with resource group response as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response
* to get the next page of dedicated host groups.
*
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 Dedicated Host Group with resource group response as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the
* next page of dedicated host groups.
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 Dedicated Host Group with resource group response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync();
/**
* Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the
* next page of dedicated host groups.
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 Dedicated Host Group with resource group response as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the
* next page of dedicated host groups.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 Dedicated Host Group with resource group response as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
}