CassandraClusterCommand Class

Definition

resource representing a command.

public class CassandraClusterCommand : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.CassandraClusterCommand>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.CassandraClusterCommand>
type CassandraClusterCommand = class
    interface IJsonModel<CassandraClusterCommand>
    interface IPersistableModel<CassandraClusterCommand>
Public Class CassandraClusterCommand
Implements IJsonModel(Of CassandraClusterCommand), IPersistableModel(Of CassandraClusterCommand)
Inheritance
CassandraClusterCommand
Implements

Properties

Arguments

The arguments for the command to be run

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Command

The command which should be run.

CommandId

The unique id of command.

Host

IP address of the cassandra host to run the command on.

IsAdmin

Whether command has admin privileges.

IsReadWrite

If true, allows the command to write to the cassandra directory, otherwise read-only.

OutputFile

The name of the file where the result is written.

Result

Result output of the command.

ShouldStopCassandraBeforeStart

If true, stops cassandra before executing the command and then start it again.

Status

Status of the command.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CassandraClusterCommand>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CassandraClusterCommand>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CassandraClusterCommand>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CassandraClusterCommand>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CassandraClusterCommand>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to