@@ -156,14 +156,14 @@ function Get-ExternalDocsUrl {
156156 $RebuiltPath = $PathRebuild + " microsoft.graph." + $PathToAppend
157157 $ExternalDocUrl = $path [$RebuiltPath ].get.externalDocs.url
158158 if ([string ]::IsNullOrEmpty($ExternalDocUrl )) {
159- $UriPath2 = $null
159+ $GetPath = $null
160160 if ($GraphProfile -eq " beta" ){
161- $UriPath2 = $BetaCommandListVariantList [$Command ]
161+ $GetPath = $BetaCommandListVariantList [$Command ]
162162 }else {
163- $UriPath2 = $V1CommandListVariantList [$Command ]
163+ $GetPath = $V1CommandListVariantList [$Command ]
164164 }
165- if (-not ([string ]::IsNullOrEmpty($UriPath2 ))){
166- $ExternalDocUrl = $Path [$UriPath2 ].get.externalDocs.url
165+ if (-not ([string ]::IsNullOrEmpty($GetPath ))){
166+ $ExternalDocUrl = $Path [$GetPath ].get.externalDocs.url
167167 }
168168
169169 }
@@ -172,59 +172,59 @@ function Get-ExternalDocsUrl {
172172 if ($MethodName -eq " POST" ) {
173173 $ExternalDocUrl = $Path [$UriPath ].post.externalDocs.url
174174 if ([string ]::IsNullOrEmpty($ExternalDocUrl )) {
175- $UriPath3 = $null
175+ $PostPath = $null
176176 if ($GraphProfile -eq " beta" ){
177- $UriPath3 = $BetaCommandListVariantList [$Command ]
177+ $PostPath = $BetaCommandListVariantList [$Command ]
178178 }else {
179- $UriPath3 = $V1CommandListVariantList [$Command ]
179+ $PostPath = $V1CommandListVariantList [$Command ]
180180 }
181- if (-not ([string ]::IsNullOrEmpty($UriPath3 ))){
182- $ExternalDocUrl = $Path [$UriPath3 ].post.externalDocs.url
181+ if (-not ([string ]::IsNullOrEmpty($PostPath ))){
182+ $ExternalDocUrl = $Path [$PostPath ].post.externalDocs.url
183183 }
184184 }
185185 }
186186
187187 if ($MethodName -eq " PATCH" ) {
188188 $ExternalDocUrl = $Path [$UriPath ].patch.externalDocs.url
189189 if ([string ]::IsNullOrEmpty($ExternalDocUrl )) {
190- $UriPath4 = $null
190+ $PatchPath = $null
191191 if ($GraphProfile -eq " beta" ){
192- $UriPath4 = $BetaCommandListVariantList [$Command ]
192+ $PatchPath = $BetaCommandListVariantList [$Command ]
193193 }else {
194- $UriPath4 = $V1CommandListVariantList [$Command ]
194+ $PatchPath = $V1CommandListVariantList [$Command ]
195195 }
196- if (-not ([string ]::IsNullOrEmpty($UriPath4 ))){
197- $ExternalDocUrl = $Path [$UriPath4 ].post.externalDocs.url
196+ if (-not ([string ]::IsNullOrEmpty($PatchPath ))){
197+ $ExternalDocUrl = $Path [$PatchPath ].post.externalDocs.url
198198 }
199199 }
200200 }
201201
202202 if ($MethodName -eq " DELETE" ) {
203203 $ExternalDocUrl = $Path [$UriPath ].delete.externalDocs.url
204204 if ([string ]::IsNullOrEmpty($ExternalDocUrl )) {
205- $UriPath5 = $null
205+ $DeletePath = $null
206206 if ($GraphProfile -eq " beta" ){
207- $UriPath5 = $BetaCommandListVariantList [$Command ]
207+ $DeletePath = $BetaCommandListVariantList [$Command ]
208208 }else {
209- $UriPath5 = $V1CommandListVariantList [$Command ]
209+ $DeletePath = $V1CommandListVariantList [$Command ]
210210 }
211- if (-not ([string ]::IsNullOrEmpty($UriPath5 ))){
212- $ExternalDocUrl = $Path [$UriPath5 ].post.externalDocs.url
211+ if (-not ([string ]::IsNullOrEmpty($DeletePath ))){
212+ $ExternalDocUrl = $Path [$DeletePath ].post.externalDocs.url
213213 }
214214 }
215215 }
216216
217217 if ($MethodName -eq " PUT" ) {
218218 $ExternalDocUrl = $Path [$UriPath ].put.externalDocs.url
219219 if ([string ]::IsNullOrEmpty($ExternalDocUrl )) {
220- $UriPath6 = $null
220+ $PutPath = $null
221221 if ($GraphProfile -eq " beta" ){
222- $UriPath6 = $BetaCommandListVariantList [$Command ]
222+ $PutPath = $BetaCommandListVariantList [$Command ]
223223 }else {
224- $UriPath6 = $V1CommandListVariantList [$Command ]
224+ $PutPath = $V1CommandListVariantList [$Command ]
225225 }
226- if (-not ([string ]::IsNullOrEmpty($UriPath6 ))){
227- $ExternalDocUrl = $Path [$UriPath6 ].post.externalDocs.url
226+ if (-not ([string ]::IsNullOrEmpty($PutPath ))){
227+ $ExternalDocUrl = $Path [$PutPath ].post.externalDocs.url
228228 }
229229 }
230230 }
0 commit comments