Skip to content

Commit ccd73c1

Browse files
AutorestCIZim Kalinowski
authored and
Zim Kalinowski
committed
[AutoPR] security/resource-manager (Azure#5709)
* Generated from 2b4c25b67ef444e5fb6df8a4a4d78bfa747b198a (Azure#5704) chore: jsonfmt security Ran `jsonfmt -w "specification/security/**/*.json"` * [AutoPR security/resource-manager] Changes to the JIT API for Firewall Support (Azure#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 (Azure#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 (Azure#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 (Azure#6515) chore: jsonfmt security * [AutoPR security/resource-manager] Set IoTSecuritySolutions & IoTSecuritySolutionAnalytics API as stable (Azure#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
1 parent 64b121c commit ccd73c1

File tree

169 files changed

+10670
-6540
lines changed

Some content is hidden

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

169 files changed

+10670
-6540
lines changed

sdk/security/azure-mgmt-security/HISTORY.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,40 @@
33
Release History
44
===============
55

6+
0.3.0 (2019-08-01)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model JitNetworkAccessPolicyVirtualMachine has a new parameter public_ip_address
12+
- Model JitNetworkAccessRequestPort has a new parameter mapped_port
13+
- Added operation group RegulatoryComplianceControlsOperations
14+
- Added operation group ComplianceResultsOperations
15+
- Added operation group ServerVulnerabilityAssessmentOperations
16+
- Added operation group IoTSecuritySolutionsResourceGroupOperations
17+
- Added operation group AdaptiveApplicationControlsOperations
18+
- Added operation group IoTSecuritySolutionsOperations
19+
- Added operation group IotSecuritySolutionOperations
20+
- Added operation group RegulatoryComplianceStandardsOperations
21+
- Added operation group IoTSecuritySolutionsAnalyticsOperations
22+
- Added operation group IoTSecuritySolutionsAnalyticsAggregatedAlertOperations
23+
- Added operation group IoTSecuritySolutionsAnalyticsRecommendationsOperations
24+
- Added operation group RegulatoryComplianceAssessmentsOperations
25+
- Added operation group IoTSecuritySolutionsAnalyticsRecommendationOperations
26+
- Added operation group IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations
27+
28+
**General breaking changes**
29+
30+
This version uses a next-generation code generator that *might* introduce breaking changes if from some import.
31+
In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place.
32+
33+
- SecurityCenter cannot be imported from `azure.mgmt.security.security_center` anymore (import from `azure.mgmt.security` works like before)
34+
- SecurityCenterConfiguration import has been moved from `azure.mgmt.security.security_center` to `azure.mgmt.security`
35+
- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.security.models.my_class` (import from `azure.mgmt.security.models` works like before)
36+
- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.security.operations.my_class_operations` (import from `azure.mgmt.security.operations` works like before)
37+
38+
Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.
39+
640
0.2.0 (2019-04-16)
741
++++++++++++++++++
842

sdk/security/azure-mgmt-security/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is the Microsoft Azure Security Center Management Client Library.
66
Azure Resource Manager (ARM) is the next generation of management APIs that
77
replace the old Azure Service Management (ASM).
88

9-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
9+
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
1010

1111
For the older Azure Service Management (ASM) libraries, see
1212
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .security_center import SecurityCenter
13-
from .version import VERSION
12+
from ._configuration import SecurityCenterConfiguration
13+
from ._security_center import SecurityCenter
14+
__all__ = ['SecurityCenter', 'SecurityCenterConfiguration']
1415

15-
__all__ = ['SecurityCenter']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class SecurityCenterConfiguration(AzureConfiguration):
17+
"""Configuration for SecurityCenter
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Azure subscription ID
25+
:type subscription_id: str
26+
:param asc_location: The location where ASC stores the data of the
27+
subscription. can be retrieved from Get locations
28+
:type asc_location: str
29+
:param str base_url: Service URL
30+
"""
31+
32+
def __init__(
33+
self, credentials, subscription_id, asc_location, base_url=None):
34+
35+
if credentials is None:
36+
raise ValueError("Parameter 'credentials' must not be None.")
37+
if subscription_id is None:
38+
raise ValueError("Parameter 'subscription_id' must not be None.")
39+
if asc_location is None:
40+
raise ValueError("Parameter 'asc_location' must not be None.")
41+
if not base_url:
42+
base_url = 'https://management.azure.com'
43+
44+
super(SecurityCenterConfiguration, self).__init__(base_url)
45+
46+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
47+
self.keep_alive = True
48+
49+
self.add_user_agent('azure-mgmt-security/{}'.format(VERSION))
50+
self.add_user_agent('Azure-SDK-For-Python')
51+
52+
self.credentials = credentials
53+
self.subscription_id = subscription_id
54+
self.asc_location = asc_location
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import SecurityCenterConfiguration
16+
from .operations import ComplianceResultsOperations
17+
from .operations import PricingsOperations
18+
from .operations import AlertsOperations
19+
from .operations import SettingsOperations
20+
from .operations import IoTSecuritySolutionsOperations
21+
from .operations import IoTSecuritySolutionsResourceGroupOperations
22+
from .operations import IotSecuritySolutionOperations
23+
from .operations import IoTSecuritySolutionsAnalyticsOperations
24+
from .operations import IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations
25+
from .operations import IoTSecuritySolutionsAnalyticsAggregatedAlertOperations
26+
from .operations import IoTSecuritySolutionsAnalyticsRecommendationOperations
27+
from .operations import IoTSecuritySolutionsAnalyticsRecommendationsOperations
28+
from .operations import AllowedConnectionsOperations
29+
from .operations import DiscoveredSecuritySolutionsOperations
30+
from .operations import ExternalSecuritySolutionsOperations
31+
from .operations import JitNetworkAccessPoliciesOperations
32+
from .operations import AdaptiveApplicationControlsOperations
33+
from .operations import LocationsOperations
34+
from .operations import Operations
35+
from .operations import TasksOperations
36+
from .operations import TopologyOperations
37+
from .operations import AdvancedThreatProtectionOperations
38+
from .operations import AutoProvisioningSettingsOperations
39+
from .operations import CompliancesOperations
40+
from .operations import InformationProtectionPoliciesOperations
41+
from .operations import SecurityContactsOperations
42+
from .operations import WorkspaceSettingsOperations
43+
from .operations import RegulatoryComplianceStandardsOperations
44+
from .operations import RegulatoryComplianceControlsOperations
45+
from .operations import RegulatoryComplianceAssessmentsOperations
46+
from .operations import ServerVulnerabilityAssessmentOperations
47+
from . import models
48+
49+
50+
class SecurityCenter(SDKClient):
51+
"""API spec for Microsoft.Security (Azure Security Center) resource provider
52+
53+
:ivar config: Configuration for client.
54+
:vartype config: SecurityCenterConfiguration
55+
56+
:ivar compliance_results: ComplianceResults operations
57+
:vartype compliance_results: azure.mgmt.security.operations.ComplianceResultsOperations
58+
:ivar pricings: Pricings operations
59+
:vartype pricings: azure.mgmt.security.operations.PricingsOperations
60+
:ivar alerts: Alerts operations
61+
:vartype alerts: azure.mgmt.security.operations.AlertsOperations
62+
:ivar settings: Settings operations
63+
:vartype settings: azure.mgmt.security.operations.SettingsOperations
64+
:ivar io_tsecurity_solutions: IoTSecuritySolutions operations
65+
:vartype io_tsecurity_solutions: azure.mgmt.security.operations.IoTSecuritySolutionsOperations
66+
:ivar io_tsecurity_solutions_resource_group: IoTSecuritySolutionsResourceGroup operations
67+
:vartype io_tsecurity_solutions_resource_group: azure.mgmt.security.operations.IoTSecuritySolutionsResourceGroupOperations
68+
:ivar iot_security_solution: IotSecuritySolution operations
69+
:vartype iot_security_solution: azure.mgmt.security.operations.IotSecuritySolutionOperations
70+
:ivar io_tsecurity_solutions_analytics: IoTSecuritySolutionsAnalytics operations
71+
:vartype io_tsecurity_solutions_analytics: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsOperations
72+
:ivar io_tsecurity_solutions_analytics_aggregated_alerts: IoTSecuritySolutionsAnalyticsAggregatedAlerts operations
73+
:vartype io_tsecurity_solutions_analytics_aggregated_alerts: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations
74+
:ivar io_tsecurity_solutions_analytics_aggregated_alert: IoTSecuritySolutionsAnalyticsAggregatedAlert operations
75+
:vartype io_tsecurity_solutions_analytics_aggregated_alert: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsAggregatedAlertOperations
76+
:ivar io_tsecurity_solutions_analytics_recommendation: IoTSecuritySolutionsAnalyticsRecommendation operations
77+
:vartype io_tsecurity_solutions_analytics_recommendation: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsRecommendationOperations
78+
:ivar io_tsecurity_solutions_analytics_recommendations: IoTSecuritySolutionsAnalyticsRecommendations operations
79+
:vartype io_tsecurity_solutions_analytics_recommendations: azure.mgmt.security.operations.IoTSecuritySolutionsAnalyticsRecommendationsOperations
80+
:ivar allowed_connections: AllowedConnections operations
81+
:vartype allowed_connections: azure.mgmt.security.operations.AllowedConnectionsOperations
82+
:ivar discovered_security_solutions: DiscoveredSecuritySolutions operations
83+
:vartype discovered_security_solutions: azure.mgmt.security.operations.DiscoveredSecuritySolutionsOperations
84+
:ivar external_security_solutions: ExternalSecuritySolutions operations
85+
:vartype external_security_solutions: azure.mgmt.security.operations.ExternalSecuritySolutionsOperations
86+
:ivar jit_network_access_policies: JitNetworkAccessPolicies operations
87+
:vartype jit_network_access_policies: azure.mgmt.security.operations.JitNetworkAccessPoliciesOperations
88+
:ivar adaptive_application_controls: AdaptiveApplicationControls operations
89+
:vartype adaptive_application_controls: azure.mgmt.security.operations.AdaptiveApplicationControlsOperations
90+
:ivar locations: Locations operations
91+
:vartype locations: azure.mgmt.security.operations.LocationsOperations
92+
:ivar operations: Operations operations
93+
:vartype operations: azure.mgmt.security.operations.Operations
94+
:ivar tasks: Tasks operations
95+
:vartype tasks: azure.mgmt.security.operations.TasksOperations
96+
:ivar topology: Topology operations
97+
:vartype topology: azure.mgmt.security.operations.TopologyOperations
98+
:ivar advanced_threat_protection: AdvancedThreatProtection operations
99+
:vartype advanced_threat_protection: azure.mgmt.security.operations.AdvancedThreatProtectionOperations
100+
:ivar auto_provisioning_settings: AutoProvisioningSettings operations
101+
:vartype auto_provisioning_settings: azure.mgmt.security.operations.AutoProvisioningSettingsOperations
102+
:ivar compliances: Compliances operations
103+
:vartype compliances: azure.mgmt.security.operations.CompliancesOperations
104+
:ivar information_protection_policies: InformationProtectionPolicies operations
105+
:vartype information_protection_policies: azure.mgmt.security.operations.InformationProtectionPoliciesOperations
106+
:ivar security_contacts: SecurityContacts operations
107+
:vartype security_contacts: azure.mgmt.security.operations.SecurityContactsOperations
108+
:ivar workspace_settings: WorkspaceSettings operations
109+
:vartype workspace_settings: azure.mgmt.security.operations.WorkspaceSettingsOperations
110+
:ivar regulatory_compliance_standards: RegulatoryComplianceStandards operations
111+
:vartype regulatory_compliance_standards: azure.mgmt.security.operations.RegulatoryComplianceStandardsOperations
112+
:ivar regulatory_compliance_controls: RegulatoryComplianceControls operations
113+
:vartype regulatory_compliance_controls: azure.mgmt.security.operations.RegulatoryComplianceControlsOperations
114+
:ivar regulatory_compliance_assessments: RegulatoryComplianceAssessments operations
115+
:vartype regulatory_compliance_assessments: azure.mgmt.security.operations.RegulatoryComplianceAssessmentsOperations
116+
:ivar server_vulnerability_assessment: ServerVulnerabilityAssessment operations
117+
:vartype server_vulnerability_assessment: azure.mgmt.security.operations.ServerVulnerabilityAssessmentOperations
118+
119+
:param credentials: Credentials needed for the client to connect to Azure.
120+
:type credentials: :mod:`A msrestazure Credentials
121+
object<msrestazure.azure_active_directory>`
122+
:param subscription_id: Azure subscription ID
123+
:type subscription_id: str
124+
:param asc_location: The location where ASC stores the data of the
125+
subscription. can be retrieved from Get locations
126+
:type asc_location: str
127+
:param str base_url: Service URL
128+
"""
129+
130+
def __init__(
131+
self, credentials, subscription_id, asc_location, base_url=None):
132+
133+
self.config = SecurityCenterConfiguration(credentials, subscription_id, asc_location, base_url)
134+
super(SecurityCenter, self).__init__(self.config.credentials, self.config)
135+
136+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
137+
self._serialize = Serializer(client_models)
138+
self._deserialize = Deserializer(client_models)
139+
140+
self.compliance_results = ComplianceResultsOperations(
141+
self._client, self.config, self._serialize, self._deserialize)
142+
self.pricings = PricingsOperations(
143+
self._client, self.config, self._serialize, self._deserialize)
144+
self.alerts = AlertsOperations(
145+
self._client, self.config, self._serialize, self._deserialize)
146+
self.settings = SettingsOperations(
147+
self._client, self.config, self._serialize, self._deserialize)
148+
self.io_tsecurity_solutions = IoTSecuritySolutionsOperations(
149+
self._client, self.config, self._serialize, self._deserialize)
150+
self.io_tsecurity_solutions_resource_group = IoTSecuritySolutionsResourceGroupOperations(
151+
self._client, self.config, self._serialize, self._deserialize)
152+
self.iot_security_solution = IotSecuritySolutionOperations(
153+
self._client, self.config, self._serialize, self._deserialize)
154+
self.io_tsecurity_solutions_analytics = IoTSecuritySolutionsAnalyticsOperations(
155+
self._client, self.config, self._serialize, self._deserialize)
156+
self.io_tsecurity_solutions_analytics_aggregated_alerts = IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations(
157+
self._client, self.config, self._serialize, self._deserialize)
158+
self.io_tsecurity_solutions_analytics_aggregated_alert = IoTSecuritySolutionsAnalyticsAggregatedAlertOperations(
159+
self._client, self.config, self._serialize, self._deserialize)
160+
self.io_tsecurity_solutions_analytics_recommendation = IoTSecuritySolutionsAnalyticsRecommendationOperations(
161+
self._client, self.config, self._serialize, self._deserialize)
162+
self.io_tsecurity_solutions_analytics_recommendations = IoTSecuritySolutionsAnalyticsRecommendationsOperations(
163+
self._client, self.config, self._serialize, self._deserialize)
164+
self.allowed_connections = AllowedConnectionsOperations(
165+
self._client, self.config, self._serialize, self._deserialize)
166+
self.discovered_security_solutions = DiscoveredSecuritySolutionsOperations(
167+
self._client, self.config, self._serialize, self._deserialize)
168+
self.external_security_solutions = ExternalSecuritySolutionsOperations(
169+
self._client, self.config, self._serialize, self._deserialize)
170+
self.jit_network_access_policies = JitNetworkAccessPoliciesOperations(
171+
self._client, self.config, self._serialize, self._deserialize)
172+
self.adaptive_application_controls = AdaptiveApplicationControlsOperations(
173+
self._client, self.config, self._serialize, self._deserialize)
174+
self.locations = LocationsOperations(
175+
self._client, self.config, self._serialize, self._deserialize)
176+
self.operations = Operations(
177+
self._client, self.config, self._serialize, self._deserialize)
178+
self.tasks = TasksOperations(
179+
self._client, self.config, self._serialize, self._deserialize)
180+
self.topology = TopologyOperations(
181+
self._client, self.config, self._serialize, self._deserialize)
182+
self.advanced_threat_protection = AdvancedThreatProtectionOperations(
183+
self._client, self.config, self._serialize, self._deserialize)
184+
self.auto_provisioning_settings = AutoProvisioningSettingsOperations(
185+
self._client, self.config, self._serialize, self._deserialize)
186+
self.compliances = CompliancesOperations(
187+
self._client, self.config, self._serialize, self._deserialize)
188+
self.information_protection_policies = InformationProtectionPoliciesOperations(
189+
self._client, self.config, self._serialize, self._deserialize)
190+
self.security_contacts = SecurityContactsOperations(
191+
self._client, self.config, self._serialize, self._deserialize)
192+
self.workspace_settings = WorkspaceSettingsOperations(
193+
self._client, self.config, self._serialize, self._deserialize)
194+
self.regulatory_compliance_standards = RegulatoryComplianceStandardsOperations(
195+
self._client, self.config, self._serialize, self._deserialize)
196+
self.regulatory_compliance_controls = RegulatoryComplianceControlsOperations(
197+
self._client, self.config, self._serialize, self._deserialize)
198+
self.regulatory_compliance_assessments = RegulatoryComplianceAssessmentsOperations(
199+
self._client, self.config, self._serialize, self._deserialize)
200+
self.server_vulnerability_assessment = ServerVulnerabilityAssessmentOperations(
201+
self._client, self.config, self._serialize, self._deserialize)

0 commit comments

Comments
 (0)