Table of Contents

Class GenericResourceData

Namespace
Azure.ResourceManager.Resources
Assembly
Azure.ResourceManager.dll

A class representing the GenericResource data model. Resource information.

public class GenericResourceData : TrackedResourceExtendedData, IJsonModel<TrackedResourceExtendedData>, IPersistableModel<TrackedResourceExtendedData>, IJsonModel<GenericResourceData>, IPersistableModel<GenericResourceData>
Inheritance
GenericResourceData
Implements
IPersistableModel<TrackedResourceExtendedData>
IPersistableModel<GenericResourceData>
Inherited Members

Constructors

GenericResourceData(AzureLocation)

Initializes a new instance of GenericResourceData.

public GenericResourceData(AzureLocation location)

Parameters

location AzureLocation

The location.

Properties

ChangedOn

The changed time of the resource. This is only present if requested via the $expand query parameter.

public DateTimeOffset? ChangedOn { get; }

Property Value

DateTimeOffset?

CreatedOn

The created time of the resource. This is only present if requested via the $expand query parameter.

public DateTimeOffset? CreatedOn { get; }

Property Value

DateTimeOffset?

Identity

The identity of the resource.

public ManagedServiceIdentity Identity { get; set; }

Property Value

ManagedServiceIdentity

Kind

The kind of the resource.

public string Kind { get; set; }

Property Value

string

ManagedBy

ID of the resource that manages this resource.

public string ManagedBy { get; set; }

Property Value

string

Plan

The plan of the resource.

public ArmPlan Plan { get; set; }

Property Value

ArmPlan

Properties

The resource properties.

To assign an object to this property use System.BinaryData.FromObjectAsJson``1(``0,System.Text.Json.JsonSerializerOptions).

To assign an already formatted json string to this property use System.BinaryData.FromString(System.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" }.
public BinaryData Properties { get; set; }

Property Value

BinaryData

ProvisioningState

The provisioning state of the resource. This is only present if requested via the $expand query parameter.

public string ProvisioningState { get; }

Property Value

string

Sku

The SKU of the resource.

public ResourcesSku Sku { get; set; }

Property Value

ResourcesSku