Skip to content

Commit 9b941a1

Browse files
update docstring (Azure#38914)
1 parent 55289ca commit 9b941a1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_credentials.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# pylint: disable=protected-access,redefined-builtin
66

77
from abc import ABC
8-
from typing import Any, Dict, List, Optional, Union, Type
8+
from typing import Any, Dict, List, Optional, Type, Union
99

1010
from azure.ai.ml._azure_environments import _get_active_directory_url_from_metadata
1111
from azure.ai.ml._restclient.v2022_01_01_preview.models import Identity as RestIdentityConfiguration
@@ -56,28 +56,28 @@
5656
from azure.ai.ml._restclient.v2023_06_01_preview.models import (
5757
WorkspaceConnectionApiKey as RestWorkspaceConnectionApiKey,
5858
)
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
6459

6560
# Note, this import needs to match the restclient that's imported by the
6661
# Connection class, otherwise some unit tests will start failing
6762
# Due to the mismatch between expected and received classes in WC rest conversions.
6863
from azure.ai.ml._restclient.v2024_04_01_preview.models import (
69-
ConnectionAuthType,
64+
AADAuthTypeWorkspaceConnectionProperties,
7065
AccessKeyAuthTypeWorkspaceConnectionProperties,
66+
AccountKeyAuthTypeWorkspaceConnectionProperties,
7167
ApiKeyAuthWorkspaceConnectionProperties,
68+
ConnectionAuthType,
7269
ManagedIdentityAuthTypeWorkspaceConnectionProperties,
7370
NoneAuthTypeWorkspaceConnectionProperties,
7471
PATAuthTypeWorkspaceConnectionProperties,
7572
SASAuthTypeWorkspaceConnectionProperties,
7673
ServicePrincipalAuthTypeWorkspaceConnectionProperties,
7774
UsernamePasswordAuthTypeWorkspaceConnectionProperties,
78-
AccountKeyAuthTypeWorkspaceConnectionProperties,
79-
AADAuthTypeWorkspaceConnectionProperties,
8075
)
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
8181

8282

8383
class _BaseIdentityConfiguration(ABC, DictMixin, RestTranslatableMixin):
@@ -236,9 +236,9 @@ def _get_rest_properties_class(cls) -> Type:
236236
class UsernamePasswordConfiguration(RestTranslatableMixin, DictMixin):
237237
"""Username and password credentials.
238238
239-
:param username: The username.
239+
:param username: The username, value should be url-encoded.
240240
:type username: str
241-
:param password: The password.
241+
:param password: The password, value should be url-encoded.
242242
:type password: str
243243
"""
244244

0 commit comments

Comments
 (0)