Share via


ProxyResource Class

Definition

The resource model definition for a ARM proxy resource. It will have everything other than required location and tags

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ProxyResourceTypeConverter))]
public class ProxyResource : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IProxyResource, Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ProxyResourceTypeConverter))>]
type ProxyResource = class
    interface IProxyResource
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class ProxyResource
Implements IProxyResource, IValidates
Inheritance
ProxyResource
Attributes
Implements

Constructors

Name Description
ProxyResource()

Creates an new ProxyResource instance.

Properties

Name Description
Id

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

Name

The name of the resource

Type

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ProxyResource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ProxyResource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IProxyResource.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ProxyResource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to