Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions sdk/nginx/azure-mgmt-nginx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# Release History

## 3.1.0b3 (2025-11-10)

### Features Added

- Model `NginxManagementClient` added parameter `cloud_setting` in method `__init__`
- Client `NginxManagementClient` added operation group `default_waf_policy`
- Client `NginxManagementClient` added operation group `waf_policy`
- Model `AnalysisCreate` added property `root_file`
- Model `AnalysisCreate` added property `files`
- Model `AnalysisCreate` added property `protected_files`
- Model `AnalysisCreate` added property `package`
- Model `AnalysisResult` added property `errors`
- Model `AnalysisResult` added property `diagnostics`
- Model `NginxDeploymentApiKeyRequest` added property `system_data`
- Model `NginxDeploymentApiKeyResponse` added property `system_data`
- Model `NginxDeploymentProperties` added property `web_application_firewall_settings`
- Model `NginxDeploymentProperties` added property `web_application_firewall_status`
- Model `NginxDeploymentUpdateProperties` added property `web_application_firewall_settings`
- Model `ScaleProfile` added property `min`
- Model `ScaleProfile` added property `max`
- Model `WebApplicationFirewallStatus` added property `waf_release`
- Added enum `ActionType`
- Added model `NginxDeploymentDefaultWafPolicyListResponse`
- Added model `NginxDeploymentDefaultWafPolicyProperties`
- Added model `NginxDeploymentWafPolicy`
- Added model `NginxDeploymentWafPolicyApplyingStatus`
- Added enum `NginxDeploymentWafPolicyApplyingStatusCode`
- Added model `NginxDeploymentWafPolicyCompilingStatus`
- Added enum `NginxDeploymentWafPolicyCompilingStatusCode`
- Added model `NginxDeploymentWafPolicyListResponse`
- Added model `NginxDeploymentWafPolicyMetadata`
- Added model `NginxDeploymentWafPolicyMetadataProperties`
- Added model `NginxDeploymentWafPolicyProperties`
- Added model `Operation`
- Added enum `Origin`
- Added model `ProxyResource`
- Added model `Resource`
- Added model `TrackedResource`
- Added operation group `DefaultWafPolicyOperations`
- Added operation group `WafPolicyOperations`

### Breaking Changes

- Model `AnalysisCreate` deleted or renamed its instance variable `config`
- Model `AnalysisResult` deleted or renamed its instance variable `data`
- Model `NginxDeploymentProperties` deleted or renamed its instance variable `nginx_app_protect`
- Model `NginxDeploymentUpdateProperties` deleted or renamed its instance variable `nginx_app_protect`
- Model `ScaleProfile` deleted or renamed its instance variable `capacity`
- Deleted or renamed model `AnalysisCreateConfig`
- Deleted or renamed model `AnalysisResultData`
- Deleted or renamed model `NginxDeploymentPropertiesNginxAppProtect`
- Deleted or renamed model `NginxDeploymentUpdatePropertiesNginxAppProtect`
- Deleted or renamed model `OperationResult`
- Deleted or renamed model `ScaleProfileCapacity`

## 3.1.0b2 (2025-02-23)

### Features Added
Expand Down
9 changes: 4 additions & 5 deletions sdk/nginx/azure-mgmt-nginx/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include LICENSE
include azure/mgmt/nginx/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
6 changes: 3 additions & 3 deletions sdk/nginx/azure-mgmt-nginx/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

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

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

### Prerequisites

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

### Install the package
Expand All @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

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

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
11 changes: 0 additions & 11 deletions sdk/nginx/azure-mgmt-nginx/_meta.json

This file was deleted.

14 changes: 14 additions & 0 deletions sdk/nginx/azure-mgmt-nginx/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"apiVersion": "2025-03-01-preview",
"commit": "d8f039ebd965e40471a082c547b103dd5dc9a33b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/nginx/Nginx.Management",
"emitterVersion": "0.52.1",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/nginx/resource-manager/readme.md"
}
129 changes: 129 additions & 0 deletions sdk/nginx/azure-mgmt-nginx/apiview-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"CrossLanguagePackageId": null,
"CrossLanguageDefinitionId": {
"azure.mgmt.nginx.models.AnalysisCreate": null,
"azure.mgmt.nginx.models.AnalysisDiagnostic": null,
"azure.mgmt.nginx.models.AnalysisResult": null,
"azure.mgmt.nginx.models.AutoUpgradeProfile": null,
"azure.mgmt.nginx.models.DiagnosticItem": null,
"azure.mgmt.nginx.models.ErrorAdditionalInfo": null,
"azure.mgmt.nginx.models.ErrorDetail": null,
"azure.mgmt.nginx.models.ErrorResponse": null,
"azure.mgmt.nginx.models.IdentityProperties": null,
"azure.mgmt.nginx.models.Resource": null,
"azure.mgmt.nginx.models.ProxyResource": null,
"azure.mgmt.nginx.models.NginxCertificate": null,
"azure.mgmt.nginx.models.NginxCertificateErrorResponseBody": null,
"azure.mgmt.nginx.models.NginxCertificateListResponse": null,
"azure.mgmt.nginx.models.NginxCertificateProperties": null,
"azure.mgmt.nginx.models.NginxConfigurationFile": null,
"azure.mgmt.nginx.models.NginxConfigurationListResponse": null,
"azure.mgmt.nginx.models.NginxConfigurationPackage": null,
"azure.mgmt.nginx.models.NginxConfigurationProtectedFileRequest": null,
"azure.mgmt.nginx.models.NginxConfigurationProtectedFileResponse": null,
"azure.mgmt.nginx.models.NginxConfigurationRequest": null,
"azure.mgmt.nginx.models.NginxConfigurationRequestProperties": null,
"azure.mgmt.nginx.models.NginxConfigurationResponse": null,
"azure.mgmt.nginx.models.NginxConfigurationResponseProperties": null,
"azure.mgmt.nginx.models.TrackedResource": null,
"azure.mgmt.nginx.models.NginxDeployment": null,
"azure.mgmt.nginx.models.NginxDeploymentApiKeyListResponse": null,
"azure.mgmt.nginx.models.NginxDeploymentApiKeyRequest": null,
"azure.mgmt.nginx.models.NginxDeploymentApiKeyRequestProperties": null,
"azure.mgmt.nginx.models.NginxDeploymentApiKeyResponse": null,
"azure.mgmt.nginx.models.NginxDeploymentApiKeyResponseProperties": null,
"azure.mgmt.nginx.models.NginxDeploymentDefaultWafPolicyListResponse": null,
"azure.mgmt.nginx.models.NginxDeploymentDefaultWafPolicyProperties": null,
"azure.mgmt.nginx.models.NginxDeploymentListResponse": null,
"azure.mgmt.nginx.models.NginxDeploymentProperties": null,
"azure.mgmt.nginx.models.NginxDeploymentScalingProperties": null,
"azure.mgmt.nginx.models.NginxDeploymentUpdateParameters": null,
"azure.mgmt.nginx.models.NginxDeploymentUpdateProperties": null,
"azure.mgmt.nginx.models.NginxDeploymentUserProfile": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicy": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyApplyingStatus": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyCompilingStatus": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyListResponse": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyMetadata": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyMetadataProperties": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyProperties": null,
"azure.mgmt.nginx.models.NginxFrontendIPConfiguration": null,
"azure.mgmt.nginx.models.NginxLogging": null,
"azure.mgmt.nginx.models.NginxNetworkInterfaceConfiguration": null,
"azure.mgmt.nginx.models.NginxNetworkProfile": null,
"azure.mgmt.nginx.models.NginxPrivateIPAddress": null,
"azure.mgmt.nginx.models.NginxPublicIPAddress": null,
"azure.mgmt.nginx.models.NginxStorageAccount": null,
"azure.mgmt.nginx.models.Operation": null,
"azure.mgmt.nginx.models.OperationDisplay": null,
"azure.mgmt.nginx.models.OperationListResult": null,
"azure.mgmt.nginx.models.ResourceSku": null,
"azure.mgmt.nginx.models.ScaleProfile": null,
"azure.mgmt.nginx.models.SystemData": null,
"azure.mgmt.nginx.models.UserIdentityProperties": null,
"azure.mgmt.nginx.models.WebApplicationFirewallComponentVersions": null,
"azure.mgmt.nginx.models.WebApplicationFirewallPackage": null,
"azure.mgmt.nginx.models.WebApplicationFirewallSettings": null,
"azure.mgmt.nginx.models.WebApplicationFirewallStatus": null,
"azure.mgmt.nginx.models.Origin": null,
"azure.mgmt.nginx.models.ActionType": null,
"azure.mgmt.nginx.models.NginxPrivateIPAllocationMethod": null,
"azure.mgmt.nginx.models.CreatedByType": null,
"azure.mgmt.nginx.models.ProvisioningState": null,
"azure.mgmt.nginx.models.ActivationState": null,
"azure.mgmt.nginx.models.IdentityType": null,
"azure.mgmt.nginx.models.Level": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyCompilingStatusCode": null,
"azure.mgmt.nginx.models.NginxDeploymentWafPolicyApplyingStatusCode": null,
"azure.mgmt.nginx.operations.Operations.list": null,
"azure.mgmt.nginx.aio.operations.Operations.list": null,
"azure.mgmt.nginx.operations.DeploymentsOperations.list": null,
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.list": null,
"azure.mgmt.nginx.operations.DeploymentsOperations.list_by_resource_group": null,
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.list_by_resource_group": null,
"azure.mgmt.nginx.operations.DeploymentsOperations.get": null,
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.get": null,
"azure.mgmt.nginx.operations.DeploymentsOperations.begin_create_or_update": null,
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.begin_create_or_update": null,
"azure.mgmt.nginx.operations.DeploymentsOperations.begin_update": null,
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.begin_update": null,
"azure.mgmt.nginx.operations.DeploymentsOperations.begin_delete": null,
"azure.mgmt.nginx.aio.operations.DeploymentsOperations.begin_delete": null,
"azure.mgmt.nginx.operations.ApiKeysOperations.list": null,
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.list": null,
"azure.mgmt.nginx.operations.ApiKeysOperations.get": null,
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.get": null,
"azure.mgmt.nginx.operations.ApiKeysOperations.create_or_update": null,
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.create_or_update": null,
"azure.mgmt.nginx.operations.ApiKeysOperations.delete": null,
"azure.mgmt.nginx.aio.operations.ApiKeysOperations.delete": null,
"azure.mgmt.nginx.operations.CertificatesOperations.list": null,
"azure.mgmt.nginx.aio.operations.CertificatesOperations.list": null,
"azure.mgmt.nginx.operations.CertificatesOperations.get": null,
"azure.mgmt.nginx.aio.operations.CertificatesOperations.get": null,
"azure.mgmt.nginx.operations.CertificatesOperations.begin_create_or_update": null,
"azure.mgmt.nginx.aio.operations.CertificatesOperations.begin_create_or_update": null,
"azure.mgmt.nginx.operations.CertificatesOperations.begin_delete": null,
"azure.mgmt.nginx.aio.operations.CertificatesOperations.begin_delete": null,
"azure.mgmt.nginx.operations.ConfigurationsOperations.list": null,
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.list": null,
"azure.mgmt.nginx.operations.ConfigurationsOperations.get": null,
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.get": null,
"azure.mgmt.nginx.operations.ConfigurationsOperations.begin_create_or_update": null,
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.begin_create_or_update": null,
"azure.mgmt.nginx.operations.ConfigurationsOperations.begin_delete": null,
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.begin_delete": null,
"azure.mgmt.nginx.operations.ConfigurationsOperations.analysis": null,
"azure.mgmt.nginx.aio.operations.ConfigurationsOperations.analysis": null,
"azure.mgmt.nginx.operations.DefaultWafPolicyOperations.list": null,
"azure.mgmt.nginx.aio.operations.DefaultWafPolicyOperations.list": null,
"azure.mgmt.nginx.operations.WafPolicyOperations.list": null,
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.list": null,
"azure.mgmt.nginx.operations.WafPolicyOperations.get": null,
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.get": null,
"azure.mgmt.nginx.operations.WafPolicyOperations.begin_create": null,
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.begin_create": null,
"azure.mgmt.nginx.operations.WafPolicyOperations.begin_delete": null,
"azure.mgmt.nginx.aio.operations.WafPolicyOperations.begin_delete": null
}
}
2 changes: 1 addition & 1 deletion sdk/nginx/azure-mgmt-nginx/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
2 changes: 1 addition & 1 deletion sdk/nginx/azure-mgmt-nginx/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
19 changes: 15 additions & 4 deletions sdk/nginx/azure-mgmt-nginx/azure/mgmt/nginx/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


Expand All @@ -27,13 +28,22 @@ class NginxManagementClientConfiguration: # pylint: disable=too-many-instance-a
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2025-03-01-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:
api_version: str = kwargs.pop("api_version", "2024-11-01-preview")
def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2025-03-01-preview")

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

self.credential = credential
self.subscription_id = subscription_id
self.cloud_setting = cloud_setting
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-nginx/{}".format(VERSION))
Expand Down
Loading