Skip to content

Commit f302d6a

Browse files
Migrate Resources from generation to main (#26944)
* Move Resources to main * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent c8c5adb commit f302d6a

File tree

220 files changed

+4164
-938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+4164
-938
lines changed

src/Resources/Authorization.Autorest/Az.Authorization.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
GUID = '7501974d-011d-40c9-8f5c-8aca539e2c8b'
2+
GUID = '7f96e662-b170-4f95-899f-bbd1828cd20b'
33
RootModule = './Az.Authorization.psm1'
44
ModuleVersion = '0.1.0'
55
CompatiblePSEditions = 'Core', 'Desktop'

src/Resources/Authorization.Autorest/generate-portal-ux.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,16 @@ function New-MetadataForParameterSet()
248248
$cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
249249
$description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
250250
[object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
251+
if ($Null -eq $example)
252+
{
253+
$example = @()
254+
}
255+
251256
[string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
257+
if ($Null -eq $signature)
258+
{
259+
$signature = @()
260+
}
252261

253262
return @{
254263
Path = $httpPath

src/Resources/Authorization.Autorest/help/Az.Authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Authorization
3-
Module Guid: 7501974d-011d-40c9-8f5c-8aca539e2c8b
3+
Module Guid: 7f96e662-b170-4f95-899f-bbd1828cd20b
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.authorization
55
Help Version: 1.0.0.0
66
Locale: en-US

src/Resources/DataBoundary.Autorest/generate-portal-ux.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,16 @@ function New-MetadataForParameterSet()
247247
$cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
248248
$description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
249249
[object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
250+
if ($Null -eq $example)
251+
{
252+
$example = @()
253+
}
254+
250255
[string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
256+
if ($Null -eq $signature)
257+
{
258+
$signature = @()
259+
}
251260

252261
return @{
253262
Path = $httpPath

src/Resources/MSGraph.Autorest/custom/New-AzADApplication.ps1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,11 @@ function New-AzADApplication {
501501
[System.String[]]
502502
${PublicClientRedirectUri},
503503

504+
[Parameter()]
505+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
506+
[System.Int32]
507+
${RequestedAccessTokenVersion},
508+
504509
[Parameter()]
505510
[AllowEmptyCollection()]
506511
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
@@ -513,7 +518,6 @@ function New-AzADApplication {
513518
# To construct, see NOTES section for REQUIREDRESOURCEACCESS properties and create a hash table.
514519
${RequiredResourceAccess},
515520

516-
517521
[Parameter()]
518522
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
519523
[System.String]
@@ -672,6 +676,14 @@ function New-AzADApplication {
672676
$null = $PSBoundParameters.Remove('PublicClientRedirectUri')
673677
}
674678

679+
if ($PSBoundParameters['RequestedAccessTokenVersion'] -and $PSBoundParameters['Api']) {
680+
$PSBoundParameters['Api'].RequestedAccessTokenVersion = $PSBoundParameters['RequestedAccessTokenVersion']
681+
}
682+
elseif ($PSBoundParameters['RequestedAccessTokenVersion']) {
683+
$PSBoundParameters['Api'] = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphApiApplication" -Property @{'RequestedAccessTokenVersion' = $PSBoundParameters['RequestedAccessTokenVersion'] }
684+
}
685+
$null = $PSBoundParameters.Remove('RequestedAccessTokenVersion')
686+
675687
if ($PSBoundParameters['StartDate']) {
676688
$sd = $PSBoundParameters['StartDate']
677689
$null = $PSBoundParameters.Remove('StartDate')

src/Resources/MSGraph.Autorest/custom/Update-AzADApplication.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ function Update-AzADApplication {
352352
[System.String[]]
353353
${PublicClientRedirectUri},
354354

355+
[Parameter()]
356+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
357+
[System.Int32]
358+
${RequestedAccessTokenVersion},
359+
355360
[Parameter()]
356361
[AllowEmptyCollection()]
357362
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
@@ -549,6 +554,14 @@ function Update-AzADApplication {
549554
$null = $PSBoundParameters.Remove('PublicClientRedirectUri')
550555
}
551556

557+
if ($PSBoundParameters['RequestedAccessTokenVersion'] -and $PSBoundParameters['Api']) {
558+
$PSBoundParameters['Api'].RequestedAccessTokenVersion = $PSBoundParameters['RequestedAccessTokenVersion']
559+
}
560+
elseif ($PSBoundParameters['RequestedAccessTokenVersion']) {
561+
$PSBoundParameters['Api'] = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphApiApplication" -Property @{'RequestedAccessTokenVersion' = $PSBoundParameters['RequestedAccessTokenVersion'] }
562+
}
563+
$null = $PSBoundParameters.Remove('RequestedAccessTokenVersion')
564+
552565
Az.MSGraph.internal\Update-AzADApplication @PSBoundParameters
553566
}
554567
}

src/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,11 @@ param(
938938
[System.String[]]
939939
${PublicClientRedirectUri},
940940

941+
[Parameter()]
942+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
943+
[System.Int32]
944+
${RequestedAccessTokenVersion},
945+
941946
[Parameter()]
942947
[AllowEmptyCollection()]
943948
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]

src/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7704,6 +7704,11 @@ param(
77047704
[System.String[]]
77057705
${PublicClientRedirectUri},
77067706

7707+
[Parameter()]
7708+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
7709+
[System.Int32]
7710+
${RequestedAccessTokenVersion},
7711+
77077712
[Parameter()]
77087713
[AllowEmptyCollection()]
77097714
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
@@ -16526,6 +16531,11 @@ param(
1652616531
[System.String[]]
1652716532
${PublicClientRedirectUri},
1652816533

16534+
[Parameter()]
16535+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
16536+
[System.Int32]
16537+
${RequestedAccessTokenVersion},
16538+
1652916539
[Parameter()]
1653016540
[AllowEmptyCollection()]
1653116541
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]

src/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,11 @@ param(
11891189
[System.String[]]
11901190
${PublicClientRedirectUri},
11911191

1192+
[Parameter()]
1193+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
1194+
[System.Int32]
1195+
${RequestedAccessTokenVersion},
1196+
11921197
[Parameter()]
11931198
[AllowEmptyCollection()]
11941199
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]

src/Resources/MSGraph.Autorest/generate-portal-ux.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,16 @@ function New-MetadataForParameterSet()
247247
$cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
248248
$description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
249249
[object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
250+
if ($Null -eq $example)
251+
{
252+
$example = @()
253+
}
254+
250255
[string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
256+
if ($Null -eq $signature)
257+
{
258+
$signature = @()
259+
}
251260

252261
return @{
253262
Path = $httpPath

0 commit comments

Comments
 (0)