Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
466 changes: 466 additions & 0 deletions sdk/security/azure-mgmt-security/CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sdk/security/azure-mgmt-security/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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/security/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
45 changes: 37 additions & 8 deletions sdk/security/azure-mgmt-security/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,40 @@
{
"commit": "b64fe48e383ae6d6841fad0538f05dc82130ebb0",
"apiVersions": {
"ATPSettingsAPI": "2019-01-01",
"AlertsAPI": "2022-01-01",
"AlertsSuppressionRulesAPI": "2019-01-01-preview",
"ApiCollectionsAPI": "2023-11-15",
"ApplicationsAPI": "2022-07-01-preview",
"AssessmentAPI": "2025-05-04",
"AutomationsAPI": "2023-12-01-preview",
"ComplianceResultsAPI": "2017-08-01",
"DefenderForStorageAPI": "2025-09-01-preview",
"GovernanceAPI": "2022-01-01-preview",
"HealthReportsAPI": "2023-05-01-preview",
"IoTSecurityAPI": "2019-08-01",
"LegacySettingsAPI": "2017-08-01-preview",
"LocationsAPI": "2015-06-01-preview",
"MdeOnboardingAPI": "2021-10-01-preview",
"OperationsAPI": "2025-10-01-preview",
"PricingsAPI": "2024-01-01",
"PrivateLinksAPI": "2026-01-01",
"RegulatoryComplianceAPI": "2019-01-01-preview",
"SecureScoreAPI": "2020-01-01",
"SecurityConnectorsAPI": "2024-08-01-preview",
"SecurityConnectorsDevOpsAPI": "2025-11-01-preview",
"SecurityOperatorsAPI": "2023-01-01-preview",
"SecuritySolutionsAPI": "2020-01-01",
"SecurityStandardsAPI": "2024-08-01",
"SensitivitySettingsAPI": "2023-02-15-preview",
"ServerVulnerabilityAssessmentsSettingsAPI": "2023-05-01",
"SettingsAPI": "2022-05-01",
"SqlVulnerabilityAssessmentsAPI": "2026-04-01-preview",
"StandardsAPI": "2021-08-01-preview",
"SubAssessmentsAPI": "2019-01-01-preview",
"TasksAPI": "2015-06-01-preview"
},
"commit": "95ea6afbd6bf20d7ef619e9327b62c200d35dd91",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.38.2",
"@autorest/modelerfour@4.27.0"
],
"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",
"readme": "specification/security/resource-manager/readme.md"
"typespec_src": "specification/security/resource-manager/Microsoft.Security/Security",
"emitterVersion": "0.61.3"
}
2,172 changes: 1,057 additions & 1,115 deletions sdk/security/azure-mgmt-security/apiview-properties.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/security/azure-mgmt-security/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/security/azure-mgmt-security/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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position
Expand All @@ -12,7 +12,7 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._security_center import SecurityCenter # type: ignore
from ._client import SecurityManagementClient # type: ignore
from ._version import VERSION

__version__ = VERSION
Expand All @@ -25,7 +25,7 @@
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"SecurityCenter",
"SecurityManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

Expand Down
565 changes: 565 additions & 0 deletions sdk/security/azure-mgmt-security/azure/mgmt/security/_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,56 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Code generated by Microsoft (R) Python Code Generator.
# 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


class SecurityCenterConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for SecurityCenter.
class SecurityManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for SecurityManagementClient.

Note that all parameters used to create this instance are saved as instance
attributes.

:param credential: Credential needed for the client to connect to Azure. Required.
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Azure subscription ID. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

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