Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR security/resource-manager] Security: 2017-08-01-preview - Introduce IoT security solution resource #4394

Closed
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azure-mgmt-security/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
3 changes: 3 additions & 0 deletions azure-mgmt-security/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-security%2FREADME.png
117 changes: 89 additions & 28 deletions azure-mgmt-security/azure/mgmt/security/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,42 @@
# --------------------------------------------------------------------------

try:
from .regulatory_compliance_standard_py3 import RegulatoryComplianceStandard
from .regulatory_compliance_control_py3 import RegulatoryComplianceControl
from .regulatory_compliance_assessment_py3 import RegulatoryComplianceAssessment
from .asc_location_py3 import AscLocation
from .resource_py3 import Resource
from .kind_py3 import Kind
from .security_contact_py3 import SecurityContact
from .pricing_py3 import Pricing
from .pricing_list_py3 import PricingList
from .security_contact_py3 import SecurityContact
from .workspace_setting_py3 import WorkspaceSetting
from .auto_provisioning_setting_py3 import AutoProvisioningSetting
from .compliance_segment_py3 import ComplianceSegment
from .compliance_py3 import Compliance
from .advanced_threat_protection_setting_py3 import AdvancedThreatProtectionSetting
from .threshold_custom_alert_rule_py3 import ThresholdCustomAlertRule
from .time_window_custom_alert_rule_py3 import TimeWindowCustomAlertRule
from .allowlist_custom_alert_rule_py3 import AllowlistCustomAlertRule
from .denylist_custom_alert_rule_py3 import DenylistCustomAlertRule
from .device_security_group_py3 import DeviceSecurityGroup
from .custom_alert_rule_py3 import CustomAlertRule
from .list_custom_alert_rule_py3 import ListCustomAlertRule
from .setting_py3 import Setting
from .data_export_setting_py3 import DataExportSetting
from .setting_resource_py3 import SettingResource
from .sensitivity_label_py3 import SensitivityLabel
from .information_protection_keyword_py3 import InformationProtectionKeyword
from .information_type_py3 import InformationType
from .information_protection_policy_py3 import InformationProtectionPolicy
from .location_py3 import Location
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .security_task_parameters_py3 import SecurityTaskParameters
from .security_task_py3 import SecurityTask
from .asc_location_py3 import AscLocation
from .alert_entity_py3 import AlertEntity
from .alert_confidence_reason_py3 import AlertConfidenceReason
from .alert_py3 import Alert
from .discovered_security_solution_py3 import DiscoveredSecuritySolution
from .topology_single_resource_parent_py3 import TopologySingleResourceParent
from .topology_single_resource_child_py3 import TopologySingleResourceChild
from .topology_single_resource_py3 import TopologySingleResource
from .topology_resource_py3 import TopologyResource
from .location_py3 import Location
from .jit_network_access_port_rule_py3 import JitNetworkAccessPortRule
from .jit_network_access_policy_virtual_machine_py3 import JitNetworkAccessPolicyVirtualMachine
from .jit_network_access_request_port_py3 import JitNetworkAccessRequestPort
Expand All @@ -49,6 +55,7 @@
from .jit_network_access_policy_initiate_port_py3 import JitNetworkAccessPolicyInitiatePort
from .jit_network_access_policy_initiate_virtual_machine_py3 import JitNetworkAccessPolicyInitiateVirtualMachine
from .jit_network_access_policy_initiate_request_py3 import JitNetworkAccessPolicyInitiateRequest
from .kind_py3 import Kind
from .external_security_solution_py3 import ExternalSecuritySolution
from .cef_solution_properties_py3 import CefSolutionProperties
from .cef_external_security_solution_py3 import CefExternalSecuritySolution
Expand All @@ -60,40 +67,54 @@
from .external_security_solution_kind1_py3 import ExternalSecuritySolutionKind1
from .external_security_solution_properties_py3 import ExternalSecuritySolutionProperties
from .aad_connectivity_state1_py3 import AadConnectivityState1
from .topology_single_resource_parent_py3 import TopologySingleResourceParent
from .topology_single_resource_child_py3 import TopologySingleResourceChild
from .topology_single_resource_py3 import TopologySingleResource
from .topology_resource_py3 import TopologyResource
from .connected_resource_py3 import ConnectedResource
from .connectable_resource_py3 import ConnectableResource
from .allowed_connections_resource_py3 import AllowedConnectionsResource
from .rule_py3 import Rule
from .effective_network_security_groups_py3 import EffectiveNetworkSecurityGroups
from .adaptive_network_hardening_py3 import AdaptiveNetworkHardening
from .adaptive_network_hardening_enforce_request_py3 import AdaptiveNetworkHardeningEnforceRequest
except (SyntaxError, ImportError):
from .regulatory_compliance_standard import RegulatoryComplianceStandard
from .regulatory_compliance_control import RegulatoryComplianceControl
from .regulatory_compliance_assessment import RegulatoryComplianceAssessment
from .asc_location import AscLocation
from .resource import Resource
from .kind import Kind
from .security_contact import SecurityContact
from .pricing import Pricing
from .pricing_list import PricingList
from .security_contact import SecurityContact
from .workspace_setting import WorkspaceSetting
from .auto_provisioning_setting import AutoProvisioningSetting
from .compliance_segment import ComplianceSegment
from .compliance import Compliance
from .advanced_threat_protection_setting import AdvancedThreatProtectionSetting
from .threshold_custom_alert_rule import ThresholdCustomAlertRule
from .time_window_custom_alert_rule import TimeWindowCustomAlertRule
from .allowlist_custom_alert_rule import AllowlistCustomAlertRule
from .denylist_custom_alert_rule import DenylistCustomAlertRule
from .device_security_group import DeviceSecurityGroup
from .custom_alert_rule import CustomAlertRule
from .list_custom_alert_rule import ListCustomAlertRule
from .setting import Setting
from .data_export_setting import DataExportSetting
from .setting_resource import SettingResource
from .sensitivity_label import SensitivityLabel
from .information_protection_keyword import InformationProtectionKeyword
from .information_type import InformationType
from .information_protection_policy import InformationProtectionPolicy
from .location import Location
from .operation_display import OperationDisplay
from .operation import Operation
from .security_task_parameters import SecurityTaskParameters
from .security_task import SecurityTask
from .asc_location import AscLocation
from .alert_entity import AlertEntity
from .alert_confidence_reason import AlertConfidenceReason
from .alert import Alert
from .discovered_security_solution import DiscoveredSecuritySolution
from .topology_single_resource_parent import TopologySingleResourceParent
from .topology_single_resource_child import TopologySingleResourceChild
from .topology_single_resource import TopologySingleResource
from .topology_resource import TopologyResource
from .location import Location
from .jit_network_access_port_rule import JitNetworkAccessPortRule
from .jit_network_access_policy_virtual_machine import JitNetworkAccessPolicyVirtualMachine
from .jit_network_access_request_port import JitNetworkAccessRequestPort
Expand All @@ -103,6 +124,7 @@
from .jit_network_access_policy_initiate_port import JitNetworkAccessPolicyInitiatePort
from .jit_network_access_policy_initiate_virtual_machine import JitNetworkAccessPolicyInitiateVirtualMachine
from .jit_network_access_policy_initiate_request import JitNetworkAccessPolicyInitiateRequest
from .kind import Kind
from .external_security_solution import ExternalSecuritySolution
from .cef_solution_properties import CefSolutionProperties
from .cef_external_security_solution import CefExternalSecuritySolution
Expand All @@ -114,14 +136,25 @@
from .external_security_solution_kind1 import ExternalSecuritySolutionKind1
from .external_security_solution_properties import ExternalSecuritySolutionProperties
from .aad_connectivity_state1 import AadConnectivityState1
from .topology_single_resource_parent import TopologySingleResourceParent
from .topology_single_resource_child import TopologySingleResourceChild
from .topology_single_resource import TopologySingleResource
from .topology_resource import TopologyResource
from .connected_resource import ConnectedResource
from .connectable_resource import ConnectableResource
from .allowed_connections_resource import AllowedConnectionsResource
from .pricing_paged import PricingPaged
from .rule import Rule
from .effective_network_security_groups import EffectiveNetworkSecurityGroups
from .adaptive_network_hardening import AdaptiveNetworkHardening
from .adaptive_network_hardening_enforce_request import AdaptiveNetworkHardeningEnforceRequest
from .regulatory_compliance_standard_paged import RegulatoryComplianceStandardPaged
from .regulatory_compliance_control_paged import RegulatoryComplianceControlPaged
from .regulatory_compliance_assessment_paged import RegulatoryComplianceAssessmentPaged
from .security_contact_paged import SecurityContactPaged
from .workspace_setting_paged import WorkspaceSettingPaged
from .auto_provisioning_setting_paged import AutoProvisioningSettingPaged
from .compliance_paged import CompliancePaged
from .device_security_group_paged import DeviceSecurityGroupPaged
from .setting_paged import SettingPaged
from .information_protection_policy_paged import InformationProtectionPolicyPaged
from .operation_paged import OperationPaged
Expand All @@ -133,11 +166,14 @@
from .external_security_solution_paged import ExternalSecuritySolutionPaged
from .topology_resource_paged import TopologyResourcePaged
from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged
from .adaptive_network_hardening_paged import AdaptiveNetworkHardeningPaged
from .security_center_enums import (
State,
PricingTier,
AlertNotifications,
AlertsToAdmins,
PricingTier,
AutoProvision,
ValueType,
SettingKind,
ReportedSeverity,
SecurityFamily,
Expand All @@ -146,40 +182,48 @@
StatusReason,
AadConnectivityState,
ExternalSecuritySolutionKind,
Direction,
TransportProtocol,
ConnectionType,
)

__all__ = [
'RegulatoryComplianceStandard',
'RegulatoryComplianceControl',
'RegulatoryComplianceAssessment',
'AscLocation',
'Resource',
'Kind',
'SecurityContact',
'Pricing',
'PricingList',
'SecurityContact',
'WorkspaceSetting',
'AutoProvisioningSetting',
'ComplianceSegment',
'Compliance',
'AdvancedThreatProtectionSetting',
'ThresholdCustomAlertRule',
'TimeWindowCustomAlertRule',
'AllowlistCustomAlertRule',
'DenylistCustomAlertRule',
'DeviceSecurityGroup',
'CustomAlertRule',
'ListCustomAlertRule',
'Setting',
'DataExportSetting',
'SettingResource',
'SensitivityLabel',
'InformationProtectionKeyword',
'InformationType',
'InformationProtectionPolicy',
'Location',
'OperationDisplay',
'Operation',
'SecurityTaskParameters',
'SecurityTask',
'AscLocation',
'AlertEntity',
'AlertConfidenceReason',
'Alert',
'DiscoveredSecuritySolution',
'TopologySingleResourceParent',
'TopologySingleResourceChild',
'TopologySingleResource',
'TopologyResource',
'Location',
'JitNetworkAccessPortRule',
'JitNetworkAccessPolicyVirtualMachine',
'JitNetworkAccessRequestPort',
Expand All @@ -189,6 +233,7 @@
'JitNetworkAccessPolicyInitiatePort',
'JitNetworkAccessPolicyInitiateVirtualMachine',
'JitNetworkAccessPolicyInitiateRequest',
'Kind',
'ExternalSecuritySolution',
'CefSolutionProperties',
'CefExternalSecuritySolution',
Expand All @@ -200,14 +245,25 @@
'ExternalSecuritySolutionKind1',
'ExternalSecuritySolutionProperties',
'AadConnectivityState1',
'TopologySingleResourceParent',
'TopologySingleResourceChild',
'TopologySingleResource',
'TopologyResource',
'ConnectedResource',
'ConnectableResource',
'AllowedConnectionsResource',
'PricingPaged',
'Rule',
'EffectiveNetworkSecurityGroups',
'AdaptiveNetworkHardening',
'AdaptiveNetworkHardeningEnforceRequest',
'RegulatoryComplianceStandardPaged',
'RegulatoryComplianceControlPaged',
'RegulatoryComplianceAssessmentPaged',
'SecurityContactPaged',
'WorkspaceSettingPaged',
'AutoProvisioningSettingPaged',
'CompliancePaged',
'DeviceSecurityGroupPaged',
'SettingPaged',
'InformationProtectionPolicyPaged',
'OperationPaged',
Expand All @@ -219,10 +275,13 @@
'ExternalSecuritySolutionPaged',
'TopologyResourcePaged',
'AllowedConnectionsResourcePaged',
'AdaptiveNetworkHardeningPaged',
'State',
'PricingTier',
'AlertNotifications',
'AlertsToAdmins',
'PricingTier',
'AutoProvision',
'ValueType',
'SettingKind',
'ReportedSeverity',
'SecurityFamily',
Expand All @@ -231,5 +290,7 @@
'StatusReason',
'AadConnectivityState',
'ExternalSecuritySolutionKind',
'Direction',
'TransportProtocol',
'ConnectionType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 .resource import Resource


class AdaptiveNetworkHardening(Resource):
"""The resource whose properties describes the Adaptive Network Hardening
settings for some Azure resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param rules: The security rules which are recommended to be effective on
the VM
:type rules: list[~azure.mgmt.security.models.Rule]
:param rules_calculation_time: The UTC time on which the rules were
calculated
:type rules_calculation_time: datetime
:param effective_network_security_groups: The Network Security Groups
effective on the network interfaces of the protected resource
:type effective_network_security_groups:
list[~azure.mgmt.security.models.EffectiveNetworkSecurityGroups]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'rules': {'key': 'properties.rules', 'type': '[Rule]'},
'rules_calculation_time': {'key': 'properties.rulesCalculationTime', 'type': 'iso-8601'},
'effective_network_security_groups': {'key': 'properties.effectiveNetworkSecurityGroups', 'type': '[EffectiveNetworkSecurityGroups]'},
}

def __init__(self, **kwargs):
super(AdaptiveNetworkHardening, self).__init__(**kwargs)
self.rules = kwargs.get('rules', None)
self.rules_calculation_time = kwargs.get('rules_calculation_time', None)
self.effective_network_security_groups = kwargs.get('effective_network_security_groups', None)
Loading