Sdílet prostřednictvím


CheckRestrictionsResourceDetails Class

Definition

The information about the resource that will be evaluated.

public class CheckRestrictionsResourceDetails
type CheckRestrictionsResourceDetails = class
Public Class CheckRestrictionsResourceDetails
Inheritance
CheckRestrictionsResourceDetails

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.

Applies to