Skip to content

Commit 4f07ea0

Browse files
azure-sdkmsyycChenxiJiang333
authored
[AutoPR azure-mgmt-paloaltonetworksngfw]-generated-from-SDK Generation - Python-5516768 (#43697)
* Configurations: 'specification/paloaltonetworks/PaloAltoNetworks.Management/tspconfig.yaml', API Version: 2025-10-08, SDK Release Type: stable, and CommitSHA: '8e3e3baa2523e17becb3d7032eb909aba12b7f2c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5516768 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * add live test decorator * update changelog * update testcases * Update CHANGELOG.md * Update CHANGELOG.md * Configurations: 'specification/paloaltonetworks/resource-manager/readme.md', API Version: 2025-10-08, SDK Release Type: stable, and CommitSHA: 'ea59de0de01a84fdea241f85e3cb518c0339c9ba' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5562526 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update changelog * Update CHANGELOG.md * Update version from 2.0.0 to 1.1.0 --------- Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent a6ec9bb commit 4f07ea0

File tree

293 files changed

+14298
-5875
lines changed

Some content is hidden

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

293 files changed

+14298
-5875
lines changed

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Release History
22

3+
## 1.1.0 (2025-11-12)
4+
5+
### Features Added
6+
7+
- Model `PaloAltoNetworksNgfwMgmtClient` added parameter `cloud_setting` in method `__init__`
8+
- Client `PaloAltoNetworksNgfwMgmtClient` added operation group `palo_alto_networks_cloudngfw_operations`
9+
- Client `PaloAltoNetworksNgfwMgmtClient` added operation group `metrics_object_firewall`
10+
- Model `FirewallResource` added property `is_strata_cloud_managed`
11+
- Model `FirewallResource` added property `strata_cloud_manager_config`
12+
- Model `FirewallResourceUpdateProperties` added property `is_strata_cloud_managed`
13+
- Model `FirewallResourceUpdateProperties` added property `strata_cloud_manager_config`
14+
- Model `FirewallStatusResource` added property `is_strata_cloud_managed`
15+
- Model `FirewallStatusResource` added property `strata_cloud_manager_info`
16+
- Model `NetworkProfile` added property `trusted_ranges`
17+
- Model `NetworkProfile` added property `private_source_nat_rules_destination`
18+
- Added model `CloudManagerTenantList`
19+
- Added enum `EnableStatus`
20+
- Added model `MetricsObjectFirewallResource`
21+
- Added model `MetricsObjectFirewallResourceListResult`
22+
- Added model `ProductSerialNumberRequestStatus`
23+
- Added model `ProductSerialNumberStatus`
24+
- Added enum `ProductSerialStatusValues`
25+
- Added enum `RegistrationStatus`
26+
- Added model `StrataCloudManagerConfig`
27+
- Added model `StrataCloudManagerInfo`
28+
- Added model `SupportInfoModel`
29+
- Added operation group `MetricsObjectFirewallOperations`
30+
- Added operation group `PaloAltoNetworksCloudngfwOperationsOperations`
31+
332
## 2.0.0b1 (2023-11-20)
433

534
### Features Added
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include _meta.json
2-
recursive-include tests *.py *.json
3-
recursive-include samples *.py *.md
41
include *.md
5-
include azure/__init__.py
6-
include azure/mgmt/__init__.py
72
include LICENSE
83
include azure/mgmt/paloaltonetworksngfw/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/_meta.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"apiVersion": "2025-10-08",
3+
"commit": "ea59de0de01a84fdea241f85e3cb518c0339c9ba",
4+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
5+
"typespec_src": "specification/paloaltonetworks/PaloAltoNetworks.Management",
6+
"emitterVersion": "0.52.2",
7+
"autorest": "3.10.2",
8+
"use": [
9+
"@autorest/python@6.41.4",
10+
"@autorest/modelerfour@4.27.0"
11+
],
12+
"autorest_command": "autorest specification/paloaltonetworks/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.41.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
13+
"readme": "specification/paloaltonetworks/resource-manager/readme.md"
14+
}

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/apiview-properties.json

Lines changed: 320 additions & 0 deletions
Large diffs are not rendered by default.

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/azure/mgmt/paloaltonetworksngfw/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._palo_alto_networks_ngfw_mgmt_client import PaloAltoNetworksNgfwMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._palo_alto_networks_ngfw_mgmt_client import PaloAltoNetworksNgfwMgmtClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"PaloAltoNetworksNgfwMgmtClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/azure/mgmt/paloaltonetworksngfw/_configuration.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

11-
from azure.core.configuration import Configuration
1211
from azure.core.pipeline import policies
1312
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1413

1514
from ._version import VERSION
1615

1716
if TYPE_CHECKING:
18-
# pylint: disable=unused-import,ungrouped-imports
17+
from azure.core import AzureClouds
1918
from azure.core.credentials import TokenCredential
2019

2120

22-
class PaloAltoNetworksNgfwMgmtClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
21+
class PaloAltoNetworksNgfwMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
2322
"""Configuration for PaloAltoNetworksNgfwMgmtClient.
2423
2524
Note that all parameters used to create this instance are saved as instance
@@ -29,14 +28,22 @@ class PaloAltoNetworksNgfwMgmtClientConfiguration(Configuration): # pylint: dis
2928
:type credential: ~azure.core.credentials.TokenCredential
3029
:param subscription_id: The ID of the target subscription. Required.
3130
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
31+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
32+
None.
33+
:type cloud_setting: ~azure.core.AzureClouds
34+
:keyword api_version: Api Version. Default value is "2025-10-08". Note that overriding this
3335
default value may result in unsupported behavior.
3436
:paramtype api_version: str
3537
"""
3638

37-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
38-
super(PaloAltoNetworksNgfwMgmtClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2023-09-01")
39+
def __init__(
40+
self,
41+
credential: "TokenCredential",
42+
subscription_id: str,
43+
cloud_setting: Optional["AzureClouds"] = None,
44+
**kwargs: Any
45+
) -> None:
46+
api_version: str = kwargs.pop("api_version", "2025-10-08")
4047

4148
if credential is None:
4249
raise ValueError("Parameter 'credential' must not be None.")
@@ -45,9 +52,11 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4552

4653
self.credential = credential
4754
self.subscription_id = subscription_id
55+
self.cloud_setting = cloud_setting
4856
self.api_version = api_version
4957
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
5058
kwargs.setdefault("sdk_moniker", "mgmt-paloaltonetworksngfw/{}".format(VERSION))
59+
self.polling_interval = kwargs.get("polling_interval", 30)
5160
self._configure(**kwargs)
5261

5362
def _configure(self, **kwargs: Any) -> None:
@@ -56,9 +65,9 @@ def _configure(self, **kwargs: Any) -> None:
5665
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
5766
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
5867
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
59-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
6068
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
6169
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
70+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
6271
self.authentication_policy = kwargs.get("authentication_policy")
6372
if self.credential and not self.authentication_policy:
6473
self.authentication_policy = ARMChallengeAuthenticationPolicy(

0 commit comments

Comments
 (0)