Skip to content

Commit f03605f

Browse files
committed
add type
1 parent 8c6f684 commit f03605f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/azure-cli-core/azure/cli/core/aaz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from ._command import AAZCommand, AAZWaitCommand, AAZCommandGroup, \
2424
register_callback, register_command, register_command_group, load_aaz_command_table, link_helper
2525
from ._field_type import AAZIntType, AAZFloatType, AAZStrType, AAZBoolType, AAZDictType, AAZFreeFormDictType, \
26-
AAZListType, AAZObjectType, AAZIdentityObjectType, AAZAnyType
26+
AAZListType, AAZObjectType, AAZIdentityObjectType, AAZAnyType, AAZBytesType
2727
from ._operation import AAZHttpOperation, AAZJsonInstanceUpdateOperation, AAZGenericInstanceUpdateOperation, \
2828
AAZJsonInstanceDeleteOperation, AAZJsonInstanceCreateOperation
2929
from ._prompt import AAZPromptInput, AAZPromptPasswordInput

src/azure-cli-core/azure/cli/core/aaz/_field_type.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ def process_data(self, data, **kwargs):
111111
return data
112112

113113

114+
class AAZBytesType(AAZSimpleType):
115+
DataType = bytes
116+
117+
114118
class AAZAnyType(AAZSimpleType):
115119
"""Any type"""
116120

0 commit comments

Comments
 (0)