Skip to content

Commit 01aac2b

Browse files
authored
[Compute] Move #16311 to main (#16339)
* generated * psd1 and help * changelog
1 parent 2f7c335 commit 01aac2b

File tree

347 files changed

+64675
-435
lines changed

Some content is hidden

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

347 files changed

+64675
-435
lines changed

src/Compute/Compute.Autorest/Az.Compute.format.ps1xml

Lines changed: 1478 additions & 88 deletions
Large diffs are not rendered by default.

src/Compute/Compute.Autorest/Az.Compute.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
GUID = '15c666f1-ea91-4b48-833f-2da84e433682'
2+
GUID = '64d81db2-280c-4cff-a9f8-9e3ef386b229'
33
RootModule = './Az.Compute.psm1'
44
ModuleVersion = '0.1.0'
55
CompatiblePSEditions = 'Core', 'Desktop'
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Compute.private.dll'
1313
FormatsToProcess = './Az.Compute.format.ps1xml'
14-
FunctionsToExport = 'Get-AzVMRunCommand', 'Get-AzVmssVMRunCommand', 'Remove-AzVMRunCommand', 'Remove-AzVmssVMRunCommand', 'Set-AzVMRunCommand', 'Set-AzVmssVMRunCommand', '*'
14+
FunctionsToExport = 'Get-AzGalleryApplication', 'Get-AzGalleryApplicationVersion', 'Get-AzVMRunCommand', 'Get-AzVmssVMRunCommand', 'New-AzGalleryApplication', 'New-AzGalleryApplicationVersion', 'Remove-AzGalleryApplication', 'Remove-AzGalleryApplicationVersion', 'Remove-AzVMRunCommand', 'Remove-AzVmssVMRunCommand', 'Set-AzVMRunCommand', 'Set-AzVmssVMRunCommand', 'Update-AzGalleryApplication', 'Update-AzGalleryApplicationVersion', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{

src/Compute/Compute.Autorest/README.md

Lines changed: 136 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,161 @@ For information on how to develop for `Az.Compute`, see [how-to.md](how-to.md).
2929
### AutoRest Configuration
3030
> see https://aka.ms/autorest
3131
``` yaml
32+
branch: 0c887b0c35f6f19468a16e660bba2a9eb5f4a330
3233
require:
3334
# readme.azure.noprofile.md is the common configuration file
3435
- $(this-folder)/../../readme.azure.noprofile.md
3536
input-file:
3637
# You need to specify your swagger files here.
38+
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/gallery.json
3739
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/runCommands.json
3840
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
39-
# For new RP, the version is 0.1.0
4041
module-version: 0.1.0
4142
# Normally, title is the service name
4243
title: Compute
4344
subject-prefix: ""
45+
4446
# If there are post APIs for some kinds of actions in the RP, you may need to
4547
# uncomment following line to support viaIdentity for these post APIs
46-
identity-correction-for-post: true
48+
# identity-correction-for-post: true
49+
4750
directive:
4851
# Following is two common directive which are normally required in all the RPs
4952
# 1. Remove the unexpanded parameter set
5053
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
5154
- where:
52-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Run$|^RunViaIdentity$
55+
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
56+
remove: true
57+
# Remove following verbs
58+
- select: command
59+
where:
60+
verb: Export|Convert|Install
61+
remove: true
62+
# Remove existing cmdlets
63+
- select: command
64+
where:
65+
subject: Gallery$|GallerySharingProfile|GalleryImage$|GalleryImageVersion$
5366
remove: true
67+
- select: command
68+
where:
69+
subject: GalleryApplication$|GalleryApplicationVersion$
70+
verb: Set
71+
remove: true
72+
# Change model names for GalleryApplicationVersion
73+
- where:
74+
model-name: GalleryApplicationVersion|GalleryApplicationVersionProperties
75+
property-name: ManageActionInstall
76+
set:
77+
property-name: Install
78+
- where:
79+
model-name: GalleryApplicationVersion|GalleryApplicationVersionProperties
80+
property-name: ManageActionRemove
81+
set:
82+
property-name: Remove
83+
- where:
84+
model-name: GalleryApplicationVersion|GalleryApplicationVersionProperties
85+
property-name: ManageActionUpdate
86+
set:
87+
property-name: Update
88+
- where:
89+
model-name: GalleryApplicationVersion|GalleryApplicationVersionProperties
90+
property-name: SourceDefaultConfigurationLink
91+
set:
92+
property-name: DefaultConfigFileLink
93+
- where:
94+
model-name: GalleryApplicationVersion|GalleryApplicationVersionProperties
95+
property-name: SourceMediaLink
96+
set:
97+
property-name: PackageFileLink
98+
- where:
99+
model-name: GalleryApplicationVersion|GalleryApplicationVersionProperties
100+
property-name: PublishingProfileReplicaCount
101+
set:
102+
property-name: ReplicaCount
103+
- where:
104+
model-name: GalleryApplicationVersion|GalleryApplicationVersionProperties
105+
property-name: PublishingProfileTargetRegion
106+
set:
107+
property-name: TargetRegion
108+
### END # Change model names for GalleryApplicationVersion
109+
# change parameter names for GalleryApplicationVersion
110+
- where:
111+
verb: New|Update
112+
subject: GalleryApplicationVersion
113+
parameter-name: ManageActionInstall
114+
set:
115+
parameter-name: Install
116+
- where:
117+
verb: New|Update
118+
subject: GalleryApplicationVersion
119+
parameter-name: ManageActionRemove
120+
set:
121+
parameter-name: Remove
122+
- where:
123+
verb: New|Update
124+
subject: GalleryApplicationVersion
125+
parameter-name: ManageActionUpdate
126+
set:
127+
parameter-name: Update
128+
- where:
129+
verb: New|Update
130+
subject: GalleryApplicationVersion
131+
parameter-name: SourceDefaultConfigurationLink
132+
set:
133+
parameter-name: DefaultConfigFileLink
134+
- where:
135+
verb: New|Update
136+
subject: GalleryApplicationVersion
137+
parameter-name: SourceMediaLink
138+
set:
139+
parameter-name: PackageFileLink
140+
- where:
141+
verb: New|Update
142+
subject: GalleryApplicationVersion
143+
parameter-name: PublishingProfileReplicaCount
144+
set:
145+
parameter-name: ReplicaCount
146+
- where:
147+
verb: New|Update
148+
subject: GalleryApplicationVersion
149+
parameter-name: PublishingProfileTargetRegion
150+
set:
151+
parameter-name: TargetRegion
152+
### END # change parameter names for GalleryApplicationVersion
153+
# hide parameters for New, Update Gallery Application
154+
- where:
155+
verb: Update
156+
subject: GalleryApplication$
157+
parameter-name: SupportedOSType
158+
hide: true
159+
- where:
160+
verb: Update|New
161+
subject: GalleryApplication$
162+
parameter-name: Eula|EndOfLifeDate|PrivacyStatementUri|ReleaseNoteUri
163+
hide: true
164+
### END # hide parameters for New,Update Gallery Application
165+
# hide parameters for New, Update Gallery Application Version
166+
- where:
167+
verb: Update|New
168+
subject: GalleryApplicationVersion$
169+
parameter-name: PublishingProfileEnableHealthCheck|PublishingProfileStorageAccountType|PublishingProfileReplicationMode
170+
hide: true
171+
- where:
172+
verb: Update
173+
subject: GalleryApplicationVersion$
174+
parameter-name: Update|Install|Remove
175+
hide: true
176+
### END # hide parameters for New, Update Gallery Application Version
177+
# hide New-AzGalleryApplication, New-AzGalleryApplicationVersion, Update-AzGalleryApplicationVersion
178+
- where:
179+
verb: New|Update
180+
subject: GalleryApplicationVersion
181+
hide: true
182+
- where:
183+
verb: New
184+
subject: GalleryApplication
185+
hide: true
186+
### END # hide New-AzGalleryApplication, New-AzGalleryApplicationVersion, Update-AzGalleryApplicationVersion
54187
- where:
55188
subject: VirtualMachineRunCommand
56189
set:
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
2+
# ----------------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# ----------------------------------------------------------------------------------
8+
9+
<#
10+
.Synopsis
11+
Create or update a gallery Application Definition.
12+
.Description
13+
Create or update a gallery Application Definition.
14+
#>
15+
16+
function New-AzGalleryApplication {
17+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
18+
[CmdletBinding(PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
19+
param(
20+
[Parameter(Mandatory)]
21+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Path')]
22+
[System.String]
23+
# The name of the Shared Application Gallery in which the Application Definition is to be created.
24+
${GalleryName},
25+
26+
[Parameter(Mandatory)]
27+
[Alias('GalleryApplicationName')]
28+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Path')]
29+
[System.String]
30+
# The name of the gallery Application Definition to be created or updated.
31+
# The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle.
32+
# The maximum length is 80 characters.
33+
${Name},
34+
35+
[Parameter(Mandatory)]
36+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Path')]
37+
[System.String]
38+
# The name of the resource group.
39+
${ResourceGroupName},
40+
41+
[Parameter()]
42+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Path')]
43+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')]
44+
[System.String]
45+
# Subscription credentials which uniquely identify Microsoft Azure subscription.
46+
# The subscription ID forms part of the URI for every service call.
47+
${SubscriptionId},
48+
49+
[Parameter(Mandatory)]
50+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
51+
[System.String]
52+
# Resource location
53+
${Location},
54+
55+
[Parameter(Mandatory)]
56+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.OperatingSystemTypes])]
57+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
58+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.OperatingSystemTypes]
59+
# This property allows you to specify the supported type of the OS that application is built for.
60+
#
61+
#
62+
# Possible values are:
63+
#
64+
# **Windows**
65+
#
66+
# **Linux**
67+
${SupportedOSType},
68+
69+
[Parameter()]
70+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
71+
[System.String]
72+
# The description of this gallery Application Definition resource.
73+
# This property is updatable.
74+
${Description},
75+
76+
[Parameter()]
77+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
78+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IResourceTags]))]
79+
[System.Collections.Hashtable]
80+
# Resource tags
81+
${Tag},
82+
83+
[Parameter()]
84+
[Alias('AzureRMContext', 'AzureCredential')]
85+
[ValidateNotNull()]
86+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Azure')]
87+
[System.Management.Automation.PSObject]
88+
# The credentials, account, tenant, and subscription used for communication with Azure.
89+
${DefaultProfile},
90+
91+
[Parameter()]
92+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
93+
[System.Management.Automation.SwitchParameter]
94+
# Run the command as a job
95+
${AsJob},
96+
97+
[Parameter(DontShow)]
98+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
99+
[System.Management.Automation.SwitchParameter]
100+
# Wait for .NET debugger to attach
101+
${Break},
102+
103+
[Parameter(DontShow)]
104+
[ValidateNotNull()]
105+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
106+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.SendAsyncStep[]]
107+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
108+
${HttpPipelineAppend},
109+
110+
[Parameter(DontShow)]
111+
[ValidateNotNull()]
112+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
113+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.SendAsyncStep[]]
114+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
115+
${HttpPipelinePrepend},
116+
117+
[Parameter()]
118+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
119+
[System.Management.Automation.SwitchParameter]
120+
# Run the command asynchronously
121+
${NoWait},
122+
123+
[Parameter(DontShow)]
124+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
125+
[System.Uri]
126+
# The URI for the proxy server to use
127+
${Proxy},
128+
129+
[Parameter(DontShow)]
130+
[ValidateNotNull()]
131+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
132+
[System.Management.Automation.PSCredential]
133+
# Credentials for a proxy server to use for the remote call
134+
${ProxyCredential},
135+
136+
[Parameter(DontShow)]
137+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
138+
[System.Management.Automation.SwitchParameter]
139+
# Use the default credentials for the proxy
140+
${ProxyUseDefaultCredentials}
141+
)
142+
143+
process {
144+
Az.Compute.internal\New-AzGalleryApplication @PSBoundParameters
145+
}
146+
}

0 commit comments

Comments
 (0)