Skip to content

Commit 0fb7af9

Browse files
authored
GitHub issues fix : Reapeated cells in the Keyword-Only Parameters Azure#37738 (Azure#39483)
* documentation fix
1 parent 0d2ac51 commit 0fb7af9

File tree

4 files changed

+139
-305
lines changed

4 files changed

+139
-305
lines changed

sdk/ml/azure-ai-ml/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
dependencies = [
3636
(
3737
"azure-pylint-guidelines-checker",
38-
"0.3.1",
38+
"0.5.1",
3939
[
4040
"--index-url",
4141
"https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/",

sdk/ml/azure-ai-ml/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
### Features Added
66

77
### Bugs Fixed
8-
- #39187 - Submitting a Command job created using the __call__ method on another Command is missing outputs
8+
- #39187 - Submitting a Command job created using the __call__ method on another Command is missing outputs.
9+
- #37738 - documentation fix for deployment entities.
910

1011
## 1.24.0 (2025-01-07)
1112

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_deployment/deployment.py

Lines changed: 20 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@ class Deployment(Resource, RestTranslatableMixin):
3737
3838
:param name: Name of the deployment resource, defaults to None
3939
:type name: typing.Optional[str]
40-
:keyword endpoint_name: Name of the Endpoint resource, defaults to None
41-
:paramtype endpoint_name: typing.Optional[str]
42-
:keyword description: Description of the deployment resource, defaults to None
43-
:paramtype description: typing.Optional[str]
44-
:keyword tags: Tag dictionary. Tags can be added, removed, and updated, defaults to None
45-
:paramtype tags: typing.Optional[typing.Dict[str, typing.Any]]
46-
:keyword properties: The asset property dictionary, defaults to None
47-
:paramtype properties: typing.Optional[typing.Dict[str, typing.Any]]
48-
:keyword model: The Model entity, defaults to None
49-
:paramtype model: typing.Optional[typing.Union[str, ~azure.ai.ml.entities.Model]]
50-
:keyword code_configuration: Code Configuration, defaults to None
51-
:paramtype code_configuration: typing.Optional[CodeConfiguration]
52-
:keyword environment: The Environment entity, defaults to None
53-
:paramtype environment: typing.Optional[typing.Union[str, ~azure.ai.ml.entities.Environment]]
54-
:keyword environment_variables: Environment variables that will be set in deployment, defaults to None
55-
:paramtype environment_variables: typing.Optional[typing.Dict[str, str]]
56-
:keyword code_path: Folder path to local code assets. Equivalent to code_configuration.code.path
40+
:param endpoint_name: Name of the Endpoint resource, defaults to None
41+
:type endpoint_name: typing.Optional[str]
42+
:param description: Description of the deployment resource, defaults to None
43+
:type description: typing.Optional[str]
44+
:param tags: Tag dictionary. Tags can be added, removed, and updated, defaults to None
45+
:type tags: typing.Optional[typing.Dict[str, typing.Any]]
46+
:param properties: The asset property dictionary, defaults to None
47+
:type properties: typing.Optional[typing.Dict[str, typing.Any]]
48+
:param model: The Model entity, defaults to None
49+
:type model: typing.Optional[typing.Union[str, ~azure.ai.ml.entities.Model]]
50+
:param code_configuration: Code Configuration, defaults to None
51+
:type code_configuration: typing.Optional[CodeConfiguration]
52+
:param environment: The Environment entity, defaults to None
53+
:type environment: typing.Optional[typing.Union[str, ~azure.ai.ml.entities.Environment]]
54+
:param environment_variables: Environment variables that will be set in deployment, defaults to None
55+
:type environment_variables: typing.Optional[typing.Dict[str, str]]
56+
:param code_path: Folder path to local code assets. Equivalent to code_configuration.code.path
5757
, defaults to None
58-
:paramtype code_path: typing.Optional[typing.Union[str, PathLike]]
59-
:keyword scoring_script: Scoring script name. Equivalent to code_configuration.code.scoring_script
58+
:type code_path: typing.Optional[typing.Union[str, PathLike]]
59+
:param scoring_script: Scoring script name. Equivalent to code_configuration.code.scoring_script
6060
, defaults to None
61-
:paramtype scoring_script: typing.Optional[typing.Union[str, PathLike]]
61+
:type scoring_script: typing.Optional[typing.Union[str, PathLike]]
6262
:raises ~azure.ai.ml.exceptions.ValidationException: Raised if Deployment cannot be successfully validated.
6363
Exception details will be provided in the error message.
6464
"""
@@ -79,37 +79,6 @@ def __init__(
7979
scoring_script: Optional[Union[str, PathLike]] = None,
8080
**kwargs: Any,
8181
):
82-
"""Endpoint Deployment base class.
83-
84-
Constructor of Endpoint Deployment base class.
85-
86-
:param name: Name of the deployment resource, defaults to None
87-
:type name: typing.Optional[str]
88-
:keyword endpoint_name: Name of the Endpoint resource, defaults to None
89-
:paramtype endpoint_name: typing.Optional[str]
90-
:keyword description: Description of the deployment resource, defaults to None
91-
:paramtype description: typing.Optional[str]
92-
:keyword tags: Tag dictionary. Tags can be added, removed, and updated, defaults to None
93-
:paramtype tags: typing.Optional[typing.Dict[str, typing.Any]]
94-
:keyword properties: The asset property dictionary, defaults to None
95-
:paramtype properties: typing.Optional[typing.Dict[str, typing.Any]]
96-
:keyword model: The Model entity, defaults to None
97-
:paramtype model: typing.Optional[typing.Union[str, ~azure.ai.ml.entities.Model]]
98-
:keyword code_configuration: Code Configuration, defaults to None
99-
:paramtype code_configuration: typing.Optional[CodeConfiguration]
100-
:keyword environment: The Environment entity, defaults to None
101-
:paramtype environment: typing.Optional[typing.Union[str, ~azure.ai.ml.entities.Environment]]
102-
:keyword environment_variables: Environment variables that will be set in deployment, defaults to None
103-
:paramtype environment_variables: typing.Optional[typing.Dict[str, str]]
104-
:keyword code_path: Folder path to local code assets. Equivalent to code_configuration.code.path
105-
, defaults to None
106-
:paramtype code_path: typing.Optional[typing.Union[str, PathLike]]
107-
:keyword scoring_script: Scoring script name. Equivalent to code_configuration.code.scoring_script
108-
, defaults to None
109-
:paramtype scoring_script: typing.Optional[typing.Union[str, PathLike]]
110-
:raises ~azure.ai.ml.exceptions.ValidationException: Raised if Deployment cannot be successfully validated.
111-
Exception details will be provided in the error message.
112-
"""
11382
# MFE is case-insensitive for Name. So convert the name into lower case here.
11483
name = name.lower() if name else None
11584
self.endpoint_name = endpoint_name

0 commit comments

Comments
 (0)