Skip to content

Commit 656d2f6

Browse files
Migrate Resources from shared/Resources-generation to shared/Resources-main (#23521)
* Move Resources to shared/Resources-main * Update ChangeLog.md * suppress breakingchange and example warnings * suppress signature issues * fix suppress --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 7684088 commit 656d2f6

File tree

753 files changed

+119759
-3115
lines changed

Some content is hidden

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

753 files changed

+119759
-3115
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 = 'ef9a8a67-ab5b-4d21-a3ff-15127e64527d'
2+
GUID = '7b188a62-1fce-4079-ab54-c9bcdb871f40'
33
RootModule = './Az.Authorization.psm1'
44
ModuleVersion = '0.1.0'
55
CompatiblePSEditions = 'Core', 'Desktop'

src/Resources/Authorization.Autorest/README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,22 @@ For information on how to develop for `Az.Authorization`, see [how-to.md](how-to
3030
> see https://aka.ms/autorest
3131
3232
``` yaml
33+
commit: 0023223a23b7a8c1693f7d88678787e50fee6c96
3334
require:
3435
- $(this-folder)/../../readme.azure.noprofile.md
3536
input-file:
36-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json
37+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json
3738

38-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json
39-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json
40-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json
39+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json
40+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json
41+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json
4142

42-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json
43-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json
44-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json
43+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json
44+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json
45+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json
4546

46-
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json
47-
- https://github.com/Azure/azure-rest-api-specs/blob/23800927d61999e655f6fd7fd054deaa80385683/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json
47+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json
48+
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json
4849

4950
root-module-name: $(prefix).Resources
5051
title: Authorization
@@ -55,6 +56,10 @@ identity-correction-for-post: true
5556
resourcegroup-append: true
5657
default-exclude-tableview-properties: false
5758

59+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
60+
use-extension:
61+
"@autorest/powershell": "3.x"
62+
5863
directive:
5964
# Swaager bug: The scope should be readonly according to the server response.
6065
- from: swagger-document

src/Resources/Authorization.Autorest/build-module.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ if($NoDocs) {
143143
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
144144
}
145145
$null = New-Item -ItemType Directory -Force -Path $docsFolder
146-
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
146+
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
147+
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
147148
}
148149

149150
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
@@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
162163
Write-Host -ForegroundColor Green 'Creating example stubs...'
163164
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
164165

166+
if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
167+
{
168+
Write-Host -ForegroundColor Green 'Creating ux metadata...'
169+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170+
}
171+
165172
Write-Host -ForegroundColor Green '-------------Done-------------'

src/Resources/Authorization.Autorest/docs/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: ef9a8a67-ab5b-4d21-a3ff-15127e64527d
3+
Module Guid: 7b188a62-1fce-4079-ab54-c9bcdb871f40
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/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -212,24 +212,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
212212
213213
## NOTES
214214
215-
ALIASES
216-
217-
COMPLEX PARAMETER PROPERTIES
218-
219-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
220-
221-
222-
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
223-
- `[Id <String>]`: Resource identity path
224-
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
225-
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
226-
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
227-
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
228-
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
229-
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
230-
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
231-
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
232-
- `[Scope <String>]`: The scope of the role management policy.
233-
234215
## RELATED LINKS
235216

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -213,24 +213,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
213213
214214
## NOTES
215215
216-
ALIASES
217-
218-
COMPLEX PARAMETER PROPERTIES
219-
220-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
221-
222-
223-
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
224-
- `[Id <String>]`: Resource identity path
225-
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
226-
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
227-
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
228-
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
229-
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
230-
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
231-
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
232-
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
233-
- `[Scope <String>]`: The scope of the role management policy.
234-
235216
## RELATED LINKS
236217

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -197,24 +197,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
197197
198198
## NOTES
199199
200-
ALIASES
201-
202-
COMPLEX PARAMETER PROPERTIES
203-
204-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
205-
206-
207-
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
208-
- `[Id <String>]`: Resource identity path
209-
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
210-
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
211-
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
212-
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
213-
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
214-
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
215-
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
216-
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
217-
- `[Scope <String>]`: The scope of the role management policy.
218-
219200
## RELATED LINKS
220201

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -212,24 +212,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
212212
213213
## NOTES
214214
215-
ALIASES
216-
217-
COMPLEX PARAMETER PROPERTIES
218-
219-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
220-
221-
222-
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
223-
- `[Id <String>]`: Resource identity path
224-
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
225-
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
226-
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
227-
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
228-
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
229-
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
230-
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
231-
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
232-
- `[Scope <String>]`: The scope of the role management policy.
233-
234215
## RELATED LINKS
235216

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -213,24 +213,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
213213
214214
## NOTES
215215
216-
ALIASES
217-
218-
COMPLEX PARAMETER PROPERTIES
219-
220-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
221-
222-
223-
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
224-
- `[Id <String>]`: Resource identity path
225-
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
226-
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
227-
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
228-
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
229-
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
230-
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
231-
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
232-
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
233-
- `[Scope <String>]`: The scope of the role management policy.
234-
235216
## RELATED LINKS
236217

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -197,24 +197,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
197197
198198
## NOTES
199199
200-
ALIASES
201-
202-
COMPLEX PARAMETER PROPERTIES
203-
204-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
205-
206-
207-
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
208-
- `[Id <String>]`: Resource identity path
209-
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
210-
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
211-
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
212-
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
213-
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
214-
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
215-
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
216-
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
217-
- `[Scope <String>]`: The scope of the role management policy.
218-
219200
## RELATED LINKS
220201

0 commit comments

Comments
 (0)