|
5 | 5 | # pylint: disable=protected-access,redefined-builtin |
6 | 6 |
|
7 | 7 | from abc import ABC |
8 | | -from typing import Any, Dict, List, Optional, Union, Type |
| 8 | +from typing import Any, Dict, List, Optional, Type, Union |
9 | 9 |
|
10 | 10 | from azure.ai.ml._azure_environments import _get_active_directory_url_from_metadata |
11 | 11 | from azure.ai.ml._restclient.v2022_01_01_preview.models import Identity as RestIdentityConfiguration |
|
56 | 56 | from azure.ai.ml._restclient.v2023_06_01_preview.models import ( |
57 | 57 | WorkspaceConnectionApiKey as RestWorkspaceConnectionApiKey, |
58 | 58 | ) |
59 | | -from azure.ai.ml._utils._experimental import experimental |
60 | | -from azure.ai.ml._utils.utils import camel_to_snake, snake_to_pascal, _snake_to_camel |
61 | | -from azure.ai.ml.constants._common import CommonYamlFields, IdentityType |
62 | | -from azure.ai.ml.entities._mixins import DictMixin, RestTranslatableMixin, YamlTranslatableMixin |
63 | | -from azure.ai.ml.exceptions import ErrorCategory, ErrorTarget, JobException, ValidationErrorType, ValidationException |
64 | 59 |
|
65 | 60 | # Note, this import needs to match the restclient that's imported by the |
66 | 61 | # Connection class, otherwise some unit tests will start failing |
67 | 62 | # Due to the mismatch between expected and received classes in WC rest conversions. |
68 | 63 | from azure.ai.ml._restclient.v2024_04_01_preview.models import ( |
69 | | - ConnectionAuthType, |
| 64 | + AADAuthTypeWorkspaceConnectionProperties, |
70 | 65 | AccessKeyAuthTypeWorkspaceConnectionProperties, |
| 66 | + AccountKeyAuthTypeWorkspaceConnectionProperties, |
71 | 67 | ApiKeyAuthWorkspaceConnectionProperties, |
| 68 | + ConnectionAuthType, |
72 | 69 | ManagedIdentityAuthTypeWorkspaceConnectionProperties, |
73 | 70 | NoneAuthTypeWorkspaceConnectionProperties, |
74 | 71 | PATAuthTypeWorkspaceConnectionProperties, |
75 | 72 | SASAuthTypeWorkspaceConnectionProperties, |
76 | 73 | ServicePrincipalAuthTypeWorkspaceConnectionProperties, |
77 | 74 | UsernamePasswordAuthTypeWorkspaceConnectionProperties, |
78 | | - AccountKeyAuthTypeWorkspaceConnectionProperties, |
79 | | - AADAuthTypeWorkspaceConnectionProperties, |
80 | 75 | ) |
| 76 | +from azure.ai.ml._utils._experimental import experimental |
| 77 | +from azure.ai.ml._utils.utils import _snake_to_camel, camel_to_snake, snake_to_pascal |
| 78 | +from azure.ai.ml.constants._common import CommonYamlFields, IdentityType |
| 79 | +from azure.ai.ml.entities._mixins import DictMixin, RestTranslatableMixin, YamlTranslatableMixin |
| 80 | +from azure.ai.ml.exceptions import ErrorCategory, ErrorTarget, JobException, ValidationErrorType, ValidationException |
81 | 81 |
|
82 | 82 |
|
83 | 83 | class _BaseIdentityConfiguration(ABC, DictMixin, RestTranslatableMixin): |
@@ -236,9 +236,9 @@ def _get_rest_properties_class(cls) -> Type: |
236 | 236 | class UsernamePasswordConfiguration(RestTranslatableMixin, DictMixin): |
237 | 237 | """Username and password credentials. |
238 | 238 |
|
239 | | - :param username: The username. |
| 239 | + :param username: The username, value should be url-encoded. |
240 | 240 | :type username: str |
241 | | - :param password: The password. |
| 241 | + :param password: The password, value should be url-encoded. |
242 | 242 | :type password: str |
243 | 243 | """ |
244 | 244 |
|
|
0 commit comments