Skip to content

Commit

Permalink
CodeGen from PR 27681 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5746014d040bf3c8ac19243e481e5c03d92d2a53 into 39608b2c1c7b7dc06cb99abb9d733665cfce9a75
  • Loading branch information
SDKAuto committed Feb 8, 2024
1 parent 1e03df0 commit 79be895
Show file tree
Hide file tree
Showing 202 changed files with 1,646 additions and 269 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "7c906b15744aaf7b782dfb82ccefcbef05cbf20b",
"commit": "04bde2de5bf2b6de53072a19323baab7db352751",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/paloaltonetworks/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"readme": "specification/paloaltonetworks/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class PaloAltoNetworksNgfwMgmtClientConfiguration(Configuration): # pylint: dis
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-02-07-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(PaloAltoNetworksNgfwMgmtClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-09-01")
api_version: str = kwargs.pop("api_version", "2024-02-07-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
LocalRulesOperations,
LocalRulestacksOperations,
Operations,
PaloAltoNetworksCloudngfwOperations,
PostRulesOperations,
PreRulesOperations,
PrefixListGlobalRulestackOperations,
Expand Down Expand Up @@ -58,6 +59,9 @@ class PaloAltoNetworksNgfwMgmtClient: # pylint: disable=client-accepts-api-vers
:vartype pre_rules: azure.mgmt.paloaltonetworksngfw.operations.PreRulesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.paloaltonetworksngfw.operations.Operations
:ivar palo_alto_networks_cloudngfw: PaloAltoNetworksCloudngfwOperations operations
:vartype palo_alto_networks_cloudngfw:
azure.mgmt.paloaltonetworksngfw.operations.PaloAltoNetworksCloudngfwOperations
:ivar firewalls: FirewallsOperations operations
:vartype firewalls: azure.mgmt.paloaltonetworksngfw.operations.FirewallsOperations
:ivar local_rulestacks: LocalRulestacksOperations operations
Expand All @@ -81,8 +85,8 @@ class PaloAltoNetworksNgfwMgmtClient: # pylint: disable=client-accepts-api-vers
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-02-07-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -119,6 +123,9 @@ def __init__(
)
self.pre_rules = PreRulesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.palo_alto_networks_cloudngfw = PaloAltoNetworksCloudngfwOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewalls = FirewallsOperations(self._client, self._config, self._serialize, self._deserialize)
self.local_rulestacks = LocalRulestacksOperations(
self._client, self._config, self._serialize, self._deserialize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class PaloAltoNetworksNgfwMgmtClientConfiguration(Configuration): # pylint: dis
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-02-07-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(PaloAltoNetworksNgfwMgmtClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-09-01")
api_version: str = kwargs.pop("api_version", "2024-02-07-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
LocalRulesOperations,
LocalRulestacksOperations,
Operations,
PaloAltoNetworksCloudngfwOperations,
PostRulesOperations,
PreRulesOperations,
PrefixListGlobalRulestackOperations,
Expand Down Expand Up @@ -59,6 +60,9 @@ class PaloAltoNetworksNgfwMgmtClient: # pylint: disable=client-accepts-api-vers
:vartype pre_rules: azure.mgmt.paloaltonetworksngfw.aio.operations.PreRulesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.paloaltonetworksngfw.aio.operations.Operations
:ivar palo_alto_networks_cloudngfw: PaloAltoNetworksCloudngfwOperations operations
:vartype palo_alto_networks_cloudngfw:
azure.mgmt.paloaltonetworksngfw.aio.operations.PaloAltoNetworksCloudngfwOperations
:ivar firewalls: FirewallsOperations operations
:vartype firewalls: azure.mgmt.paloaltonetworksngfw.aio.operations.FirewallsOperations
:ivar local_rulestacks: LocalRulestacksOperations operations
Expand All @@ -84,8 +88,8 @@ class PaloAltoNetworksNgfwMgmtClient: # pylint: disable=client-accepts-api-vers
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-02-07-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -122,6 +126,9 @@ def __init__(
)
self.pre_rules = PreRulesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.palo_alto_networks_cloudngfw = PaloAltoNetworksCloudngfwOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewalls = FirewallsOperations(self._client, self._config, self._serialize, self._deserialize)
self.local_rulestacks = LocalRulestacksOperations(
self._client, self._config, self._serialize, self._deserialize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from ._prefix_list_global_rulestack_operations import PrefixListGlobalRulestackOperations
from ._pre_rules_operations import PreRulesOperations
from ._operations import Operations
from ._palo_alto_networks_cloudngfw_operations import PaloAltoNetworksCloudngfwOperations
from ._firewalls_operations import FirewallsOperations
from ._local_rulestacks_operations import LocalRulestacksOperations
from ._firewall_status_operations import FirewallStatusOperations
Expand All @@ -33,6 +34,7 @@
"PrefixListGlobalRulestackOperations",
"PreRulesOperations",
"Operations",
"PaloAltoNetworksCloudngfwOperations",
"FirewallsOperations",
"LocalRulestacksOperations",
"FirewallStatusOperations",
Expand Down
Loading

0 comments on commit 79be895

Please sign in to comment.