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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python