com.azure.resourcemanager.migrationdiscoverysap.fluent.SapDiscoverySitesClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-migrationdiscoverysap Show documentation
Show all versions of azure-resourcemanager-migrationdiscoverysap Show documentation
This package contains Microsoft Azure SDK for MigrationDiscoverySap Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Migration Discovery SAP Client. Package tag package-preview-2023-10.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.migrationdiscoverysap.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.migrationdiscoverysap.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.migrationdiscoverysap.fluent.models.SapDiscoverySiteInner;
import com.azure.resourcemanager.migrationdiscoverysap.models.SapDiscoverySiteTagsUpdate;
/**
* An instance of this class provides access to all the operations defined in SapDiscoverySitesClient.
*/
public interface SapDiscoverySitesClient {
/**
* Gets all SAP Migration discovery site resources in a Subscription.
*
* @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 all SAP Migration discovery site resources in a Subscription as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Gets all SAP Migration discovery site resources in a Subscription.
*
* @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 all SAP Migration discovery site resources in a Subscription as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* Gets all SAP Migration discovery site resources in a Resource Group.
*
* @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 all SAP Migration discovery site resources in a Resource Group as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Gets all SAP Migration discovery site resources in a Resource Group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 all SAP Migration discovery site resources in a Resource Group as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Gets a SAP Migration discovery site resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 SAP Migration discovery site resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName,
String sapDiscoverySiteName, Context context);
/**
* Gets a SAP Migration discovery site resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 SAP Migration discovery site resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SapDiscoverySiteInner getByResourceGroup(String resourceGroupName, String sapDiscoverySiteName);
/**
* Creates a discovery site resource for SAP Migration. This resource will be used to run system discovery and
* assessment with Azure Migrate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 the {@link SyncPoller} for polling of define the SAP Migration discovery site resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SapDiscoverySiteInner> beginCreate(String resourceGroupName,
String sapDiscoverySiteName, SapDiscoverySiteInner resource);
/**
* Creates a discovery site resource for SAP Migration. This resource will be used to run system discovery and
* assessment with Azure Migrate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 the {@link SyncPoller} for polling of define the SAP Migration discovery site resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SapDiscoverySiteInner> beginCreate(String resourceGroupName,
String sapDiscoverySiteName, SapDiscoverySiteInner resource, Context context);
/**
* Creates a discovery site resource for SAP Migration. This resource will be used to run system discovery and
* assessment with Azure Migrate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 define the SAP Migration discovery site resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SapDiscoverySiteInner create(String resourceGroupName, String sapDiscoverySiteName, SapDiscoverySiteInner resource);
/**
* Creates a discovery site resource for SAP Migration. This resource will be used to run system discovery and
* assessment with Azure Migrate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 define the SAP Migration discovery site resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SapDiscoverySiteInner create(String resourceGroupName, String sapDiscoverySiteName, SapDiscoverySiteInner resource,
Context context);
/**
* Updates a SAP Migration discovery site resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @param properties The resource properties to be updated.
* @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 define the SAP Migration discovery site resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(String resourceGroupName, String sapDiscoverySiteName,
SapDiscoverySiteTagsUpdate properties, Context context);
/**
* Updates a SAP Migration discovery site resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @param properties The resource properties to be updated.
* @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 define the SAP Migration discovery site resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SapDiscoverySiteInner update(String resourceGroupName, String sapDiscoverySiteName,
SapDiscoverySiteTagsUpdate properties);
/**
* Deletes a SAP Migration discovery site resource and its child resources, that is the associated SAP Instances and
* Server Instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String sapDiscoverySiteName);
/**
* Deletes a SAP Migration discovery site resource and its child resources, that is the associated SAP Instances and
* Server Instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String sapDiscoverySiteName,
Context context);
/**
* Deletes a SAP Migration discovery site resource and its child resources, that is the associated SAP Instances and
* Server Instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 sapDiscoverySiteName);
/**
* Deletes a SAP Migration discovery site resource and its child resources, that is the associated SAP Instances and
* Server Instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String sapDiscoverySiteName, Context context);
/**
* Import your SAP systems' inventory using the [Discovery
* template](https://go.microsoft.com/fwlink/?linkid=2249111) into your SAP Migration discovery site resource and
* it's child resources, the SAP instances and Server instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 current status of an async operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusResultInner>
beginImportEntities(String resourceGroupName, String sapDiscoverySiteName);
/**
* Import your SAP systems' inventory using the [Discovery
* template](https://go.microsoft.com/fwlink/?linkid=2249111) into your SAP Migration discovery site resource and
* it's child resources, the SAP instances and Server instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 current status of an async operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationStatusResultInner>
beginImportEntities(String resourceGroupName, String sapDiscoverySiteName, Context context);
/**
* Import your SAP systems' inventory using the [Discovery
* template](https://go.microsoft.com/fwlink/?linkid=2249111) into your SAP Migration discovery site resource and
* it's child resources, the SAP instances and Server instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 current status of an async operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationStatusResultInner importEntities(String resourceGroupName, String sapDiscoverySiteName);
/**
* Import your SAP systems' inventory using the [Discovery
* template](https://go.microsoft.com/fwlink/?linkid=2249111) into your SAP Migration discovery site resource and
* it's child resources, the SAP instances and Server instances.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param sapDiscoverySiteName The name of the discovery site resource for SAP Migration.
* @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 current status of an async operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationStatusResultInner importEntities(String resourceGroupName, String sapDiscoverySiteName, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy