Partager via


GpuResource Class

Definition

The GPU resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter))]
public class GpuResource : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter))>]
type GpuResource = class
    interface IGpuResource
    interface IJsonSerializable
Public Class GpuResource
Implements IGpuResource
Inheritance
GpuResource
Attributes
Implements

Constructors

GpuResource()

Creates an new GpuResource instance.

Properties

Count

The count of the GPU resource.

Sku

The SKU of the GPU resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of GpuResource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of GpuResource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of GpuResource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to