Skip to content

Commit 5f91ca7

Browse files
authored
PS Release Microsoft.Network 2024-10-01 (#28558)
2 parents 4c737ff + 76290ed commit 5f91ca7

File tree

285 files changed

+59391
-98411
lines changed

Some content is hidden

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

285 files changed

+59391
-98411
lines changed

generated/Network/NetworkSecurityPerimeter.Autorest/Az.NetworkSecurityPerimeter.format.ps1xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,28 @@
10471047
</TableRowEntries>
10481048
</TableControl>
10491049
</View>
1050+
<View>
1051+
<Name>Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.NspServiceTagsListResult</Name>
1052+
<ViewSelectedBy>
1053+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.NspServiceTagsListResult#Multiple</TypeName>
1054+
</ViewSelectedBy>
1055+
<TableControl>
1056+
<TableHeaders>
1057+
<TableColumnHeader>
1058+
<Label>NextLink</Label>
1059+
</TableColumnHeader>
1060+
</TableHeaders>
1061+
<TableRowEntries>
1062+
<TableRowEntry>
1063+
<TableColumnItems>
1064+
<TableColumnItem>
1065+
<PropertyName>NextLink</PropertyName>
1066+
</TableColumnItem>
1067+
</TableColumnItems>
1068+
</TableRowEntry>
1069+
</TableRowEntries>
1070+
</TableControl>
1071+
</View>
10501072
<View>
10511073
<Name>Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.OperationStatusResult</Name>
10521074
<ViewSelectedBy>

generated/Network/NetworkSecurityPerimeter.Autorest/Az.NetworkSecurityPerimeter.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.NetworkSecurityPerimeter.private.dll'
1313
FormatsToProcess = './Az.NetworkSecurityPerimeter.format.ps1xml'
14-
FunctionsToExport = 'Get-AzNetworkSecurityPerimeter', 'Get-AzNetworkSecurityPerimeterAccessRule', 'Get-AzNetworkSecurityPerimeterAssociableResourceType', 'Get-AzNetworkSecurityPerimeterAssociation', 'Get-AzNetworkSecurityPerimeterLink', 'Get-AzNetworkSecurityPerimeterLinkReference', 'Get-AzNetworkSecurityPerimeterLoggingConfiguration', 'Get-AzNetworkSecurityPerimeterProfile', 'New-AzNetworkSecurityPerimeter', 'New-AzNetworkSecurityPerimeterAccessRule', 'New-AzNetworkSecurityPerimeterAssociation', 'New-AzNetworkSecurityPerimeterLink', 'New-AzNetworkSecurityPerimeterLoggingConfiguration', 'New-AzNetworkSecurityPerimeterProfile', 'Remove-AzNetworkSecurityPerimeter', 'Remove-AzNetworkSecurityPerimeterAccessRule', 'Remove-AzNetworkSecurityPerimeterAssociation', 'Remove-AzNetworkSecurityPerimeterLink', 'Remove-AzNetworkSecurityPerimeterLinkReference', 'Remove-AzNetworkSecurityPerimeterLoggingConfiguration', 'Remove-AzNetworkSecurityPerimeterProfile', 'Update-AzNetworkSecurityPerimeter', 'Update-AzNetworkSecurityPerimeterAccessRule', 'Update-AzNetworkSecurityPerimeterAssociation', 'Update-AzNetworkSecurityPerimeterLink', 'Update-AzNetworkSecurityPerimeterLoggingConfiguration'
14+
FunctionsToExport = 'Get-AzNetworkSecurityPerimeter', 'Get-AzNetworkSecurityPerimeterAccessRule', 'Get-AzNetworkSecurityPerimeterAssociableResourceType', 'Get-AzNetworkSecurityPerimeterAssociation', 'Get-AzNetworkSecurityPerimeterLink', 'Get-AzNetworkSecurityPerimeterLinkReference', 'Get-AzNetworkSecurityPerimeterLoggingConfiguration', 'Get-AzNetworkSecurityPerimeterProfile', 'Get-AzNetworkSecurityPerimeterServiceTag', 'New-AzNetworkSecurityPerimeter', 'New-AzNetworkSecurityPerimeterAccessRule', 'New-AzNetworkSecurityPerimeterAssociation', 'New-AzNetworkSecurityPerimeterLink', 'New-AzNetworkSecurityPerimeterLoggingConfiguration', 'New-AzNetworkSecurityPerimeterProfile', 'Remove-AzNetworkSecurityPerimeter', 'Remove-AzNetworkSecurityPerimeterAccessRule', 'Remove-AzNetworkSecurityPerimeterAssociation', 'Remove-AzNetworkSecurityPerimeterLink', 'Remove-AzNetworkSecurityPerimeterLinkReference', 'Remove-AzNetworkSecurityPerimeterLoggingConfiguration', 'Remove-AzNetworkSecurityPerimeterProfile', 'Update-AzNetworkSecurityPerimeter', 'Update-AzNetworkSecurityPerimeterAccessRule', 'Update-AzNetworkSecurityPerimeterAssociation', 'Update-AzNetworkSecurityPerimeterLink', 'Update-AzNetworkSecurityPerimeterLoggingConfiguration'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'NetworkSecurityPerimeter'

generated/Network/NetworkSecurityPerimeter.Autorest/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
2727

2828

2929

30+
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
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+
Gets the list of service tags supported by NSP.
20+
These service tags can be used to list access rules in NSP.
21+
.Description
22+
Gets the list of service tags supported by NSP.
23+
These service tags can be used to list access rules in NSP.
24+
.Example
25+
Get-AzNetworkSecurityPerimeterServiceTag -Location eastus2euap
26+
27+
.Outputs
28+
Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INspServiceTagsResource
29+
.Link
30+
https://learn.microsoft.com/powershell/module/az.network/get-aznetworksecurityperimeterservicetag
31+
#>
32+
function Get-AzNetworkSecurityPerimeterServiceTag {
33+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INspServiceTagsResource])]
34+
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
35+
param(
36+
[Parameter(Mandatory)]
37+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Path')]
38+
[System.String]
39+
# The location of network security perimeter.
40+
${Location},
41+
42+
[Parameter()]
43+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Path')]
44+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
45+
[System.String[]]
46+
# The subscription credentials which uniquely identify the Microsoft Azure subscription.
47+
# The subscription ID forms part of the URI for every service call.
48+
${SubscriptionId},
49+
50+
[Parameter()]
51+
[Alias('AzureRMContext', 'AzureCredential')]
52+
[ValidateNotNull()]
53+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Azure')]
54+
[System.Management.Automation.PSObject]
55+
# The DefaultProfile parameter is not functional.
56+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
57+
${DefaultProfile},
58+
59+
[Parameter(DontShow)]
60+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Runtime')]
61+
[System.Management.Automation.SwitchParameter]
62+
# Wait for .NET debugger to attach
63+
${Break},
64+
65+
[Parameter(DontShow)]
66+
[ValidateNotNull()]
67+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Runtime')]
68+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Runtime.SendAsyncStep[]]
69+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
70+
${HttpPipelineAppend},
71+
72+
[Parameter(DontShow)]
73+
[ValidateNotNull()]
74+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Runtime')]
75+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Runtime.SendAsyncStep[]]
76+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
77+
${HttpPipelinePrepend},
78+
79+
[Parameter(DontShow)]
80+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Runtime')]
81+
[System.Uri]
82+
# The URI for the proxy server to use
83+
${Proxy},
84+
85+
[Parameter(DontShow)]
86+
[ValidateNotNull()]
87+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Runtime')]
88+
[System.Management.Automation.PSCredential]
89+
# Credentials for a proxy server to use for the remote call
90+
${ProxyCredential},
91+
92+
[Parameter(DontShow)]
93+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Category('Runtime')]
94+
[System.Management.Automation.SwitchParameter]
95+
# Use the default credentials for the proxy
96+
${ProxyUseDefaultCredentials}
97+
)
98+
99+
begin {
100+
try {
101+
$outBuffer = $null
102+
if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
103+
$PSBoundParameters['OutBuffer'] = 1
104+
}
105+
$parameterSet = $PSCmdlet.ParameterSetName
106+
107+
$testPlayback = $false
108+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
109+
110+
$context = Get-AzContext
111+
if (-not $context -and -not $testPlayback) {
112+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
113+
exit
114+
}
115+
116+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
117+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
118+
}
119+
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
120+
if ($preTelemetryId -eq '') {
121+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
122+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
123+
} else {
124+
$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
125+
if ($internalCalledCmdlets -eq '') {
126+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
127+
} else {
128+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
129+
}
130+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
131+
}
132+
133+
$mapping = @{
134+
List = 'Az.NetworkSecurityPerimeter.private\Get-AzNetworkSecurityPerimeterServiceTag_List';
135+
}
136+
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
137+
if ($testPlayback) {
138+
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
139+
} else {
140+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
141+
}
142+
}
143+
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
144+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
145+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
146+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
147+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
148+
}
149+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
150+
if ($wrappedCmd -eq $null) {
151+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
152+
}
153+
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
154+
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
155+
$steppablePipeline.Begin($PSCmdlet)
156+
} catch {
157+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
158+
throw
159+
}
160+
}
161+
162+
process {
163+
try {
164+
$steppablePipeline.Process($_)
165+
} catch {
166+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
167+
throw
168+
}
169+
170+
finally {
171+
$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
172+
$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
173+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
174+
}
175+
176+
}
177+
end {
178+
try {
179+
$steppablePipeline.End()
180+
181+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
182+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
183+
if ($preTelemetryId -eq '') {
184+
[Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
185+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
186+
}
187+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
188+
189+
} catch {
190+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
191+
throw
192+
}
193+
}
194+
}

0 commit comments

Comments
 (0)