Partager via


Resource Class

Definition

An Azure resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.ResourceTypeConverter))]
public class Resource : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.IResource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.ResourceTypeConverter))>]
type Resource = class
    interface IResource
    interface IJsonSerializable
Public Class Resource
Implements IResource
Inheritance
Resource
Attributes
Implements

Constructors

Resource()

Creates an new Resource instance.

Properties

Id

The resource ID.

Location

The location of the resource. This cannot be changed after the resource is created.

Name

The name of the resource.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource modification (UTC).

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Tag

The tags of the resource.

Type

The type of the resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Resource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Resource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.IResource.

FromJsonString(String)

Creates a new instance of Resource, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Resource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to