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

PurchasePlan Class

Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.

All required parameters must be populated in order to send to server.

Constructor

PurchasePlan(*, name: str, publisher: str, product: str, promotion_code: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

The plan ID. Required.

publisher
str

The publisher ID. Required.

product
str

Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. Required.

promotion_code
str

The Offer Promotion Code.

Default value: None

Variables

Name Description
name
str

The plan ID. Required.

publisher
str

The publisher ID. Required.

product
str

Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. Required.

promotion_code
str

The Offer Promotion Code.