你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GalleryOSDiskImage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is the OS disk image.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryOSDiskImageTypeConverter))]
public class GalleryOSDiskImage : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryOSDiskImage, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryOSDiskImageTypeConverter))>]
type GalleryOSDiskImage = class
interface IGalleryOSDiskImage
interface IJsonSerializable
interface IGalleryDiskImage
interface IValidates
Public Class GalleryOSDiskImage
Implements IGalleryOSDiskImage, IValidates
- Inheritance
-
GalleryOSDiskImage
- Attributes
- Implements
Constructors
GalleryOSDiskImage() |
Creates an new GalleryOSDiskImage instance. |
Properties
HostCaching |
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' |
SizeInGb |
This property indicates the size of the VHD to be created. |
Source |
The gallery artifact version source. |
SourceId |
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. |
SourceUri |
The uri of the gallery artifact version source. Currently used to specify vhd/blob source. |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of GalleryOSDiskImage. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of GalleryOSDiskImage. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryOSDiskImage. |
FromJsonString(String) |
Creates a new instance of GalleryOSDiskImage, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of GalleryOSDiskImage into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
Validate(IEventListener) |
Validates that this object meets the validation criteria. |