Skip to content

Commit 3474865

Browse files
Refresh autorest-selected modules from generation to main (#24697)
1 parent 0668233 commit 3474865

File tree

1,014 files changed

+45088
-11364
lines changed

Some content is hidden

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

1,014 files changed

+45088
-11364
lines changed

src/Portal/Portal.Autorest/Az.Portal.format.ps1xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@
4848
<TableColumnHeader>
4949
<Label>Name</Label>
5050
</TableColumnHeader>
51-
<TableColumnHeader>
52-
<Label>Type</Label>
53-
</TableColumnHeader>
5451
</TableHeaders>
5552
<TableRowEntries>
5653
<TableRowEntry>
@@ -61,9 +58,6 @@
6158
<TableColumnItem>
6259
<PropertyName>Name</PropertyName>
6360
</TableColumnItem>
64-
<TableColumnItem>
65-
<PropertyName>Type</PropertyName>
66-
</TableColumnItem>
6761
</TableColumnItems>
6862
</TableRowEntry>
6963
</TableRowEntries>
Lines changed: 21 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.Portal'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 5/13/2020
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.Portal.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '0.1.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = 'abd8c13e-6209-4e5a-a276-61e7a80845f9'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: Portal Dashboard cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# CLRVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.Portal.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.Portal.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-AzPortalDashboard', 'New-AzPortalDashboard',
73-
'Remove-AzPortalDashboard', 'Set-AzPortalDashboard',
74-
'Update-AzPortalDashboard'
75-
76-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
77-
CmdletsToExport = @()
78-
79-
# Variables to export from this module
80-
# VariablesToExport = @()
81-
82-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
83-
AliasesToExport = '*'
84-
85-
# DSC resources to export from this module
86-
# DscResourcesToExport = @()
87-
88-
# List of all modules packaged with this module
89-
# ModuleList = @()
90-
91-
# List of all files packaged with this module
92-
# FileList = @()
93-
94-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
95-
PrivateData = @{
96-
2+
GUID = 'abd8c13e-6209-4e5a-a276-61e7a80845f9'
3+
RootModule = './Az.Portal.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: Portal Dashboard cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.Portal.private.dll'
13+
FormatsToProcess = './Az.Portal.format.ps1xml'
14+
FunctionsToExport = 'Get-AzPortalDashboard', 'New-AzPortalDashboard', 'Remove-AzPortalDashboard', 'Set-AzPortalDashboard', 'Update-AzPortalDashboard', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
9717
PSData = @{
98-
99-
# Tags applied to this module. These help with module discovery in online galleries.
100-
Tags = 'Azure','ResourceManager','ARM','PSModule','Portal','Dashboard'
101-
102-
# A URL to the license for this module.
103-
LicenseUri = 'https://aka.ms/azps-license'
104-
105-
# A URL to the main website for this project.
106-
ProjectUri = 'https://github.com/Azure/azure-powershell'
107-
108-
# A URL to an icon representing this module.
109-
# IconUri = ''
110-
111-
# ReleaseNotes of this module
112-
ReleaseNotes = '* the first preview release'
113-
114-
# Prerelease string of this module
115-
# Prerelease = ''
116-
117-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
118-
# RequireLicenseAcceptance = $false
119-
120-
# External dependent modules of this module
121-
# ExternalModuleDependencies = @()
122-
123-
} # End of PSData hashtable
124-
125-
} # End of PrivateData hashtable
126-
127-
# HelpInfo URI of this module
128-
# HelpInfoURI = ''
129-
130-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
131-
# DefaultCommandPrefix = ''
132-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Portal', 'Dashboard'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
13324
}
134-

src/Portal/Portal.Autorest/Az.Portal.psm1

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# region Generated
22
# ----------------------------------------------------------------------------------
3-
#
4-
# Copyright Microsoft Corporation
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
14+
# is regenerated.
1415
# ----------------------------------------------------------------------------------
1516
# Load required Az.Accounts module
1617
$accountsName = 'Az.Accounts'
@@ -24,17 +25,17 @@
2425
}
2526
}
2627
if(-not $accountsModule) {
27-
$hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.7.4' } | Measure-Object).Count -gt 0
28+
$hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
2829
if($hasAdequateVersion) {
29-
$accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.7.4 -Scope Global -PassThru
30+
$accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
3031
}
3132
}
3233
}
3334

3435
if(-not $accountsModule) {
35-
Write-Error "`nThis module requires $accountsName version 1.7.4 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
36-
} elseif (($accountsModule.Version -lt [System.Version]'1.7.4') -and (-not $localAccounts)) {
37-
Write-Error "`nThis module requires $accountsName version 1.7.4 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
36+
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
37+
} elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
38+
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
3839
}
3940
Write-Information "Loaded Module '$($accountsModule.Name)'"
4041

@@ -46,32 +47,41 @@
4647

4748
# Ask for the shared functionality table
4849
$VTable = Register-AzModule
49-
50+
5051
# Tweaks the pipeline on module load
5152
$instance.OnModuleLoad = $VTable.OnModuleLoad
52-
53+
54+
# Following two delegates are added for telemetry
55+
$instance.GetTelemetryId = $VTable.GetTelemetryId
56+
$instance.Telemetry = $VTable.Telemetry
57+
58+
# Delegate to sanitize the output object
59+
$instance.SanitizeOutput = $VTable.SanitizerHandler
60+
61+
# Delegate to get the telemetry info
62+
$instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
63+
5364
# Tweaks the pipeline per call
5465
$instance.OnNewRequest = $VTable.OnNewRequest
55-
66+
5667
# Gets shared parameter values
5768
$instance.GetParameterValue = $VTable.GetParameterValue
58-
69+
5970
# Allows shared module to listen to events from this module
6071
$instance.EventListener = $VTable.EventListener
61-
72+
6273
# Gets shared argument completers
6374
$instance.ArgumentCompleter = $VTable.ArgumentCompleter
64-
75+
6576
# The name of the currently selected Azure profile
6677
$instance.ProfileName = $VTable.ProfileName
6778

68-
6979
# Load the custom module
7080
$customModulePath = Join-Path $PSScriptRoot './custom/Az.Portal.custom.psm1'
7181
if(Test-Path $customModulePath) {
7282
$null = Import-Module -Name $customModulePath
7383
}
74-
84+
7585
# Export nothing to clear implicit exports
7686
Export-ModuleMember
7787

@@ -91,12 +101,12 @@
91101
# Load the last folder if no profile is selected
92102
$profileDirectory = $directories | Select-Object -Last 1
93103
}
94-
104+
95105
if($profileDirectory) {
96106
Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
97107
$exportsPath = $profileDirectory.FullName
98108
}
99-
109+
100110
if($exportsPath) {
101111
Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
102112
$cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath

src/Portal/Portal.Autorest/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
This directory contains the PowerShell module for the Portal service.
44

55
---
6-
76
## Info
87
- Modifiable: yes
98
- Generated: all
@@ -15,7 +14,7 @@ This directory contains the PowerShell module for the Portal service.
1514
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
1615

1716
## Module Requirements
18-
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.7.4 or greater
17+
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
1918

2019
## Authentication
2120
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@@ -33,8 +32,9 @@ In this directory, run AutoRest:
3332
> see https://aka.ms/autorest
3433
3534
``` yaml
35+
commit: 0dd49a444195fef7f3555cad038cb7665cbd928c
3636
require:
37-
- $(this-folder)/../readme.azure.noprofile.md
37+
- $(this-folder)/../../readme.azure.noprofile.md
3838
input-file:
3939
- $(repo)/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/portal.json
4040

@@ -54,6 +54,10 @@ module-version: 0.1.0
5454
title: Portal
5555
subject-prefix: $(service-name)
5656

57+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
58+
use-extension:
59+
"@autorest/powershell": "3.x"
60+
5761
directive:
5862
- where:
5963
verb: Set

0 commit comments

Comments
 (0)