@@ -106,14 +106,6 @@ internal ErrorResponse(global::System.Collections.IDictionary content)
106106 {
107107 ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Error = ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail ) content . GetValueForProperty ( "Error" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Error , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorDetailTypeConverter . ConvertFrom ) ;
108108 }
109- if ( content . Contains ( "Detail" ) )
110- {
111- ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ) content . GetValueForProperty ( "Detail" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorDetailTypeConverter . ConvertFrom ) ) ;
112- }
113- if ( content . Contains ( "AdditionalInfo" ) )
114- {
115- ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ) content . GetValueForProperty ( "AdditionalInfo" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorAdditionalInfoTypeConverter . ConvertFrom ) ) ;
116- }
117109 if ( content . Contains ( "Code" ) )
118110 {
119111 ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Code = ( string ) content . GetValueForProperty ( "Code" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Code , global ::System . Convert . ToString ) ;
@@ -126,6 +118,14 @@ internal ErrorResponse(global::System.Collections.IDictionary content)
126118 {
127119 ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Target = ( string ) content . GetValueForProperty ( "Target" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Target , global ::System . Convert . ToString ) ;
128120 }
121+ if ( content . Contains ( "Detail" ) )
122+ {
123+ ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ) content . GetValueForProperty ( "Detail" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorDetailTypeConverter . ConvertFrom ) ) ;
124+ }
125+ if ( content . Contains ( "AdditionalInfo" ) )
126+ {
127+ ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ) content . GetValueForProperty ( "AdditionalInfo" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorAdditionalInfoTypeConverter . ConvertFrom ) ) ;
128+ }
129129 AfterDeserializeDictionary ( content ) ;
130130 }
131131
@@ -147,14 +147,6 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
147147 {
148148 ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Error = ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail ) content . GetValueForProperty ( "Error" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Error , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorDetailTypeConverter . ConvertFrom ) ;
149149 }
150- if ( content . Contains ( "Detail" ) )
151- {
152- ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ) content . GetValueForProperty ( "Detail" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorDetailTypeConverter . ConvertFrom ) ) ;
153- }
154- if ( content . Contains ( "AdditionalInfo" ) )
155- {
156- ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ) content . GetValueForProperty ( "AdditionalInfo" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorAdditionalInfoTypeConverter . ConvertFrom ) ) ;
157- }
158150 if ( content . Contains ( "Code" ) )
159151 {
160152 ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Code = ( string ) content . GetValueForProperty ( "Code" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Code , global ::System . Convert . ToString ) ;
@@ -167,6 +159,14 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
167159 {
168160 ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Target = ( string ) content . GetValueForProperty ( "Target" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Target , global ::System . Convert . ToString ) ;
169161 }
162+ if ( content . Contains ( "Detail" ) )
163+ {
164+ ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ) content . GetValueForProperty ( "Detail" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . Detail , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorDetail > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorDetailTypeConverter . ConvertFrom ) ) ;
165+ }
166+ if ( content . Contains ( "AdditionalInfo" ) )
167+ {
168+ ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo = ( System . Collections . Generic . List < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ) content . GetValueForProperty ( "AdditionalInfo" , ( ( Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorResponseInternal ) this ) . AdditionalInfo , __y => TypeConverterExtensions . SelectToList < Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . IErrorAdditionalInfo > ( __y , Microsoft . Azure . PowerShell . Cmdlets . StorageDiscovery . Models . ErrorAdditionalInfoTypeConverter . ConvertFrom ) ) ;
169+ }
170170 AfterDeserializePSObject ( content ) ;
171171 }
172172
0 commit comments