@@ -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