Skip to content

Commit

Permalink
[AutoPR] security/resource-manager (#5709)
Browse files Browse the repository at this point in the history
* 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
AutorestCI authored and Zim Kalinowski committed Aug 1, 2019
1 parent 64b121c commit ccd73c1
Show file tree
Hide file tree
Showing 169 changed files with 10,670 additions and 6,540 deletions.
34 changes: 34 additions & 0 deletions sdk/security/azure-mgmt-security/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,40 @@
Release History
===============

0.3.0 (2019-08-01)
++++++++++++++++++

**Features**

- Model JitNetworkAccessPolicyVirtualMachine has a new parameter public_ip_address
- Model JitNetworkAccessRequestPort has a new parameter mapped_port
- Added operation group RegulatoryComplianceControlsOperations
- Added operation group ComplianceResultsOperations
- Added operation group ServerVulnerabilityAssessmentOperations
- Added operation group IoTSecuritySolutionsResourceGroupOperations
- Added operation group AdaptiveApplicationControlsOperations
- Added operation group IoTSecuritySolutionsOperations
- Added operation group IotSecuritySolutionOperations
- Added operation group RegulatoryComplianceStandardsOperations
- Added operation group IoTSecuritySolutionsAnalyticsOperations
- Added operation group IoTSecuritySolutionsAnalyticsAggregatedAlertOperations
- Added operation group IoTSecuritySolutionsAnalyticsRecommendationsOperations
- Added operation group RegulatoryComplianceAssessmentsOperations
- Added operation group IoTSecuritySolutionsAnalyticsRecommendationOperations
- Added operation group IoTSecuritySolutionsAnalyticsAggregatedAlertsOperations

**General breaking changes**

This version uses a next-generation code generator that *might* introduce breaking changes if from some import.
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.

- SecurityCenter cannot be imported from `azure.mgmt.security.security_center` anymore (import from `azure.mgmt.security` works like before)
- SecurityCenterConfiguration import has been moved from `azure.mgmt.security.security_center` to `azure.mgmt.security`
- 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)
- 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)

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.

0.2.0 (2019-04-16)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion sdk/security/azure-mgmt-security/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Security Center Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .security_center import SecurityCenter
from .version import VERSION
from ._configuration import SecurityCenterConfiguration
from ._security_center import SecurityCenter
__all__ = ['SecurityCenter', 'SecurityCenterConfiguration']

__all__ = ['SecurityCenter']
from .version import VERSION

__version__ = VERSION

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
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)
Loading

0 comments on commit ccd73c1

Please sign in to comment.