Aracılığıyla paylaş


GenericResourceData Class

Definition

A class representing the GenericResource data model. Resource information.

public class GenericResourceData : Azure.ResourceManager.Resources.Models.TrackedResourceExtendedData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Resources.GenericResourceData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Resources.GenericResourceData>
type GenericResourceData = class
    inherit TrackedResourceExtendedData
    interface IJsonModel<GenericResourceData>
    interface IPersistableModel<GenericResourceData>
Public Class GenericResourceData
Inherits TrackedResourceExtendedData
Implements IJsonModel(Of GenericResourceData), IPersistableModel(Of GenericResourceData)
Inheritance
Implements

Constructors

GenericResourceData(AzureLocation)

Initializes a new instance of GenericResourceData.

Properties

ChangedOn

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

CreatedOn

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

ExtendedLocation

Resource extended location.

(Inherited from TrackedResourceExtendedData)
Id

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

(Inherited from ResourceData)
Identity

The identity of the resource.

Kind

The kind of the resource.

Location

The geo-location where the resource lives.

(Inherited from TrackedResourceData)
ManagedBy

ID of the resource that manages this resource.

Name

The name of the resource.

(Inherited from ResourceData)
Plan

The plan of the resource.

Properties

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

ProvisioningState

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

ResourceType

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

(Inherited from ResourceData)
Sku

The SKU of the resource.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Tags

Resource tags.

(Inherited from TrackedResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from TrackedResourceExtendedData)

Explicit Interface Implementations

IJsonModel<GenericResourceData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<GenericResourceData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<TrackedResourceExtendedData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from TrackedResourceExtendedData)
IJsonModel<TrackedResourceExtendedData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from TrackedResourceExtendedData)
IPersistableModel<GenericResourceData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<GenericResourceData>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<GenericResourceData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<TrackedResourceExtendedData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from TrackedResourceExtendedData)
IPersistableModel<TrackedResourceExtendedData>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from TrackedResourceExtendedData)
IPersistableModel<TrackedResourceExtendedData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from TrackedResourceExtendedData)

Applies to