PatTokenConfiguration Class
Personal access token credentials.
- Inheritance
-
azure.ai.ml.entities._mixins.RestTranslatableMixinPatTokenConfigurationazure.ai.ml.entities._mixins.DictMixinPatTokenConfiguration
Constructor
PatTokenConfiguration(*, pat: str)
Parameters
Name | Description |
---|---|
pat
Required
|
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Python