PatTokenConfiguration Class

Personal access token credentials.

Inheritance
azure.ai.ml.entities._mixins.RestTranslatableMixin
PatTokenConfiguration
azure.ai.ml.entities._mixins.DictMixin
PatTokenConfiguration

Constructor

PatTokenConfiguration(*, pat: str)

Parameters

Name Description
pat
Required
str

Personal access token.

Keyword-Only Parameters

Name Description
pat
Required

Examples

Configuring a personal access token configuration for a WorkspaceConnection.


   from azure.ai.ml.entities import PatTokenConfiguration, WorkspaceConnection

   ws_connection = WorkspaceConnection(
       target="my_target",
       type="python_feed",
       credentials=PatTokenConfiguration(pat="abcdefghijklmnopqrstuvwxyz"),
       name="my_connection",
       metadata=None,
   )

Methods

get
has_key
items
keys
update
values

get

get(key: Any, default: Any | None = None) -> Any

Parameters

Name Description
key
Required
default
Default value: None

has_key

has_key(k: Any) -> bool

Parameters

Name Description
k
Required

items

items() -> list

keys

keys() -> list

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> list