Share via


SubResource Class

Definition

A class representing a sub-resource that contains only the read-only ID.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.ResourceManager.Resources.Models.SubResource+SubResourceConverter))]
public class SubResource : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Resources.Models.SubResource>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Resources.Models.SubResource>
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.ResourceManager.Resources.Models.SubResource+SubResourceConverter))>]
type SubResource = class
    interface IJsonModel<SubResource>
    interface IPersistableModel<SubResource>
Public Class SubResource
Implements IJsonModel(Of SubResource), IPersistableModel(Of SubResource)
Inheritance
SubResource
Attributes
Implements

Constructors

SubResource()

Initializes an empty instance of SubResource for mocking.

SubResource(ResourceIdentifier)

Initializes a new instance of SubResource.

Properties

Id

Gets the ARM resource identifier.

Explicit Interface Implementations

IJsonModel<SubResource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SubResource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SubResource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SubResource>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SubResource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to