Share via


IntellectualProperty Classe

Nota

Si tratta di una classe sperimentale e può cambiare in qualsiasi momento. Per altre informazioni, vedere https://aka.ms/azuremlexperimental.

Definizione delle impostazioni della proprietà intellettuale.

Ereditarietà
azure.ai.ml.entities._mixins.RestTranslatableMixin
IntellectualProperty

Costruttore

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

Parametri solo parole chiave

Nome Descrizione
publisher

Nome dell'editore.

protection_level

Livello di protezione degli asset. I valori accettati sono IPProtectionLevel.ALL ("all") e IPProtectionLevel.NONE ("none"). Il valore predefinito è IPProtectionLevel.ALL ("all").

Esempio

Configurazione delle impostazioni della proprietà intellettuale in un 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),
   )