Skip to content

Commit cbedc60

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoPR azure-mgmt-nginx]-generated-from-SDK Generation - Python-5433742 (#43314)
* Configurations: 'specification/nginx/Nginx.Management/tspconfig.yaml', API Version: 2025-03-01-preview, SDK Release Type: beta, and CommitSHA: 'aae85aa3e7e4fda95ea2d3abac0ba1d8159db214' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5433742 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update changelog * Configurations: 'specification/nginx/resource-manager/readme.md', API Version: 2025-03-01-preview, SDK Release Type: beta, and CommitSHA: 'd8f039ebd965e40471a082c547b103dd5dc9a33b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5552189 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG.md * Configurations: 'specification/nginx/resource-manager/readme.md', API Version: 2025-03-01-preview, SDK Release Type: beta, and CommitSHA: 'd8f039ebd965e40471a082c547b103dd5dc9a33b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5859431 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG.md --------- Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent e3887b0 commit cbedc60

83 files changed

Lines changed: 5067 additions & 2306 deletions

File tree

Some content is hidden

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

sdk/nginx/azure-mgmt-nginx/CHANGELOG.md

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

3+
## 3.1.0b3 (2026-02-10)
4+
5+
### Features Added
6+
7+
- Model `NginxManagementClient` added parameter `cloud_setting` in method `__init__`
8+
- Client `NginxManagementClient` added operation group `default_waf_policy`
9+
- Client `NginxManagementClient` added operation group `waf_policy`
10+
- Model `AnalysisCreate` added property `root_file`
11+
- Model `AnalysisCreate` added property `files`
12+
- Model `AnalysisCreate` added property `protected_files`
13+
- Model `AnalysisCreate` added property `package`
14+
- Model `AnalysisResult` added property `errors`
15+
- Model `AnalysisResult` added property `diagnostics`
16+
- Model `NginxDeploymentApiKeyRequest` added property `system_data`
17+
- Model `NginxDeploymentApiKeyResponse` added property `system_data`
18+
- Model `NginxDeploymentProperties` added property `web_application_firewall_settings`
19+
- Model `NginxDeploymentProperties` added property `web_application_firewall_status`
20+
- Model `NginxDeploymentUpdateProperties` added property `web_application_firewall_settings`
21+
- Model `ScaleProfile` added property `min`
22+
- Model `ScaleProfile` added property `max`
23+
- Model `WebApplicationFirewallStatus` added property `waf_release`
24+
- Added enum `ActionType`
25+
- Added model `NginxDeploymentDefaultWafPolicyListResponse`
26+
- Added model `NginxDeploymentDefaultWafPolicyProperties`
27+
- Added model `NginxDeploymentWafPolicy`
28+
- Added model `NginxDeploymentWafPolicyApplyingStatus`
29+
- Added enum `NginxDeploymentWafPolicyApplyingStatusCode`
30+
- Added model `NginxDeploymentWafPolicyCompilingStatus`
31+
- Added enum `NginxDeploymentWafPolicyCompilingStatusCode`
32+
- Added model `NginxDeploymentWafPolicyListResponse`
33+
- Added model `NginxDeploymentWafPolicyMetadata`
34+
- Added model `NginxDeploymentWafPolicyMetadataProperties`
35+
- Added model `NginxDeploymentWafPolicyProperties`
36+
- Added model `Operation`
37+
- Added enum `Origin`
38+
- Added model `ProxyResource`
39+
- Added model `Resource`
40+
- Added model `TrackedResource`
41+
- Added model `DefaultWafPolicyOperations`
42+
- Added model `WafPolicyOperations`
43+
44+
### Breaking Changes
45+
46+
- Model `AnalysisCreate` deleted or renamed its instance variable `config`
47+
- Model `AnalysisResult` deleted or renamed its instance variable `data`
48+
- Method `NginxCertificateListResponse.__init__` removed default value `None` from its parameter `value`
49+
- Method `NginxConfigurationListResponse.__init__` removed default value `None` from its parameter `value`
50+
- Method `NginxDeployment.__init__` removed default value `None` from its parameter `location`
51+
- Method `NginxDeploymentApiKeyListResponse.__init__` removed default value `None` from its parameter `value`
52+
- Method `NginxDeploymentListResponse.__init__` removed default value `None` from its parameter `value`
53+
- Model `NginxDeploymentProperties` deleted or renamed its instance variable `nginx_app_protect`
54+
- Model `NginxDeploymentUpdateProperties` deleted or renamed its instance variable `nginx_app_protect`
55+
- Model `ScaleProfile` deleted or renamed its instance variable `capacity`
56+
- Deleted or renamed model `AnalysisCreateConfig`
57+
- Deleted or renamed model `AnalysisResultData`
58+
- Deleted or renamed model `NginxDeploymentPropertiesNginxAppProtect`
59+
- Deleted or renamed model `NginxDeploymentUpdatePropertiesNginxAppProtect`
60+
- Deleted or renamed model `OperationResult`
61+
- Deleted or renamed model `ScaleProfileCapacity`
62+
363
## 3.1.0b2 (2025-02-23)
464

565
### 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/nginx/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/nginx/azure-mgmt-nginx/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Nginx Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.

sdk/nginx/azure-mgmt-nginx/_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-03-01-preview",
3+
"commit": "d8f039ebd965e40471a082c547b103dd5dc9a33b",
4+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
5+
"typespec_src": "specification/nginx/Nginx.Management",
6+
"emitterVersion": "0.52.1",
7+
"autorest": "3.10.2",
8+
"use": [
9+
"@autorest/python@6.48.0",
10+
"@autorest/modelerfour@4.27.0"
11+
],
12+
"autorest_command": "autorest specification/nginx/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.48.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
13+
"readme": "specification/nginx/resource-manager/readme.md"
14+
}
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"CrossLanguagePackageId": null,
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.nginx.models.AnalysisCreate": null,
5+
"azure.mgmt.nginx.models.AnalysisDiagnostic": null,
6+
"azure.mgmt.nginx.models.AnalysisResult": null,
7+
"azure.mgmt.nginx.models.AutoUpgradeProfile": null,
8+
"azure.mgmt.nginx.models.DiagnosticItem": null,
9+
"azure.mgmt.nginx.models.ErrorAdditionalInfo": null,
10+
"azure.mgmt.nginx.models.ErrorDetail": null,
11+
"azure.mgmt.nginx.models.ErrorResponse": null,
12+
"azure.mgmt.nginx.models.IdentityProperties": null,
13+
"azure.mgmt.nginx.models.Resource": null,
14+
"azure.mgmt.nginx.models.ProxyResource": null,
15+
"azure.mgmt.nginx.models.NginxCertificate": null,
16+
"azure.mgmt.nginx.models.NginxCertificateErrorResponseBody": null,
17+
"azure.mgmt.nginx.models.NginxCertificateListResponse": null,
18+
"azure.mgmt.nginx.models.NginxCertificateProperties": null,
19+
"azure.mgmt.nginx.models.NginxConfigurationFile": null,
20+
"azure.mgmt.nginx.models.NginxConfigurationListResponse": null,
21+
"azure.mgmt.nginx.models.NginxConfigurationPackage": null,
22+
"azure.mgmt.nginx.models.NginxConfigurationProtectedFileRequest": null,
23+
"azure.mgmt.nginx.models.NginxConfigurationProtectedFileResponse": null,
24+
"azure.mgmt.nginx.models.NginxConfigurationRequest": null,
25+
"azure.mgmt.nginx.models.NginxConfigurationRequestProperties": null,
26+
"azure.mgmt.nginx.models.NginxConfigurationResponse": null,
27+
"azure.mgmt.nginx.models.NginxConfigurationResponseProperties": null,
28+
"azure.mgmt.nginx.models.TrackedResource": null,
29+
"azure.mgmt.nginx.models.NginxDeployment": null,
30+
"azure.mgmt.nginx.models.NginxDeploymentApiKeyListResponse": null,
31+
"azure.mgmt.nginx.models.NginxDeploymentApiKeyRequest": null,
32+
"azure.mgmt.nginx.models.NginxDeploymentApiKeyRequestProperties": null,
33+
"azure.mgmt.nginx.models.NginxDeploymentApiKeyResponse": null,
34+
"azure.mgmt.nginx.models.NginxDeploymentApiKeyResponseProperties": null,
35+
"azure.mgmt.nginx.models.NginxDeploymentDefaultWafPolicyListResponse": null,
36+
"azure.mgmt.nginx.models.NginxDeploymentDefaultWafPolicyProperties": null,
37+
"azure.mgmt.nginx.models.NginxDeploymentListResponse": null,
38+
"azure.mgmt.nginx.models.NginxDeploymentProperties": null,
39+
"azure.mgmt.nginx.models.NginxDeploymentScalingProperties": null,
40+
"azure.mgmt.nginx.models.NginxDeploymentUpdateParameters": null,
41+
"azure.mgmt.nginx.models.NginxDeploymentUpdateProperties": null,
42+
"azure.mgmt.nginx.models.NginxDeploymentUserProfile": null,
43+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicy": null,
44+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyApplyingStatus": null,
45+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyCompilingStatus": null,
46+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyListResponse": null,
47+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyMetadata": null,
48+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyMetadataProperties": null,
49+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyProperties": null,
50+
"azure.mgmt.nginx.models.NginxFrontendIPConfiguration": null,
51+
"azure.mgmt.nginx.models.NginxLogging": null,
52+
"azure.mgmt.nginx.models.NginxNetworkInterfaceConfiguration": null,
53+
"azure.mgmt.nginx.models.NginxNetworkProfile": null,
54+
"azure.mgmt.nginx.models.NginxPrivateIPAddress": null,
55+
"azure.mgmt.nginx.models.NginxPublicIPAddress": null,
56+
"azure.mgmt.nginx.models.NginxStorageAccount": null,
57+
"azure.mgmt.nginx.models.Operation": null,
58+
"azure.mgmt.nginx.models.OperationDisplay": null,
59+
"azure.mgmt.nginx.models.OperationListResult": null,
60+
"azure.mgmt.nginx.models.ResourceSku": null,
61+
"azure.mgmt.nginx.models.ScaleProfile": null,
62+
"azure.mgmt.nginx.models.SystemData": null,
63+
"azure.mgmt.nginx.models.UserIdentityProperties": null,
64+
"azure.mgmt.nginx.models.WebApplicationFirewallComponentVersions": null,
65+
"azure.mgmt.nginx.models.WebApplicationFirewallPackage": null,
66+
"azure.mgmt.nginx.models.WebApplicationFirewallSettings": null,
67+
"azure.mgmt.nginx.models.WebApplicationFirewallStatus": null,
68+
"azure.mgmt.nginx.models.Origin": null,
69+
"azure.mgmt.nginx.models.ActionType": null,
70+
"azure.mgmt.nginx.models.NginxPrivateIPAllocationMethod": null,
71+
"azure.mgmt.nginx.models.CreatedByType": null,
72+
"azure.mgmt.nginx.models.ProvisioningState": null,
73+
"azure.mgmt.nginx.models.ActivationState": null,
74+
"azure.mgmt.nginx.models.IdentityType": null,
75+
"azure.mgmt.nginx.models.Level": null,
76+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyCompilingStatusCode": null,
77+
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyApplyingStatusCode": null,
78+
"azure.mgmt.nginx.operations.Operations.list": null,
79+
"azure.mgmt.nginx.aio.operations.Operations.list": null,
80+
"azure.mgmt.nginx.operations.DeploymentsOperations.list": null,
81+
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.list": null,
82+
"azure.mgmt.nginx.operations.DeploymentsOperations.list_by_resource_group": null,
83+
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.list_by_resource_group": null,
84+
"azure.mgmt.nginx.operations.DeploymentsOperations.get": null,
85+
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.get": null,
86+
"azure.mgmt.nginx.operations.DeploymentsOperations.begin_create_or_update": null,
87+
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.begin_create_or_update": null,
88+
"azure.mgmt.nginx.operations.DeploymentsOperations.begin_update": null,
89+
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.begin_update": null,
90+
"azure.mgmt.nginx.operations.DeploymentsOperations.begin_delete": null,
91+
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.begin_delete": null,
92+
"azure.mgmt.nginx.operations.ApiKeysOperations.list": null,
93+
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.list": null,
94+
"azure.mgmt.nginx.operations.ApiKeysOperations.get": null,
95+
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.get": null,
96+
"azure.mgmt.nginx.operations.ApiKeysOperations.create_or_update": null,
97+
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.create_or_update": null,
98+
"azure.mgmt.nginx.operations.ApiKeysOperations.delete": null,
99+
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.delete": null,
100+
"azure.mgmt.nginx.operations.CertificatesOperations.list": null,
101+
"azure.mgmt.nginx.aio.operations.CertificatesOperations.list": null,
102+
"azure.mgmt.nginx.operations.CertificatesOperations.get": null,
103+
"azure.mgmt.nginx.aio.operations.CertificatesOperations.get": null,
104+
"azure.mgmt.nginx.operations.CertificatesOperations.begin_create_or_update": null,
105+
"azure.mgmt.nginx.aio.operations.CertificatesOperations.begin_create_or_update": null,
106+
"azure.mgmt.nginx.operations.CertificatesOperations.begin_delete": null,
107+
"azure.mgmt.nginx.aio.operations.CertificatesOperations.begin_delete": null,
108+
"azure.mgmt.nginx.operations.ConfigurationsOperations.list": null,
109+
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.list": null,
110+
"azure.mgmt.nginx.operations.ConfigurationsOperations.get": null,
111+
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.get": null,
112+
"azure.mgmt.nginx.operations.ConfigurationsOperations.begin_create_or_update": null,
113+
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.begin_create_or_update": null,
114+
"azure.mgmt.nginx.operations.ConfigurationsOperations.begin_delete": null,
115+
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.begin_delete": null,
116+
"azure.mgmt.nginx.operations.ConfigurationsOperations.analysis": null,
117+
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.analysis": null,
118+
"azure.mgmt.nginx.operations.DefaultWafPolicyOperations.list": null,
119+
"azure.mgmt.nginx.aio.operations.DefaultWafPolicyOperations.list": null,
120+
"azure.mgmt.nginx.operations.WafPolicyOperations.list": null,
121+
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.list": null,
122+
"azure.mgmt.nginx.operations.WafPolicyOperations.get": null,
123+
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.get": null,
124+
"azure.mgmt.nginx.operations.WafPolicyOperations.begin_create": null,
125+
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.begin_create": null,
126+
"azure.mgmt.nginx.operations.WafPolicyOperations.begin_delete": null,
127+
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.begin_delete": null
128+
}
129+
}
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/nginx/azure-mgmt-nginx/azure/mgmt/nginx/_configuration.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
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

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -27,13 +28,22 @@ class NginxManagementClientConfiguration: # pylint: disable=too-many-instance-a
2728
:type credential: ~azure.core.credentials.TokenCredential
2829
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2930
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
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-03-01-preview". Note that overriding
3135
this default value may result in unsupported behavior.
3236
:paramtype api_version: str
3337
"""
3438

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-11-01-preview")
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-03-01-preview")
3747

3848
if credential is None:
3949
raise ValueError("Parameter 'credential' must not be None.")
@@ -42,6 +52,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4252

4353
self.credential = credential
4454
self.subscription_id = subscription_id
55+
self.cloud_setting = cloud_setting
4556
self.api_version = api_version
4657
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4758
kwargs.setdefault("sdk_moniker", "mgmt-nginx/{}".format(VERSION))

0 commit comments

Comments
 (0)