Bagikan melalui


Operation Class

Definition

Details of a REST API operation, returned from the Resource Provider Operations API

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api40.OperationTypeConverter))]
public class Operation : Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api40.IOperation
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api40.OperationTypeConverter))>]
type Operation = class
    interface IOperation
    interface IJsonSerializable
Public Class Operation
Implements IOperation
Inheritance
Operation
Attributes
Implements

Constructors

Operation()

Creates an new Operation instance.

Properties

ActionType

Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

DisplayDescription

The short, localized friendly description of the operation; suitable for tool tips and detailed views.

DisplayOperation

The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".

DisplayProvider

The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".

DisplayResource

The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".

IsDataAction

Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.

Name

The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"

Origin

The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Operation.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Operation.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api40.IOperation.

FromJsonString(String)

Creates a new instance of Operation, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Operation into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to