Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,57 @@
from .alert_rule_py3 import AlertRule
from .alert_rule_kind1_py3 import AlertRuleKind1
from .scheduled_alert_rule_py3 import ScheduledAlertRule
from .data_connector_py3 import DataConnector
from .data_connector_kind1_py3 import DataConnectorKind1
from .data_connector_context_id_py3 import DataConnectorContextId
from .office_data_connector_data_types_share_point_py3 import OfficeDataConnectorDataTypesSharePoint
from .office_data_connector_data_types_exchange_py3 import OfficeDataConnectorDataTypesExchange
from .office_data_connector_data_types_py3 import OfficeDataConnectorDataTypes
from .office_data_connector_py3 import OfficeDataConnector
from .ti_data_connector_data_types_indicators_py3 import TIDataConnectorDataTypesIndicators
from .ti_data_connector_data_types_py3 import TIDataConnectorDataTypes
from .ti_data_connector_py3 import TIDataConnector
from .aad_data_connector_py3 import AADDataConnector
from .asc_data_connector_py3 import ASCDataConnector
from .mcas_data_connector_py3 import MCASDataConnector
from .alerts_data_type_of_data_connector_alerts_py3 import AlertsDataTypeOfDataConnectorAlerts
from .alerts_data_type_of_data_connector_py3 import AlertsDataTypeOfDataConnector
from .data_connector_with_alerts_py3 import DataConnectorWithAlerts
from .data_connector_data_type_common_py3 import DataConnectorDataTypeCommon
from .resource_py3 import Resource
except (SyntaxError, ImportError):
from .operation_display import OperationDisplay
from .operation import Operation
from .alert_rule import AlertRule
from .alert_rule_kind1 import AlertRuleKind1
from .scheduled_alert_rule import ScheduledAlertRule
from .data_connector import DataConnector
from .data_connector_kind1 import DataConnectorKind1
from .data_connector_context_id import DataConnectorContextId
from .office_data_connector_data_types_share_point import OfficeDataConnectorDataTypesSharePoint
from .office_data_connector_data_types_exchange import OfficeDataConnectorDataTypesExchange
from .office_data_connector_data_types import OfficeDataConnectorDataTypes
from .office_data_connector import OfficeDataConnector
from .ti_data_connector_data_types_indicators import TIDataConnectorDataTypesIndicators
from .ti_data_connector_data_types import TIDataConnectorDataTypes
from .ti_data_connector import TIDataConnector
from .aad_data_connector import AADDataConnector
from .asc_data_connector import ASCDataConnector
from .mcas_data_connector import MCASDataConnector
from .alerts_data_type_of_data_connector_alerts import AlertsDataTypeOfDataConnectorAlerts
from .alerts_data_type_of_data_connector import AlertsDataTypeOfDataConnector
from .data_connector_with_alerts import DataConnectorWithAlerts
from .data_connector_data_type_common import DataConnectorDataTypeCommon
from .resource import Resource
from .operation_paged import OperationPaged
from .alert_rule_paged import AlertRulePaged
from .data_connector_paged import DataConnectorPaged
from .security_insights_enums import (
AlertRuleKind,
Severity,
TriggerOperator,
DataConnectorKind,
DataTypeState,
)

__all__ = [
Expand All @@ -37,10 +74,30 @@
'AlertRule',
'AlertRuleKind1',
'ScheduledAlertRule',
'DataConnector',
'DataConnectorKind1',
'DataConnectorContextId',
'OfficeDataConnectorDataTypesSharePoint',
'OfficeDataConnectorDataTypesExchange',
'OfficeDataConnectorDataTypes',
'OfficeDataConnector',
'TIDataConnectorDataTypesIndicators',
'TIDataConnectorDataTypes',
'TIDataConnector',
'AADDataConnector',
'ASCDataConnector',
'MCASDataConnector',
'AlertsDataTypeOfDataConnectorAlerts',
'AlertsDataTypeOfDataConnector',
'DataConnectorWithAlerts',
'DataConnectorDataTypeCommon',
'Resource',
'OperationPaged',
'AlertRulePaged',
'DataConnectorPaged',
'AlertRuleKind',
'Severity',
'TriggerOperator',
'DataConnectorKind',
'DataTypeState',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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 .data_connector_with_alerts import DataConnectorWithAlerts


class AADDataConnector(DataConnectorWithAlerts):
"""Represents AAD (Azure Active Directory) data connector.

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 id: Azure resource Id
:vartype id: str
:ivar type: Azure resource type
:vartype type: str
:ivar name: Azure resource name
:vartype name: str
:param etag: Etag of the data connector.
:type etag: str
:param kind: Required. Constant filled by server.
:type kind: str
:param context_id: The context id of the origin data source (Like
tenantID, SubscriptionID etc.).
:type context_id: str
:param data_types: The available data types for the connector.
:type data_types:
~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnector
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'context_id': {'key': 'properties.contextId', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'},
}

def __init__(self, **kwargs):
super(AADDataConnector, self).__init__(**kwargs)
self.kind = 'AzureActiveDirectory'
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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 .data_connector_with_alerts_py3 import DataConnectorWithAlerts


class AADDataConnector(DataConnectorWithAlerts):
"""Represents AAD (Azure Active Directory) data connector.

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 id: Azure resource Id
:vartype id: str
:ivar type: Azure resource type
:vartype type: str
:ivar name: Azure resource name
:vartype name: str
:param etag: Etag of the data connector.
:type etag: str
:param kind: Required. Constant filled by server.
:type kind: str
:param context_id: The context id of the origin data source (Like
tenantID, SubscriptionID etc.).
:type context_id: str
:param data_types: The available data types for the connector.
:type data_types:
~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnector
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'context_id': {'key': 'properties.contextId', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'},
}

def __init__(self, *, etag: str=None, context_id: str=None, data_types=None, **kwargs) -> None:
super(AADDataConnector, self).__init__(etag=etag, context_id=context_id, data_types=data_types, **kwargs)
self.kind = 'AzureActiveDirectory'
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 AlertsDataTypeOfDataConnector(Model):
"""Alerts data type for data connectors.

:param alerts: Alerts data type connection.
:type alerts:
~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnectorAlerts
"""

_attribute_map = {
'alerts': {'key': 'alerts', 'type': 'AlertsDataTypeOfDataConnectorAlerts'},
}

def __init__(self, **kwargs):
super(AlertsDataTypeOfDataConnector, self).__init__(**kwargs)
self.alerts = kwargs.get('alerts', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 .data_connector_data_type_common import DataConnectorDataTypeCommon


class AlertsDataTypeOfDataConnectorAlerts(DataConnectorDataTypeCommon):
"""Alerts data type connection.

:param state: Describe whether this data type connection is enabled or
not. Possible values include: 'Enabled', 'Disabled'
:type state: str or ~azure.mgmt.securityinsight.models.DataTypeState
"""

_attribute_map = {
'state': {'key': 'state', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AlertsDataTypeOfDataConnectorAlerts, self).__init__(**kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 .data_connector_data_type_common_py3 import DataConnectorDataTypeCommon


class AlertsDataTypeOfDataConnectorAlerts(DataConnectorDataTypeCommon):
"""Alerts data type connection.

:param state: Describe whether this data type connection is enabled or
not. Possible values include: 'Enabled', 'Disabled'
:type state: str or ~azure.mgmt.securityinsight.models.DataTypeState
"""

_attribute_map = {
'state': {'key': 'state', 'type': 'str'},
}

def __init__(self, *, state=None, **kwargs) -> None:
super(AlertsDataTypeOfDataConnectorAlerts, self).__init__(state=state, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 AlertsDataTypeOfDataConnector(Model):
"""Alerts data type for data connectors.

:param alerts: Alerts data type connection.
:type alerts:
~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnectorAlerts
"""

_attribute_map = {
'alerts': {'key': 'alerts', 'type': 'AlertsDataTypeOfDataConnectorAlerts'},
}

def __init__(self, *, alerts=None, **kwargs) -> None:
super(AlertsDataTypeOfDataConnector, self).__init__(**kwargs)
self.alerts = alerts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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 .data_connector_with_alerts import DataConnectorWithAlerts


class ASCDataConnector(DataConnectorWithAlerts):
"""Represents ASC (Azure Security Center) data connector.

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 id: Azure resource Id
:vartype id: str
:ivar type: Azure resource type
:vartype type: str
:ivar name: Azure resource name
:vartype name: str
:param etag: Etag of the data connector.
:type etag: str
:param kind: Required. Constant filled by server.
:type kind: str
:param context_id: The context id of the origin data source (Like
tenantID, SubscriptionID etc.).
:type context_id: str
:param data_types: The available data types for the connector.
:type data_types:
~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnector
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'context_id': {'key': 'properties.contextId', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'},
}

def __init__(self, **kwargs):
super(ASCDataConnector, self).__init__(**kwargs)
self.kind = 'AzureSecurityCenter'
Loading