Skip to content

Commit 35556b3

Browse files
style and lint fixes
1 parent 62ec524 commit 35556b3

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/machinelearningservices/azext_mlv2/manual/_help/_model_help.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_model_help():
2828
short-summary: Create a model.
2929
long-summary: >
3030
Models can be created from a local file, local directory, datastore or job outputs. The created model will be
31-
tracked in the workspace/registry under the specified name and version. If you are using a registry, replace `--workspace-name my-workspace` with the `--registry-name <registry-name>` option.
31+
tracked in the workspace/registry under the specified name and version. If you are using a registry, replace `--workspace-name my-workspace` with the `--registry-name my-registry` option.
3232
examples:
3333
- name: Create a model from a YAML specification file
3434
text: az ml model create --file model.yml --resource-group my-resource-group --workspace-name my-workspace
@@ -85,7 +85,7 @@ def get_model_help():
8585
type: command
8686
short-summary: Update a model in a workspace/registry.
8787
long-summary: >
88-
The 'description', and 'tags' properties can be updated. If you are using a registry, replace `--workspace-name my-workspace` with the `--registry-name <registry-name>` option.
88+
The 'description', and 'tags' properties can be updated. If you are using a registry, replace `--workspace-name my-workspace` with the `--registry-name my-registry` option.
8989
examples:
9090
- name: Update a model's flavors
9191
text: az ml model update --name my-model --version 1 --set flavors.python_function.python_version=3.8 --resource-group my-resource-group --workspace-name my-workspace

src/machinelearningservices/azext_mlv2/manual/_params/_deployment_template_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# regenerated.
99
# --------------------------------------------------------------------------
1010

11+
from azure.ai.ml.constants._common import YAMLRefDocLinks
12+
1113
from ._common_params import (
1214
add_common_params,
1315
add_description_param,
@@ -60,7 +62,7 @@ def load_deployment_template_params(self):
6062
# Optional for create since they can come from file
6163
add_deployment_template_common_param(c, name_required=False, version_required=False)
6264
add_lro_param(c)
63-
add_file_param(c, "deployment-template", "https://aka.ms/ml-cli-v2-deployment-template-yaml")
65+
add_file_param(c, "deployment-template", YAMLRefDocLinks.DEPLOYMENT_TEMPLATE)
6466
add_override_param(c)
6567
c.argument(
6668
"registry_name",

src/machinelearningservices/azext_mlv2/manual/_params/_model_params.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ def load_model_params(self):
6363
add_description_param(c, help_message="Description of the model.")
6464
c.argument(
6565
"default_deployment_template",
66-
options_list=["--default-deployment-template"],
66+
options_list=["--default-deployment-template", "-d"],
6767
help="Default deployment template for the model. Can be overridden using --set with the format: "
68-
"--set default_deployment_template.asset_id=\"azureml://registries/<registry-name>/deploymenttemplates/<template-name>/versions/<version>\"",
68+
"--set default_deployment_template.asset_id="
69+
"\"azureml://registries/my-registry/deploymenttemplates/template-name/versions/version\"",
6970
)
7071

7172
with self.argument_context("ml model show") as c:

0 commit comments

Comments
 (0)