Skip to content

Commit 3f5392c

Browse files
[skip ci] Archive 8ef4889 (#28568)
1 parent de50784 commit 3f5392c

File tree

245 files changed

+68311
-976
lines changed

Some content is hidden

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

245 files changed

+68311
-976
lines changed

generated/StorageCache/StorageCache.Autorest/Az.StorageCache.format.ps1xml

Lines changed: 1179 additions & 33 deletions
Large diffs are not rendered by default.

generated/StorageCache/StorageCache.Autorest/Az.StorageCache.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.StorageCache.private.dll'
1313
FormatsToProcess = './Az.StorageCache.format.ps1xml'
14-
FunctionsToExport = 'Get-AzStorageCacheAmlFileSystem', 'Get-AzStorageCacheAmlFileSystemSubnetRequiredSize', 'Invoke-AzStorageCacheAmlFileSystemArchive', 'New-AzStorageCacheAmlFileSystem', 'Remove-AzStorageCacheAmlFileSystem', 'Stop-AzStorageCacheAmlFilesystemArchive', 'Test-AzStorageCacheAmlFileSystemSubnet', 'Update-AzStorageCacheAmlFileSystem'
14+
FunctionsToExport = 'Get-AzStorageCacheAmlFileSystem', 'Get-AzStorageCacheAmlFileSystemSubnetRequiredSize', 'Get-AzStorageCacheAutoExportJob', 'Get-AzStorageCacheAutoImportJob', 'Get-AzStorageCacheImportJob', 'Invoke-AzStorageCacheAmlFileSystemArchive', 'New-AzStorageCacheAmlFileSystem', 'New-AzStorageCacheAutoExportJob', 'New-AzStorageCacheAutoImportJob', 'New-AzStorageCacheImportJob', 'Remove-AzStorageCacheAmlFileSystem', 'Remove-AzStorageCacheAutoExportJob', 'Remove-AzStorageCacheAutoImportJob', 'Remove-AzStorageCacheImportJob', 'Stop-AzStorageCacheAmlFilesystemArchive', 'Test-AzStorageCacheAmlFileSystemSubnet', 'Update-AzStorageCacheAmlFileSystem', 'Update-AzStorageCacheAutoExportJob', 'Update-AzStorageCacheAutoImportJob', 'Update-AzStorageCacheImportJob'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StorageCache'

generated/StorageCache/StorageCache.Autorest/Properties/AssemblyInfo.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageCache")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
2727

2828

29+
30+
31+
32+
33+
34+
35+
36+

generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ To create the parameters described below, construct a hash table containing the
3737
3838
INPUTOBJECT <IStorageCacheIdentity>: Identity Parameter
3939
[AmlFilesystemName <String>]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
40+
[AutoExportJobName <String>]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
41+
[AutoImportJobName <String>]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
4042
[Id <String>]: Resource identity path
43+
[ImportJobName <String>]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
4144
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
4245
[SubscriptionId <String>]: The ID of the target subscription.
4346
.Link
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
2+
# ----------------------------------------------------------------------------------
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.
15+
# ----------------------------------------------------------------------------------
16+
17+
<#
18+
.Synopsis
19+
Returns an auto export job.
20+
.Description
21+
Returns an auto export job.
22+
.Example
23+
Get-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
24+
25+
.Inputs
26+
Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
27+
.Outputs
28+
Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob
29+
.Notes
30+
COMPLEX PARAMETER PROPERTIES
31+
32+
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.
33+
34+
AMLFILESYSTEMINPUTOBJECT <IStorageCacheIdentity>: Identity Parameter
35+
[AmlFilesystemName <String>]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
36+
[AutoExportJobName <String>]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
37+
[AutoImportJobName <String>]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
38+
[Id <String>]: Resource identity path
39+
[ImportJobName <String>]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
40+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
41+
[SubscriptionId <String>]: The ID of the target subscription.
42+
43+
INPUTOBJECT <IStorageCacheIdentity>: Identity Parameter
44+
[AmlFilesystemName <String>]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
45+
[AutoExportJobName <String>]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
46+
[AutoImportJobName <String>]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
47+
[Id <String>]: Resource identity path
48+
[ImportJobName <String>]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
49+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
50+
[SubscriptionId <String>]: The ID of the target subscription.
51+
.Link
52+
https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheautoexportjob
53+
#>
54+
function Get-AzStorageCacheAutoExportJob {
55+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob])]
56+
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
57+
param(
58+
[Parameter(ParameterSetName='Get', Mandatory)]
59+
[Parameter(ParameterSetName='List', Mandatory)]
60+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
61+
[System.String]
62+
# Name for the AML file system.
63+
# Allows alphanumerics, underscores, and hyphens.
64+
# Start and end with alphanumeric.
65+
${AmlFilesystemName},
66+
67+
[Parameter(ParameterSetName='Get', Mandatory)]
68+
[Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory)]
69+
[Alias('AutoExportJobName')]
70+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
71+
[System.String]
72+
# Name for the auto export job.
73+
# Allows alphanumerics, underscores, and hyphens.
74+
# Start and end with alphanumeric.
75+
${Name},
76+
77+
[Parameter(ParameterSetName='Get', Mandatory)]
78+
[Parameter(ParameterSetName='List', Mandatory)]
79+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
80+
[System.String]
81+
# The name of the resource group.
82+
# The name is case insensitive.
83+
${ResourceGroupName},
84+
85+
[Parameter(ParameterSetName='Get')]
86+
[Parameter(ParameterSetName='List')]
87+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
88+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
89+
[System.String[]]
90+
# The ID of the target subscription.
91+
${SubscriptionId},
92+
93+
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
94+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
95+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
96+
# Identity Parameter
97+
${InputObject},
98+
99+
[Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory, ValueFromPipeline)]
100+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
101+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
102+
# Identity Parameter
103+
${AmlFilesystemInputObject},
104+
105+
[Parameter()]
106+
[Alias('AzureRMContext', 'AzureCredential')]
107+
[ValidateNotNull()]
108+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
109+
[System.Management.Automation.PSObject]
110+
# The DefaultProfile parameter is not functional.
111+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
112+
${DefaultProfile},
113+
114+
[Parameter(DontShow)]
115+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
116+
[System.Management.Automation.SwitchParameter]
117+
# Wait for .NET debugger to attach
118+
${Break},
119+
120+
[Parameter(DontShow)]
121+
[ValidateNotNull()]
122+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
123+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
124+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
125+
${HttpPipelineAppend},
126+
127+
[Parameter(DontShow)]
128+
[ValidateNotNull()]
129+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
130+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
131+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
132+
${HttpPipelinePrepend},
133+
134+
[Parameter(DontShow)]
135+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
136+
[System.Uri]
137+
# The URI for the proxy server to use
138+
${Proxy},
139+
140+
[Parameter(DontShow)]
141+
[ValidateNotNull()]
142+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
143+
[System.Management.Automation.PSCredential]
144+
# Credentials for a proxy server to use for the remote call
145+
${ProxyCredential},
146+
147+
[Parameter(DontShow)]
148+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
149+
[System.Management.Automation.SwitchParameter]
150+
# Use the default credentials for the proxy
151+
${ProxyUseDefaultCredentials}
152+
)
153+
154+
begin {
155+
try {
156+
$outBuffer = $null
157+
if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
158+
$PSBoundParameters['OutBuffer'] = 1
159+
}
160+
$parameterSet = $PSCmdlet.ParameterSetName
161+
162+
$testPlayback = $false
163+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
164+
165+
$context = Get-AzContext
166+
if (-not $context -and -not $testPlayback) {
167+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
168+
exit
169+
}
170+
171+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
172+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
173+
}
174+
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
175+
if ($preTelemetryId -eq '') {
176+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
177+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
178+
} else {
179+
$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
180+
if ($internalCalledCmdlets -eq '') {
181+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
182+
} else {
183+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
184+
}
185+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
186+
}
187+
188+
$mapping = @{
189+
Get = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_Get';
190+
GetViaIdentity = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_GetViaIdentity';
191+
GetViaIdentityAmlFilesystem = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_GetViaIdentityAmlFilesystem';
192+
List = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_List';
193+
}
194+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
195+
if ($testPlayback) {
196+
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
197+
} else {
198+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
199+
}
200+
}
201+
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
202+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
203+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
204+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
205+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
206+
}
207+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
208+
if ($wrappedCmd -eq $null) {
209+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
210+
}
211+
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
212+
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
213+
$steppablePipeline.Begin($PSCmdlet)
214+
} catch {
215+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
216+
throw
217+
}
218+
}
219+
220+
process {
221+
try {
222+
$steppablePipeline.Process($_)
223+
} catch {
224+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
225+
throw
226+
}
227+
228+
finally {
229+
$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
230+
$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
231+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
232+
}
233+
234+
}
235+
end {
236+
try {
237+
$steppablePipeline.End()
238+
239+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
240+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
241+
if ($preTelemetryId -eq '') {
242+
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
243+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
244+
}
245+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
246+
247+
} catch {
248+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
249+
throw
250+
}
251+
}
252+
}

0 commit comments

Comments
 (0)