Dela via


SlimPolicyMetadata Class

Definition

Slim version of policy metadata resource definition, excluding properties with large strings.

public class SlimPolicyMetadata : Azure.ResourceManager.Models.ResourceData
type SlimPolicyMetadata = class
    inherit ResourceData
Public Class SlimPolicyMetadata
Inherits ResourceData
Inheritance
SlimPolicyMetadata

Properties

AdditionalContentUri

Url for getting additional content about the resource metadata.

Category

The category of the policy metadata.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Metadata

Additional metadata.

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

MetadataId

The policy metadata identifier.

Name

The name of the resource.

(Inherited from ResourceData)
Owner

The owner of the policy metadata.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Title

The title of the policy metadata.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Applies to