OperationsDefinition Class

Definition

Properties of an Operation.

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

Properties

Name Description
ActionType

The action type.

Display

Display information of the operation.

IsDataAction

Indicates whether the operation applies to data-plane.

Name

Name of the operation.

Origin

The origin.

Properties

Anything

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" }.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<OperationsDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<OperationsDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<OperationsDefinition>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<OperationsDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<OperationsDefinition>.Write(ModelReaderWriterOptions)

Applies to