Skip to content

Commit

Permalink
flatten by aaz tool
Browse files Browse the repository at this point in the history
  • Loading branch information
bhupeshbhattmicrosoft committed Jul 2, 2024
1 parent 6d6ddc7 commit d852f5e
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/nsp/azext_nsp/aaz/latest/network/perimeter/_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NetworkSecurityPerimetersCreateOrUpdate(AAZHttpOperation):
Expand Down
2 changes: 1 addition & 1 deletion src/nsp/azext_nsp/aaz/latest/network/perimeter/_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=False)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

Expand Down
2 changes: 1 addition & 1 deletion src/nsp/azext_nsp/aaz/latest/network/perimeter/_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NetworkSecurityPerimetersGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspAssociationsCreateOrUpdate(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=False)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspAssociationsGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def post_instance_update(self, instance):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspAssociationsGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspLinksCreateOrUpdate(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=False)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspLinksGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def post_instance_update(self, instance):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspLinksGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=False)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspLinkReferencesGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=False)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

Expand Down Expand Up @@ -159,7 +159,9 @@ def _build_schema_on_200(cls):
)
_element.location = AAZStrType()
_element.name = AAZStrType()
_element.properties = AAZObjectType()
_element.properties = AAZObjectType(
flags={"client_flatten": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspProfilesCreateOrUpdate(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=False)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspProfilesGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspAccessRulesCreateOrUpdate(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=False)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspAccessRulesGet(AAZHttpOperation):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"network perimeter profile access-rule update",
)
class Update(AAZCommand):
"""Updates a network access rule.
"""Creates or updates a network access rule.
:example: Update access rule
az network perimeter profile access-rule update -n MyAccessRule --profile-name MyProfile --perimeter-name MyPerimeter -g MyResourceGroup --address-prefixes "[10.10.0.0/16]"
Expand Down Expand Up @@ -203,7 +203,7 @@ def post_instance_update(self, instance):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False)
return result

class NspAccessRulesGet(AAZHttpOperation):
Expand Down
4 changes: 2 additions & 2 deletions src/nsp/azext_nsp/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.minCliCoreVersion": "2.57.0",
"azext.isPreview": true
"azext.isPreview": true,
"azext.minCliCoreVersion": "2.61.0"
}

0 comments on commit d852f5e

Please sign in to comment.