com.azure.resourcemanager.cosmos.fluent.CassandraClustersClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-cosmos Show documentation
Show all versions of azure-resourcemanager-cosmos Show documentation
This package contains Microsoft Azure CosmosDB 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.cosmos.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.cosmos.fluent.models.CassandraClusterPublicStatusInner;
import com.azure.resourcemanager.cosmos.fluent.models.ClusterResourceInner;
import com.azure.resourcemanager.cosmos.fluent.models.CommandOutputInner;
import com.azure.resourcemanager.cosmos.models.CommandPostBody;
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 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 CassandraClustersClient.
*/
public interface CassandraClustersClient extends InnerSupportsGet,
InnerSupportsListing, InnerSupportsDelete {
/**
* List all managed Cassandra clusters in this 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 list of managed Cassandra clusters as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync();
/**
* List all managed Cassandra clusters in this 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 list of managed Cassandra clusters as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List all managed Cassandra clusters in this 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 list of managed Cassandra clusters as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* List all managed Cassandra clusters in this 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 list of managed Cassandra clusters as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupAsync(String resourceGroupName);
/**
* List all managed Cassandra clusters in this 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 list of managed Cassandra clusters as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List all managed Cassandra clusters in this 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 list of managed Cassandra clusters as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Get the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the properties of a managed Cassandra cluster along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String clusterName);
/**
* Get the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the properties of a managed Cassandra cluster on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getByResourceGroupAsync(String resourceGroupName, String clusterName);
/**
* Get the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the properties of a managed Cassandra cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName,
Context context);
/**
* Get the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the properties of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterResourceInner getByResourceGroup(String resourceGroupName, String clusterName);
/**
* Deletes a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName);
/**
* Deletes a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName);
/**
* Deletes a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
/**
* Deletes a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
/**
* Deletes a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String resourceGroupName, String clusterName);
/**
* Deletes a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName);
/**
* Deletes a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, Context context);
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update
* only some properties, use PATCH.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createUpdateWithResponseAsync(String resourceGroupName, String clusterName,
ClusterResourceInner body);
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update
* only some properties, use PATCH.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, ClusterResourceInner> beginCreateUpdateAsync(String resourceGroupName,
String clusterName, ClusterResourceInner body);
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update
* only some properties, use PATCH.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterResourceInner> beginCreateUpdate(String resourceGroupName,
String clusterName, ClusterResourceInner body);
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update
* only some properties, use PATCH.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterResourceInner> beginCreateUpdate(String resourceGroupName,
String clusterName, ClusterResourceInner body, Context context);
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update
* only some properties, use PATCH.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createUpdateAsync(String resourceGroupName, String clusterName,
ClusterResourceInner body);
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update
* only some properties, use PATCH.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterResourceInner createUpdate(String resourceGroupName, String clusterName, ClusterResourceInner body);
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update
* only some properties, use PATCH.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterResourceInner createUpdate(String resourceGroupName, String clusterName, ClusterResourceInner body,
Context context);
/**
* Updates some of the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName,
ClusterResourceInner body);
/**
* Updates some of the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, ClusterResourceInner> beginUpdateAsync(String resourceGroupName,
String clusterName, ClusterResourceInner body);
/**
* Updates some of the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterResourceInner> beginUpdate(String resourceGroupName,
String clusterName, ClusterResourceInner body);
/**
* Updates some of the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterResourceInner> beginUpdate(String resourceGroupName,
String clusterName, ClusterResourceInner body, Context context);
/**
* Updates some of the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String resourceGroupName, String clusterName, ClusterResourceInner body);
/**
* Updates some of the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterResourceInner update(String resourceGroupName, String clusterName, ClusterResourceInner body);
/**
* Updates some of the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @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 representation of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterResourceInner update(String resourceGroupName, String clusterName, ClusterResourceInner body,
Context context);
/**
* Invoke a command like nodetool for cassandra maintenance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where.
* @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 response of /command api along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> invokeCommandWithResponseAsync(String resourceGroupName, String clusterName,
CommandPostBody body);
/**
* Invoke a command like nodetool for cassandra maintenance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where.
* @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 response of /command api.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, CommandOutputInner> beginInvokeCommandAsync(String resourceGroupName,
String clusterName, CommandPostBody body);
/**
* Invoke a command like nodetool for cassandra maintenance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where.
* @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 response of /command api.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CommandOutputInner> beginInvokeCommand(String resourceGroupName,
String clusterName, CommandPostBody body);
/**
* Invoke a command like nodetool for cassandra maintenance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where.
* @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 response of /command api.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CommandOutputInner> beginInvokeCommand(String resourceGroupName,
String clusterName, CommandPostBody body, Context context);
/**
* Invoke a command like nodetool for cassandra maintenance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where.
* @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 response of /command api on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono invokeCommandAsync(String resourceGroupName, String clusterName, CommandPostBody body);
/**
* Invoke a command like nodetool for cassandra maintenance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where.
* @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 response of /command api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CommandOutputInner invokeCommand(String resourceGroupName, String clusterName, CommandPostBody body);
/**
* Invoke a command like nodetool for cassandra maintenance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where.
* @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 response of /command api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CommandOutputInner invokeCommand(String resourceGroupName, String clusterName, CommandPostBody body,
Context context);
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
* cluster. Use Start to restart the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> deallocateWithResponseAsync(String resourceGroupName, String clusterName);
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
* cluster. Use Start to restart the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeallocateAsync(String resourceGroupName, String clusterName);
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
* cluster. Use Start to restart the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeallocate(String resourceGroupName, String clusterName);
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
* cluster. Use Start to restart the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeallocate(String resourceGroupName, String clusterName, Context context);
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
* cluster. Use Start to restart the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deallocateAsync(String resourceGroupName, String clusterName);
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
* cluster. Use Start to restart the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void deallocate(String resourceGroupName, String clusterName);
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
* cluster. Use Start to restart the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void deallocate(String resourceGroupName, String clusterName, Context context);
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of
* this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to
* deallocate the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> startWithResponseAsync(String resourceGroupName, String clusterName);
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of
* this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to
* deallocate the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginStartAsync(String resourceGroupName, String clusterName);
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of
* this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to
* deallocate the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(String resourceGroupName, String clusterName);
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of
* this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to
* deallocate the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(String resourceGroupName, String clusterName, Context context);
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of
* this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to
* deallocate the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono startAsync(String resourceGroupName, String clusterName);
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of
* this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to
* deallocate the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void start(String resourceGroupName, String clusterName);
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of
* this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to
* deallocate the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void start(String resourceGroupName, String clusterName, Context context);
/**
* Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the CPU, memory, and disk usage statistics for each Cassandra node in a cluster along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> statusWithResponseAsync(String resourceGroupName,
String clusterName);
/**
* Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the CPU, memory, and disk usage statistics for each Cassandra node in a cluster on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono statusAsync(String resourceGroupName, String clusterName);
/**
* Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the CPU, memory, and disk usage statistics for each Cassandra node in a cluster along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response statusWithResponse(String resourceGroupName, String clusterName,
Context context);
/**
* Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster 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 the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CassandraClusterPublicStatusInner status(String resourceGroupName, String clusterName);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy