Skip to content

Commit 10edb75

Browse files
generated from typespec:aea4a184ea516566d17e56f21a3cb9ae827dea78
1 parent 30fb898 commit 10edb75

651 files changed

Lines changed: 212004 additions & 101053 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/security/azure-mgmt-security/CHANGELOG.md

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

3+
## 8.0.0b2 (2026-04-23)
4+
5+
skip changelog generation
6+
37
## 8.0.0b1 (2025-08-25)
48

59
### Breaking Changes
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
recursive-include tests *.py *.json
2-
recursive-include samples *.py *.md
31
include *.md
4-
include azure/__init__.py
5-
include azure/mgmt/__init__.py
62
include LICENSE
73
include azure/mgmt/security/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py
Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,40 @@
11
{
2-
"commit": "b64fe48e383ae6d6841fad0538f05dc82130ebb0",
2+
"apiVersions": {
3+
"ATPSettingsAPI": "2019-01-01",
4+
"AlertsAPI": "2022-01-01",
5+
"AlertsSuppressionRulesAPI": "2019-01-01-preview",
6+
"ApiCollectionsAPI": "2023-11-15",
7+
"ApplicationsAPI": "2022-07-01-preview",
8+
"AssessmentAPI": "2025-05-04",
9+
"AutomationsAPI": "2023-12-01-preview",
10+
"ComplianceResultsAPI": "2017-08-01",
11+
"DefenderForStorageAPI": "2025-09-01-preview",
12+
"GovernanceAPI": "2022-01-01-preview",
13+
"HealthReportsAPI": "2023-05-01-preview",
14+
"IoTSecurityAPI": "2019-08-01",
15+
"LegacySettingsAPI": "2017-08-01-preview",
16+
"LocationsAPI": "2015-06-01-preview",
17+
"MdeOnboardingAPI": "2021-10-01-preview",
18+
"OperationsAPI": "2025-10-01-preview",
19+
"PricingsAPI": "2024-01-01",
20+
"PrivateLinksAPI": "2026-01-01",
21+
"RegulatoryComplianceAPI": "2019-01-01-preview",
22+
"SecureScoreAPI": "2020-01-01",
23+
"SecurityConnectorsAPI": "2024-08-01-preview",
24+
"SecurityConnectorsDevOpsAPI": "2025-11-01-preview",
25+
"SecurityOperatorsAPI": "2023-01-01-preview",
26+
"SecuritySolutionsAPI": "2020-01-01",
27+
"SecurityStandardsAPI": "2024-08-01",
28+
"SensitivitySettingsAPI": "2023-02-15-preview",
29+
"ServerVulnerabilityAssessmentsSettingsAPI": "2023-05-01",
30+
"SettingsAPI": "2022-05-01",
31+
"SqlVulnerabilityAssessmentsAPI": "2026-04-01-preview",
32+
"StandardsAPI": "2021-08-01-preview",
33+
"SubAssessmentsAPI": "2019-01-01-preview",
34+
"TasksAPI": "2015-06-01-preview"
35+
},
36+
"commit": "aea4a184ea516566d17e56f21a3cb9ae827dea78",
337
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.10.2",
5-
"use": [
6-
"@autorest/python@6.38.2",
7-
"@autorest/modelerfour@4.27.0"
8-
],
9-
"autorest_command": "autorest specification/security/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --keep-setup-py=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-composite-v3 --use=@autorest/python@6.38.2 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10-
"readme": "specification/security/resource-manager/readme.md"
38+
"typespec_src": "specification/security/resource-manager/Microsoft.Security/Security",
39+
"emitterVersion": "0.61.3"
1140
}

sdk/security/azure-mgmt-security/apiview-properties.json

Lines changed: 1057 additions & 1115 deletions
Large diffs are not rendered by default.
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/security/azure-mgmt-security/azure/mgmt/security/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88
# pylint: disable=wrong-import-position
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15-
from ._security_center import SecurityCenter # type: ignore
15+
from ._client import SecurityManagementClient # type: ignore
1616
from ._version import VERSION
1717

1818
__version__ = VERSION
@@ -25,7 +25,7 @@
2525
from ._patch import patch_sdk as _patch_sdk
2626

2727
__all__ = [
28-
"SecurityCenter",
28+
"SecurityManagementClient",
2929
]
3030
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
3131

sdk/security/azure-mgmt-security/azure/mgmt/security/_security_center.py renamed to sdk/security/azure-mgmt-security/azure/mgmt/security/_client.py

Lines changed: 245 additions & 219 deletions
Large diffs are not rendered by default.

sdk/security/azure-mgmt-security/azure/mgmt/security/_configuration.py

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,56 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
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

20-
class SecurityCenterConfiguration: # pylint: disable=too-many-instance-attributes
21-
"""Configuration for SecurityCenter.
21+
class SecurityManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
22+
"""Configuration for SecurityManagementClient.
2223
2324
Note that all parameters used to create this instance are saved as instance
2425
attributes.
2526
26-
:param credential: Credential needed for the client to connect to Azure. Required.
27+
:param credential: Credential used to authenticate requests to the service. Required.
2728
:type credential: ~azure.core.credentials.TokenCredential
28-
:param subscription_id: Azure subscription ID. Required.
29+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2930
:type subscription_id: str
31+
:param base_url: Service host. Default value is "https://management.azure.com".
32+
:type base_url: str
33+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
34+
None.
35+
:type cloud_setting: ~azure.core.AzureClouds
3036
"""
3137

32-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
38+
def __init__(
39+
self,
40+
credential: "TokenCredential",
41+
subscription_id: str,
42+
base_url: str = "https://management.azure.com",
43+
cloud_setting: Optional["AzureClouds"] = None,
44+
**kwargs: Any
45+
) -> None:
3346
if credential is None:
3447
raise ValueError("Parameter 'credential' must not be None.")
3548
if subscription_id is None:
3649
raise ValueError("Parameter 'subscription_id' must not be None.")
3750

3851
self.credential = credential
3952
self.subscription_id = subscription_id
53+
self.base_url = base_url
54+
self.cloud_setting = cloud_setting
4055
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4156
kwargs.setdefault("sdk_moniker", "mgmt-security/{}".format(VERSION))
4257
self.polling_interval = kwargs.get("polling_interval", 30)

sdk/security/azure-mgmt-security/azure/mgmt/security/_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
10-
from typing import List
1110

12-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
12+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1313

1414

1515
def patch_sdk():

0 commit comments

Comments
 (0)