你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IDefinition 接口

定义

托管磁盘定义的全部。

public interface IDefinition : Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IBlank, Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize, Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithDataDiskSource, Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithDiskSource, Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithGroup, Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithStorageAccount, Microsoft.Azure.Management.ResourceManager.Fluent.Core.GroupableResource.Definition.IWithCreatableResourceGroup<Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithDiskSource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.GroupableResource.Definition.IWithExistingResourceGroup<Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithDiskSource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.GroupableResource.Definition.IWithGroup<Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithDiskSource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.GroupableResource.Definition.IWithNewResourceGroup<Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithDiskSource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.Resource.Definition.IDefinitionWithRegion<Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithGroup>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.Resource.Definition.IDefinitionWithTags<Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreate>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Compute.Fluent.IDisk>
type IDefinition = interface
    interface IBlank
    interface IDefinitionWithRegion<IWithGroup>
    interface IWithGroup
    interface IWithGroup<IWithDiskSource>
    interface IWithExistingResourceGroup<IWithDiskSource>
    interface IWithNewResourceGroup<IWithDiskSource>
    interface IWithCreatableResourceGroup<IWithDiskSource>
    interface IWithDiskSource
    interface IWithWindowsDiskSource
    interface IWithLinuxDiskSource
    interface IWithData
    interface IWithDataDiskSource
    interface IWithDataDiskFromVhd
    interface IWithDataDiskFromUpload
    interface IWithDataDiskFromDisk
    interface IWithDataDiskFromSnapshot
    interface IWithStorageAccount
    interface IWithCreateAndSize
    interface IWithCreate
    interface ICreatable<IDisk>
    interface IIndexable
    interface IDefinitionWithTags<IWithCreate>
    interface IWithSku
    interface IWithHyperVGeneration
    interface IWithAvailabilityZone
    interface IBeta
Public Interface IDefinition
Implements IBeta, IBlank, ICreatable(Of IDisk), IDefinitionWithRegion(Of IWithGroup), IDefinitionWithTags(Of IWithCreate), IWithCreatableResourceGroup(Of IWithDiskSource), IWithCreateAndSize, IWithDataDiskSource, IWithDiskSource, IWithExistingResourceGroup(Of IWithDiskSource), IWithGroup, IWithGroup(Of IWithDiskSource), IWithNewResourceGroup(Of IWithDiskSource), IWithStorageAccount
实现

属性

Key

托管磁盘定义的全部。

(继承自 IIndexable)
Name

获取可创建资源的名称。

(继承自 ICreatable<T>)

方法

Create()

执行创建请求。

(继承自 ICreatable<T>)
CreateAsync(CancellationToken, Boolean)

将请求放入队列,并允许 HTTP 客户端在系统资源可用时执行它。

(继承自 ICreatable<T>)
FromDisk(IDisk)

指定源数据托管磁盘。

(继承自 IWithDataDiskFromDisk)
FromDisk(String)

指定源数据托管磁盘的 ID。

(继承自 IWithDataDiskFromDisk)
FromSnapshot(ISnapshot)

指定快照管理的源数据。

(继承自 IWithDataDiskFromSnapshot)
FromSnapshot(String)

指定快照管理的源数据。

(继承自 IWithDataDiskFromSnapshot)
FromVhd(String)

指定源数据 VHD。

(继承自 IWithDataDiskFromVhd)
WithAvailabilityZone(AvailabilityZoneId)

指定托管磁盘的可用性区域。

(继承自 IWithAvailabilityZone)
WithData()

开始定义包含数据的托管磁盘。

(继承自 IWithData)
WithExistingResourceGroup(IResourceGroup)

将资源与现有资源组相关联。

(继承自 IWithExistingResourceGroup<T>)
WithExistingResourceGroup(String)

将资源与现有资源组相关联。

(继承自 IWithExistingResourceGroup<T>)
WithHyperVGeneration(HyperVGeneration)

指定托管磁盘的虚拟机监控程序生成。

(继承自 IWithHyperVGeneration)
WithLinuxFromDisk(IDisk)

指定源 Linux OS 托管磁盘。

(继承自 IWithLinuxDiskSource)
WithLinuxFromDisk(String)

指定源 Linux OS 托管磁盘。

(继承自 IWithLinuxDiskSource)
WithLinuxFromSnapshot(ISnapshot)

指定源 Linux OS 托管快照。

(继承自 IWithLinuxDiskSource)
WithLinuxFromSnapshot(String)

指定源 Linux OS 托管快照。

(继承自 IWithLinuxDiskSource)
WithLinuxFromVhd(String)

指定源专用或通用化 Linux OS VHD。

(继承自 IWithLinuxDiskSource)
WithNewResourceGroup()

托管磁盘定义的全部。

(继承自 IWithNewResourceGroup<T>)
WithNewResourceGroup(ICreatable<IResourceGroup>)

根据指定的定义创建新的资源组以放入资源。

(继承自 IWithCreatableResourceGroup<T>)
WithNewResourceGroup(String)

托管磁盘定义的全部。

(继承自 IWithNewResourceGroup<T>)
WithRegion(Region)

指定资源的区域。

(继承自 IDefinitionWithRegion<T>)
WithRegion(String)

按名称指定资源的区域。

(继承自 IDefinitionWithRegion<T>)
WithSizeInGB(Int32)

指定空磁盘的磁盘大小。

(继承自 IWithDataDiskSource)
WithSku(DiskSkuTypes)

指定 SKU。

(继承自 IWithSku)
WithStorageAccount(IStorageAccount)

指定存储帐户。

(继承自 IWithStorageAccount)
WithStorageAccountId(String)

指定存储帐户 ID。

(继承自 IWithStorageAccount)
WithStorageAccountName(String)

指定同一资源组中的存储帐户名称。

(继承自 IWithStorageAccount)
WithTag(String, String)

将标记添加到资源。

(继承自 IDefinitionWithTags<T>)
WithTags(IDictionary<String,String>)

将资源的标记指定为 {@link Map}。

(继承自 IDefinitionWithTags<T>)
WithUploadSizeInMB(Nullable<Int64>)

获取或设置 createOption 是否为 Upload,这是上传内容(包括 VHD 页脚)的大小。 此值应介于 20 (20 MiB) 和 33554432 字节 (32 TiB) 之间。

(继承自 IWithDataDiskFromUpload)
WithWindowsFromDisk(IDisk)

指定源 Windows OS 托管磁盘。

(继承自 IWithWindowsDiskSource)
WithWindowsFromDisk(String)

指定源 Windows OS 托管磁盘。

(继承自 IWithWindowsDiskSource)
WithWindowsFromSnapshot(ISnapshot)

指定源 Windows OS 托管快照。

(继承自 IWithWindowsDiskSource)
WithWindowsFromSnapshot(String)

指定源 Windows OS 托管快照。

(继承自 IWithWindowsDiskSource)
WithWindowsFromVhd(String)

指定源专用或通用化 Windows OS VHD。

(继承自 IWithWindowsDiskSource)

适用于