@@ -66,21 +66,33 @@ protected override void Configure()
66
66
Mapper . CreateMap < FROM . Snapshot , TO . PSSnapshotList > ( ) ;
67
67
Mapper . CreateMap < TO . PSSnapshotList , TO . PSSnapshot > ( ) ;
68
68
Mapper . CreateMap < TO . PSSnapshot , TO . PSSnapshotList > ( ) ;
69
- Mapper . CreateMap < FROM . VirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( ) ;
70
- Mapper . CreateMap < TO . PSVirtualMachineScaleSetList , TO . PSVirtualMachineScaleSet > ( ) ;
71
- Mapper . CreateMap < TO . PSVirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( ) ;
72
- Mapper . CreateMap < FROM . VirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( ) ;
73
- Mapper . CreateMap < TO . PSVirtualMachineScaleSetList , TO . PSVirtualMachineScaleSet > ( ) ;
74
- Mapper . CreateMap < TO . PSVirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( ) ;
69
+ Mapper . CreateMap < FROM . VirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( )
70
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
71
+ Mapper . CreateMap < TO . PSVirtualMachineScaleSetList , TO . PSVirtualMachineScaleSet > ( )
72
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
73
+ Mapper . CreateMap < TO . PSVirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( )
74
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
75
+ Mapper . CreateMap < FROM . VirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( )
76
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
77
+ Mapper . CreateMap < TO . PSVirtualMachineScaleSetList , TO . PSVirtualMachineScaleSet > ( )
78
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
79
+ Mapper . CreateMap < TO . PSVirtualMachineScaleSet , TO . PSVirtualMachineScaleSetList > ( )
80
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
75
81
Mapper . CreateMap < FROM . VirtualMachineScaleSetVM , TO . PSVirtualMachineScaleSetVMList > ( ) ;
76
82
Mapper . CreateMap < TO . PSVirtualMachineScaleSetVMList , TO . PSVirtualMachineScaleSetVM > ( ) ;
77
83
Mapper . CreateMap < TO . PSVirtualMachineScaleSetVM , TO . PSVirtualMachineScaleSetVMList > ( ) ;
78
- Mapper . CreateMap < FROM . VirtualMachine , TO . PSVirtualMachineList > ( ) ;
79
- Mapper . CreateMap < TO . PSVirtualMachineList , TO . PSVirtualMachine > ( ) ;
80
- Mapper . CreateMap < TO . PSVirtualMachine , TO . PSVirtualMachineList > ( ) ;
81
- Mapper . CreateMap < FROM . VirtualMachine , TO . PSVirtualMachineList > ( ) ;
82
- Mapper . CreateMap < TO . PSVirtualMachineList , TO . PSVirtualMachine > ( ) ;
83
- Mapper . CreateMap < TO . PSVirtualMachine , TO . PSVirtualMachineList > ( ) ;
84
+ Mapper . CreateMap < FROM . VirtualMachine , TO . PSVirtualMachineList > ( )
85
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
86
+ Mapper . CreateMap < TO . PSVirtualMachineList , TO . PSVirtualMachine > ( )
87
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
88
+ Mapper . CreateMap < TO . PSVirtualMachine , TO . PSVirtualMachineList > ( )
89
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
90
+ Mapper . CreateMap < FROM . VirtualMachine , TO . PSVirtualMachineList > ( )
91
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
92
+ Mapper . CreateMap < TO . PSVirtualMachineList , TO . PSVirtualMachine > ( )
93
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
94
+ Mapper . CreateMap < TO . PSVirtualMachine , TO . PSVirtualMachineList > ( )
95
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
84
96
Mapper . CreateMap < FROM . Disk , FROM . DiskUpdate > ( ) ;
85
97
Mapper . CreateMap < FROM . DiskUpdate , FROM . Disk > ( ) ;
86
98
Mapper . CreateMap < FROM . DiskUpdate , TO . PSDiskUpdate > ( ) ;
@@ -97,8 +109,10 @@ protected override void Configure()
97
109
Mapper . CreateMap < TO . PSVirtualMachineSize , FROM . VirtualMachineSize > ( ) ;
98
110
Mapper . CreateMap < FROM . ContainerService , TO . PSContainerService > ( ) ;
99
111
Mapper . CreateMap < TO . PSContainerService , FROM . ContainerService > ( ) ;
100
- Mapper . CreateMap < FROM . Disk , TO . PSDisk > ( ) ;
101
- Mapper . CreateMap < TO . PSDisk , FROM . Disk > ( ) ;
112
+ Mapper . CreateMap < FROM . Disk , TO . PSDisk > ( )
113
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
114
+ Mapper . CreateMap < TO . PSDisk , FROM . Disk > ( )
115
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
102
116
Mapper . CreateMap < FROM . AccessUri , TO . PSAccessUri > ( ) ;
103
117
Mapper . CreateMap < TO . PSAccessUri , FROM . AccessUri > ( ) ;
104
118
Mapper . CreateMap < FROM . Image , TO . PSImage > ( ) ;
@@ -113,8 +127,10 @@ protected override void Configure()
113
127
Mapper . CreateMap < TO . PSRunCommandDocumentBase , FROM . RunCommandDocumentBase > ( ) ;
114
128
Mapper . CreateMap < FROM . RollingUpgradeStatusInfo , TO . PSRollingUpgradeStatusInfo > ( ) ;
115
129
Mapper . CreateMap < TO . PSRollingUpgradeStatusInfo , FROM . RollingUpgradeStatusInfo > ( ) ;
116
- Mapper . CreateMap < FROM . VirtualMachineScaleSet , TO . PSVirtualMachineScaleSet > ( ) ;
117
- Mapper . CreateMap < TO . PSVirtualMachineScaleSet , FROM . VirtualMachineScaleSet > ( ) ;
130
+ Mapper . CreateMap < FROM . VirtualMachineScaleSet , TO . PSVirtualMachineScaleSet > ( )
131
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
132
+ Mapper . CreateMap < TO . PSVirtualMachineScaleSet , FROM . VirtualMachineScaleSet > ( )
133
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
118
134
Mapper . CreateMap < FROM . VirtualMachineScaleSetInstanceView , TO . PSVirtualMachineScaleSetInstanceView > ( ) ;
119
135
Mapper . CreateMap < TO . PSVirtualMachineScaleSetInstanceView , FROM . VirtualMachineScaleSetInstanceView > ( ) ;
120
136
Mapper . CreateMap < FROM . VirtualMachineScaleSetSku , TO . PSVirtualMachineScaleSetSku > ( ) ;
@@ -125,8 +141,10 @@ protected override void Configure()
125
141
Mapper . CreateMap < TO . PSVirtualMachineScaleSetVMInstanceView , FROM . VirtualMachineScaleSetVMInstanceView > ( ) ;
126
142
Mapper . CreateMap < FROM . VirtualMachineCaptureResult , TO . PSVirtualMachineCaptureResult > ( ) ;
127
143
Mapper . CreateMap < TO . PSVirtualMachineCaptureResult , FROM . VirtualMachineCaptureResult > ( ) ;
128
- Mapper . CreateMap < FROM . VirtualMachine , TO . PSVirtualMachine > ( ) ;
129
- Mapper . CreateMap < TO . PSVirtualMachine , FROM . VirtualMachine > ( ) ;
144
+ Mapper . CreateMap < FROM . VirtualMachine , TO . PSVirtualMachine > ( )
145
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
146
+ Mapper . CreateMap < TO . PSVirtualMachine , FROM . VirtualMachine > ( )
147
+ . ForMember ( c => c . Zones , o => o . Condition ( r => ( r . Zones != null ) ) ) ;
130
148
Mapper . CreateMap < FROM . VirtualMachineInstanceView , TO . PSVirtualMachineInstanceView > ( ) ;
131
149
Mapper . CreateMap < TO . PSVirtualMachineInstanceView , FROM . VirtualMachineInstanceView > ( ) ;
132
150
Mapper . CreateMap < FROM . RunCommandResult , TO . PSRunCommandResult > ( ) ;
0 commit comments