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 @@ -36,14 +36,39 @@
from .alerts_data_type_of_data_connector_py3 import AlertsDataTypeOfDataConnector
from .aad_data_connector_py3 import AADDataConnector
from .asc_data_connector_py3 import ASCDataConnector
from .mcas_data_connector_data_types_discovery_logs_py3 import MCASDataConnectorDataTypesDiscoveryLogs
from .mcas_data_connector_data_types_py3 import MCASDataConnectorDataTypes
from .mcas_data_connector_py3 import MCASDataConnector
from .aatp_data_connector_py3 import AATPDataConnector
from .mdatp_data_connector_py3 import MDATPDataConnector
from .data_connector_with_alerts_properties_py3 import DataConnectorWithAlertsProperties
from .data_connector_data_type_common_py3 import DataConnectorDataTypeCommon
from .entity_py3 import Entity
from .entity_kind1_py3 import EntityKind1
from .entity_common_properties_py3 import EntityCommonProperties
from .account_entity_py3 import AccountEntity
from .host_entity_py3 import HostEntity
from .file_entity_py3 import FileEntity
from .security_alert_properties_confidence_reasons_item_py3 import SecurityAlertPropertiesConfidenceReasonsItem
from .security_alert_py3 import SecurityAlert
from .file_hash_entity_py3 import FileHashEntity
from .malware_entity_py3 import MalwareEntity
from .security_group_entity_py3 import SecurityGroupEntity
from .azure_resource_entity_py3 import AzureResourceEntity
from .cloud_application_entity_py3 import CloudApplicationEntity
from .process_entity_py3 import ProcessEntity
from .dns_entity_py3 import DnsEntity
from .geo_location_py3 import GeoLocation
from .threat_intelligence_py3 import ThreatIntelligence
from .ip_entity_py3 import IpEntity
from .registry_key_entity_py3 import RegistryKeyEntity
from .registry_value_entity_py3 import RegistryValueEntity
from .url_entity_py3 import UrlEntity
from .entity_expand_parameters_py3 import EntityExpandParameters
from .entity_expand_response_value_py3 import EntityExpandResponseValue
from .expansion_result_aggregation_py3 import ExpansionResultAggregation
from .expansion_results_metadata_py3 import ExpansionResultsMetadata
from .entity_expand_response_py3 import EntityExpandResponse
from .office_consent_py3 import OfficeConsent
from .resource_py3 import Resource
from .settings_py3 import Settings
Expand Down Expand Up @@ -83,14 +108,39 @@
from .alerts_data_type_of_data_connector import AlertsDataTypeOfDataConnector
from .aad_data_connector import AADDataConnector
from .asc_data_connector import ASCDataConnector
from .mcas_data_connector_data_types_discovery_logs import MCASDataConnectorDataTypesDiscoveryLogs
from .mcas_data_connector_data_types import MCASDataConnectorDataTypes
from .mcas_data_connector import MCASDataConnector
from .aatp_data_connector import AATPDataConnector
from .mdatp_data_connector import MDATPDataConnector
from .data_connector_with_alerts_properties import DataConnectorWithAlertsProperties
from .data_connector_data_type_common import DataConnectorDataTypeCommon
from .entity import Entity
from .entity_kind1 import EntityKind1
from .entity_common_properties import EntityCommonProperties
from .account_entity import AccountEntity
from .host_entity import HostEntity
from .file_entity import FileEntity
from .security_alert_properties_confidence_reasons_item import SecurityAlertPropertiesConfidenceReasonsItem
from .security_alert import SecurityAlert
from .file_hash_entity import FileHashEntity
from .malware_entity import MalwareEntity
from .security_group_entity import SecurityGroupEntity
from .azure_resource_entity import AzureResourceEntity
from .cloud_application_entity import CloudApplicationEntity
from .process_entity import ProcessEntity
from .dns_entity import DnsEntity
from .geo_location import GeoLocation
from .threat_intelligence import ThreatIntelligence
from .ip_entity import IpEntity
from .registry_key_entity import RegistryKeyEntity
from .registry_value_entity import RegistryValueEntity
from .url_entity import UrlEntity
from .entity_expand_parameters import EntityExpandParameters
from .entity_expand_response_value import EntityExpandResponseValue
from .expansion_result_aggregation import ExpansionResultAggregation
from .expansion_results_metadata import ExpansionResultsMetadata
from .entity_expand_response import EntityExpandResponse
from .office_consent import OfficeConsent
from .resource import Resource
from .settings import Settings
Expand Down Expand Up @@ -123,10 +173,19 @@
DataTypeState,
EntityKind,
OSFamily,
ConfidenceScoreStatus,
KillChainIntent,
ConfidenceLevel,
AlertStatus,
FileHashAlgorithm,
ElevationToken,
RegistryHive,
RegistryValueKind,
SettingKind,
StatusInMcas,
LicenseStatus,
AggregationsKind,
EntityType,
)

__all__ = [
Expand Down Expand Up @@ -156,14 +215,39 @@
'AlertsDataTypeOfDataConnector',
'AADDataConnector',
'ASCDataConnector',
'MCASDataConnectorDataTypesDiscoveryLogs',
'MCASDataConnectorDataTypes',
'MCASDataConnector',
'AATPDataConnector',
'MDATPDataConnector',
'DataConnectorWithAlertsProperties',
'DataConnectorDataTypeCommon',
'Entity',
'EntityKind1',
'EntityCommonProperties',
'AccountEntity',
'HostEntity',
'FileEntity',
'SecurityAlertPropertiesConfidenceReasonsItem',
'SecurityAlert',
'FileHashEntity',
'MalwareEntity',
'SecurityGroupEntity',
'AzureResourceEntity',
'CloudApplicationEntity',
'ProcessEntity',
'DnsEntity',
'GeoLocation',
'ThreatIntelligence',
'IpEntity',
'RegistryKeyEntity',
'RegistryValueEntity',
'UrlEntity',
'EntityExpandParameters',
'EntityExpandResponseValue',
'ExpansionResultAggregation',
'ExpansionResultsMetadata',
'EntityExpandResponse',
'OfficeConsent',
'Resource',
'Settings',
Expand Down Expand Up @@ -195,8 +279,17 @@
'DataTypeState',
'EntityKind',
'OSFamily',
'ConfidenceScoreStatus',
'KillChainIntent',
'ConfidenceLevel',
'AlertStatus',
'FileHashAlgorithm',
'ElevationToken',
'RegistryHive',
'RegistryValueKind',
'SettingKind',
'StatusInMcas',
'LicenseStatus',
'AggregationsKind',
'EntityType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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 import DataConnector


class AATPDataConnector(DataConnector):
"""Represents AATP (Azure Advanced Threat Protection) 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 tenant_id: The tenant id to connect to, and get the data from.
:type tenant_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'},
'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'},
}

def __init__(self, **kwargs):
super(AATPDataConnector, self).__init__(**kwargs)
self.tenant_id = kwargs.get('tenant_id', None)
self.data_types = kwargs.get('data_types', None)
self.kind = 'AzureAdvancedThreatProtection'
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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_py3 import DataConnector


class AATPDataConnector(DataConnector):
"""Represents AATP (Azure Advanced Threat Protection) 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 tenant_id: The tenant id to connect to, and get the data from.
:type tenant_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'},
'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'},
}

def __init__(self, *, etag: str=None, tenant_id: str=None, data_types=None, **kwargs) -> None:
super(AATPDataConnector, self).__init__(etag=etag, **kwargs)
self.tenant_id = tenant_id
self.data_types = data_types
self.kind = 'AzureAdvancedThreatProtection'
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ class AccountEntity(Entity):
:vartype name: str
:param kind: Required. Constant filled by server.
:type kind: str
:ivar friendly_name: The graph item display name which is a short humanly
readable description of the graph item instance. This property is optional
and might be system generated.
:vartype friendly_name: str
:ivar additional_data: A bag of custom fields that should be part of the
entity and will be presented to the user.
:vartype additional_data: dict[str, object]
:ivar account_name: The name of the account. This field should hold only
the name without any domain added to it, i.e. administrator.
:vartype account_name: str
Expand All @@ -47,17 +54,24 @@ class AccountEntity(Entity):
:vartype puid: str
:ivar is_domain_joined: Determines whether this is a domain account.
:vartype is_domain_joined: bool
:ivar display_name: The display name of the account.
:vartype display_name: str
:ivar object_guid: The objectGUID attribute is a single-value attribute
that is the unique identifier for the object, assigned by active
directory.
:vartype object_guid: str
:ivar host_entity_id: The Host entity id that contains the account in case
it is a local account (not domain joined)
:vartype host_entity_id: str
"""

_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'kind': {'required': True},
'friendly_name': {'readonly': True},
'additional_data': {'readonly': True},
'account_name': {'readonly': True},
'nt_domain': {'readonly': True},
'upn_suffix': {'readonly': True},
Expand All @@ -66,14 +80,18 @@ class AccountEntity(Entity):
'aad_user_id': {'readonly': True},
'puid': {'readonly': True},
'is_domain_joined': {'readonly': True},
'display_name': {'readonly': True},
'object_guid': {'readonly': True},
'host_entity_id': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'additional_data': {'key': 'properties.additionalData', 'type': '{object}'},
'account_name': {'key': 'properties.accountName', 'type': 'str'},
'nt_domain': {'key': 'properties.ntDomain', 'type': 'str'},
'upn_suffix': {'key': 'properties.upnSuffix', 'type': 'str'},
Expand All @@ -82,11 +100,15 @@ class AccountEntity(Entity):
'aad_user_id': {'key': 'properties.aadUserId', 'type': 'str'},
'puid': {'key': 'properties.puid', 'type': 'str'},
'is_domain_joined': {'key': 'properties.isDomainJoined', 'type': 'bool'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'object_guid': {'key': 'properties.objectGuid', 'type': 'str'},
'host_entity_id': {'key': 'properties.hostEntityId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AccountEntity, self).__init__(**kwargs)
self.friendly_name = None
self.additional_data = None
self.account_name = None
self.nt_domain = None
self.upn_suffix = None
Expand All @@ -95,5 +117,7 @@ def __init__(self, **kwargs):
self.aad_user_id = None
self.puid = None
self.is_domain_joined = None
self.display_name = None
self.object_guid = None
self.host_entity_id = None
self.kind = 'Account'
Loading