Skip to content

Commit

Permalink
update docstring (Azure#38914)
Browse files Browse the repository at this point in the history
  • Loading branch information
PratibhaShrivastav18 authored Dec 17, 2024
1 parent 55289ca commit 9b941a1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sdk/ml/azure-ai-ml/azure/ai/ml/entities/_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# pylint: disable=protected-access,redefined-builtin

from abc import ABC
from typing import Any, Dict, List, Optional, Union, Type
from typing import Any, Dict, List, Optional, Type, Union

from azure.ai.ml._azure_environments import _get_active_directory_url_from_metadata
from azure.ai.ml._restclient.v2022_01_01_preview.models import Identity as RestIdentityConfiguration
Expand Down Expand Up @@ -56,28 +56,28 @@
from azure.ai.ml._restclient.v2023_06_01_preview.models import (
WorkspaceConnectionApiKey as RestWorkspaceConnectionApiKey,
)
from azure.ai.ml._utils._experimental import experimental
from azure.ai.ml._utils.utils import camel_to_snake, snake_to_pascal, _snake_to_camel
from azure.ai.ml.constants._common import CommonYamlFields, IdentityType
from azure.ai.ml.entities._mixins import DictMixin, RestTranslatableMixin, YamlTranslatableMixin
from azure.ai.ml.exceptions import ErrorCategory, ErrorTarget, JobException, ValidationErrorType, ValidationException

# Note, this import needs to match the restclient that's imported by the
# Connection class, otherwise some unit tests will start failing
# Due to the mismatch between expected and received classes in WC rest conversions.
from azure.ai.ml._restclient.v2024_04_01_preview.models import (
ConnectionAuthType,
AADAuthTypeWorkspaceConnectionProperties,
AccessKeyAuthTypeWorkspaceConnectionProperties,
AccountKeyAuthTypeWorkspaceConnectionProperties,
ApiKeyAuthWorkspaceConnectionProperties,
ConnectionAuthType,
ManagedIdentityAuthTypeWorkspaceConnectionProperties,
NoneAuthTypeWorkspaceConnectionProperties,
PATAuthTypeWorkspaceConnectionProperties,
SASAuthTypeWorkspaceConnectionProperties,
ServicePrincipalAuthTypeWorkspaceConnectionProperties,
UsernamePasswordAuthTypeWorkspaceConnectionProperties,
AccountKeyAuthTypeWorkspaceConnectionProperties,
AADAuthTypeWorkspaceConnectionProperties,
)
from azure.ai.ml._utils._experimental import experimental
from azure.ai.ml._utils.utils import _snake_to_camel, camel_to_snake, snake_to_pascal
from azure.ai.ml.constants._common import CommonYamlFields, IdentityType
from azure.ai.ml.entities._mixins import DictMixin, RestTranslatableMixin, YamlTranslatableMixin
from azure.ai.ml.exceptions import ErrorCategory, ErrorTarget, JobException, ValidationErrorType, ValidationException


class _BaseIdentityConfiguration(ABC, DictMixin, RestTranslatableMixin):
Expand Down Expand Up @@ -236,9 +236,9 @@ def _get_rest_properties_class(cls) -> Type:
class UsernamePasswordConfiguration(RestTranslatableMixin, DictMixin):
"""Username and password credentials.
:param username: The username.
:param username: The username, value should be url-encoded.
:type username: str
:param password: The password.
:param password: The password, value should be url-encoded.
:type password: str
"""

Expand Down

0 comments on commit 9b941a1

Please sign in to comment.