Skip to content

Commit e84883e

Browse files
Update commands to use new stable API version 2025-10-08 for Liftr-PAN (#28856)
Co-authored-by: Prakriti Gupta <[email protected]>
1 parent be0ea83 commit e84883e

File tree

73 files changed

+4956
-618
lines changed

Some content is hidden

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

73 files changed

+4956
-618
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - PaloAltoNetworks")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ For information on how to develop for `Az.PaloAltoNetworks`, see [how-to.md](how
2727
> see https://aka.ms/autorest
2828
2929
``` yaml
30-
commit: 1e00aa55113c2a47b26cf588b732758071d6f05f
30+
commit: 08a510e768ebd24b415dd642416cf955b70c4069
3131
require:
3232
- $(this-folder)/../../readme.azure.noprofile.md
3333
input-file:
34-
- $(repo)/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/PaloAltoNetworks.Cloudngfw.json
34+
- $(repo)/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2025-10-08/PaloAltoNetworks.Cloudngfw.json
3535

3636
title: PaloAltoNetworks
3737
module-version: 0.2.0
@@ -51,7 +51,7 @@ directive:
5151
"default": {
5252
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
5353
"schema": {
54-
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/1e00aa55113c2a47b26cf588b732758071d6f05f/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
54+
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/08a510e768ebd24b415dd642416cf955b70c4069/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
5555
}
5656
}
5757
}
@@ -69,13 +69,15 @@ directive:
6969
"default": {
7070
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
7171
"schema": {
72-
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/1e00aa55113c2a47b26cf588b732758071d6f05f/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
72+
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/08a510e768ebd24b415dd642416cf955b70c4069/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
7373
}
7474
}
7575
}
7676
77+
# Remove non-Expanded Create/Update/Save variants EXCEPT ProductSerialNumber
7778
- where:
7879
variant: ^(Create|Update|Save)(?!.*?Expanded)
80+
subject: ^(?!.*ProductSerialNumber).*$
7981
remove: true
8082
- where:
8183
variant: ^CreateViaIdentity.*$

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/UX/PaloAltoNetworks.Cloudngfw/firewalls.json

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "firewalls",
3-
"apiVersion": "2023-09-01",
3+
"apiVersion": "2025-10-08",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks"
66
},
@@ -119,6 +119,44 @@
119119
}
120120
]
121121
},
122+
{
123+
"name": "Get-AzPaloAltoNetworksMetricsObjectFirewall",
124+
"description": "Get a MetricsObjectFirewallResource",
125+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default",
126+
"help": {
127+
"learnMore": {
128+
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks/get-azpaloaltonetworksmetricsobjectfirewall"
129+
},
130+
"parameterSets": [
131+
{
132+
"parameters": [
133+
"-FirewallName <String>",
134+
"-ResourceGroupName <String>",
135+
"[-SubscriptionId <String[]>]"
136+
]
137+
}
138+
]
139+
},
140+
"examples": [
141+
{
142+
"description": "Get a MetricsObjectFirewallResource",
143+
"parameters": [
144+
{
145+
"name": "-FirewallName",
146+
"value": "[Path.firewallName]"
147+
},
148+
{
149+
"name": "-ResourceGroupName",
150+
"value": "[Path.resourceGroupName]"
151+
},
152+
{
153+
"name": "-SubscriptionId",
154+
"value": "[Path.subscriptionId]"
155+
}
156+
]
157+
}
158+
]
159+
},
122160
{
123161
"name": "Remove-AzPaloAltoNetworksFirewall",
124162
"description": "Delete a FirewallResource",
@@ -156,6 +194,44 @@
156194
]
157195
}
158196
]
197+
},
198+
{
199+
"name": "Remove-AzPaloAltoNetworksMetricsObjectFirewall",
200+
"description": "Delete a MetricsObjectFirewallResource",
201+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default",
202+
"help": {
203+
"learnMore": {
204+
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks/remove-azpaloaltonetworksmetricsobjectfirewall"
205+
},
206+
"parameterSets": [
207+
{
208+
"parameters": [
209+
"-FirewallName <String>",
210+
"-ResourceGroupName <String>",
211+
"[-SubscriptionId <String>]"
212+
]
213+
}
214+
]
215+
},
216+
"examples": [
217+
{
218+
"description": "Delete a MetricsObjectFirewallResource",
219+
"parameters": [
220+
{
221+
"name": "-FirewallName",
222+
"value": "[Path.firewallName]"
223+
},
224+
{
225+
"name": "-ResourceGroupName",
226+
"value": "[Path.resourceGroupName]"
227+
},
228+
{
229+
"name": "-SubscriptionId",
230+
"value": "[Path.subscriptionId]"
231+
}
232+
]
233+
}
234+
]
159235
}
160236
]
161237
}

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/UX/PaloAltoNetworks.Cloudngfw/localRulestacks-certificates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "localRulestacks/certificates",
3-
"apiVersion": "2023-09-01",
3+
"apiVersion": "2025-10-08",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks"
66
},

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/UX/PaloAltoNetworks.Cloudngfw/localRulestacks-fqdnlists.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "localRulestacks/fqdnlists",
3-
"apiVersion": "2023-09-01",
3+
"apiVersion": "2025-10-08",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks"
66
},

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/UX/PaloAltoNetworks.Cloudngfw/localRulestacks-localRules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "localRulestacks/localRules",
3-
"apiVersion": "2023-09-01",
3+
"apiVersion": "2025-10-08",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks"
66
},

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/UX/PaloAltoNetworks.Cloudngfw/localRulestacks-prefixlists.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "localRulestacks/prefixlists",
3-
"apiVersion": "2023-09-01",
3+
"apiVersion": "2025-10-08",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks"
66
},

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/UX/PaloAltoNetworks.Cloudngfw/localRulestacks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "localRulestacks",
3-
"apiVersion": "2023-09-01",
3+
"apiVersion": "2025-10-08",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.paloaltonetworks"
66
},

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/custom/autogen-model-cmdlets/New-AzPaloAltoNetworksFrontendSettingObject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.PaloAltoNetworks.Models.FrontendSetting
2626
https://learn.microsoft.com/powershell/module/Az.PaloAltoNetworks/new-azpaloaltonetworksfrontendsettingobject
2727
#>
2828
function New-AzPaloAltoNetworksFrontendSettingObject {
29+
[Microsoft.Azure.PowerShell.Cmdlets.PaloAltoNetworks.ModelCmdletAttribute()]
2930
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.PaloAltoNetworks.Models.FrontendSetting')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(

src/PaloAltoNetworks/PaloAltoNetworks.Autorest/custom/autogen-model-cmdlets/New-AzPaloAltoNetworksIPAddressObject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.PaloAltoNetworks.Models.IPAddress
2626
https://learn.microsoft.com/powershell/module/Az.PaloAltoNetworks/new-azpaloaltonetworksipaddressobject
2727
#>
2828
function New-AzPaloAltoNetworksIPAddressObject {
29+
[Microsoft.Azure.PowerShell.Cmdlets.PaloAltoNetworks.ModelCmdletAttribute()]
2930
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.PaloAltoNetworks.Models.IPAddress')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(

0 commit comments

Comments
 (0)