diff --git a/azure-mgmt-security/azure/mgmt/security/models/__init__.py b/azure-mgmt-security/azure/mgmt/security/models/__init__.py index 2134e4db7dd1..791f6ade36e2 100644 --- a/azure-mgmt-security/azure/mgmt/security/models/__init__.py +++ b/azure-mgmt-security/azure/mgmt/security/models/__init__.py @@ -10,52 +10,21 @@ # -------------------------------------------------------------------------- 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 .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 .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 .resource_py3 import Resource 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 .setting_py3 import Setting + from .data_export_setting_py3 import DataExportSetting + from .setting_resource_py3 import SettingResource + from .connected_resource_py3 import ConnectedResource + from .connectable_resource_py3 import ConnectableResource + from .allowed_connections_resource_py3 import AllowedConnectionsResource 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 - from .jit_network_access_request_virtual_machine_py3 import JitNetworkAccessRequestVirtualMachine - from .jit_network_access_request_py3 import JitNetworkAccessRequest - from .jit_network_access_policy_py3 import JitNetworkAccessPolicy - 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 .discovered_security_solution_py3 import DiscoveredSecuritySolution from .external_security_solution_py3 import ExternalSecuritySolution from .cef_solution_properties_py3 import CefSolutionProperties from .cef_external_security_solution_py3 import CefExternalSecuritySolution @@ -67,60 +36,50 @@ from .external_security_solution_kind1_py3 import ExternalSecuritySolutionKind1 from .external_security_solution_properties_py3 import ExternalSecuritySolutionProperties from .aad_connectivity_state1_py3 import AadConnectivityState1 + 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 + from .jit_network_access_request_virtual_machine_py3 import JitNetworkAccessRequestVirtualMachine + from .jit_network_access_request_py3 import JitNetworkAccessRequest + from .jit_network_access_policy_py3 import JitNetworkAccessPolicy + 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 .operation_display_py3 import OperationDisplay + from .operation_py3 import Operation + from .security_task_parameters_py3 import SecurityTaskParameters + from .security_task_py3 import SecurityTask 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 .advanced_threat_protection_setting_py3 import AdvancedThreatProtectionSetting + from .auto_provisioning_setting_py3 import AutoProvisioningSetting + from .compliance_segment_py3 import ComplianceSegment + from .compliance_py3 import Compliance + 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 .security_contact_py3 import SecurityContact + from .workspace_setting_py3 import WorkspaceSetting 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 .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 .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 .resource import Resource from .alert_entity import AlertEntity from .alert_confidence_reason import AlertConfidenceReason from .alert import Alert - from .discovered_security_solution import DiscoveredSecuritySolution + from .setting import Setting + from .data_export_setting import DataExportSetting + from .setting_resource import SettingResource + from .connected_resource import ConnectedResource + from .connectable_resource import ConnectableResource + from .allowed_connections_resource import AllowedConnectionsResource 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 - from .jit_network_access_request_virtual_machine import JitNetworkAccessRequestVirtualMachine - from .jit_network_access_request import JitNetworkAccessRequest - from .jit_network_access_policy import JitNetworkAccessPolicy - 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 .discovered_security_solution import DiscoveredSecuritySolution from .external_security_solution import ExternalSecuritySolution from .cef_solution_properties import CefSolutionProperties from .cef_external_security_solution import CefExternalSecuritySolution @@ -132,97 +91,81 @@ from .external_security_solution_kind1 import ExternalSecuritySolutionKind1 from .external_security_solution_properties import ExternalSecuritySolutionProperties from .aad_connectivity_state1 import AadConnectivityState1 + 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 + from .jit_network_access_request_virtual_machine import JitNetworkAccessRequestVirtualMachine + from .jit_network_access_request import JitNetworkAccessRequest + from .jit_network_access_policy import JitNetworkAccessPolicy + 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 .operation_display import OperationDisplay + from .operation import Operation + from .security_task_parameters import SecurityTaskParameters + from .security_task import SecurityTask 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 .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 -from .asc_location_paged import AscLocationPaged -from .security_task_paged import SecurityTaskPaged + from .advanced_threat_protection_setting import AdvancedThreatProtectionSetting + from .auto_provisioning_setting import AutoProvisioningSetting + from .compliance_segment import ComplianceSegment + from .compliance import Compliance + from .sensitivity_label import SensitivityLabel + from .information_protection_keyword import InformationProtectionKeyword + from .information_type import InformationType + from .information_protection_policy import InformationProtectionPolicy + from .security_contact import SecurityContact + from .workspace_setting import WorkspaceSetting from .alert_paged import AlertPaged +from .setting_paged import SettingPaged +from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged from .discovered_security_solution_paged import DiscoveredSecuritySolutionPaged -from .jit_network_access_policy_paged import JitNetworkAccessPolicyPaged from .external_security_solution_paged import ExternalSecuritySolutionPaged +from .jit_network_access_policy_paged import JitNetworkAccessPolicyPaged +from .asc_location_paged import AscLocationPaged +from .operation_paged import OperationPaged +from .security_task_paged import SecurityTaskPaged from .topology_resource_paged import TopologyResourcePaged -from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged +from .auto_provisioning_setting_paged import AutoProvisioningSettingPaged +from .compliance_paged import CompliancePaged +from .information_protection_policy_paged import InformationProtectionPolicyPaged +from .security_contact_paged import SecurityContactPaged +from .workspace_setting_paged import WorkspaceSettingPaged from .security_center_enums import ( - State, PricingTier, - AlertNotifications, - AlertsToAdmins, - AutoProvision, - ValueType, - SettingKind, ReportedSeverity, + SettingKind, SecurityFamily, + AadConnectivityState, + ExternalSecuritySolutionKind, Protocol, Status, StatusReason, - AadConnectivityState, - ExternalSecuritySolutionKind, + AutoProvision, + AlertNotifications, + AlertsToAdmins, ConnectionType, ) __all__ = [ - 'RegulatoryComplianceStandard', - 'RegulatoryComplianceControl', - 'RegulatoryComplianceAssessment', - 'AscLocation', - 'Resource', 'Pricing', 'PricingList', - 'SecurityContact', - 'WorkspaceSetting', - 'AutoProvisioningSetting', - 'ComplianceSegment', - 'Compliance', - 'AdvancedThreatProtectionSetting', - 'ThresholdCustomAlertRule', - 'TimeWindowCustomAlertRule', - 'AllowlistCustomAlertRule', - 'DenylistCustomAlertRule', - 'DeviceSecurityGroup', - 'CustomAlertRule', - 'ListCustomAlertRule', - 'Setting', - 'DataExportSetting', - 'SettingResource', - 'SensitivityLabel', - 'InformationProtectionKeyword', - 'InformationType', - 'InformationProtectionPolicy', - 'OperationDisplay', - 'Operation', - 'SecurityTaskParameters', - 'SecurityTask', + 'AscLocation', + 'Resource', 'AlertEntity', 'AlertConfidenceReason', 'Alert', - 'DiscoveredSecuritySolution', + 'Setting', + 'DataExportSetting', + 'SettingResource', + 'ConnectedResource', + 'ConnectableResource', + 'AllowedConnectionsResource', 'Location', - 'JitNetworkAccessPortRule', - 'JitNetworkAccessPolicyVirtualMachine', - 'JitNetworkAccessRequestPort', - 'JitNetworkAccessRequestVirtualMachine', - 'JitNetworkAccessRequest', - 'JitNetworkAccessPolicy', - 'JitNetworkAccessPolicyInitiatePort', - 'JitNetworkAccessPolicyInitiateVirtualMachine', - 'JitNetworkAccessPolicyInitiateRequest', - 'Kind', + 'DiscoveredSecuritySolution', 'ExternalSecuritySolution', 'CefSolutionProperties', 'CefExternalSecuritySolution', @@ -234,45 +177,60 @@ 'ExternalSecuritySolutionKind1', 'ExternalSecuritySolutionProperties', 'AadConnectivityState1', + 'JitNetworkAccessPortRule', + 'JitNetworkAccessPolicyVirtualMachine', + 'JitNetworkAccessRequestPort', + 'JitNetworkAccessRequestVirtualMachine', + 'JitNetworkAccessRequest', + 'JitNetworkAccessPolicy', + 'JitNetworkAccessPolicyInitiatePort', + 'JitNetworkAccessPolicyInitiateVirtualMachine', + 'JitNetworkAccessPolicyInitiateRequest', + 'Kind', + 'OperationDisplay', + 'Operation', + 'SecurityTaskParameters', + 'SecurityTask', 'TopologySingleResourceParent', 'TopologySingleResourceChild', 'TopologySingleResource', 'TopologyResource', - 'ConnectedResource', - 'ConnectableResource', - 'AllowedConnectionsResource', - 'RegulatoryComplianceStandardPaged', - 'RegulatoryComplianceControlPaged', - 'RegulatoryComplianceAssessmentPaged', - 'SecurityContactPaged', - 'WorkspaceSettingPaged', - 'AutoProvisioningSettingPaged', - 'CompliancePaged', - 'DeviceSecurityGroupPaged', - 'SettingPaged', - 'InformationProtectionPolicyPaged', - 'OperationPaged', - 'AscLocationPaged', - 'SecurityTaskPaged', + 'AdvancedThreatProtectionSetting', + 'AutoProvisioningSetting', + 'ComplianceSegment', + 'Compliance', + 'SensitivityLabel', + 'InformationProtectionKeyword', + 'InformationType', + 'InformationProtectionPolicy', + 'SecurityContact', + 'WorkspaceSetting', 'AlertPaged', + 'SettingPaged', + 'AllowedConnectionsResourcePaged', 'DiscoveredSecuritySolutionPaged', - 'JitNetworkAccessPolicyPaged', 'ExternalSecuritySolutionPaged', + 'JitNetworkAccessPolicyPaged', + 'AscLocationPaged', + 'OperationPaged', + 'SecurityTaskPaged', 'TopologyResourcePaged', - 'AllowedConnectionsResourcePaged', - 'State', + 'AutoProvisioningSettingPaged', + 'CompliancePaged', + 'InformationProtectionPolicyPaged', + 'SecurityContactPaged', + 'WorkspaceSettingPaged', 'PricingTier', - 'AlertNotifications', - 'AlertsToAdmins', - 'AutoProvision', - 'ValueType', - 'SettingKind', 'ReportedSeverity', + 'SettingKind', 'SecurityFamily', + 'AadConnectivityState', + 'ExternalSecuritySolutionKind', 'Protocol', 'Status', 'StatusReason', - 'AadConnectivityState', - 'ExternalSecuritySolutionKind', + 'AutoProvision', + 'AlertNotifications', + 'AlertsToAdmins', 'ConnectionType', ] diff --git a/azure-mgmt-security/azure/mgmt/security/models/allowlist_custom_alert_rule.py b/azure-mgmt-security/azure/mgmt/security/models/allowlist_custom_alert_rule.py deleted file mode 100644 index 58275b4e2fbb..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/allowlist_custom_alert_rule.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 .list_custom_alert_rule import ListCustomAlertRule - - -class AllowlistCustomAlertRule(ListCustomAlertRule): - """A custom alert rule that checks if a value (depends on the custom alert - type) is allowed. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :ivar value_type: The value type of the items in the list. Possible values - include: 'IpCidr', 'String' - :vartype value_type: str or ~azure.mgmt.security.models.ValueType - :param allowlist_values: Required. The values to allow. The format of the - values depends on the rule type. - :type allowlist_values: list[str] - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'value_type': {'readonly': True}, - 'allowlist_values': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - 'allowlist_values': {'key': 'allowlistValues', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AllowlistCustomAlertRule, self).__init__(**kwargs) - self.allowlist_values = kwargs.get('allowlist_values', None) diff --git a/azure-mgmt-security/azure/mgmt/security/models/allowlist_custom_alert_rule_py3.py b/azure-mgmt-security/azure/mgmt/security/models/allowlist_custom_alert_rule_py3.py deleted file mode 100644 index 7f8772c3dbbd..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/allowlist_custom_alert_rule_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 .list_custom_alert_rule_py3 import ListCustomAlertRule - - -class AllowlistCustomAlertRule(ListCustomAlertRule): - """A custom alert rule that checks if a value (depends on the custom alert - type) is allowed. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :ivar value_type: The value type of the items in the list. Possible values - include: 'IpCidr', 'String' - :vartype value_type: str or ~azure.mgmt.security.models.ValueType - :param allowlist_values: Required. The values to allow. The format of the - values depends on the rule type. - :type allowlist_values: list[str] - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'value_type': {'readonly': True}, - 'allowlist_values': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - 'allowlist_values': {'key': 'allowlistValues', 'type': '[str]'}, - } - - def __init__(self, *, is_enabled: bool, rule_type: str, allowlist_values, **kwargs) -> None: - super(AllowlistCustomAlertRule, self).__init__(is_enabled=is_enabled, rule_type=rule_type, **kwargs) - self.allowlist_values = allowlist_values diff --git a/azure-mgmt-security/azure/mgmt/security/models/custom_alert_rule.py b/azure-mgmt-security/azure/mgmt/security/models/custom_alert_rule.py deleted file mode 100644 index 7b8bbed4659f..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/custom_alert_rule.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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.serialization import Model - - -class CustomAlertRule(Model): - """A custom alert rule. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomAlertRule, self).__init__(**kwargs) - self.display_name = None - self.description = None - self.is_enabled = kwargs.get('is_enabled', None) - self.rule_type = kwargs.get('rule_type', None) diff --git a/azure-mgmt-security/azure/mgmt/security/models/custom_alert_rule_py3.py b/azure-mgmt-security/azure/mgmt/security/models/custom_alert_rule_py3.py deleted file mode 100644 index 8ecf4bf163cb..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/custom_alert_rule_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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.serialization import Model - - -class CustomAlertRule(Model): - """A custom alert rule. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - } - - def __init__(self, *, is_enabled: bool, rule_type: str, **kwargs) -> None: - super(CustomAlertRule, self).__init__(**kwargs) - self.display_name = None - self.description = None - self.is_enabled = is_enabled - self.rule_type = rule_type diff --git a/azure-mgmt-security/azure/mgmt/security/models/denylist_custom_alert_rule.py b/azure-mgmt-security/azure/mgmt/security/models/denylist_custom_alert_rule.py deleted file mode 100644 index 976650ae94b9..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/denylist_custom_alert_rule.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 .list_custom_alert_rule import ListCustomAlertRule - - -class DenylistCustomAlertRule(ListCustomAlertRule): - """A custom alert rule that checks if a value (depends on the custom alert - type) is denied. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :ivar value_type: The value type of the items in the list. Possible values - include: 'IpCidr', 'String' - :vartype value_type: str or ~azure.mgmt.security.models.ValueType - :param denylist_values: Required. The values to deny. The format of the - values depends on the rule type. - :type denylist_values: list[str] - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'value_type': {'readonly': True}, - 'denylist_values': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - 'denylist_values': {'key': 'denylistValues', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(DenylistCustomAlertRule, self).__init__(**kwargs) - self.denylist_values = kwargs.get('denylist_values', None) diff --git a/azure-mgmt-security/azure/mgmt/security/models/denylist_custom_alert_rule_py3.py b/azure-mgmt-security/azure/mgmt/security/models/denylist_custom_alert_rule_py3.py deleted file mode 100644 index 9813e72eea68..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/denylist_custom_alert_rule_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 .list_custom_alert_rule_py3 import ListCustomAlertRule - - -class DenylistCustomAlertRule(ListCustomAlertRule): - """A custom alert rule that checks if a value (depends on the custom alert - type) is denied. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :ivar value_type: The value type of the items in the list. Possible values - include: 'IpCidr', 'String' - :vartype value_type: str or ~azure.mgmt.security.models.ValueType - :param denylist_values: Required. The values to deny. The format of the - values depends on the rule type. - :type denylist_values: list[str] - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'value_type': {'readonly': True}, - 'denylist_values': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - 'denylist_values': {'key': 'denylistValues', 'type': '[str]'}, - } - - def __init__(self, *, is_enabled: bool, rule_type: str, denylist_values, **kwargs) -> None: - super(DenylistCustomAlertRule, self).__init__(is_enabled=is_enabled, rule_type=rule_type, **kwargs) - self.denylist_values = denylist_values diff --git a/azure-mgmt-security/azure/mgmt/security/models/device_security_group.py b/azure-mgmt-security/azure/mgmt/security/models/device_security_group.py deleted file mode 100644 index a213758a98c6..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/device_security_group.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 DeviceSecurityGroup(Resource): - """The device security group 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 threshold_rules: A list of threshold custom alert rules. - :type threshold_rules: - list[~azure.mgmt.security.models.ThresholdCustomAlertRule] - :param time_window_rules: A list of time window custom alert rules. - :type time_window_rules: - list[~azure.mgmt.security.models.TimeWindowCustomAlertRule] - :param allowlist_rules: A list of allow-list custom alert rules. - :type allowlist_rules: - list[~azure.mgmt.security.models.AllowlistCustomAlertRule] - :param denylist_rules: A list of deny-list custom alert rules. - :type denylist_rules: - list[~azure.mgmt.security.models.DenylistCustomAlertRule] - """ - - _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'}, - 'threshold_rules': {'key': 'properties.thresholdRules', 'type': '[ThresholdCustomAlertRule]'}, - 'time_window_rules': {'key': 'properties.timeWindowRules', 'type': '[TimeWindowCustomAlertRule]'}, - 'allowlist_rules': {'key': 'properties.allowlistRules', 'type': '[AllowlistCustomAlertRule]'}, - 'denylist_rules': {'key': 'properties.denylistRules', 'type': '[DenylistCustomAlertRule]'}, - } - - def __init__(self, **kwargs): - super(DeviceSecurityGroup, self).__init__(**kwargs) - self.threshold_rules = kwargs.get('threshold_rules', None) - self.time_window_rules = kwargs.get('time_window_rules', None) - self.allowlist_rules = kwargs.get('allowlist_rules', None) - self.denylist_rules = kwargs.get('denylist_rules', None) diff --git a/azure-mgmt-security/azure/mgmt/security/models/device_security_group_paged.py b/azure-mgmt-security/azure/mgmt/security/models/device_security_group_paged.py deleted file mode 100644 index cf7fcb32eed7..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/device_security_group_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class DeviceSecurityGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeviceSecurityGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeviceSecurityGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(DeviceSecurityGroupPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-security/azure/mgmt/security/models/device_security_group_py3.py b/azure-mgmt-security/azure/mgmt/security/models/device_security_group_py3.py deleted file mode 100644 index 9e2a2015d800..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/device_security_group_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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_py3 import Resource - - -class DeviceSecurityGroup(Resource): - """The device security group 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 threshold_rules: A list of threshold custom alert rules. - :type threshold_rules: - list[~azure.mgmt.security.models.ThresholdCustomAlertRule] - :param time_window_rules: A list of time window custom alert rules. - :type time_window_rules: - list[~azure.mgmt.security.models.TimeWindowCustomAlertRule] - :param allowlist_rules: A list of allow-list custom alert rules. - :type allowlist_rules: - list[~azure.mgmt.security.models.AllowlistCustomAlertRule] - :param denylist_rules: A list of deny-list custom alert rules. - :type denylist_rules: - list[~azure.mgmt.security.models.DenylistCustomAlertRule] - """ - - _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'}, - 'threshold_rules': {'key': 'properties.thresholdRules', 'type': '[ThresholdCustomAlertRule]'}, - 'time_window_rules': {'key': 'properties.timeWindowRules', 'type': '[TimeWindowCustomAlertRule]'}, - 'allowlist_rules': {'key': 'properties.allowlistRules', 'type': '[AllowlistCustomAlertRule]'}, - 'denylist_rules': {'key': 'properties.denylistRules', 'type': '[DenylistCustomAlertRule]'}, - } - - def __init__(self, *, threshold_rules=None, time_window_rules=None, allowlist_rules=None, denylist_rules=None, **kwargs) -> None: - super(DeviceSecurityGroup, self).__init__(**kwargs) - self.threshold_rules = threshold_rules - self.time_window_rules = time_window_rules - self.allowlist_rules = allowlist_rules - self.denylist_rules = denylist_rules diff --git a/azure-mgmt-security/azure/mgmt/security/models/list_custom_alert_rule.py b/azure-mgmt-security/azure/mgmt/security/models/list_custom_alert_rule.py deleted file mode 100644 index 83ac0df72267..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/list_custom_alert_rule.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .custom_alert_rule import CustomAlertRule - - -class ListCustomAlertRule(CustomAlertRule): - """A List custom alert rule. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :ivar value_type: The value type of the items in the list. Possible values - include: 'IpCidr', 'String' - :vartype value_type: str or ~azure.mgmt.security.models.ValueType - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'value_type': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ListCustomAlertRule, self).__init__(**kwargs) - self.value_type = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/list_custom_alert_rule_py3.py b/azure-mgmt-security/azure/mgmt/security/models/list_custom_alert_rule_py3.py deleted file mode 100644 index ae713623de5f..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/list_custom_alert_rule_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .custom_alert_rule_py3 import CustomAlertRule - - -class ListCustomAlertRule(CustomAlertRule): - """A List custom alert rule. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :ivar value_type: The value type of the items in the list. Possible values - include: 'IpCidr', 'String' - :vartype value_type: str or ~azure.mgmt.security.models.ValueType - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'value_type': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - } - - def __init__(self, *, is_enabled: bool, rule_type: str, **kwargs) -> None: - super(ListCustomAlertRule, self).__init__(is_enabled=is_enabled, rule_type=rule_type, **kwargs) - self.value_type = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment.py deleted file mode 100644 index 471302606092..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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 RegulatoryComplianceAssessment(Resource): - """Regulatory compliance assessment details and state. - - 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 - :ivar description: The description of the regulatory compliance assessment - :vartype description: str - :ivar assessment_type: The expected type of assessment contained in the - AssessmentDetailsLink - :vartype assessment_type: str - :ivar assessment_details_link: Link to more detailed assessment results - data. The response type will be according to the assessmentType field - :vartype assessment_details_link: str - :param state: Aggregative state based on the assessment's scanned - resources states. Possible values include: 'Passed', 'Failed', 'Skipped', - 'Unsupported' - :type state: str or ~azure.mgmt.security.models.State - :ivar passed_resources: The given assessment's related resources count - with passed state. - :vartype passed_resources: int - :ivar failed_resources: The given assessment's related resources count - with failed state. - :vartype failed_resources: int - :ivar skipped_resources: The given assessment's related resources count - with skipped state. - :vartype skipped_resources: int - :ivar unsupported_resources: The given assessment's related resources - count with unsupported state. - :vartype unsupported_resources: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'description': {'readonly': True}, - 'assessment_type': {'readonly': True}, - 'assessment_details_link': {'readonly': True}, - 'passed_resources': {'readonly': True}, - 'failed_resources': {'readonly': True}, - 'skipped_resources': {'readonly': True}, - 'unsupported_resources': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'assessment_type': {'key': 'properties.assessmentType', 'type': 'str'}, - 'assessment_details_link': {'key': 'properties.assessmentDetailsLink', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'passed_resources': {'key': 'properties.passedResources', 'type': 'int'}, - 'failed_resources': {'key': 'properties.failedResources', 'type': 'int'}, - 'skipped_resources': {'key': 'properties.skippedResources', 'type': 'int'}, - 'unsupported_resources': {'key': 'properties.unsupportedResources', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(RegulatoryComplianceAssessment, self).__init__(**kwargs) - self.description = None - self.assessment_type = None - self.assessment_details_link = None - self.state = kwargs.get('state', None) - self.passed_resources = None - self.failed_resources = None - self.skipped_resources = None - self.unsupported_resources = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_paged.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_paged.py deleted file mode 100644 index f5661a66b539..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class RegulatoryComplianceAssessmentPaged(Paged): - """ - A paging container for iterating over a list of :class:`RegulatoryComplianceAssessment ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RegulatoryComplianceAssessment]'} - } - - def __init__(self, *args, **kwargs): - - super(RegulatoryComplianceAssessmentPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_py3.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_py3.py deleted file mode 100644 index 92bad19c1805..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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_py3 import Resource - - -class RegulatoryComplianceAssessment(Resource): - """Regulatory compliance assessment details and state. - - 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 - :ivar description: The description of the regulatory compliance assessment - :vartype description: str - :ivar assessment_type: The expected type of assessment contained in the - AssessmentDetailsLink - :vartype assessment_type: str - :ivar assessment_details_link: Link to more detailed assessment results - data. The response type will be according to the assessmentType field - :vartype assessment_details_link: str - :param state: Aggregative state based on the assessment's scanned - resources states. Possible values include: 'Passed', 'Failed', 'Skipped', - 'Unsupported' - :type state: str or ~azure.mgmt.security.models.State - :ivar passed_resources: The given assessment's related resources count - with passed state. - :vartype passed_resources: int - :ivar failed_resources: The given assessment's related resources count - with failed state. - :vartype failed_resources: int - :ivar skipped_resources: The given assessment's related resources count - with skipped state. - :vartype skipped_resources: int - :ivar unsupported_resources: The given assessment's related resources - count with unsupported state. - :vartype unsupported_resources: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'description': {'readonly': True}, - 'assessment_type': {'readonly': True}, - 'assessment_details_link': {'readonly': True}, - 'passed_resources': {'readonly': True}, - 'failed_resources': {'readonly': True}, - 'skipped_resources': {'readonly': True}, - 'unsupported_resources': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'assessment_type': {'key': 'properties.assessmentType', 'type': 'str'}, - 'assessment_details_link': {'key': 'properties.assessmentDetailsLink', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'passed_resources': {'key': 'properties.passedResources', 'type': 'int'}, - 'failed_resources': {'key': 'properties.failedResources', 'type': 'int'}, - 'skipped_resources': {'key': 'properties.skippedResources', 'type': 'int'}, - 'unsupported_resources': {'key': 'properties.unsupportedResources', 'type': 'int'}, - } - - def __init__(self, *, state=None, **kwargs) -> None: - super(RegulatoryComplianceAssessment, self).__init__(**kwargs) - self.description = None - self.assessment_type = None - self.assessment_details_link = None - self.state = state - self.passed_resources = None - self.failed_resources = None - self.skipped_resources = None - self.unsupported_resources = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control.py deleted file mode 100644 index ab7accd57683..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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 RegulatoryComplianceControl(Resource): - """Regulatory compliance control details and state. - - 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 - :ivar description: The description of the regulatory compliance control - :vartype description: str - :param state: Aggregative state based on the control's supported - assessments states. Possible values include: 'Passed', 'Failed', - 'Skipped', 'Unsupported' - :type state: str or ~azure.mgmt.security.models.State - :ivar passed_assessments: The number of supported regulatory compliance - assessments of the given control with a passed state - :vartype passed_assessments: int - :ivar failed_assessments: The number of supported regulatory compliance - assessments of the given control with a failed state - :vartype failed_assessments: int - :ivar skipped_assessments: The number of supported regulatory compliance - assessments of the given control with a skipped state - :vartype skipped_assessments: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'description': {'readonly': True}, - 'passed_assessments': {'readonly': True}, - 'failed_assessments': {'readonly': True}, - 'skipped_assessments': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'passed_assessments': {'key': 'properties.passedAssessments', 'type': 'int'}, - 'failed_assessments': {'key': 'properties.failedAssessments', 'type': 'int'}, - 'skipped_assessments': {'key': 'properties.skippedAssessments', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(RegulatoryComplianceControl, self).__init__(**kwargs) - self.description = None - self.state = kwargs.get('state', None) - self.passed_assessments = None - self.failed_assessments = None - self.skipped_assessments = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control_paged.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control_paged.py deleted file mode 100644 index 22210d83bc43..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class RegulatoryComplianceControlPaged(Paged): - """ - A paging container for iterating over a list of :class:`RegulatoryComplianceControl ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RegulatoryComplianceControl]'} - } - - def __init__(self, *args, **kwargs): - - super(RegulatoryComplianceControlPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control_py3.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control_py3.py deleted file mode 100644 index 0eaf9208895c..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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_py3 import Resource - - -class RegulatoryComplianceControl(Resource): - """Regulatory compliance control details and state. - - 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 - :ivar description: The description of the regulatory compliance control - :vartype description: str - :param state: Aggregative state based on the control's supported - assessments states. Possible values include: 'Passed', 'Failed', - 'Skipped', 'Unsupported' - :type state: str or ~azure.mgmt.security.models.State - :ivar passed_assessments: The number of supported regulatory compliance - assessments of the given control with a passed state - :vartype passed_assessments: int - :ivar failed_assessments: The number of supported regulatory compliance - assessments of the given control with a failed state - :vartype failed_assessments: int - :ivar skipped_assessments: The number of supported regulatory compliance - assessments of the given control with a skipped state - :vartype skipped_assessments: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'description': {'readonly': True}, - 'passed_assessments': {'readonly': True}, - 'failed_assessments': {'readonly': True}, - 'skipped_assessments': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'passed_assessments': {'key': 'properties.passedAssessments', 'type': 'int'}, - 'failed_assessments': {'key': 'properties.failedAssessments', 'type': 'int'}, - 'skipped_assessments': {'key': 'properties.skippedAssessments', 'type': 'int'}, - } - - def __init__(self, *, state=None, **kwargs) -> None: - super(RegulatoryComplianceControl, self).__init__(**kwargs) - self.description = None - self.state = state - self.passed_assessments = None - self.failed_assessments = None - self.skipped_assessments = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard.py deleted file mode 100644 index 052a8a90edbc..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 RegulatoryComplianceStandard(Resource): - """Regulatory compliance standard details and state. - - 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 state: Aggregative state based on the standard's supported controls - states. Possible values include: 'Passed', 'Failed', 'Skipped', - 'Unsupported' - :type state: str or ~azure.mgmt.security.models.State - :ivar passed_controls: The number of supported regulatory compliance - controls of the given standard with a passed state - :vartype passed_controls: int - :ivar failed_controls: The number of supported regulatory compliance - controls of the given standard with a failed state - :vartype failed_controls: int - :ivar skipped_controls: The number of supported regulatory compliance - controls of the given standard with a skipped state - :vartype skipped_controls: int - :ivar unsupported_controls: The number of regulatory compliance controls - of the given standard which are unsupported by automated assessments - :vartype unsupported_controls: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'passed_controls': {'readonly': True}, - 'failed_controls': {'readonly': True}, - 'skipped_controls': {'readonly': True}, - 'unsupported_controls': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'passed_controls': {'key': 'properties.passedControls', 'type': 'int'}, - 'failed_controls': {'key': 'properties.failedControls', 'type': 'int'}, - 'skipped_controls': {'key': 'properties.skippedControls', 'type': 'int'}, - 'unsupported_controls': {'key': 'properties.unsupportedControls', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(RegulatoryComplianceStandard, self).__init__(**kwargs) - self.state = kwargs.get('state', None) - self.passed_controls = None - self.failed_controls = None - self.skipped_controls = None - self.unsupported_controls = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard_paged.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard_paged.py deleted file mode 100644 index 8f091eee07be..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class RegulatoryComplianceStandardPaged(Paged): - """ - A paging container for iterating over a list of :class:`RegulatoryComplianceStandard ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RegulatoryComplianceStandard]'} - } - - def __init__(self, *args, **kwargs): - - super(RegulatoryComplianceStandardPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard_py3.py b/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard_py3.py deleted file mode 100644 index 9abfdccc46f2..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_standard_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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_py3 import Resource - - -class RegulatoryComplianceStandard(Resource): - """Regulatory compliance standard details and state. - - 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 state: Aggregative state based on the standard's supported controls - states. Possible values include: 'Passed', 'Failed', 'Skipped', - 'Unsupported' - :type state: str or ~azure.mgmt.security.models.State - :ivar passed_controls: The number of supported regulatory compliance - controls of the given standard with a passed state - :vartype passed_controls: int - :ivar failed_controls: The number of supported regulatory compliance - controls of the given standard with a failed state - :vartype failed_controls: int - :ivar skipped_controls: The number of supported regulatory compliance - controls of the given standard with a skipped state - :vartype skipped_controls: int - :ivar unsupported_controls: The number of regulatory compliance controls - of the given standard which are unsupported by automated assessments - :vartype unsupported_controls: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'passed_controls': {'readonly': True}, - 'failed_controls': {'readonly': True}, - 'skipped_controls': {'readonly': True}, - 'unsupported_controls': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'passed_controls': {'key': 'properties.passedControls', 'type': 'int'}, - 'failed_controls': {'key': 'properties.failedControls', 'type': 'int'}, - 'skipped_controls': {'key': 'properties.skippedControls', 'type': 'int'}, - 'unsupported_controls': {'key': 'properties.unsupportedControls', 'type': 'int'}, - } - - def __init__(self, *, state=None, **kwargs) -> None: - super(RegulatoryComplianceStandard, self).__init__(**kwargs) - self.state = state - self.passed_controls = None - self.failed_controls = None - self.skipped_controls = None - self.unsupported_controls = None diff --git a/azure-mgmt-security/azure/mgmt/security/models/security_center_enums.py b/azure-mgmt-security/azure/mgmt/security/models/security_center_enums.py index 39b8772f9c3a..d075c87db018 100644 --- a/azure-mgmt-security/azure/mgmt/security/models/security_center_enums.py +++ b/azure-mgmt-security/azure/mgmt/security/models/security_center_enums.py @@ -12,42 +12,18 @@ from enum import Enum -class State(str, Enum): - - passed = "Passed" #: All supported regulatory compliance controls in the given standard have a passed state - failed = "Failed" #: At least one supported regulatory compliance control in the given standard has a state of failed - skipped = "Skipped" #: All supported regulatory compliance controls in the given standard have a state of skipped - unsupported = "Unsupported" #: No supported regulatory compliance data for the given standard - - class PricingTier(str, Enum): free = "Free" #: Get free Azure security center experience with basic security features standard = "Standard" #: Get the standard Azure security center experience with advanced security features -class AlertNotifications(str, Enum): - - on = "On" #: Get notifications on new alerts - off = "Off" #: Don't get notifications on new alerts - - -class AlertsToAdmins(str, Enum): - - on = "On" #: Send notification on new alerts to the subscription's admins - off = "Off" #: Don't send notification on new alerts to the subscription's admins - - -class AutoProvision(str, Enum): - - on = "On" #: Install missing security agent on VMs automatically - off = "Off" #: Do not install security agent on the VMs automatically - - -class ValueType(str, Enum): +class ReportedSeverity(str, Enum): - ip_cidr = "IpCidr" #: An IP range in CIDR format (e.g. '192.168.0.1/8'). - string = "String" #: Any string value. + informational = "Informational" + low = "Low" + medium = "Medium" + high = "High" class SettingKind(str, Enum): @@ -56,14 +32,6 @@ class SettingKind(str, Enum): alert_suppression_setting = "AlertSuppressionSetting" -class ReportedSeverity(str, Enum): - - informational = "Informational" - low = "Low" - medium = "Medium" - high = "High" - - class SecurityFamily(str, Enum): waf = "Waf" @@ -72,6 +40,20 @@ class SecurityFamily(str, Enum): va = "Va" +class AadConnectivityState(str, Enum): + + discovered = "Discovered" + not_licensed = "NotLicensed" + connected = "Connected" + + +class ExternalSecuritySolutionKind(str, Enum): + + cef = "CEF" + ata = "ATA" + aad = "AAD" + + class Protocol(str, Enum): tcp = "TCP" @@ -92,18 +74,22 @@ class StatusReason(str, Enum): newer_request_initiated = "NewerRequestInitiated" -class AadConnectivityState(str, Enum): +class AutoProvision(str, Enum): - discovered = "Discovered" - not_licensed = "NotLicensed" - connected = "Connected" + on = "On" #: Install missing security agent on VMs automatically + off = "Off" #: Do not install security agent on the VMs automatically -class ExternalSecuritySolutionKind(str, Enum): +class AlertNotifications(str, Enum): - cef = "CEF" - ata = "ATA" - aad = "AAD" + on = "On" #: Get notifications on new alerts + off = "Off" #: Don't get notifications on new alerts + + +class AlertsToAdmins(str, Enum): + + on = "On" #: Send notification on new alerts to the subscription's admins + off = "Off" #: Don't send notification on new alerts to the subscription's admins class ConnectionType(str, Enum): diff --git a/azure-mgmt-security/azure/mgmt/security/models/threshold_custom_alert_rule.py b/azure-mgmt-security/azure/mgmt/security/models/threshold_custom_alert_rule.py deleted file mode 100644 index 4e6306190e2b..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/threshold_custom_alert_rule.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 .custom_alert_rule import CustomAlertRule - - -class ThresholdCustomAlertRule(CustomAlertRule): - """A custom alert rule that checks if a value (depends on the custom alert - type) is within the given range. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :param min_threshold: Required. The minimum threshold. - :type min_threshold: int - :param max_threshold: Required. The maximum threshold. - :type max_threshold: int - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'min_threshold': {'required': True}, - 'max_threshold': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'min_threshold': {'key': 'minThreshold', 'type': 'int'}, - 'max_threshold': {'key': 'maxThreshold', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ThresholdCustomAlertRule, self).__init__(**kwargs) - self.min_threshold = kwargs.get('min_threshold', None) - self.max_threshold = kwargs.get('max_threshold', None) diff --git a/azure-mgmt-security/azure/mgmt/security/models/threshold_custom_alert_rule_py3.py b/azure-mgmt-security/azure/mgmt/security/models/threshold_custom_alert_rule_py3.py deleted file mode 100644 index 63c5567caceb..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/threshold_custom_alert_rule_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 .custom_alert_rule_py3 import CustomAlertRule - - -class ThresholdCustomAlertRule(CustomAlertRule): - """A custom alert rule that checks if a value (depends on the custom alert - type) is within the given range. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :param min_threshold: Required. The minimum threshold. - :type min_threshold: int - :param max_threshold: Required. The maximum threshold. - :type max_threshold: int - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'min_threshold': {'required': True}, - 'max_threshold': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'min_threshold': {'key': 'minThreshold', 'type': 'int'}, - 'max_threshold': {'key': 'maxThreshold', 'type': 'int'}, - } - - def __init__(self, *, is_enabled: bool, rule_type: str, min_threshold: int, max_threshold: int, **kwargs) -> None: - super(ThresholdCustomAlertRule, self).__init__(is_enabled=is_enabled, rule_type=rule_type, **kwargs) - self.min_threshold = min_threshold - self.max_threshold = max_threshold diff --git a/azure-mgmt-security/azure/mgmt/security/models/time_window_custom_alert_rule.py b/azure-mgmt-security/azure/mgmt/security/models/time_window_custom_alert_rule.py deleted file mode 100644 index 224d5a3dc0ea..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/time_window_custom_alert_rule.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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.serialization import Model - - -class TimeWindowCustomAlertRule(Model): - """A custom alert rule that checks if the number of activities (depends on the - custom alert type) in a time window is within the given range. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :param min_threshold: Required. The minimum threshold. - :type min_threshold: int - :param max_threshold: Required. The maximum threshold. - :type max_threshold: int - :param time_window_size: Required. The time window size in iso8601 format. - :type time_window_size: timedelta - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'min_threshold': {'required': True}, - 'max_threshold': {'required': True}, - 'time_window_size': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'min_threshold': {'key': 'minThreshold', 'type': 'int'}, - 'max_threshold': {'key': 'maxThreshold', 'type': 'int'}, - 'time_window_size': {'key': 'timeWindowSize', 'type': 'duration'}, - } - - def __init__(self, **kwargs): - super(TimeWindowCustomAlertRule, self).__init__(**kwargs) - self.display_name = None - self.description = None - self.is_enabled = kwargs.get('is_enabled', None) - self.rule_type = kwargs.get('rule_type', None) - self.min_threshold = kwargs.get('min_threshold', None) - self.max_threshold = kwargs.get('max_threshold', None) - self.time_window_size = kwargs.get('time_window_size', None) diff --git a/azure-mgmt-security/azure/mgmt/security/models/time_window_custom_alert_rule_py3.py b/azure-mgmt-security/azure/mgmt/security/models/time_window_custom_alert_rule_py3.py deleted file mode 100644 index 0a2962dddb94..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/models/time_window_custom_alert_rule_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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.serialization import Model - - -class TimeWindowCustomAlertRule(Model): - """A custom alert rule that checks if the number of activities (depends on the - custom alert type) in a time window is within the given range. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar display_name: The display name of the custom alert. - :vartype display_name: str - :ivar description: The description of the custom alert. - :vartype description: str - :param is_enabled: Required. Whether the custom alert is enabled. - :type is_enabled: bool - :param rule_type: Required. The type of the custom alert rule. - :type rule_type: str - :param min_threshold: Required. The minimum threshold. - :type min_threshold: int - :param max_threshold: Required. The maximum threshold. - :type max_threshold: int - :param time_window_size: Required. The time window size in iso8601 format. - :type time_window_size: timedelta - """ - - _validation = { - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'is_enabled': {'required': True}, - 'rule_type': {'required': True}, - 'min_threshold': {'required': True}, - 'max_threshold': {'required': True}, - 'time_window_size': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'min_threshold': {'key': 'minThreshold', 'type': 'int'}, - 'max_threshold': {'key': 'maxThreshold', 'type': 'int'}, - 'time_window_size': {'key': 'timeWindowSize', 'type': 'duration'}, - } - - def __init__(self, *, is_enabled: bool, rule_type: str, min_threshold: int, max_threshold: int, time_window_size, **kwargs) -> None: - super(TimeWindowCustomAlertRule, self).__init__(**kwargs) - self.display_name = None - self.description = None - self.is_enabled = is_enabled - self.rule_type = rule_type - self.min_threshold = min_threshold - self.max_threshold = max_threshold - self.time_window_size = time_window_size diff --git a/azure-mgmt-security/azure/mgmt/security/operations/__init__.py b/azure-mgmt-security/azure/mgmt/security/operations/__init__.py index d16a4df3422e..23522fd792f8 100644 --- a/azure-mgmt-security/azure/mgmt/security/operations/__init__.py +++ b/azure-mgmt-security/azure/mgmt/security/operations/__init__.py @@ -9,48 +9,40 @@ # regenerated. # -------------------------------------------------------------------------- -from .regulatory_compliance_standards_operations import RegulatoryComplianceStandardsOperations -from .regulatory_compliance_controls_operations import RegulatoryComplianceControlsOperations -from .regulatory_compliance_assessments_operations import RegulatoryComplianceAssessmentsOperations from .pricings_operations import PricingsOperations -from .security_contacts_operations import SecurityContactsOperations -from .workspace_settings_operations import WorkspaceSettingsOperations -from .auto_provisioning_settings_operations import AutoProvisioningSettingsOperations -from .compliances_operations import CompliancesOperations -from .advanced_threat_protection_operations import AdvancedThreatProtectionOperations -from .device_security_groups_operations import DeviceSecurityGroupsOperations -from .settings_operations import SettingsOperations -from .information_protection_policies_operations import InformationProtectionPoliciesOperations -from .operations import Operations -from .locations_operations import LocationsOperations -from .tasks_operations import TasksOperations from .alerts_operations import AlertsOperations +from .settings_operations import SettingsOperations +from .allowed_connections_operations import AllowedConnectionsOperations from .discovered_security_solutions_operations import DiscoveredSecuritySolutionsOperations -from .jit_network_access_policies_operations import JitNetworkAccessPoliciesOperations from .external_security_solutions_operations import ExternalSecuritySolutionsOperations +from .jit_network_access_policies_operations import JitNetworkAccessPoliciesOperations +from .locations_operations import LocationsOperations +from .operations import Operations +from .tasks_operations import TasksOperations from .topology_operations import TopologyOperations -from .allowed_connections_operations import AllowedConnectionsOperations +from .advanced_threat_protection_operations import AdvancedThreatProtectionOperations +from .auto_provisioning_settings_operations import AutoProvisioningSettingsOperations +from .compliances_operations import CompliancesOperations +from .information_protection_policies_operations import InformationProtectionPoliciesOperations +from .security_contacts_operations import SecurityContactsOperations +from .workspace_settings_operations import WorkspaceSettingsOperations __all__ = [ - 'RegulatoryComplianceStandardsOperations', - 'RegulatoryComplianceControlsOperations', - 'RegulatoryComplianceAssessmentsOperations', 'PricingsOperations', - 'SecurityContactsOperations', - 'WorkspaceSettingsOperations', - 'AutoProvisioningSettingsOperations', - 'CompliancesOperations', - 'AdvancedThreatProtectionOperations', - 'DeviceSecurityGroupsOperations', - 'SettingsOperations', - 'InformationProtectionPoliciesOperations', - 'Operations', - 'LocationsOperations', - 'TasksOperations', 'AlertsOperations', + 'SettingsOperations', + 'AllowedConnectionsOperations', 'DiscoveredSecuritySolutionsOperations', - 'JitNetworkAccessPoliciesOperations', 'ExternalSecuritySolutionsOperations', + 'JitNetworkAccessPoliciesOperations', + 'LocationsOperations', + 'Operations', + 'TasksOperations', 'TopologyOperations', - 'AllowedConnectionsOperations', + 'AdvancedThreatProtectionOperations', + 'AutoProvisioningSettingsOperations', + 'CompliancesOperations', + 'InformationProtectionPoliciesOperations', + 'SecurityContactsOperations', + 'WorkspaceSettingsOperations', ] diff --git a/azure-mgmt-security/azure/mgmt/security/operations/device_security_groups_operations.py b/azure-mgmt-security/azure/mgmt/security/operations/device_security_groups_operations.py deleted file mode 100644 index a55f1ed2f3c9..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/operations/device_security_groups_operations.py +++ /dev/null @@ -1,292 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class DeviceSecurityGroupsOperations(object): - """DeviceSecurityGroupsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: API version for the operation. Constant value: "2017-08-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-08-01-preview" - - self.config = config - - def list( - self, resource_id, custom_headers=None, raw=False, **operation_config): - """Gets the list of device security groups for the specified IoT hub - resource. - - :param resource_id: The identifier of the resource. - :type resource_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of DeviceSecurityGroup - :rtype: - ~azure.mgmt.security.models.DeviceSecurityGroupPaged[~azure.mgmt.security.models.DeviceSecurityGroup] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'resourceId': self._serialize.url("resource_id", resource_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.DeviceSecurityGroupPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.DeviceSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups'} - - def get( - self, resource_id, device_security_group_name, custom_headers=None, raw=False, **operation_config): - """Gets the device security group for the specified IoT hub resource. - - :param resource_id: The identifier of the resource. - :type resource_id: str - :param device_security_group_name: The name of the security group. - Please notice that the name is case insensitive. - :type device_security_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DeviceSecurityGroup or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.security.models.DeviceSecurityGroup or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'resourceId': self._serialize.url("resource_id", resource_id, 'str'), - 'deviceSecurityGroupName': self._serialize.url("device_security_group_name", device_security_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DeviceSecurityGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}'} - - def create_or_update( - self, resource_id, device_security_group_name, device_security_group, custom_headers=None, raw=False, **operation_config): - """Creates or updates the device security group on a specified IoT hub - resource. - - :param resource_id: The identifier of the resource. - :type resource_id: str - :param device_security_group_name: The name of the security group. - Please notice that the name is case insensitive. - :type device_security_group_name: str - :param device_security_group: Security group object. - :type device_security_group: - ~azure.mgmt.security.models.DeviceSecurityGroup - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DeviceSecurityGroup or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.security.models.DeviceSecurityGroup or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'resourceId': self._serialize.url("resource_id", resource_id, 'str'), - 'deviceSecurityGroupName': self._serialize.url("device_security_group_name", device_security_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(device_security_group, 'DeviceSecurityGroup') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DeviceSecurityGroup', response) - if response.status_code == 201: - deserialized = self._deserialize('DeviceSecurityGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - create_or_update.metadata = {'url': '/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}'} - - def delete( - self, resource_id, device_security_group_name, custom_headers=None, raw=False, **operation_config): - """Deletes the security group. - - :param resource_id: The identifier of the resource. - :type resource_id: str - :param device_security_group_name: The name of the security group. - Please notice that the name is case insensitive. - :type device_security_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'resourceId': self._serialize.url("resource_id", resource_id, 'str'), - 'deviceSecurityGroupName': self._serialize.url("device_security_group_name", device_security_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}'} diff --git a/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_assessments_operations.py b/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_assessments_operations.py deleted file mode 100644 index afc2c6d0adfd..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_assessments_operations.py +++ /dev/null @@ -1,193 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class RegulatoryComplianceAssessmentsOperations(object): - """RegulatoryComplianceAssessmentsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: API version for the operation. Constant value: "2019-01-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-01-01-preview" - - self.config = config - - def list( - self, resource_group_name, regulatory_compliance_standard_name, regulatory_compliance_control_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Details and state of assessments mapped to selected regulatory - compliance control. - - :param resource_group_name: The name of the resource group within the - user's subscription. The name is case insensitive. - :type resource_group_name: str - :param regulatory_compliance_standard_name: Name of the regulatory - compliance standard object - :type regulatory_compliance_standard_name: str - :param regulatory_compliance_control_name: Name of the regulatory - compliance control object - :type regulatory_compliance_control_name: str - :param filter: OData filter. Optional. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of RegulatoryComplianceAssessment - :rtype: - ~azure.mgmt.security.models.RegulatoryComplianceAssessmentPaged[~azure.mgmt.security.models.RegulatoryComplianceAssessment] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'regulatoryComplianceStandardName': self._serialize.url("regulatory_compliance_standard_name", regulatory_compliance_standard_name, 'str'), - 'regulatoryComplianceControlName': self._serialize.url("regulatory_compliance_control_name", regulatory_compliance_control_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.RegulatoryComplianceAssessmentPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.RegulatoryComplianceAssessmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments'} - - def get( - self, resource_group_name, regulatory_compliance_standard_name, regulatory_compliance_control_name, regulatory_compliance_assessment_name, custom_headers=None, raw=False, **operation_config): - """Supported regulatory compliance details and state for selected - assessment. - - :param resource_group_name: The name of the resource group within the - user's subscription. The name is case insensitive. - :type resource_group_name: str - :param regulatory_compliance_standard_name: Name of the regulatory - compliance standard object - :type regulatory_compliance_standard_name: str - :param regulatory_compliance_control_name: Name of the regulatory - compliance control object - :type regulatory_compliance_control_name: str - :param regulatory_compliance_assessment_name: Name of the regulatory - compliance assessment object - :type regulatory_compliance_assessment_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: RegulatoryComplianceAssessment or ClientRawResponse if - raw=true - :rtype: ~azure.mgmt.security.models.RegulatoryComplianceAssessment or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'regulatoryComplianceStandardName': self._serialize.url("regulatory_compliance_standard_name", regulatory_compliance_standard_name, 'str'), - 'regulatoryComplianceControlName': self._serialize.url("regulatory_compliance_control_name", regulatory_compliance_control_name, 'str'), - 'regulatoryComplianceAssessmentName': self._serialize.url("regulatory_compliance_assessment_name", regulatory_compliance_assessment_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('RegulatoryComplianceAssessment', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}'} diff --git a/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_controls_operations.py b/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_controls_operations.py deleted file mode 100644 index 9b5db20ec2eb..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_controls_operations.py +++ /dev/null @@ -1,183 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class RegulatoryComplianceControlsOperations(object): - """RegulatoryComplianceControlsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: API version for the operation. Constant value: "2019-01-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-01-01-preview" - - self.config = config - - def list( - self, resource_group_name, regulatory_compliance_standard_name, filter=None, custom_headers=None, raw=False, **operation_config): - """All supported regulatory compliance controls details and state for - selected standard. - - :param resource_group_name: The name of the resource group within the - user's subscription. The name is case insensitive. - :type resource_group_name: str - :param regulatory_compliance_standard_name: Name of the regulatory - compliance standard object - :type regulatory_compliance_standard_name: str - :param filter: OData filter. Optional. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of RegulatoryComplianceControl - :rtype: - ~azure.mgmt.security.models.RegulatoryComplianceControlPaged[~azure.mgmt.security.models.RegulatoryComplianceControl] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'regulatoryComplianceStandardName': self._serialize.url("regulatory_compliance_standard_name", regulatory_compliance_standard_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.RegulatoryComplianceControlPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.RegulatoryComplianceControlPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls'} - - def get( - self, resource_group_name, regulatory_compliance_standard_name, regulatory_compliance_control_name, custom_headers=None, raw=False, **operation_config): - """Selected regulatory compliance control details and state. - - :param resource_group_name: The name of the resource group within the - user's subscription. The name is case insensitive. - :type resource_group_name: str - :param regulatory_compliance_standard_name: Name of the regulatory - compliance standard object - :type regulatory_compliance_standard_name: str - :param regulatory_compliance_control_name: Name of the regulatory - compliance control object - :type regulatory_compliance_control_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: RegulatoryComplianceControl or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.security.models.RegulatoryComplianceControl or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'regulatoryComplianceStandardName': self._serialize.url("regulatory_compliance_standard_name", regulatory_compliance_standard_name, 'str'), - 'regulatoryComplianceControlName': self._serialize.url("regulatory_compliance_control_name", regulatory_compliance_control_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('RegulatoryComplianceControl', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}'} diff --git a/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_standards_operations.py b/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_standards_operations.py deleted file mode 100644 index 43a9ce7a73ce..000000000000 --- a/azure-mgmt-security/azure/mgmt/security/operations/regulatory_compliance_standards_operations.py +++ /dev/null @@ -1,174 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class RegulatoryComplianceStandardsOperations(object): - """RegulatoryComplianceStandardsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: API version for the operation. Constant value: "2019-01-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-01-01-preview" - - self.config = config - - def list( - self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Supported regulatory compliance standards details and state. - - :param resource_group_name: The name of the resource group within the - user's subscription. The name is case insensitive. - :type resource_group_name: str - :param filter: OData filter. Optional. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of RegulatoryComplianceStandard - :rtype: - ~azure.mgmt.security.models.RegulatoryComplianceStandardPaged[~azure.mgmt.security.models.RegulatoryComplianceStandard] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.RegulatoryComplianceStandardPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.RegulatoryComplianceStandardPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards'} - - def get( - self, resource_group_name, regulatory_compliance_standard_name, custom_headers=None, raw=False, **operation_config): - """Supported regulatory compliance details state for selected standard. - - :param resource_group_name: The name of the resource group within the - user's subscription. The name is case insensitive. - :type resource_group_name: str - :param regulatory_compliance_standard_name: Name of the regulatory - compliance standard object - :type regulatory_compliance_standard_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: RegulatoryComplianceStandard or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.security.models.RegulatoryComplianceStandard or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'regulatoryComplianceStandardName': self._serialize.url("regulatory_compliance_standard_name", regulatory_compliance_standard_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('RegulatoryComplianceStandard', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}'} diff --git a/azure-mgmt-security/azure/mgmt/security/operations/settings_operations.py b/azure-mgmt-security/azure/mgmt/security/operations/settings_operations.py index 6aef42b410e1..b36f8f8b2b4b 100644 --- a/azure-mgmt-security/azure/mgmt/security/operations/settings_operations.py +++ b/azure-mgmt-security/azure/mgmt/security/operations/settings_operations.py @@ -23,7 +23,7 @@ class SettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: API version for the operation. Constant value: "2017-08-01-preview". + :ivar api_version: API version for the operation. Constant value: "2019-01-01". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-08-01-preview" + self.api_version = "2019-01-01" self.config = config diff --git a/azure-mgmt-security/azure/mgmt/security/security_center.py b/azure-mgmt-security/azure/mgmt/security/security_center.py index 43de544dc1eb..38888caff012 100644 --- a/azure-mgmt-security/azure/mgmt/security/security_center.py +++ b/azure-mgmt-security/azure/mgmt/security/security_center.py @@ -13,27 +13,23 @@ from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION -from .operations.regulatory_compliance_standards_operations import RegulatoryComplianceStandardsOperations -from .operations.regulatory_compliance_controls_operations import RegulatoryComplianceControlsOperations -from .operations.regulatory_compliance_assessments_operations import RegulatoryComplianceAssessmentsOperations from .operations.pricings_operations import PricingsOperations -from .operations.security_contacts_operations import SecurityContactsOperations -from .operations.workspace_settings_operations import WorkspaceSettingsOperations -from .operations.auto_provisioning_settings_operations import AutoProvisioningSettingsOperations -from .operations.compliances_operations import CompliancesOperations -from .operations.advanced_threat_protection_operations import AdvancedThreatProtectionOperations -from .operations.device_security_groups_operations import DeviceSecurityGroupsOperations -from .operations.settings_operations import SettingsOperations -from .operations.information_protection_policies_operations import InformationProtectionPoliciesOperations -from .operations.operations import Operations -from .operations.locations_operations import LocationsOperations -from .operations.tasks_operations import TasksOperations from .operations.alerts_operations import AlertsOperations +from .operations.settings_operations import SettingsOperations +from .operations.allowed_connections_operations import AllowedConnectionsOperations from .operations.discovered_security_solutions_operations import DiscoveredSecuritySolutionsOperations -from .operations.jit_network_access_policies_operations import JitNetworkAccessPoliciesOperations from .operations.external_security_solutions_operations import ExternalSecuritySolutionsOperations +from .operations.jit_network_access_policies_operations import JitNetworkAccessPoliciesOperations +from .operations.locations_operations import LocationsOperations +from .operations.operations import Operations +from .operations.tasks_operations import TasksOperations from .operations.topology_operations import TopologyOperations -from .operations.allowed_connections_operations import AllowedConnectionsOperations +from .operations.advanced_threat_protection_operations import AdvancedThreatProtectionOperations +from .operations.auto_provisioning_settings_operations import AutoProvisioningSettingsOperations +from .operations.compliances_operations import CompliancesOperations +from .operations.information_protection_policies_operations import InformationProtectionPoliciesOperations +from .operations.security_contacts_operations import SecurityContactsOperations +from .operations.workspace_settings_operations import WorkspaceSettingsOperations from . import models @@ -81,48 +77,40 @@ class SecurityCenter(SDKClient): :ivar config: Configuration for client. :vartype config: SecurityCenterConfiguration - :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 pricings: Pricings operations :vartype pricings: azure.mgmt.security.operations.PricingsOperations - :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 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 advanced_threat_protection: AdvancedThreatProtection operations - :vartype advanced_threat_protection: azure.mgmt.security.operations.AdvancedThreatProtectionOperations - :ivar device_security_groups: DeviceSecurityGroups operations - :vartype device_security_groups: azure.mgmt.security.operations.DeviceSecurityGroupsOperations - :ivar settings: Settings operations - :vartype settings: azure.mgmt.security.operations.SettingsOperations - :ivar information_protection_policies: InformationProtectionPolicies operations - :vartype information_protection_policies: azure.mgmt.security.operations.InformationProtectionPoliciesOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.security.operations.Operations - :ivar locations: Locations operations - :vartype locations: azure.mgmt.security.operations.LocationsOperations - :ivar tasks: Tasks operations - :vartype tasks: azure.mgmt.security.operations.TasksOperations :ivar alerts: Alerts operations :vartype alerts: azure.mgmt.security.operations.AlertsOperations + :ivar settings: Settings operations + :vartype settings: azure.mgmt.security.operations.SettingsOperations + :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 jit_network_access_policies: JitNetworkAccessPolicies operations - :vartype jit_network_access_policies: azure.mgmt.security.operations.JitNetworkAccessPoliciesOperations :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 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 allowed_connections: AllowedConnections operations - :vartype allowed_connections: azure.mgmt.security.operations.AllowedConnectionsOperations + :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 :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -145,45 +133,37 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - 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.pricings = PricingsOperations( 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.alerts = AlertsOperations( self._client, self.config, self._serialize, self._deserialize) - self.auto_provisioning_settings = AutoProvisioningSettingsOperations( + self.settings = SettingsOperations( self._client, self.config, self._serialize, self._deserialize) - self.compliances = CompliancesOperations( + self.allowed_connections = AllowedConnectionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.advanced_threat_protection = AdvancedThreatProtectionOperations( + self.discovered_security_solutions = DiscoveredSecuritySolutionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.device_security_groups = DeviceSecurityGroupsOperations( + self.external_security_solutions = ExternalSecuritySolutionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.settings = SettingsOperations( + self.jit_network_access_policies = JitNetworkAccessPoliciesOperations( self._client, self.config, self._serialize, self._deserialize) - self.information_protection_policies = InformationProtectionPoliciesOperations( + self.locations = LocationsOperations( self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( self._client, self.config, self._serialize, self._deserialize) - self.locations = LocationsOperations( - self._client, self.config, self._serialize, self._deserialize) self.tasks = TasksOperations( self._client, self.config, self._serialize, self._deserialize) - self.alerts = AlertsOperations( + self.topology = TopologyOperations( self._client, self.config, self._serialize, self._deserialize) - self.discovered_security_solutions = DiscoveredSecuritySolutionsOperations( + self.advanced_threat_protection = AdvancedThreatProtectionOperations( self._client, self.config, self._serialize, self._deserialize) - self.jit_network_access_policies = JitNetworkAccessPoliciesOperations( + self.auto_provisioning_settings = AutoProvisioningSettingsOperations( self._client, self.config, self._serialize, self._deserialize) - self.external_security_solutions = ExternalSecuritySolutionsOperations( + self.compliances = CompliancesOperations( self._client, self.config, self._serialize, self._deserialize) - self.topology = TopologyOperations( + self.information_protection_policies = InformationProtectionPoliciesOperations( self._client, self.config, self._serialize, self._deserialize) - self.allowed_connections = AllowedConnectionsOperations( + self.security_contacts = SecurityContactsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.workspace_settings = WorkspaceSettingsOperations( self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-security/setup.py b/azure-mgmt-security/setup.py index fc4a6d29b82c..eaf6f78dff3b 100644 --- a/azure-mgmt-security/setup.py +++ b/azure-mgmt-security/setup.py @@ -53,6 +53,7 @@ version=version, description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com',