ResourceMetadata Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Recommendation resource metadata.
public class ResourceMetadata : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Advisor.Models.ResourceMetadata>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Advisor.Models.ResourceMetadata>
type ResourceMetadata = class
interface IJsonModel<ResourceMetadata>
interface IPersistableModel<ResourceMetadata>
Public Class ResourceMetadata
Implements IJsonModel(Of ResourceMetadata), IPersistableModel(Of ResourceMetadata)
- Inheritance
-
ResourceMetadata
- Implements
Constructors
ResourceMetadata() |
Initializes a new instance of ResourceMetadata. |
Properties
Action |
The action to view resource. To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
Plural |
The plural user friendly name of resource type. eg: virtual machines. |
ResourceId |
Azure resource Id of the assessed resource. |
Singular |
The singular user friendly name of resource type. eg: virtual machine. |
Source |
Source from which recommendation is generated. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<ResourceMetadata>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ResourceMetadata>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ResourceMetadata>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ResourceMetadata>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ResourceMetadata>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |