다음을 통해 공유


MoverOperationsDiscovery Class

Definition

Operations discovery class.

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

Properties

Display

Contains the localized display information for this particular operation / action. These value will be used by several clients for (1) custom role definitions for RBAC; (2) complex query filters for the event service; and (3) audit history / records for management operations.

IsDataAction

Indicates whether the operation is a data action.

Name

Gets or sets Name of the API. The name of the operation being performed on this particular object. It should match the action name that appears in RBAC / the event service. Examples of operations include:

  • Microsoft.Compute/virtualMachine/capture/action
  • Microsoft.Compute/virtualMachine/restart/action
  • Microsoft.Compute/virtualMachine/write
  • Microsoft.Compute/virtualMachine/read
  • Microsoft.Compute/virtualMachine/delete Each action should include, in order: (1) Resource Provider Namespace (2) Type hierarchy for which the action applies (e.g. server/databases for a SQL Azure database) (3) Read, Write, Action or Delete indicating which type applies. If it is a PUT/PATCH on a collection or named value, Write should be used. If it is a GET, Read should be used. If it is a DELETE, Delete should be used. If it is a POST, Action should be used. As a note: all resource providers would need to include the "{Resource Provider Namespace}/register/action" operation in their response. This API is used to register for their service, and should include details about the operation (e.g. a localized name for the resource provider + any special considerations like PII release).
Origin

Gets or sets Origin. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is "user,system".

Properties

ClientDiscovery properties.

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

Explicit Interface Implementations

IJsonModel<MoverOperationsDiscovery>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MoverOperationsDiscovery>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MoverOperationsDiscovery>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MoverOperationsDiscovery>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MoverOperationsDiscovery>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to