你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SnapshotUpdate 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SnapshotUpdate()
初始化 SnapshotUpdate 类的新实例。
public SnapshotUpdate();
Public Sub New ()
适用于
SnapshotUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Encryption, String, String)
初始化 SnapshotUpdate 类的新实例。
public SnapshotUpdate(Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType, int? diskSizeGB, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection, Microsoft.Azure.Management.Compute.Models.Encryption encryption, string networkAccessPolicy, string diskAccessId);
new Microsoft.Azure.Management.Compute.Models.SnapshotUpdate : Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * Microsoft.Azure.Management.Compute.Models.Encryption * string * string -> Microsoft.Azure.Management.Compute.Models.SnapshotUpdate
Public Sub New (osType As Nullable(Of OperatingSystemTypes), diskSizeGB As Nullable(Of Integer), encryptionSettingsCollection As EncryptionSettingsCollection, encryption As Encryption, networkAccessPolicy As String, diskAccessId As String)
参数
- osType
- Nullable<OperatingSystemTypes>
操作系统类型。 可能的值包括:“Windows”、“Linux”
如果 creationData.createOption 为 Empty,则此字段是必需的,它指示要创建的磁盘的大小。 如果此字段可用于使用其他选项进行更新或创建,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许重设大小,并且只能增加磁盘的大小。
- encryptionSettingsCollection
- EncryptionSettingsCollection
加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。
- encryption
- Encryption
加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。
- networkAccessPolicy
- String
可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”
- diskAccessId
- String
用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。
适用于
SnapshotUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Encryption, String, String, IDictionary<String,String>)
public SnapshotUpdate(Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType, int? diskSizeGB, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection, Microsoft.Azure.Management.Compute.Models.Encryption encryption, string networkAccessPolicy, string diskAccessId, System.Collections.Generic.IDictionary<string,string> tags);
new Microsoft.Azure.Management.Compute.Models.SnapshotUpdate : Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Azure.Management.Compute.Models.SnapshotUpdate
Public Sub New (osType As Nullable(Of OperatingSystemTypes), diskSizeGB As Nullable(Of Integer), encryptionSettingsCollection As EncryptionSettingsCollection, encryption As Encryption, networkAccessPolicy As String, diskAccessId As String, tags As IDictionary(Of String, String))
参数
- osType
- Nullable<OperatingSystemTypes>
- encryptionSettingsCollection
- EncryptionSettingsCollection
- encryption
- Encryption
- networkAccessPolicy
- String
- diskAccessId
- String
- tags
- IDictionary<String,String>
适用于
SnapshotUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Encryption, String, String, IDictionary<String, String>, SnapshotSku)
初始化 SnapshotUpdate 类的新实例。
public SnapshotUpdate(Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType, int? diskSizeGB, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection, Microsoft.Azure.Management.Compute.Models.Encryption encryption, string networkAccessPolicy, string diskAccessId, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku);
new Microsoft.Azure.Management.Compute.Models.SnapshotUpdate : Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.SnapshotSku -> Microsoft.Azure.Management.Compute.Models.SnapshotUpdate
Public Sub New (osType As Nullable(Of OperatingSystemTypes), diskSizeGB As Nullable(Of Integer), encryptionSettingsCollection As EncryptionSettingsCollection, encryption As Encryption, networkAccessPolicy As String, diskAccessId As String, tags As IDictionary(Of String, String), sku As SnapshotSku)
参数
- osType
- Nullable<OperatingSystemTypes>
操作系统类型。 可能的值包括:“Windows”、“Linux”
如果 creationData.createOption 为 Empty,则此字段是必需的,它指示要创建的磁盘的大小。 如果此字段可用于使用其他选项进行更新或创建,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许重设大小,并且只能增加磁盘的大小。
- encryptionSettingsCollection
- EncryptionSettingsCollection
加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。
- encryption
- Encryption
加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。
- networkAccessPolicy
- String
可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”
- diskAccessId
- String
用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。
- tags
- IDictionary<String,String>
资源标记
- sku
- SnapshotSku
适用于
SnapshotUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Encryption, String, String, Nullable<Boolean>, IDictionary<String,String>, SnapshotSku)
初始化 SnapshotUpdate 类的新实例。
public SnapshotUpdate(Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType, int? diskSizeGB, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection, Microsoft.Azure.Management.Compute.Models.Encryption encryption, string networkAccessPolicy, string diskAccessId, bool? supportsHibernation, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku = default);
new Microsoft.Azure.Management.Compute.Models.SnapshotUpdate : Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * Nullable<bool> * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.SnapshotSku -> Microsoft.Azure.Management.Compute.Models.SnapshotUpdate
Public Sub New (osType As Nullable(Of OperatingSystemTypes), diskSizeGB As Nullable(Of Integer), encryptionSettingsCollection As EncryptionSettingsCollection, encryption As Encryption, networkAccessPolicy As String, diskAccessId As String, supportsHibernation As Nullable(Of Boolean), tags As IDictionary(Of String, String), Optional sku As SnapshotSku = Nothing)
参数
- osType
- Nullable<OperatingSystemTypes>
操作系统类型。 可能的值包括:“Windows”、“Linux”
如果 creationData.createOption 为 Empty,则此字段是必需的,它指示要创建的磁盘的大小。 如果此字段可用于使用其他选项进行更新或创建,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许重设大小,并且只能增加磁盘的大小。
- encryptionSettingsCollection
- EncryptionSettingsCollection
加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。
- encryption
- Encryption
加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。
- networkAccessPolicy
- String
可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”
- diskAccessId
- String
用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。
- tags
- IDictionary<String,String>
资源标记
- sku
- SnapshotSku
适用于
SnapshotUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Encryption, String, String, Nullable<Boolean>, String, SupportedCapabilities, IDictionary<String,String>, SnapshotSku)
初始化 SnapshotUpdate 类的新实例。
public SnapshotUpdate(Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType, int? diskSizeGB, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection, Microsoft.Azure.Management.Compute.Models.Encryption encryption, string networkAccessPolicy, string diskAccessId, bool? supportsHibernation, string publicNetworkAccess, Microsoft.Azure.Management.Compute.Models.SupportedCapabilities supportedCapabilities, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku = default);
new Microsoft.Azure.Management.Compute.Models.SnapshotUpdate : Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.SupportedCapabilities * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.SnapshotSku -> Microsoft.Azure.Management.Compute.Models.SnapshotUpdate
Public Sub New (osType As Nullable(Of OperatingSystemTypes), diskSizeGB As Nullable(Of Integer), encryptionSettingsCollection As EncryptionSettingsCollection, encryption As Encryption, networkAccessPolicy As String, diskAccessId As String, supportsHibernation As Nullable(Of Boolean), publicNetworkAccess As String, supportedCapabilities As SupportedCapabilities, Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As SnapshotSku = Nothing)
参数
- osType
- Nullable<OperatingSystemTypes>
操作系统类型。 可能的值包括:“Windows”、“Linux”
如果 creationData.createOption 为 Empty,则此字段是必需的,它指示要创建的磁盘的大小。 如果此字段可用于使用其他选项进行更新或创建,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许重设大小,并且只能增加磁盘的大小。
- encryptionSettingsCollection
- EncryptionSettingsCollection
加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。
- encryption
- Encryption
加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。
- networkAccessPolicy
- String
可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”
- diskAccessId
- String
用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。
- publicNetworkAccess
- String
可能的值包括:“Enabled”、“Disabled”
- supportedCapabilities
- SupportedCapabilities
支持的功能列表, (例如从中创建 OS 磁盘的映像的加速网络) 。
- tags
- IDictionary<String,String>
资源标记
- sku
- SnapshotSku
适用于
SnapshotUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Encryption, String, String, Nullable<Boolean>, String, String, SupportedCapabilities, IDictionary<String,String>, SnapshotSku)
初始化 SnapshotUpdate 类的新实例。
public SnapshotUpdate(Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType = default, int? diskSizeGB = default, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection = default, Microsoft.Azure.Management.Compute.Models.Encryption encryption = default, string networkAccessPolicy = default, string diskAccessId = default, bool? supportsHibernation = default, string publicNetworkAccess = default, string dataAccessAuthMode = default, Microsoft.Azure.Management.Compute.Models.SupportedCapabilities supportedCapabilities = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku = default);
new Microsoft.Azure.Management.Compute.Models.SnapshotUpdate : Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * Nullable<bool> * string * string * Microsoft.Azure.Management.Compute.Models.SupportedCapabilities * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.SnapshotSku -> Microsoft.Azure.Management.Compute.Models.SnapshotUpdate
Public Sub New (Optional osType As Nullable(Of OperatingSystemTypes) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional encryptionSettingsCollection As EncryptionSettingsCollection = Nothing, Optional encryption As Encryption = Nothing, Optional networkAccessPolicy As String = Nothing, Optional diskAccessId As String = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As String = Nothing, Optional dataAccessAuthMode As String = Nothing, Optional supportedCapabilities As SupportedCapabilities = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As SnapshotSku = Nothing)
参数
- osType
- Nullable<OperatingSystemTypes>
操作系统类型。 可能的值包括:“Windows”、“Linux”
如果 creationData.createOption 为 Empty,则此字段是必需的,它指示要创建的磁盘的大小。 如果此字段可用于使用其他选项进行更新或创建,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许重设大小,并且只能增加磁盘的大小。
- encryptionSettingsCollection
- EncryptionSettingsCollection
加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。
- encryption
- Encryption
加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。
- networkAccessPolicy
- String
可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”
- diskAccessId
- String
用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。
- publicNetworkAccess
- String
可能的值包括:“Enabled”、“Disabled”
- dataAccessAuthMode
- String
可能的值包括:“AzureActiveDirectory”、“None”
- supportedCapabilities
- SupportedCapabilities
从中创建 OS 磁盘的映像支持的功能列表。
- tags
- IDictionary<String,String>
资源标记
- sku
- SnapshotSku