Share via


CheckRestrictionsResourceDetails Class

Definition

The information about the resource that will be evaluated.

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

Constructors

CheckRestrictionsResourceDetails(BinaryData)

Initializes a new instance of CheckRestrictionsResourceDetails.

Properties

ApiVersion

The api-version of the resource content.

ResourceContent

The resource content. This should include whatever properties are already known and can be a partial set of all resource 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" }.

Scope

The scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CheckRestrictionsResourceDetails>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CheckRestrictionsResourceDetails>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CheckRestrictionsResourceDetails>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CheckRestrictionsResourceDetails>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CheckRestrictionsResourceDetails>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to