Skip to content

Commit a1571ac

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-paloaltonetworksngfw-2023-05-05-43045(can only be merged by SDK owner) (Azure#30257)
* code and test * Update CHANGELOG.md --------- Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent d31433d commit a1571ac

File tree

213 files changed

+1837
-974
lines changed

Some content is hidden

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

213 files changed

+1837
-974
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 1.0.0b2 (2023-05-05)
4+
5+
### Features Added
6+
7+
- Added operation group FirewallStatusOperations
8+
9+
### Other Changes
10+
11+
- Fixed annotation about namespace
12+
313
## 1.0.0b1 (2023-05-04)
414

515
* Initial Release
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "2bd9b148ec4232e878641ccbb2bdde671e575add",
2+
"commit": "b2fe1573f29f056930d79b1b8abf2611b98fa81a",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.6",
6+
"@autorest/python@6.4.8",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/paloaltonetworks/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.6 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/paloaltonetworks/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/paloaltonetworks/resource-manager/readme.md"
1111
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4747
self.subscription_id = subscription_id
4848
self.api_version = api_version
4949
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
50-
kwargs.setdefault("sdk_moniker", "mgmt-paloaltonetworks/{}".format(VERSION))
50+
kwargs.setdefault("sdk_moniker", "mgmt-paloaltonetworksngfw/{}".format(VERSION))
5151
self._configure(**kwargs)
5252

5353
def _configure(self, **kwargs: Any) -> None:

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

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .operations import (
1919
CertificateObjectGlobalRulestackOperations,
2020
CertificateObjectLocalRulestackOperations,
21+
FirewallStatusOperations,
2122
FirewallsOperations,
2223
FqdnListGlobalRulestackOperations,
2324
FqdnListLocalRulestackOperations,
@@ -40,38 +41,40 @@ class PaloAltoNetworksNgfwMgmtClient: # pylint: disable=client-accepts-api-vers
4041
"""PaloAltoNetworksNgfwMgmtClient.
4142
4243
:ivar global_rulestack: GlobalRulestackOperations operations
43-
:vartype global_rulestack: azure.mgmt.paloaltonetworks.operations.GlobalRulestackOperations
44+
:vartype global_rulestack: azure.mgmt.paloaltonetworksngfw.operations.GlobalRulestackOperations
4445
:ivar certificate_object_global_rulestack: CertificateObjectGlobalRulestackOperations
4546
operations
4647
:vartype certificate_object_global_rulestack:
47-
azure.mgmt.paloaltonetworks.operations.CertificateObjectGlobalRulestackOperations
48+
azure.mgmt.paloaltonetworksngfw.operations.CertificateObjectGlobalRulestackOperations
4849
:ivar fqdn_list_global_rulestack: FqdnListGlobalRulestackOperations operations
4950
:vartype fqdn_list_global_rulestack:
50-
azure.mgmt.paloaltonetworks.operations.FqdnListGlobalRulestackOperations
51+
azure.mgmt.paloaltonetworksngfw.operations.FqdnListGlobalRulestackOperations
5152
:ivar post_rules: PostRulesOperations operations
52-
:vartype post_rules: azure.mgmt.paloaltonetworks.operations.PostRulesOperations
53+
:vartype post_rules: azure.mgmt.paloaltonetworksngfw.operations.PostRulesOperations
5354
:ivar prefix_list_global_rulestack: PrefixListGlobalRulestackOperations operations
5455
:vartype prefix_list_global_rulestack:
55-
azure.mgmt.paloaltonetworks.operations.PrefixListGlobalRulestackOperations
56+
azure.mgmt.paloaltonetworksngfw.operations.PrefixListGlobalRulestackOperations
5657
:ivar pre_rules: PreRulesOperations operations
57-
:vartype pre_rules: azure.mgmt.paloaltonetworks.operations.PreRulesOperations
58+
:vartype pre_rules: azure.mgmt.paloaltonetworksngfw.operations.PreRulesOperations
5859
:ivar operations: Operations operations
59-
:vartype operations: azure.mgmt.paloaltonetworks.operations.Operations
60+
:vartype operations: azure.mgmt.paloaltonetworksngfw.operations.Operations
6061
:ivar firewalls: FirewallsOperations operations
61-
:vartype firewalls: azure.mgmt.paloaltonetworks.operations.FirewallsOperations
62+
:vartype firewalls: azure.mgmt.paloaltonetworksngfw.operations.FirewallsOperations
6263
:ivar local_rulestacks: LocalRulestacksOperations operations
63-
:vartype local_rulestacks: azure.mgmt.paloaltonetworks.operations.LocalRulestacksOperations
64+
:vartype local_rulestacks: azure.mgmt.paloaltonetworksngfw.operations.LocalRulestacksOperations
65+
:ivar firewall_status: FirewallStatusOperations operations
66+
:vartype firewall_status: azure.mgmt.paloaltonetworksngfw.operations.FirewallStatusOperations
6467
:ivar certificate_object_local_rulestack: CertificateObjectLocalRulestackOperations operations
6568
:vartype certificate_object_local_rulestack:
66-
azure.mgmt.paloaltonetworks.operations.CertificateObjectLocalRulestackOperations
69+
azure.mgmt.paloaltonetworksngfw.operations.CertificateObjectLocalRulestackOperations
6770
:ivar fqdn_list_local_rulestack: FqdnListLocalRulestackOperations operations
6871
:vartype fqdn_list_local_rulestack:
69-
azure.mgmt.paloaltonetworks.operations.FqdnListLocalRulestackOperations
72+
azure.mgmt.paloaltonetworksngfw.operations.FqdnListLocalRulestackOperations
7073
:ivar local_rules: LocalRulesOperations operations
71-
:vartype local_rules: azure.mgmt.paloaltonetworks.operations.LocalRulesOperations
74+
:vartype local_rules: azure.mgmt.paloaltonetworksngfw.operations.LocalRulesOperations
7275
:ivar prefix_list_local_rulestack: PrefixListLocalRulestackOperations operations
7376
:vartype prefix_list_local_rulestack:
74-
azure.mgmt.paloaltonetworks.operations.PrefixListLocalRulestackOperations
77+
azure.mgmt.paloaltonetworksngfw.operations.PrefixListLocalRulestackOperations
7578
:param credential: Credential needed for the client to connect to Azure. Required.
7679
:type credential: ~azure.core.credentials.TokenCredential
7780
:param subscription_id: The ID of the target subscription. Required.
@@ -120,6 +123,7 @@ def __init__(
120123
self.local_rulestacks = LocalRulestacksOperations(
121124
self._client, self._config, self._serialize, self._deserialize
122125
)
126+
self.firewall_status = FirewallStatusOperations(self._client, self._config, self._serialize, self._deserialize)
123127
self.certificate_object_local_rulestack = CertificateObjectLocalRulestackOperations(
124128
self._client, self._config, self._serialize, self._deserialize
125129
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0b2"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **k
4747
self.subscription_id = subscription_id
4848
self.api_version = api_version
4949
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
50-
kwargs.setdefault("sdk_moniker", "mgmt-paloaltonetworks/{}".format(VERSION))
50+
kwargs.setdefault("sdk_moniker", "mgmt-paloaltonetworksngfw/{}".format(VERSION))
5151
self._configure(**kwargs)
5252

5353
def _configure(self, **kwargs: Any) -> None:

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/azure/mgmt/paloaltonetworksngfw/aio/_palo_alto_networks_ngfw_mgmt_client.py

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .operations import (
1919
CertificateObjectGlobalRulestackOperations,
2020
CertificateObjectLocalRulestackOperations,
21+
FirewallStatusOperations,
2122
FirewallsOperations,
2223
FqdnListGlobalRulestackOperations,
2324
FqdnListLocalRulestackOperations,
@@ -40,38 +41,43 @@ class PaloAltoNetworksNgfwMgmtClient: # pylint: disable=client-accepts-api-vers
4041
"""PaloAltoNetworksNgfwMgmtClient.
4142
4243
:ivar global_rulestack: GlobalRulestackOperations operations
43-
:vartype global_rulestack: azure.mgmt.paloaltonetworks.aio.operations.GlobalRulestackOperations
44+
:vartype global_rulestack:
45+
azure.mgmt.paloaltonetworksngfw.aio.operations.GlobalRulestackOperations
4446
:ivar certificate_object_global_rulestack: CertificateObjectGlobalRulestackOperations
4547
operations
4648
:vartype certificate_object_global_rulestack:
47-
azure.mgmt.paloaltonetworks.aio.operations.CertificateObjectGlobalRulestackOperations
49+
azure.mgmt.paloaltonetworksngfw.aio.operations.CertificateObjectGlobalRulestackOperations
4850
:ivar fqdn_list_global_rulestack: FqdnListGlobalRulestackOperations operations
4951
:vartype fqdn_list_global_rulestack:
50-
azure.mgmt.paloaltonetworks.aio.operations.FqdnListGlobalRulestackOperations
52+
azure.mgmt.paloaltonetworksngfw.aio.operations.FqdnListGlobalRulestackOperations
5153
:ivar post_rules: PostRulesOperations operations
52-
:vartype post_rules: azure.mgmt.paloaltonetworks.aio.operations.PostRulesOperations
54+
:vartype post_rules: azure.mgmt.paloaltonetworksngfw.aio.operations.PostRulesOperations
5355
:ivar prefix_list_global_rulestack: PrefixListGlobalRulestackOperations operations
5456
:vartype prefix_list_global_rulestack:
55-
azure.mgmt.paloaltonetworks.aio.operations.PrefixListGlobalRulestackOperations
57+
azure.mgmt.paloaltonetworksngfw.aio.operations.PrefixListGlobalRulestackOperations
5658
:ivar pre_rules: PreRulesOperations operations
57-
:vartype pre_rules: azure.mgmt.paloaltonetworks.aio.operations.PreRulesOperations
59+
:vartype pre_rules: azure.mgmt.paloaltonetworksngfw.aio.operations.PreRulesOperations
5860
:ivar operations: Operations operations
59-
:vartype operations: azure.mgmt.paloaltonetworks.aio.operations.Operations
61+
:vartype operations: azure.mgmt.paloaltonetworksngfw.aio.operations.Operations
6062
:ivar firewalls: FirewallsOperations operations
61-
:vartype firewalls: azure.mgmt.paloaltonetworks.aio.operations.FirewallsOperations
63+
:vartype firewalls: azure.mgmt.paloaltonetworksngfw.aio.operations.FirewallsOperations
6264
:ivar local_rulestacks: LocalRulestacksOperations operations
63-
:vartype local_rulestacks: azure.mgmt.paloaltonetworks.aio.operations.LocalRulestacksOperations
65+
:vartype local_rulestacks:
66+
azure.mgmt.paloaltonetworksngfw.aio.operations.LocalRulestacksOperations
67+
:ivar firewall_status: FirewallStatusOperations operations
68+
:vartype firewall_status:
69+
azure.mgmt.paloaltonetworksngfw.aio.operations.FirewallStatusOperations
6470
:ivar certificate_object_local_rulestack: CertificateObjectLocalRulestackOperations operations
6571
:vartype certificate_object_local_rulestack:
66-
azure.mgmt.paloaltonetworks.aio.operations.CertificateObjectLocalRulestackOperations
72+
azure.mgmt.paloaltonetworksngfw.aio.operations.CertificateObjectLocalRulestackOperations
6773
:ivar fqdn_list_local_rulestack: FqdnListLocalRulestackOperations operations
6874
:vartype fqdn_list_local_rulestack:
69-
azure.mgmt.paloaltonetworks.aio.operations.FqdnListLocalRulestackOperations
75+
azure.mgmt.paloaltonetworksngfw.aio.operations.FqdnListLocalRulestackOperations
7076
:ivar local_rules: LocalRulesOperations operations
71-
:vartype local_rules: azure.mgmt.paloaltonetworks.aio.operations.LocalRulesOperations
77+
:vartype local_rules: azure.mgmt.paloaltonetworksngfw.aio.operations.LocalRulesOperations
7278
:ivar prefix_list_local_rulestack: PrefixListLocalRulestackOperations operations
7379
:vartype prefix_list_local_rulestack:
74-
azure.mgmt.paloaltonetworks.aio.operations.PrefixListLocalRulestackOperations
80+
azure.mgmt.paloaltonetworksngfw.aio.operations.PrefixListLocalRulestackOperations
7581
:param credential: Credential needed for the client to connect to Azure. Required.
7682
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
7783
:param subscription_id: The ID of the target subscription. Required.
@@ -120,6 +126,7 @@ def __init__(
120126
self.local_rulestacks = LocalRulestacksOperations(
121127
self._client, self._config, self._serialize, self._deserialize
122128
)
129+
self.firewall_status = FirewallStatusOperations(self._client, self._config, self._serialize, self._deserialize)
123130
self.certificate_object_local_rulestack = CertificateObjectLocalRulestackOperations(
124131
self._client, self._config, self._serialize, self._deserialize
125132
)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from ._operations import Operations
1616
from ._firewalls_operations import FirewallsOperations
1717
from ._local_rulestacks_operations import LocalRulestacksOperations
18+
from ._firewall_status_operations import FirewallStatusOperations
1819
from ._certificate_object_local_rulestack_operations import CertificateObjectLocalRulestackOperations
1920
from ._fqdn_list_local_rulestack_operations import FqdnListLocalRulestackOperations
2021
from ._local_rules_operations import LocalRulesOperations
@@ -34,6 +35,7 @@
3435
"Operations",
3536
"FirewallsOperations",
3637
"LocalRulestacksOperations",
38+
"FirewallStatusOperations",
3739
"CertificateObjectLocalRulestackOperations",
3840
"FqdnListLocalRulestackOperations",
3941
"LocalRulesOperations",

sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/azure/mgmt/paloaltonetworksngfw/aio/operations/_certificate_object_global_rulestack_operations.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CertificateObjectGlobalRulestackOperations:
4747
**DO NOT** instantiate this class directly.
4848
4949
Instead, you should access the following operations through
50-
:class:`~azure.mgmt.paloaltonetworks.aio.PaloAltoNetworksNgfwMgmtClient`'s
50+
:class:`~azure.mgmt.paloaltonetworksngfw.aio.PaloAltoNetworksNgfwMgmtClient`'s
5151
:attr:`certificate_object_global_rulestack` attribute.
5252
"""
5353

@@ -72,7 +72,7 @@ def list(
7272
:return: An iterator like instance of either CertificateObjectGlobalRulestackResource or the
7373
result of cls(response)
7474
:rtype:
75-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.paloaltonetworks.models.CertificateObjectGlobalRulestackResource]
75+
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.paloaltonetworksngfw.models.CertificateObjectGlobalRulestackResource]
7676
:raises ~azure.core.exceptions.HttpResponseError:
7777
"""
7878
_headers = kwargs.pop("headers", {}) or {}
@@ -159,7 +159,7 @@ async def get(
159159
:type name: str
160160
:keyword callable cls: A custom type or function that will be passed the direct response
161161
:return: CertificateObjectGlobalRulestackResource or the result of cls(response)
162-
:rtype: ~azure.mgmt.paloaltonetworks.models.CertificateObjectGlobalRulestackResource
162+
:rtype: ~azure.mgmt.paloaltonetworksngfw.models.CertificateObjectGlobalRulestackResource
163163
:raises ~azure.core.exceptions.HttpResponseError:
164164
"""
165165
error_map = {
@@ -298,7 +298,8 @@ async def begin_create_or_update(
298298
:param name: certificate name. Required.
299299
:type name: str
300300
:param resource: Resource create parameters. Required.
301-
:type resource: ~azure.mgmt.paloaltonetworks.models.CertificateObjectGlobalRulestackResource
301+
:type resource:
302+
~azure.mgmt.paloaltonetworksngfw.models.CertificateObjectGlobalRulestackResource
302303
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
303304
Default value is "application/json".
304305
:paramtype content_type: str
@@ -313,7 +314,7 @@ async def begin_create_or_update(
313314
:return: An instance of AsyncLROPoller that returns either
314315
CertificateObjectGlobalRulestackResource or the result of cls(response)
315316
:rtype:
316-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.paloaltonetworks.models.CertificateObjectGlobalRulestackResource]
317+
~azure.core.polling.AsyncLROPoller[~azure.mgmt.paloaltonetworksngfw.models.CertificateObjectGlobalRulestackResource]
317318
:raises ~azure.core.exceptions.HttpResponseError:
318319
"""
319320

@@ -349,7 +350,7 @@ async def begin_create_or_update(
349350
:return: An instance of AsyncLROPoller that returns either
350351
CertificateObjectGlobalRulestackResource or the result of cls(response)
351352
:rtype:
352-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.paloaltonetworks.models.CertificateObjectGlobalRulestackResource]
353+
~azure.core.polling.AsyncLROPoller[~azure.mgmt.paloaltonetworksngfw.models.CertificateObjectGlobalRulestackResource]
353354
:raises ~azure.core.exceptions.HttpResponseError:
354355
"""
355356

@@ -369,8 +370,8 @@ async def begin_create_or_update(
369370
:type name: str
370371
:param resource: Resource create parameters. Is either a
371372
CertificateObjectGlobalRulestackResource type or a IO type. Required.
372-
:type resource: ~azure.mgmt.paloaltonetworks.models.CertificateObjectGlobalRulestackResource or
373-
IO
373+
:type resource:
374+
~azure.mgmt.paloaltonetworksngfw.models.CertificateObjectGlobalRulestackResource or IO
374375
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
375376
Default value is None.
376377
:paramtype content_type: str
@@ -385,7 +386,7 @@ async def begin_create_or_update(
385386
:return: An instance of AsyncLROPoller that returns either
386387
CertificateObjectGlobalRulestackResource or the result of cls(response)
387388
:rtype:
388-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.paloaltonetworks.models.CertificateObjectGlobalRulestackResource]
389+
~azure.core.polling.AsyncLROPoller[~azure.mgmt.paloaltonetworksngfw.models.CertificateObjectGlobalRulestackResource]
389390
:raises ~azure.core.exceptions.HttpResponseError:
390391
"""
391392
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})

0 commit comments

Comments
 (0)