com.azure.resourcemanager.azurestackhci.models.EdgeDevices Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-azurestackhci Show documentation
Show all versions of azure-resourcemanager-azurestackhci Show documentation
This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2024-04.
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.azurestackhci.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.azurestackhci.fluent.models.EdgeDeviceInner;
/**
* Resource collection API of EdgeDevices.
*/
public interface EdgeDevices {
/**
* List EdgeDevice resources by parent.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @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 response of a EdgeDevice list operation as paginated response with {@link PagedIterable}.
*/
PagedIterable list(String resourceUri);
/**
* List EdgeDevice resources by parent.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @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 response of a EdgeDevice list operation as paginated response with {@link PagedIterable}.
*/
PagedIterable list(String resourceUri, Context context);
/**
* Get a EdgeDevice.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @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 a EdgeDevice along with {@link Response}.
*/
Response getWithResponse(String resourceUri, String edgeDeviceName, Context context);
/**
* Get a EdgeDevice.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @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 a EdgeDevice.
*/
EdgeDevice get(String resourceUri, String edgeDeviceName);
/**
* Create a EdgeDevice.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @param resource Resource create parameters.
* @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 edge device resource.
*/
EdgeDevice createOrUpdate(String resourceUri, String edgeDeviceName, EdgeDeviceInner resource);
/**
* Create a EdgeDevice.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @param resource Resource create parameters.
* @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 edge device resource.
*/
EdgeDevice createOrUpdate(String resourceUri, String edgeDeviceName, EdgeDeviceInner resource, Context context);
/**
* Delete a EdgeDevice.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @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 deleteByResourceGroup(String resourceUri, String edgeDeviceName);
/**
* Delete a EdgeDevice.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @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 delete(String resourceUri, String edgeDeviceName, Context context);
/**
* A long-running resource action.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @param validateRequest The content of the action request.
* @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 an Accepted response with an Operation-Location header.
*/
ValidateResponse validate(String resourceUri, String edgeDeviceName, ValidateRequest validateRequest);
/**
* A long-running resource action.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param edgeDeviceName Name of Device.
* @param validateRequest The content of the action request.
* @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 an Accepted response with an Operation-Location header.
*/
ValidateResponse validate(String resourceUri, String edgeDeviceName, ValidateRequest validateRequest,
Context context);
}