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
-
IJsonModel<TrackedResourceExtendedData>IPersistableModel<TrackedResourceExtendedData>IJsonModel<GenericResourceData>IPersistableModel<GenericResourceData>
- Inherited Members
Constructors
GenericResourceData(AzureLocation)
Initializes a new instance of GenericResourceData.
public GenericResourceData(AzureLocation location)
Parameters
location
AzureLocationThe 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
CreatedOn
The created time of the resource. This is only present if requested via the $expand query parameter.
public DateTimeOffset? CreatedOn { get; }
Property Value
Identity
The identity of the resource.
public ManagedServiceIdentity Identity { get; set; }
Property Value
Kind
The kind of the resource.
public string Kind { get; set; }
Property Value
ManagedBy
ID of the resource that manages this resource.
public string ManagedBy { get; set; }
Property Value
Plan
The plan of the resource.
public ArmPlan Plan { get; set; }
Property Value
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
Sku
The SKU of the resource.
public ResourcesSku Sku { get; set; }