com.azure.resourcemanager.servicebus.fluent.MigrationConfigsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-servicebus Show documentation
Show all versions of azure-resourcemanager-servicebus Show documentation
This package contains Microsoft Azure ServiceBus 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.servicebus.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.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.servicebus.fluent.models.MigrationConfigPropertiesInner;
import com.azure.resourcemanager.servicebus.models.MigrationConfigurationName;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in MigrationConfigsClient.
*/
public interface MigrationConfigsClient {
/**
* Gets all migrationConfigurations.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @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 migrationConfigurations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync(String resourceGroupName, String namespaceName);
/**
* Gets all migrationConfigurations.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @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 migrationConfigurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String namespaceName);
/**
* Gets all migrationConfigurations.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @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 migrationConfigurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String namespaceName, Context context);
/**
* Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @param parameters Parameters required to create Migration Configuration.
* @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 single item in List or Get Migration Config operation along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createAndStartMigrationWithResponseAsync(String resourceGroupName,
String namespaceName, MigrationConfigurationName configName, MigrationConfigPropertiesInner parameters);
/**
* Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @param parameters Parameters required to create Migration Configuration.
* @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 PollerFlux} for polling of single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, MigrationConfigPropertiesInner>
beginCreateAndStartMigrationAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName, MigrationConfigPropertiesInner parameters);
/**
* Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @param parameters Parameters required to create Migration Configuration.
* @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 single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MigrationConfigPropertiesInner> beginCreateAndStartMigration(
String resourceGroupName, String namespaceName, MigrationConfigurationName configName,
MigrationConfigPropertiesInner parameters);
/**
* Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @param parameters Parameters required to create Migration Configuration.
* @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 single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MigrationConfigPropertiesInner> beginCreateAndStartMigration(
String resourceGroupName, String namespaceName, MigrationConfigurationName configName,
MigrationConfigPropertiesInner parameters, Context context);
/**
* Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @param parameters Parameters required to create Migration Configuration.
* @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 single item in List or Get Migration Config operation on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createAndStartMigrationAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName, MigrationConfigPropertiesInner parameters);
/**
* Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @param parameters Parameters required to create Migration Configuration.
* @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 single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MigrationConfigPropertiesInner createAndStartMigration(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName, MigrationConfigPropertiesInner parameters);
/**
* Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @param parameters Parameters required to create Migration Configuration.
* @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 single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MigrationConfigPropertiesInner createAndStartMigration(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName, MigrationConfigPropertiesInner parameters, Context context);
/**
* Deletes a MigrationConfiguration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> deleteWithResponseAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName);
/**
* Deletes a MigrationConfiguration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
/**
* Deletes a MigrationConfiguration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 namespaceName,
MigrationConfigurationName configName, Context context);
/**
* Deletes a MigrationConfiguration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 namespaceName, MigrationConfigurationName configName);
/**
* Retrieves Migration Config.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 single item in List or Get Migration Config operation along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getWithResponseAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName);
/**
* Retrieves Migration Config.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 single item in List or Get Migration Config operation on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName);
/**
* Retrieves Migration Config.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 single item in List or Get Migration Config operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName, Context context);
/**
* Retrieves Migration Config.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MigrationConfigPropertiesInner get(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName);
/**
* This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any
* entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when
* entity migration is in-progress.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> completeMigrationWithResponseAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName);
/**
* This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any
* entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when
* entity migration is in-progress.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono completeMigrationAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName);
/**
* This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any
* entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when
* entity migration is in-progress.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 completeMigrationWithResponse(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName, Context context);
/**
* This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any
* entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when
* entity migration is in-progress.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 completeMigration(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
/**
* This operation reverts Migration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> revertWithResponseAsync(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName);
/**
* This operation reverts Migration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono revertAsync(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
/**
* This operation reverts Migration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 revertWithResponse(String resourceGroupName, String namespaceName,
MigrationConfigurationName configName, Context context);
/**
* This operation reverts Migration.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param configName The configuration name. Should always be "$default".
* @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 revert(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy