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

CommunityGalleryImage 类

指定要创建或更新的库映像定义的相关信息。

变量仅由服务器填充,发送请求时将被忽略。

继承
azure.mgmt.compute.v2021_07_01.models._models_py3.PirCommunityGalleryResource
CommunityGalleryImage

构造函数

CommunityGalleryImage(*, unique_id: str | None = None, os_type: str | _models.OperatingSystemTypes | None = None, os_state: str | _models.OperatingSystemStateTypes | None = None, end_of_life_date: datetime | None = None, identifier: _models.GalleryImageIdentifier | None = None, recommended: _models.RecommendedMachineConfiguration | None = None, disallowed: _models.Disallowed | None = None, hyper_v_generation: str | _models.HyperVGeneration | None = None, features: List[_models.GalleryImageFeature] | None = None, purchase_plan: _models.ImagePurchasePlan | None = None, **kwargs)

变量

name
str

资源名称。

location
str

资源位置。

type
str

资源类型。

unique_id
str

此社区库的唯一 ID。

os_type
strOperatingSystemTypes

此属性允许指定从托管映像创建 VM 时磁盘中包含的 OS 类型。 <br>``<br> 可能的值是: <br>``<br>Windows<br>``<br>Linux。 已知值为:“Windows”和“Linux”。

os_state
strOperatingSystemStateTypes

此属性允许用户指定在此映像下创建的虚拟机是“通用化”还是“专用”。 已知值为:“Generalized”和“Specialized”。

end_of_life_date
datetime

库映像定义的生命周期结束日期。 此属性可用于解除授权目的。 此属性可更新。

identifier
GalleryImageIdentifier

这是库映像定义标识符。

recommended
RecommendedMachineConfiguration

属性描述此映像定义的建议计算机配置。 这些属性是可更新的。

disallowed
Disallowed

描述不允许的磁盘类型。

hyper_v_generation
strHyperVGeneration

虚拟机的虚拟机监控程序生成。 仅适用于 OS 磁盘。 已知值为:“V1”和“V2”。

features
list[GalleryImageFeature]

库映像功能的列表。

purchase_plan
ImagePurchasePlan

介绍库映像定义购买计划。 这由市场映像使用。