Share via


DeploymentPreflightResourceInfo Class

Definition

Deployment preflight resource.

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

Constructors

DeploymentPreflightResourceInfo()

Initializes a new instance of DeploymentPreflightResourceInfo.

Properties

ApiVersion

Gets or sets the Api version.

DeploymentPreflightResourceType

Gets or sets the resource type.

Location

Gets or sets the ___location of the resource.

Name

Gets or sets the resource name.

Properties

Gets or sets the properties of the resource.

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

Type

Gets or sets the resource type.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DeploymentPreflightResourceInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DeploymentPreflightResourceInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DeploymentPreflightResourceInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DeploymentPreflightResourceInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DeploymentPreflightResourceInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to