Skip to content

Commit

Permalink
fix: change short name of service name
Browse files Browse the repository at this point in the history
  • Loading branch information
frankqianms committed Jan 7, 2025
1 parent 33ff206 commit ce075a8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Create(AAZCommand):
"""Create new or updates existing API analyzer configuration.
:example: Create an API Analysis rule config
az apic api-analysis create -g contoso-resources -s contoso -n spectral-openapi
az apic api-analysis create -g contoso-resources -n contoso -c spectral-openapi
"""

_aaz_info = {
Expand All @@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.analyzer_config_name = AAZStrArg(
options=["-n", "--name", "--analyzer-config-name"],
options=["-c", "--config-name", "--analyzer-config-name"],
help="The name of the configuration.",
required=True,
fmt=AAZStrArgFormat(
Expand All @@ -59,7 +59,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.service_name = AAZStrArg(
options=["-s", "--service-name"],
options=["-n", "--service-name"],
help="The name of Azure API Center service.",
required=True,
fmt=AAZStrArgFormat(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Delete(AAZCommand):
"""Delete deletes API analyzer configuration.
:example: Delete an API Analysis rule config
az apic api-analysis delete -g contoso-resources -s contoso -n spectral-openapi
az apic api-analysis delete -g contoso-resources -n contoso -c spectral-openapi
"""

_aaz_info = {
Expand All @@ -47,7 +47,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.analyzer_config_name = AAZStrArg(
options=["-n", "--name", "--analyzer-config-name"],
options=["-c", "--config-name", "--analyzer-config-name"],
help="The name of the configuration.",
required=True,
id_part="child_name_2",
Expand All @@ -61,7 +61,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.service_name = AAZStrArg(
options=["-s", "--service-name"],
options=["-n", "--service-name"],
help="The name of Azure API Center service.",
required=True,
id_part="name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.analyzer_config_name = AAZStrArg(
options=["-n", "--name", "--analyzer-config-name"],
options=["-c", "--config-name", "--analyzer-config-name"],
help="The name of the configuration.",
required=True,
id_part="child_name_2",
Expand All @@ -58,7 +58,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.service_name = AAZStrArg(
options=["-s", "--service-name"],
options=["-n", "--service-name"],
help="The name of Azure API Center service.",
required=True,
id_part="name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.analyzer_config_name = AAZStrArg(
options=["-n", "--name", "--analyzer-config-name"],
options=["-c", "--config-name", "--analyzer-config-name"],
help="The name of the configuration.",
required=True,
id_part="child_name_2",
Expand All @@ -58,7 +58,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.service_name = AAZStrArg(
options=["-s", "--service-name"],
options=["-n", "--service-name"],
help="The name of Azure API Center service.",
required=True,
id_part="name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class List(AAZCommand):
"""List API analyzer configurations.
:example: List all API Analysis rule configs for the service
az apic api-analysis list -g contoso-resources -s contoso
az apic api-analysis list -g contoso-resources -n contoso
"""

_aaz_info = {
Expand Down Expand Up @@ -50,7 +50,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.service_name = AAZStrArg(
options=["-s", "--service-name"],
options=["-n", "--service-name"],
help="The name of Azure API Center service.",
required=True,
fmt=AAZStrArgFormat(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Show(AAZCommand):
"""Get details of the API analyzer configuration.
:example: Show details of an API Analysis rule config
az apic api-analysis show -g contoso-resources -s contoso -n spectral-openapi
az apic api-analysis show -g contoso-resources -n contoso -c spectral-openapi
"""

_aaz_info = {
Expand All @@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.analyzer_config_name = AAZStrArg(
options=["-n", "--name", "--analyzer-config-name"],
options=["-c", "--config-name", "--analyzer-config-name"],
help="The name of the configuration.",
required=True,
id_part="child_name_2",
Expand All @@ -60,7 +60,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.service_name = AAZStrArg(
options=["-s", "--service-name"],
options=["-n", "--service-name"],
help="The name of Azure API Center service.",
required=True,
id_part="name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Update(AAZCommand):
"""Update new or updates existing API analyzer configuration.
:example: Update an API Analysis rule config
az apic api-analysis update -g contoso-resources -s contoso -n spectral-openapi
az apic api-analysis update -g contoso-resources -n contoso -c spectral-openapi
"""

_aaz_info = {
Expand Down Expand Up @@ -48,7 +48,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.analyzer_config_name = AAZStrArg(
options=["-n", "--name", "--analyzer-config-name"],
options=["-c", "--config-name", "--analyzer-config-name"],
help="The name of the configuration.",
required=True,
id_part="child_name_2",
Expand All @@ -62,7 +62,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)
_args_schema.service_name = AAZStrArg(
options=["-s", "--service-name"],
options=["-n", "--service-name"],
help="The name of Azure API Center service.",
required=True,
id_part="name",
Expand Down

0 comments on commit ce075a8

Please sign in to comment.