Skip to content

Migrate PaloAltoNetworks from generation to main #23719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

183 changes: 20 additions & 163 deletions src/PaloAltoNetworks/PaloAltoNetworks.Autorest/Az.PaloAltoNetworks.psd1
Original file line number Diff line number Diff line change
@@ -1,166 +1,23 @@
#
# Module manifest for module 'Az.PaloAltoNetworks'
#
# Generated by: Microsoft Corporation
#
# Generated on: 7/24/2023
#

@{

# Script module or binary module file associated with this manifest.
RootModule = './Az.PaloAltoNetworks.psm1'

# Version number of this module.
ModuleVersion = '0.2.0'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'

# ID used to uniquely identify this module
GUID = '787ef00f-9345-469d-9156-0654cdc69286'

# Author of this module
Author = 'Microsoft Corporation'

# Company or vendor of this module
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell: PaloAltoNetworks cmdlets'

# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '5.1'

# Name of the PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
DotNetFrameworkVersion = '4.7.2'

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# ClrVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.4'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = './bin/Az.PaloAltoNetworks.private.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = './Az.PaloAltoNetworks.format.ps1xml'

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# 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.
FunctionsToExport = 'Get-AzPaloAltoNetworksCertificateObjectLocalRulestack',
'Get-AzPaloAltoNetworksFirewall',
'Get-AzPaloAltoNetworksFirewallLogProfile',
'Get-AzPaloAltoNetworksFirewallStatus',
'Get-AzPaloAltoNetworksFqdnListLocalRulestack',
'Get-AzPaloAltoNetworksLocalRule',
'Get-AzPaloAltoNetworksLocalRulestack',
'Get-AzPaloAltoNetworksLocalRulestackAppId',
'Get-AzPaloAltoNetworksLocalRulestackChangeLog',
'Get-AzPaloAltoNetworksLocalRulestackFirewall',
'Get-AzPaloAltoNetworksLocalRulestackSupportInfo',
'Get-AzPaloAltoNetworksPrefixListLocalRulestack',
'Invoke-AzPaloAltoNetworksCommitLocalRulestack',
'Invoke-AzPaloAltoNetworksRevertLocalRulestack',
'New-AzPaloAltoNetworksCertificateObjectLocalRulestack',
'New-AzPaloAltoNetworksFirewall',
'New-AzPaloAltoNetworksFqdnListLocalRulestack',
'New-AzPaloAltoNetworksFrontendSettingObject',
'New-AzPaloAltoNetworksIPAddressObject',
'New-AzPaloAltoNetworksLocalRule',
'New-AzPaloAltoNetworksLocalRulestack',
'New-AzPaloAltoNetworksPrefixListLocalRulestack',
'New-AzPaloAltoNetworksProfileObject',
'New-AzPaloAltoNetworksTagInfoObject',
'Remove-AzPaloAltoNetworksCertificateObjectLocalRulestack',
'Remove-AzPaloAltoNetworksFirewall',
'Remove-AzPaloAltoNetworksFqdnListLocalRulestack',
'Remove-AzPaloAltoNetworksLocalRule',
'Remove-AzPaloAltoNetworksLocalRulestack',
'Remove-AzPaloAltoNetworksPrefixListLocalRulestack',
'Reset-AzPaloAltoNetworksLocalRuleCounter',
'Save-AzPaloAltoNetworksFirewallLogProfile',
'Update-AzPaloAltoNetworksFirewall',
'Update-AzPaloAltoNetworksLocalRuleCounter',
'Update-AzPaloAltoNetworksLocalRulestack'

# 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.
CmdletsToExport = @()

# Variables to export from this module
# VariablesToExport = @()

# 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.
AliasesToExport = '*'

# DSC resources to export from this module
# DscResourcesToExport = @()

# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# 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.
PrivateData = @{

GUID = '787ef00f-9345-469d-9156-0654cdc69286'
RootModule = './Az.PaloAltoNetworks.psm1'
ModuleVersion = '0.2.0'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Copyright = 'Microsoft Corporation. All rights reserved.'
Description = 'Microsoft Azure PowerShell: PaloAltoNetworks cmdlets'
PowerShellVersion = '5.1'
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.PaloAltoNetworks.private.dll'
FormatsToProcess = './Az.PaloAltoNetworks.format.ps1xml'
FunctionsToExport = 'Get-AzPaloAltoNetworksCertificateObjectLocalRulestack', 'Get-AzPaloAltoNetworksFirewall', 'Get-AzPaloAltoNetworksFirewallLogProfile', 'Get-AzPaloAltoNetworksFirewallStatus', 'Get-AzPaloAltoNetworksFqdnListLocalRulestack', 'Get-AzPaloAltoNetworksLocalRule', 'Get-AzPaloAltoNetworksLocalRulestack', 'Get-AzPaloAltoNetworksLocalRulestackAppId', 'Get-AzPaloAltoNetworksLocalRulestackChangeLog', 'Get-AzPaloAltoNetworksLocalRulestackFirewall', 'Get-AzPaloAltoNetworksLocalRulestackSupportInfo', 'Get-AzPaloAltoNetworksPrefixListLocalRulestack', 'Invoke-AzPaloAltoNetworksCommitLocalRulestack', 'Invoke-AzPaloAltoNetworksRevertLocalRulestack', 'New-AzPaloAltoNetworksCertificateObjectLocalRulestack', 'New-AzPaloAltoNetworksFirewall', 'New-AzPaloAltoNetworksFqdnListLocalRulestack', 'New-AzPaloAltoNetworksFrontendSettingObject', 'New-AzPaloAltoNetworksIPAddressObject', 'New-AzPaloAltoNetworksLocalRule', 'New-AzPaloAltoNetworksLocalRulestack', 'New-AzPaloAltoNetworksPrefixListLocalRulestack', 'New-AzPaloAltoNetworksProfileObject', 'New-AzPaloAltoNetworksTagInfoObject', 'Remove-AzPaloAltoNetworksCertificateObjectLocalRulestack', 'Remove-AzPaloAltoNetworksFirewall', 'Remove-AzPaloAltoNetworksFqdnListLocalRulestack', 'Remove-AzPaloAltoNetworksLocalRule', 'Remove-AzPaloAltoNetworksLocalRulestack', 'Remove-AzPaloAltoNetworksPrefixListLocalRulestack', 'Reset-AzPaloAltoNetworksLocalRuleCounter', 'Save-AzPaloAltoNetworksFirewallLogProfile', 'Update-AzPaloAltoNetworksFirewall', 'Update-AzPaloAltoNetworksLocalRuleCounter', 'Update-AzPaloAltoNetworksLocalRulestack'
PrivateData = @{
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = 'Azure','ResourceManager','ARM','PSModule','PaloAltoNetworks'

# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'

# A URL to the main website for this project.
ProjectUri = 'https://github.com/Azure/azure-powershell'

# A URL to an icon representing this module.
# IconUri = ''

# ReleaseNotes of this module
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''

# Flag to indicate whether the module requires explicit user acceptance for install/update/save
# RequireLicenseAcceptance = $false

# External dependent modules of this module
# ExternalModuleDependencies = @()

} # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'PaloAltoNetworks'
LicenseUri = 'https://aka.ms/azps-license'
ProjectUri = 'https://github.com/Azure/azure-powershell'
ReleaseNotes = ''
}
}
}

27 changes: 15 additions & 12 deletions src/PaloAltoNetworks/PaloAltoNetworks.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,16 @@ For information on how to develop for `Az.PaloAltoNetworks`, see [how-to.md](how
> see https://aka.ms/autorest

``` yaml
branch: 53f6cced1504a476ba001c9d7250ab195e9c299b
commit: 1e00aa55113c2a47b26cf588b732758071d6f05f
require:
- $(this-folder)/../readme.azure.noprofile.md
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2022-08-29/PaloAltoNetworks.Cloudngfw.json
- $(repo)/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/PaloAltoNetworks.Cloudngfw.json

title: PaloAltoNetworks
module-version: 0.2.0
subject-prefix: $(service-name)

identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true

directive:
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/commit"].post.responses
Expand All @@ -58,7 +54,7 @@ directive:
"default": {
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
"schema": {
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/53f6cced1504a476ba001c9d7250ab195e9c299b/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/1e00aa55113c2a47b26cf588b732758071d6f05f/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
}
Expand All @@ -76,18 +72,21 @@ directive:
"default": {
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
"schema": {
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/53f6cced1504a476ba001c9d7250ab195e9c299b/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/1e00aa55113c2a47b26cf588b732758071d6f05f/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
}

- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Save$|^SaveViaIdentity$
variant: ^(Create|Update|Save)(?!.*?Expanded)
remove: true
- where:
verb: Set
variant: ^CreateViaIdentity.*$
remove: true

- where:
verb: Set
remove: true
# # Some of the parameters are of type Object and need to be expanded into a command for the convenience of the user
# # The following are commented out and their generated cmdlets may be renamed and custom logic
# # Do not delete this code
Expand Down Expand Up @@ -153,7 +152,11 @@ directive:
- where:
subject: RevertGlobalRulestack
remove: true

# Remove update cmdlets generated from get->put, since service team does not need them now.
- where:
verb: Update
subject: ^CertificateObjectLocalRulestack$|^FqdnListLocalRulestack$|^PrefixListLocalRulestack$|^LocalRule$
remove: true
- where:
parameter-name: StackName
set:
Expand Down
Loading