Share via


IntellectualProperty Clase

Nota

Se trata de una clase experimental y puede cambiar en cualquier momento. Consulte https://aka.ms/azuremlexperimental para más información.

Definición de la configuración de la propiedad intelectual.

Herencia
azure.ai.ml.entities._mixins.RestTranslatableMixin
IntellectualProperty

Constructor

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

Parámetros de palabra clave únicamente

Nombre Description
publisher

Nombre del publicador.

protection_level

Nivel de protección de recursos. Los valores aceptados son IPProtectionLevel.ALL ("all") y IPProtectionLevel.NONE ("none"). El valor predeterminado es IPProtectionLevel.ALL ("all").

Ejemplos

Configuración de las opciones de propiedad intelectual en un objeto 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),
   )