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

IntellectualProperty Class

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Intellectual property settings definition.

Constructor

IntellectualProperty(*, publisher: str | None = None, protection_level: IPProtectionLevel = IPProtectionLevel.ALL)

Keyword-Only Parameters

Name Description
publisher

The publisher's name.

protection_level

Asset Protection Level. Accepted values are IPProtectionLevel.ALL ("all") and IPProtectionLevel.NONE ("none"). Defaults to IPProtectionLevel.ALL ("all").

Examples

Configuring intellectual property settings on a CommandComponent.


   from azure.ai.ml.constants import IPProtectionLevel
   from azure.ai.ml.entities import CommandComponent, IntellectualProperty

   component = CommandComponent(
       name="random_name",
       version="1",
       environment="azureml:AzureML-Minimal:1",
       command="echo hello",
       intellectual_property=IntellectualProperty(publisher="contoso", protection_level=IPProtectionLevel.ALL),
   )