Skip to content

Commit 3bff8f1

Browse files
committed
Applying changes for adding examples and mainting length of args < 22 as a result of PR workflow runs
1 parent a7b0f3a commit 3bff8f1

19 files changed

+783
-803
lines changed

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/_create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
6565
arg_group="Properties",
6666
help="Properties of the Dynatrace environment.",
6767
)
68-
_args_schema.marketplace_saas_auto_renew = AAZStrArg(
69-
options=["--marketplace-saas-auto-renew"],
68+
_args_schema.mp_saas_auto_renew = AAZStrArg(
69+
options=["--mp-saas-auto-renew"],
7070
arg_group="Properties",
7171
help="Marketplace resource autorenew flag",
7272
enum={"Off": "Off", "On": "On"},
@@ -400,7 +400,7 @@ def content(self):
400400
properties = _builder.get(".properties")
401401
if properties is not None:
402402
properties.set_prop("dynatraceEnvironmentProperties", AAZObjectType, ".environment")
403-
properties.set_prop("marketplaceSaasAutoRenew", AAZStrType, ".marketplace_saas_auto_renew")
403+
properties.set_prop("marketplaceSaasAutoRenew", AAZStrType, ".mp_saas_auto_renew")
404404
properties.set_prop("marketplaceSubscriptionStatus", AAZStrType, ".subscription_status")
405405
properties.set_prop("monitoringStatus", AAZStrType, ".monitoring_status")
406406
properties.set_prop("planData", AAZObjectType, ".plan_data")

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/_update.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Update(AAZCommand):
1818
"""Update a MonitorResource
19+
20+
:example: Monitors_Update_MaximumSet_Gen
21+
az dynatrace monitor update --resource-group myResourceGroup --monitor-name myMonitor --tags "{Environment:Dev}" --plan-data "{usage-type:Committed,billing-cycle:Monthly,plan-details:dynatraceapitestplan,effective-date:'2019-08-30'}"
1922
"""
2023

2124
_aaz_info = {

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/monitored_subscription/_create.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Create(AAZCommand):
1818
"""Create the subscriptions that should be monitored by the Dynatrace monitor resource.
19+
20+
:example: Monitors_AddMonitoredSubscriptions
21+
az dynatrace monitor monitored-subscription create --resource-group myResourceGroup --monitor-name myMonitor
1922
"""
2023

2124
_aaz_info = {
@@ -57,8 +60,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
5760
# define Arg Group "Properties"
5861

5962
_args_schema = cls._args_schema
60-
_args_schema.monitored_subscription_list = AAZListArg(
61-
options=["--monitored-subscription-list"],
63+
_args_schema.monitored_sub_list = AAZListArg(
64+
options=["--monitored-sub-list"],
6265
arg_group="Properties",
6366
help="List of subscriptions and the state of the monitoring.",
6467
)
@@ -69,10 +72,10 @@ def _build_arguments_schema(cls, *args, **kwargs):
6972
enum={"Active": "Active", "AddBegin": "AddBegin", "AddComplete": "AddComplete", "DeleteBegin": "DeleteBegin", "DeleteComplete": "DeleteComplete"},
7073
)
7174

72-
monitored_subscription_list = cls._args_schema.monitored_subscription_list
73-
monitored_subscription_list.Element = AAZObjectArg()
75+
monitored_sub_list = cls._args_schema.monitored_sub_list
76+
monitored_sub_list.Element = AAZObjectArg()
7477

75-
_element = cls._args_schema.monitored_subscription_list.Element
78+
_element = cls._args_schema.monitored_sub_list.Element
7679
_element.error = AAZStrArg(
7780
options=["error"],
7881
help="The reason of not monitoring the subscription.",
@@ -92,7 +95,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
9295
help="Properties for the Tag rules resource of a Monitor account.",
9396
)
9497

95-
tag_rules = cls._args_schema.monitored_subscription_list.Element.tag_rules
98+
tag_rules = cls._args_schema.monitored_sub_list.Element.tag_rules
9699
tag_rules.log_rules = AAZObjectArg(
97100
options=["log-rules"],
98101
help="Set of rules for sending logs for the Monitor resource.",
@@ -102,7 +105,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
102105
help="Set of rules for sending metrics for the Monitor resource.",
103106
)
104107

105-
log_rules = cls._args_schema.monitored_subscription_list.Element.tag_rules.log_rules
108+
log_rules = cls._args_schema.monitored_sub_list.Element.tag_rules.log_rules
106109
log_rules.filtering_tags = AAZListArg(
107110
options=["filtering-tags"],
108111
help="List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.",
@@ -123,11 +126,11 @@ def _build_arguments_schema(cls, *args, **kwargs):
123126
enum={"Disabled": "Disabled", "Enabled": "Enabled"},
124127
)
125128

126-
filtering_tags = cls._args_schema.monitored_subscription_list.Element.tag_rules.log_rules.filtering_tags
129+
filtering_tags = cls._args_schema.monitored_sub_list.Element.tag_rules.log_rules.filtering_tags
127130
filtering_tags.Element = AAZObjectArg()
128131
cls._build_args_filtering_tag_create(filtering_tags.Element)
129132

130-
metric_rules = cls._args_schema.monitored_subscription_list.Element.tag_rules.metric_rules
133+
metric_rules = cls._args_schema.monitored_sub_list.Element.tag_rules.metric_rules
131134
metric_rules.filtering_tags = AAZListArg(
132135
options=["filtering-tags"],
133136
help="List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.",
@@ -138,7 +141,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
138141
enum={"Disabled": "Disabled", "Enabled": "Enabled"},
139142
)
140143

141-
filtering_tags = cls._args_schema.monitored_subscription_list.Element.tag_rules.metric_rules.filtering_tags
144+
filtering_tags = cls._args_schema.monitored_sub_list.Element.tag_rules.metric_rules.filtering_tags
142145
filtering_tags.Element = AAZObjectArg()
143146
cls._build_args_filtering_tag_create(filtering_tags.Element)
144147
return cls._args_schema
@@ -284,7 +287,7 @@ def content(self):
284287

285288
properties = _builder.get(".properties")
286289
if properties is not None:
287-
properties.set_prop("monitoredSubscriptionList", AAZListType, ".monitored_subscription_list")
290+
properties.set_prop("monitoredSubscriptionList", AAZListType, ".monitored_sub_list")
288291
properties.set_prop("operation", AAZStrType, ".operation")
289292

290293
monitored_subscription_list = _builder.get(".properties.monitoredSubscriptionList")

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/monitored_subscription/_delete.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class Delete(AAZCommand):
1919
"""Delete the subscriptions that are being monitored by the Dynatrace monitor resource
20+
21+
:example: Monitors_DeleteMonitoredSubscriptions
22+
az dynatrace monitor monitored-subscription delete --resource-group myResourceGroup --monitor-name myMonitor
2023
"""
2124

2225
_aaz_info = {

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/monitored_subscription/_list.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class List(AAZCommand):
1818
"""List the subscriptions currently being monitored by the Dynatrace monitor resource.
19+
20+
:example: Monitors_GetMonitoredSubscriptions
21+
az dynatrace monitor monitored-subscription list --resource-group myResourceGroup --monitor-name myMonitor
1922
"""
2023

2124
_aaz_info = {

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/monitored_subscription/_show.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Show(AAZCommand):
1818
"""Get the subscriptions currently being monitored by the Dynatrace monitor resource.
19+
20+
:example: Monitors_GetMonitoredSubscriptions
21+
az dynatrace monitor monitored-subscription show --resource-group myResourceGroup --monitor-name myMonitor
1922
"""
2023

2124
_aaz_info = {

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/monitored_subscription/_update.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Update(AAZCommand):
1818
"""Update the subscriptions that are being monitored by the Dynatrace monitor resource
19+
20+
:example: Monitors_UpdateMonitoredSubscriptions
21+
az dynatrace monitor monitored-subscription update --resource-group myResourceGroup --monitor-name myMonitor
1922
"""
2023

2124
_aaz_info = {
@@ -58,8 +61,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
5861
# define Arg Group "Properties"
5962

6063
_args_schema = cls._args_schema
61-
_args_schema.monitored_subscription_list = AAZListArg(
62-
options=["--monitored-subscription-list"],
64+
_args_schema.monitored_sub_list = AAZListArg(
65+
options=["--monitored-sub-list"],
6366
arg_group="Properties",
6467
help="List of subscriptions and the state of the monitoring.",
6568
)
@@ -70,10 +73,10 @@ def _build_arguments_schema(cls, *args, **kwargs):
7073
enum={"Active": "Active", "AddBegin": "AddBegin", "AddComplete": "AddComplete", "DeleteBegin": "DeleteBegin", "DeleteComplete": "DeleteComplete"},
7174
)
7275

73-
monitored_subscription_list = cls._args_schema.monitored_subscription_list
74-
monitored_subscription_list.Element = AAZObjectArg()
76+
monitored_sub_list = cls._args_schema.monitored_sub_list
77+
monitored_sub_list.Element = AAZObjectArg()
7578

76-
_element = cls._args_schema.monitored_subscription_list.Element
79+
_element = cls._args_schema.monitored_sub_list.Element
7780
_element.error = AAZStrArg(
7881
options=["error"],
7982
help="The reason of not monitoring the subscription.",
@@ -93,7 +96,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
9396
help="Properties for the Tag rules resource of a Monitor account.",
9497
)
9598

96-
tag_rules = cls._args_schema.monitored_subscription_list.Element.tag_rules
99+
tag_rules = cls._args_schema.monitored_sub_list.Element.tag_rules
97100
tag_rules.log_rules = AAZObjectArg(
98101
options=["log-rules"],
99102
help="Set of rules for sending logs for the Monitor resource.",
@@ -103,7 +106,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
103106
help="Set of rules for sending metrics for the Monitor resource.",
104107
)
105108

106-
log_rules = cls._args_schema.monitored_subscription_list.Element.tag_rules.log_rules
109+
log_rules = cls._args_schema.monitored_sub_list.Element.tag_rules.log_rules
107110
log_rules.filtering_tags = AAZListArg(
108111
options=["filtering-tags"],
109112
help="List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.",
@@ -124,11 +127,11 @@ def _build_arguments_schema(cls, *args, **kwargs):
124127
enum={"Disabled": "Disabled", "Enabled": "Enabled"},
125128
)
126129

127-
filtering_tags = cls._args_schema.monitored_subscription_list.Element.tag_rules.log_rules.filtering_tags
130+
filtering_tags = cls._args_schema.monitored_sub_list.Element.tag_rules.log_rules.filtering_tags
128131
filtering_tags.Element = AAZObjectArg()
129132
cls._build_args_filtering_tag_update(filtering_tags.Element)
130133

131-
metric_rules = cls._args_schema.monitored_subscription_list.Element.tag_rules.metric_rules
134+
metric_rules = cls._args_schema.monitored_sub_list.Element.tag_rules.metric_rules
132135
metric_rules.filtering_tags = AAZListArg(
133136
options=["filtering-tags"],
134137
help="List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.",
@@ -139,7 +142,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
139142
enum={"Disabled": "Disabled", "Enabled": "Enabled"},
140143
)
141144

142-
filtering_tags = cls._args_schema.monitored_subscription_list.Element.tag_rules.metric_rules.filtering_tags
145+
filtering_tags = cls._args_schema.monitored_sub_list.Element.tag_rules.metric_rules.filtering_tags
143146
filtering_tags.Element = AAZObjectArg()
144147
cls._build_args_filtering_tag_update(filtering_tags.Element)
145148
return cls._args_schema
@@ -285,7 +288,7 @@ def content(self):
285288

286289
properties = _builder.get(".properties")
287290
if properties is not None:
288-
properties.set_prop("monitoredSubscriptionList", AAZListType, ".monitored_subscription_list")
291+
properties.set_prop("monitoredSubscriptionList", AAZListType, ".monitored_sub_list")
289292
properties.set_prop("operation", AAZStrType, ".operation")
290293

291294
monitored_subscription_list = _builder.get(".properties.monitoredSubscriptionList")

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/monitor/sso_config/_update.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Update(AAZCommand):
1818
"""Update a DynatraceSingleSignOnResource
19+
20+
:example: SingleSignOn_CreateOrUpdate_MaximumSet_Gen
21+
az dynatrace monitor sso-config update --resource-group {rg} --monitor-name {monitor} -n default --aad-domains [\\'mpliftrdt20210811outlook.onmicrosoft.com\\'] --single-sign-on-url "https://www.dynatrace.io"
1922
"""
2023

2124
_aaz_info = {

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/observability/monitor/_list.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class List(AAZCommand):
1818
"""List all MonitorResource by subscriptionId
19+
20+
:example: Monitors_ListBySubscriptionId_MaximumSet_Gen
21+
az dynatrace observability monitor list
1922
"""
2023

2124
_aaz_info = {

src/dynatrace/azext_dynatrace/aaz/latest/dynatrace/observability/monitor/_manage_agent_installation.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class ManageAgentInstallation(AAZCommand):
1818
"""Performs Dynatrace agent install/uninstall action through the Azure Dynatrace resource on the provided list of resources.
19+
20+
:example: Monitors_ManageAgentInstallation_MaximumSet_Gen
21+
az dynatrace observability monitor manage-agent-installation --resource-group myResourceGroup --monitor-name myMonitor --mng-agt-instal-list "[{id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/vmssName},{id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/vmssName2}]" --action Install
1922
"""
2023

2124
_aaz_info = {
@@ -64,17 +67,17 @@ def _build_arguments_schema(cls, *args, **kwargs):
6467
required=True,
6568
enum={"Install": "Install", "Uninstall": "Uninstall"},
6669
)
67-
_args_schema.manage_agent_installation_list = AAZListArg(
68-
options=["--manage-agent-installation-list"],
70+
_args_schema.mng_agt_instal_list = AAZListArg(
71+
options=["--mng-agt-instal-list"],
6972
arg_group="Request",
7073
help="The list of resources.",
7174
required=True,
7275
)
7376

74-
manage_agent_installation_list = cls._args_schema.manage_agent_installation_list
75-
manage_agent_installation_list.Element = AAZObjectArg()
77+
mng_agt_instal_list = cls._args_schema.mng_agt_instal_list
78+
mng_agt_instal_list.Element = AAZObjectArg()
7679

77-
_element = cls._args_schema.manage_agent_installation_list.Element
80+
_element = cls._args_schema.mng_agt_instal_list.Element
7881
_element.id = AAZStrArg(
7982
options=["id"],
8083
help="The ARM id of the resource to install/uninstall agent.",
@@ -165,7 +168,7 @@ def content(self):
165168
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
166169
)
167170
_builder.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}})
168-
_builder.set_prop("manageAgentInstallationList", AAZListType, ".manage_agent_installation_list", typ_kwargs={"flags": {"required": True}})
171+
_builder.set_prop("manageAgentInstallationList", AAZListType, ".mng_agt_instal_list", typ_kwargs={"flags": {"required": True}})
169172

170173
manage_agent_installation_list = _builder.get(".manageAgentInstallationList")
171174
if manage_agent_installation_list is not None:

0 commit comments

Comments
 (0)