-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] security/resource-manager (#5709)
* Generated from 2b4c25b67ef444e5fb6df8a4a4d78bfa747b198a (#5704) chore: jsonfmt security Ran `jsonfmt -w "specification/security/**/*.json"` * [AutoPR security/resource-manager] Changes to the JIT API for Firewall Support (#6047) * Generated from 0a90b13aa3eeec05f438be7bbe0eb444a084e789 Update jitNetworkAccessPolicies.json * Generated from 77db60c613fff13703dc99ca4aaa81bfbd4900ef Update jitNetworkAccessPolicies.json * Generated from 77db60c613fff13703dc99ca4aaa81bfbd4900ef Update jitNetworkAccessPolicies.json * Packaging update of azure-mgmt-security * [AutoPR security/resource-manager] Improving Security Center pricing API documentation (#6289) * Generated from 149ce8a94fd12df4868cb641d0d47bf83472b659 Improving Security Center pricing API documentation * Generated from 149ce8a94fd12df4868cb641d0d47bf83472b659 Improving Security Center pricing API documentation * [AutoPR security/resource-manager] Add Microsoft.Security applicationWhitelistings API (#6262) * Generated from 0bc0b6465c2c93267a29e4eb0c39e2b12a8b623e add operation ID's * Generated from 56fe4277e879002f98abc961fc5fb3abf80cf32a remove location from example, add Executable to fileType * Generated from 6307743902cd21e4a200cca1cddc2383121ae216 add Whitelistings to custom-words * Generated from 01357ba2f4e4ca899217b4e65892b7bdf375d5bf (#6515) chore: jsonfmt security * [AutoPR security/resource-manager] Set IoTSecuritySolutions & IoTSecuritySolutionAnalytics API as stable (#6526) * Generated from 4d6fbc52713c0423aa04f74ae330867fac488b86 Set IoTSecuritySolutions & IoTSecuritySolutionAnalytics API as stable * Generated from e763a96421ef60d69bbae038d008c08002f16359 remove paging support from IoTSecurityDeviceRecommendationsList * Generated from dea80a5e1da4b383480342bba4eca97ba55c053b remove paging from IoTSecurityAlertedDevicesList * regenerated * history and version * general breaking changes info
- Loading branch information
1 parent
64b121c
commit ccd73c1
Showing
169 changed files
with
10,670 additions
and
6,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
sdk/security/azure-mgmt-security/azure/mgmt/security/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
from msrestazure import AzureConfiguration | ||
|
||
from .version import VERSION | ||
|
||
|
||
class SecurityCenterConfiguration(AzureConfiguration): | ||
"""Configuration for SecurityCenter | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: Azure subscription ID | ||
:type subscription_id: str | ||
:param asc_location: The location where ASC stores the data of the | ||
subscription. can be retrieved from Get locations | ||
:type asc_location: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, asc_location, base_url=None): | ||
|
||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
if subscription_id is None: | ||
raise ValueError("Parameter 'subscription_id' must not be None.") | ||
if asc_location is None: | ||
raise ValueError("Parameter 'asc_location' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(SecurityCenterConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('azure-mgmt-security/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id | ||
self.asc_location = asc_location |
201 changes: 201 additions & 0 deletions
201
sdk/security/azure-mgmt-security/azure/mgmt/security/_security_center.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import SecurityCenterConfiguration | ||
from .operations import ComplianceResultsOperations | ||
from .operations import PricingsOperations | ||
from .operations import AlertsOperations | ||
from .operations import SettingsOperations | ||
from .operations import IoTSecuritySolutionsOperations | ||
from .operations import IoTSecuritySolutionsResourceGroupOperations | ||
from .operations import IotSecuritySolutionOperations | ||
from .operations import IoTSecuritySolutionsAnalyticsOperations | ||
from .operations import IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations | ||
from .operations import IoTSecuritySolutionsAnalyticsAggregatedAlertOperations | ||
from .operations import IoTSecuritySolutionsAnalyticsRecommendationOperations | ||
from .operations import IoTSecuritySolutionsAnalyticsRecommendationsOperations | ||
from .operations import AllowedConnectionsOperations | ||
from .operations import DiscoveredSecuritySolutionsOperations | ||
from .operations import ExternalSecuritySolutionsOperations | ||
from .operations import JitNetworkAccessPoliciesOperations | ||
from .operations import AdaptiveApplicationControlsOperations | ||
from .operations import LocationsOperations | ||
from .operations import Operations | ||
from .operations import TasksOperations | ||
from .operations import TopologyOperations | ||
from .operations import AdvancedThreatProtectionOperations | ||
from .operations import AutoProvisioningSettingsOperations | ||
from .operations import CompliancesOperations | ||
from .operations import InformationProtectionPoliciesOperations | ||
from .operations import SecurityContactsOperations | ||
from .operations import WorkspaceSettingsOperations | ||
from .operations import RegulatoryComplianceStandardsOperations | ||
from .operations import RegulatoryComplianceControlsOperations | ||
from .operations import RegulatoryComplianceAssessmentsOperations | ||
from .operations import ServerVulnerabilityAssessmentOperations | ||
from . import models | ||
|
||
|
||
class SecurityCenter(SDKClient): | ||
"""API spec for Microsoft.Security (Azure Security Center) resource provider | ||
:ivar config: Configuration for client. | ||
:vartype config: SecurityCenterConfiguration | ||
:ivar compliance_results: ComplianceResults operations | ||
:vartype compliance_results: azure.mgmt.security.operations.ComplianceResultsOperations | ||
:ivar pricings: Pricings operations | ||
:vartype pricings: azure.mgmt.security.operations.PricingsOperations | ||
:ivar alerts: Alerts operations | ||
:vartype alerts: azure.mgmt.security.operations.AlertsOperations | ||
:ivar settings: Settings operations | ||
:vartype settings: azure.mgmt.security.operations.SettingsOperations | ||
:ivar io_tsecurity_solutions: IoTSecuritySolutions operations | ||
:vartype io_tsecurity_solutions: azure.mgmt.security.operations.IoTSecuritySolutionsOperations | ||
:ivar io_tsecurity_solutions_resource_group: IoTSecuritySolutionsResourceGroup operations | ||
:vartype io_tsecurity_solutions_resource_group: azure.mgmt.security.operations.IoTSecuritySolutionsResourceGroupOperations | ||
:ivar iot_security_solution: IotSecuritySolution operations | ||
:vartype iot_security_solution: azure.mgmt.security.operations.IotSecuritySolutionOperations | ||
:ivar io_tsecurity_solutions_analytics: IoTSecuritySolutionsAnalytics operations | ||
:vartype io_tsecurity_solutions_analytics: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsOperations | ||
:ivar io_tsecurity_solutions_analytics_aggregated_alerts: IoTSecuritySolutionsAnalyticsAggregatedAlerts operations | ||
:vartype io_tsecurity_solutions_analytics_aggregated_alerts: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations | ||
:ivar io_tsecurity_solutions_analytics_aggregated_alert: IoTSecuritySolutionsAnalyticsAggregatedAlert operations | ||
:vartype io_tsecurity_solutions_analytics_aggregated_alert: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsAggregatedAlertOperations | ||
:ivar io_tsecurity_solutions_analytics_recommendation: IoTSecuritySolutionsAnalyticsRecommendation operations | ||
:vartype io_tsecurity_solutions_analytics_recommendation: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsRecommendationOperations | ||
:ivar io_tsecurity_solutions_analytics_recommendations: IoTSecuritySolutionsAnalyticsRecommendations operations | ||
:vartype io_tsecurity_solutions_analytics_recommendations: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsRecommendationsOperations | ||
:ivar allowed_connections: AllowedConnections operations | ||
:vartype allowed_connections: azure.mgmt.security.operations.AllowedConnectionsOperations | ||
:ivar discovered_security_solutions: DiscoveredSecuritySolutions operations | ||
:vartype discovered_security_solutions: azure.mgmt.security.operations.DiscoveredSecuritySolutionsOperations | ||
:ivar external_security_solutions: ExternalSecuritySolutions operations | ||
:vartype external_security_solutions: azure.mgmt.security.operations.ExternalSecuritySolutionsOperations | ||
:ivar jit_network_access_policies: JitNetworkAccessPolicies operations | ||
:vartype jit_network_access_policies: azure.mgmt.security.operations.JitNetworkAccessPoliciesOperations | ||
:ivar adaptive_application_controls: AdaptiveApplicationControls operations | ||
:vartype adaptive_application_controls: azure.mgmt.security.operations.AdaptiveApplicationControlsOperations | ||
:ivar locations: Locations operations | ||
:vartype locations: azure.mgmt.security.operations.LocationsOperations | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.security.operations.Operations | ||
:ivar tasks: Tasks operations | ||
:vartype tasks: azure.mgmt.security.operations.TasksOperations | ||
:ivar topology: Topology operations | ||
:vartype topology: azure.mgmt.security.operations.TopologyOperations | ||
:ivar advanced_threat_protection: AdvancedThreatProtection operations | ||
:vartype advanced_threat_protection: azure.mgmt.security.operations.AdvancedThreatProtectionOperations | ||
:ivar auto_provisioning_settings: AutoProvisioningSettings operations | ||
:vartype auto_provisioning_settings: azure.mgmt.security.operations.AutoProvisioningSettingsOperations | ||
:ivar compliances: Compliances operations | ||
:vartype compliances: azure.mgmt.security.operations.CompliancesOperations | ||
:ivar information_protection_policies: InformationProtectionPolicies operations | ||
:vartype information_protection_policies: azure.mgmt.security.operations.InformationProtectionPoliciesOperations | ||
:ivar security_contacts: SecurityContacts operations | ||
:vartype security_contacts: azure.mgmt.security.operations.SecurityContactsOperations | ||
:ivar workspace_settings: WorkspaceSettings operations | ||
:vartype workspace_settings: azure.mgmt.security.operations.WorkspaceSettingsOperations | ||
:ivar regulatory_compliance_standards: RegulatoryComplianceStandards operations | ||
:vartype regulatory_compliance_standards: azure.mgmt.security.operations.RegulatoryComplianceStandardsOperations | ||
:ivar regulatory_compliance_controls: RegulatoryComplianceControls operations | ||
:vartype regulatory_compliance_controls: azure.mgmt.security.operations.RegulatoryComplianceControlsOperations | ||
:ivar regulatory_compliance_assessments: RegulatoryComplianceAssessments operations | ||
:vartype regulatory_compliance_assessments: azure.mgmt.security.operations.RegulatoryComplianceAssessmentsOperations | ||
:ivar server_vulnerability_assessment: ServerVulnerabilityAssessment operations | ||
:vartype server_vulnerability_assessment: azure.mgmt.security.operations.ServerVulnerabilityAssessmentOperations | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: Azure subscription ID | ||
:type subscription_id: str | ||
:param asc_location: The location where ASC stores the data of the | ||
subscription. can be retrieved from Get locations | ||
:type asc_location: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, asc_location, base_url=None): | ||
|
||
self.config = SecurityCenterConfiguration(credentials, subscription_id, asc_location, base_url) | ||
super(SecurityCenter, self).__init__(self.config.credentials, self.config) | ||
|
||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.compliance_results = ComplianceResultsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.pricings = PricingsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.alerts = AlertsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.settings = SettingsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.io_tsecurity_solutions = IoTSecuritySolutionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.io_tsecurity_solutions_resource_group = IoTSecuritySolutionsResourceGroupOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.iot_security_solution = IotSecuritySolutionOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.io_tsecurity_solutions_analytics = IoTSecuritySolutionsAnalyticsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.io_tsecurity_solutions_analytics_aggregated_alerts = IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.io_tsecurity_solutions_analytics_aggregated_alert = IoTSecuritySolutionsAnalyticsAggregatedAlertOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.io_tsecurity_solutions_analytics_recommendation = IoTSecuritySolutionsAnalyticsRecommendationOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.io_tsecurity_solutions_analytics_recommendations = IoTSecuritySolutionsAnalyticsRecommendationsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.allowed_connections = AllowedConnectionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.discovered_security_solutions = DiscoveredSecuritySolutionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.external_security_solutions = ExternalSecuritySolutionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.jit_network_access_policies = JitNetworkAccessPoliciesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.adaptive_application_controls = AdaptiveApplicationControlsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.locations = LocationsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.tasks = TasksOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.topology = TopologyOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.advanced_threat_protection = AdvancedThreatProtectionOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.auto_provisioning_settings = AutoProvisioningSettingsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.compliances = CompliancesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.information_protection_policies = InformationProtectionPoliciesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.security_contacts = SecurityContactsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.workspace_settings = WorkspaceSettingsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.regulatory_compliance_standards = RegulatoryComplianceStandardsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.regulatory_compliance_controls = RegulatoryComplianceControlsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.regulatory_compliance_assessments = RegulatoryComplianceAssessmentsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.server_vulnerability_assessment = ServerVulnerabilityAssessmentOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
Oops, something went wrong.