Skip to content

Commit 428d01a

Browse files
author
Shivansh Agarwal
committed
fixed breaking issue
1 parent 14e5552 commit 428d01a

26 files changed

Lines changed: 147 additions & 89 deletions

src/datadog/azext_datadog/aaz/latest/datadog/monitor/_get_default_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4545

4646
_args_schema = cls._args_schema
4747
_args_schema.monitor_name = AAZStrArg(
48-
options=["--monitor-name"],
48+
options=["-n", "--name", "--monitor-name"],
4949
help="Monitor resource name",
5050
required=True,
5151
id_part="name",

src/datadog/azext_datadog/aaz/latest/datadog/monitor/_list_api_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.monitor_name = AAZStrArg(
49-
options=["--monitor-name"],
49+
options=["-n", "--name", "--monitor-name"],
5050
help="Monitor resource name",
5151
required=True,
5252
)

src/datadog/azext_datadog/aaz/latest/datadog/monitor/_list_host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.monitor_name = AAZStrArg(
49-
options=["--monitor-name"],
49+
options=["-n", "--name", "--monitor-name"],
5050
help="Monitor resource name",
5151
required=True,
5252
)

src/datadog/azext_datadog/aaz/latest/datadog/monitor/_list_linked_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.monitor_name = AAZStrArg(
49-
options=["--monitor-name"],
49+
options=["-n", "--name", "--monitor-name"],
5050
help="Monitor resource name",
5151
required=True,
5252
)

src/datadog/azext_datadog/aaz/latest/datadog/monitor/_list_monitored_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.monitor_name = AAZStrArg(
49-
options=["--monitor-name"],
49+
options=["-n", "--name", "--monitor-name"],
5050
help="Monitor resource name",
5151
required=True,
5252
)

src/datadog/azext_datadog/aaz/latest/datadog/monitor/_refresh_set_password_link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4545

4646
_args_schema = cls._args_schema
4747
_args_schema.monitor_name = AAZStrArg(
48-
options=["--monitor-name"],
48+
options=["-n", "--name", "--monitor-name"],
4949
help="Monitor resource name",
5050
required=True,
5151
id_part="name",

src/datadog/azext_datadog/aaz/latest/datadog/monitor/_set_default_key.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4545

4646
_args_schema = cls._args_schema
4747
_args_schema.monitor_name = AAZStrArg(
48-
options=["--monitor-name"],
48+
options=["-n", "--name", "--monitor-name"],
4949
help="Monitor resource name",
5050
required=True,
5151
id_part="name",
@@ -72,8 +72,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
7272
arg_group="Body",
7373
help="The value of the API key.",
7474
)
75-
_args_schema.name = AAZStrArg(
76-
options=["--name"],
75+
_args_schema.key_name = AAZStrArg(
76+
options=["--key-name"],
7777
arg_group="Body",
7878
help="The name of the API key.",
7979
)
@@ -165,7 +165,7 @@ def content(self):
165165
_builder.set_prop("created", AAZStrType, ".created")
166166
_builder.set_prop("createdBy", AAZStrType, ".created_by")
167167
_builder.set_prop("key", AAZStrType, ".key", typ_kwargs={"flags": {"required": True}})
168-
_builder.set_prop("name", AAZStrType, ".name")
168+
_builder.set_prop("name", AAZStrType, ".key_name")
169169

170170
return self.serialize_content(_content_value)
171171

src/datadog/azext_datadog/aaz/latest/datadog/monitor/single_sign_on_configuration/__cmd_group.py renamed to src/datadog/azext_datadog/aaz/latest/datadog/sso_config/__cmd_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
@register_command_group(
15-
"datadog monitor single-sign-on-configuration",
15+
"datadog sso-config",
1616
)
1717
class __CMDGroup(AAZCommandGroup):
1818
"""Provides a set of commands to manage Single Sign-On (SSO) configurations for Datadog monitor resources, enabling secure and streamlined access for users.

src/datadog/azext_datadog/aaz/latest/datadog/monitor/single_sign_on_configuration/__init__.py renamed to src/datadog/azext_datadog/aaz/latest/datadog/sso_config/__init__.py

File renamed without changes.

src/datadog/azext_datadog/aaz/latest/datadog/monitor/single_sign_on_configuration/_create.py renamed to src/datadog/azext_datadog/aaz/latest/datadog/sso_config/_create.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313

1414
@register_command(
15-
"datadog monitor single-sign-on-configuration create",
15+
"datadog sso-config create",
1616
)
1717
class Create(AAZCommand):
1818
"""Sets up Single Sign-On (SSO) for your Datadog monitor resource, allowing users to log in to Datadog using their Azure Active Directory credentials for streamlined and secure access.
1919
2020
:example: SingleSignOnConfigurations_CreateOrUpdate
21-
az datadog monitor single-sign-on-configuration create --resource-group myResourceGroup --monitor-name myMonitor --configuration-name default --single-sign-on-state Enable --enterprise-app-id 00000000-0000-0000-0000-000000000000
21+
az datadog sso-config create --resource-group myResourceGroup --monitor-name myMonitor --configuration-name default --single-sign-on-state Enable --enterprise-app-id 00000000-0000-0000-0000-000000000000
2222
"""
2323

2424
_aaz_info = {
@@ -46,12 +46,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.configuration_name = AAZStrArg(
49-
options=["-n", "--name", "--configuration-name"],
49+
options=["--configuration-name"],
5050
help="Configuration name",
5151
required=True,
5252
)
5353
_args_schema.monitor_name = AAZStrArg(
54-
options=["--monitor-name"],
54+
options=["-n", "--name", "--monitor-name"],
5555
help="Monitor resource name",
5656
required=True,
5757
)

0 commit comments

Comments
 (0)