Sdílet prostřednictvím


Resource Class

Definition

The Resource model definition.

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

Constructors

Resource()

Creates an new Resource instance.

Properties

ETag

ETag of the resource.

Id

Resource Id.

Location

Location of the resource.

Name

Resource name.

Sku

SKU of the resource.

Tag

Resource tags.

Type

Resource type.

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.CostManagement.Models.Api20211001.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.

Explicit Interface Implementations

IResourceInternal.ETag

Internal Acessors for ETag

IResourceInternal.Id

Internal Acessors for Id

IResourceInternal.Location

Internal Acessors for Location

IResourceInternal.Name

Internal Acessors for Name

IResourceInternal.Sku

Internal Acessors for Sku

IResourceInternal.Tag

Internal Acessors for Tag

IResourceInternal.Type

Internal Acessors for Type

Applies to