Skip to content

Commit 11a1b02

Browse files
committed
TESTING COMMIT
1 parent a9dc634 commit 11a1b02

File tree

30 files changed

+1778
-173
lines changed

30 files changed

+1778
-173
lines changed

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/_create.py

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
8383
enum={"FALSE": "FALSE", "TRUE": "TRUE"},
8484
)
8585
_args_schema.is_strata_cloud_managed = AAZStrArg(
86-
options=["--is-strata-cloud-managed"],
86+
options=["--is-scm", "--is-strata-cloud-managed"],
8787
arg_group="Properties",
8888
help="Strata Cloud Managed: Default is False. Default will be CloudSec managed",
8989
enum={"FALSE": "FALSE", "TRUE": "TRUE"},
@@ -117,7 +117,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
117117
required=True,
118118
)
119119
_args_schema.strata_cloud_manager_config = AAZObjectArg(
120-
options=["--strata-cloud-manager-config"],
120+
options=["--scm-config", "--strata-cloud-manager-config"],
121121
arg_group="Properties",
122122
help="Strata Cloud Manager Configuration, only applicable if Strata Cloud Manager is selected.",
123123
)
@@ -364,17 +364,30 @@ def _build_arguments_schema(cls, *args, **kwargs):
364364
)
365365

366366
identity = cls._args_schema.identity
367+
identity.mi_system_assigned = AAZStrArg(
368+
options=["system-assigned", "mi-system-assigned"],
369+
help="Set the system managed identity.",
370+
blank="True",
371+
)
367372
identity.type = AAZStrArg(
368373
options=["type"],
369374
help="The type of managed identity assigned to this resource.",
370375
required=True,
371376
enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned,UserAssigned": "SystemAssigned,UserAssigned", "UserAssigned": "UserAssigned"},
372377
)
378+
identity.mi_user_assigned = AAZListArg(
379+
options=["user-assigned", "mi-user-assigned"],
380+
help="Set the user managed identities.",
381+
blank=[],
382+
)
373383
identity.user_assigned_identities = AAZDictArg(
374384
options=["user-assigned-identities"],
375385
help="The identities assigned to this resource by the user.",
376386
)
377387

388+
mi_user_assigned = cls._args_schema.identity.mi_user_assigned
389+
mi_user_assigned.Element = AAZStrArg()
390+
378391
user_assigned_identities = cls._args_schema.identity.user_assigned_identities
379392
user_assigned_identities.Element = AAZObjectArg()
380393

@@ -573,7 +586,7 @@ def content(self):
573586
typ=AAZObjectType,
574587
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
575588
)
576-
_builder.set_prop("identity", AAZObjectType, ".identity")
589+
_builder.set_prop("identity", AAZIdentityObjectType, ".identity")
577590
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}})
578591
_builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}})
579592
_builder.set_prop("tags", AAZDictType, ".tags")
@@ -582,6 +595,8 @@ def content(self):
582595
if identity is not None:
583596
identity.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}})
584597
identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities")
598+
identity.set_prop("userAssigned", AAZListType, ".mi_user_assigned", typ_kwargs={"flags": {"action": "create"}})
599+
identity.set_prop("systemAssigned", AAZStrType, ".mi_system_assigned", typ_kwargs={"flags": {"action": "create"}})
585600

586601
user_assigned_identities = _builder.get(".identity.userAssignedIdentities")
587602
if user_assigned_identities is not None:
@@ -592,6 +607,10 @@ def content(self):
592607
_elements.set_prop("clientId", AAZStrType, ".client_id")
593608
_elements.set_prop("principalId", AAZStrType, ".principal_id")
594609

610+
user_assigned = _builder.get(".identity.userAssigned")
611+
if user_assigned is not None:
612+
user_assigned.set_elements(AAZStrType, ".")
613+
595614
properties = _builder.get(".properties")
596615
if properties is not None:
597616
properties.set_prop("associatedRulestack", AAZObjectType, ".associated_rulestack")
@@ -722,7 +741,7 @@ def _build_schema_on_200_201(cls):
722741
_schema_on_200_201.id = AAZStrType(
723742
flags={"read_only": True},
724743
)
725-
_schema_on_200_201.identity = AAZObjectType()
744+
_schema_on_200_201.identity = AAZIdentityObjectType()
726745
_schema_on_200_201.location = AAZStrType(
727746
flags={"required": True},
728747
)

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/_delete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"palo-alto cloudngfw firewall delete",
1616
)
1717
class Delete(AAZCommand):
18-
"""Delete an existing Palo Alto Networks Cloud NGFW on Azure.
18+
"""Delete an existing Palo Alto Networks Cloud NGFW on Azure
1919
2020
:example: Delete an existing Palo Alto Networks Cloud NGFW on Azure
2121
az palo-alto cloudngfw firewall delete --resource-group MyResourceGroup -n MyCloudngfwFirewall

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _build_schema_on_200(cls):
159159
_element.id = AAZStrType(
160160
flags={"read_only": True},
161161
)
162-
_element.identity = AAZObjectType()
162+
_element.identity = AAZIdentityObjectType()
163163
_element.location = AAZStrType(
164164
flags={"required": True},
165165
)
@@ -568,7 +568,7 @@ def _build_schema_on_200(cls):
568568
_element.id = AAZStrType(
569569
flags={"read_only": True},
570570
)
571-
_element.identity = AAZObjectType()
571+
_element.identity = AAZIdentityObjectType()
572572
_element.location = AAZStrType(
573573
flags={"required": True},
574574
)

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/_show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _build_schema_on_200(cls):
159159
_schema_on_200.id = AAZStrType(
160160
flags={"read_only": True},
161161
)
162-
_schema_on_200.identity = AAZObjectType()
162+
_schema_on_200.identity = AAZIdentityObjectType()
163163
_schema_on_200.location = AAZStrType(
164164
flags={"required": True},
165165
)

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/_update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def _update_instance(self, instance):
346346
value=instance,
347347
typ=AAZObjectType
348348
)
349-
_builder.set_prop("identity", AAZObjectType, ".identity")
349+
_builder.set_prop("identity", AAZIdentityObjectType, ".identity")
350350
_builder.set_prop("tags", AAZDictType, ".tags")
351351

352352
identity = _builder.get(".identity")
@@ -425,7 +425,7 @@ def _build_schema_firewall_resource_read(cls, _schema):
425425
firewall_resource_read.id = AAZStrType(
426426
flags={"read_only": True},
427427
)
428-
firewall_resource_read.identity = AAZObjectType()
428+
firewall_resource_read.identity = AAZIdentityObjectType()
429429
firewall_resource_read.location = AAZStrType(
430430
flags={"required": True},
431431
)

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/_wait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _build_schema_on_200(cls):
155155
_schema_on_200.id = AAZStrType(
156156
flags={"read_only": True},
157157
)
158-
_schema_on_200.identity = AAZObjectType()
158+
_schema_on_200.identity = AAZIdentityObjectType()
159159
_schema_on_200.location = AAZStrType(
160160
flags={"required": True},
161161
)

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/metric/_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class List(AAZCommand):
1818
"""List all metrics resources associated with a Palo Alto Networks Firewall
1919
2020
:example: List metrics configuration object for a firewall
21-
az palo-alto cloudngfw firewall metric list --resource-group MyResourceGroup --firewall-name MyCloudngfwFirewall
21+
az palo-alto cloudngfw firewall metric list --resource-group MyResourceGroup -firewall-name MyCloudngfwFirewall
2222
"""
2323

2424
_aaz_info = {

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/metric/default/_create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def _build_arguments_schema(cls, *args, **kwargs):
6161

6262
_args_schema = cls._args_schema
6363
_args_schema.application_insights_connection_string = AAZStrArg(
64-
options=["--application-insights-connection-string"],
64+
options=["--aics", "--application-insights-connection-string"],
6565
arg_group="Properties",
6666
help="Connection string of application insights resource",
6767
required=True,
6868
)
6969
_args_schema.application_insights_resource_id = AAZStrArg(
70-
options=["--application-insights-resource-id"],
70+
options=["--airi", "--application-insights-resource-id"],
7171
arg_group="Properties",
7272
help="Resource Id of application insights resource",
7373
required=True,

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/metric/default/_delete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Delete(AAZCommand):
1919
"""Delete a metrics configuration object for a Palo Alto Networks Cloud NGFW
2020
2121
:example: Delete a metrics configuration object
22-
az palo-alto cloudngfw firewall metric default delete --resource-group MyResourceGroup --firewall-name MyCloudngfwFirewall
22+
az palo-alto cloudngfw firewall metric default delete --resource-group MyResourceGroup -firewall-name MyCloudngfwFirewall
2323
"""
2424

2525
_aaz_info = {

src/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/firewall/metric/default/_show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Show(AAZCommand):
1818
"""Get a metrics configuration object for a Palo Alto Networks Cloud NGFW
1919
2020
:example: Show metrics configuration object
21-
az palo-alto cloudngfw firewall metric default show --resource-group MyResourceGroup --firewall-name MyCloudngfwFirewall
21+
az palo-alto cloudngfw firewall metric default show --resource-group MyResourceGroup -firewall-name MyCloudngfwFirewall
2222
"""
2323

2424
_aaz_info = {

0 commit comments

Comments
 (0)