Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[AutoPR securityinsights/resource-manager] added new resource to securityinsights- entityQueries #5512

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .security_insights import SecurityInsights
from .version import VERSION

__all__ = ['SecurityInsights']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
# 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.
# --------------------------------------------------------------------------

try:
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .alert_rule_py3 import AlertRule
from .alert_rule_kind1_py3 import AlertRuleKind1
from .scheduled_alert_rule_py3 import ScheduledAlertRule
from .action_py3 import Action
from .user_info_py3 import UserInfo
from .case_py3 import Case
from .bookmark_py3 import Bookmark
from .data_connector_py3 import DataConnector
from .data_connector_kind1_py3 import DataConnectorKind1
from .data_connector_tenant_id_py3 import DataConnectorTenantId
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 .alerts_data_type_of_data_connector_alerts_py3 import AlertsDataTypeOfDataConnectorAlerts
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_py3 import MCASDataConnector
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 .account_entity_py3 import AccountEntity
from .host_entity_py3 import HostEntity
from .file_entity_py3 import FileEntity
from .office_consent_py3 import OfficeConsent
from .resource_py3 import Resource
from .settings_py3 import Settings
from .settings_kind_py3 import SettingsKind
from .ueba_settings_py3 import UebaSettings
from .toggle_settings_py3 import ToggleSettings
from .aggregations_py3 import Aggregations
from .aggregations_kind1_py3 import AggregationsKind1
from .entity_query_py3 import EntityQuery
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 .action import Action
from .user_info import UserInfo
from .case import Case
from .bookmark import Bookmark
from .data_connector import DataConnector
from .data_connector_kind1 import DataConnectorKind1
from .data_connector_tenant_id import DataConnectorTenantId
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 .alerts_data_type_of_data_connector_alerts import AlertsDataTypeOfDataConnectorAlerts
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 import MCASDataConnector
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 .account_entity import AccountEntity
from .host_entity import HostEntity
from .file_entity import FileEntity
from .office_consent import OfficeConsent
from .resource import Resource
from .settings import Settings
from .settings_kind import SettingsKind
from .ueba_settings import UebaSettings
from .toggle_settings import ToggleSettings
from .aggregations import Aggregations
from .aggregations_kind1 import AggregationsKind1
from .entity_query import EntityQuery
from .operation_paged import OperationPaged
from .alert_rule_paged import AlertRulePaged
from .action_paged import ActionPaged
from .case_paged import CasePaged
from .bookmark_paged import BookmarkPaged
from .data_connector_paged import DataConnectorPaged
from .entity_paged import EntityPaged
from .office_consent_paged import OfficeConsentPaged
from .entity_query_paged import EntityQueryPaged
from .security_insights_enums import (
AlertRuleKind,
AlertSeverity,
TriggerOperator,
CaseSeverity,
CaseStatus,
CloseReason,
DataConnectorKind,
DataTypeState,
EntityKind,
OSFamily,
SettingKind,
StatusInMcas,
AggregationsKind,
)

__all__ = [
'OperationDisplay',
'Operation',
'AlertRule',
'AlertRuleKind1',
'ScheduledAlertRule',
'Action',
'UserInfo',
'Case',
'Bookmark',
'DataConnector',
'DataConnectorKind1',
'DataConnectorTenantId',
'OfficeDataConnectorDataTypesSharePoint',
'OfficeDataConnectorDataTypesExchange',
'OfficeDataConnectorDataTypes',
'OfficeDataConnector',
'TIDataConnectorDataTypesIndicators',
'TIDataConnectorDataTypes',
'TIDataConnector',
'AlertsDataTypeOfDataConnectorAlerts',
'AlertsDataTypeOfDataConnector',
'AADDataConnector',
'ASCDataConnector',
'MCASDataConnector',
'DataConnectorWithAlertsProperties',
'DataConnectorDataTypeCommon',
'Entity',
'EntityKind1',
'AccountEntity',
'HostEntity',
'FileEntity',
'OfficeConsent',
'Resource',
'Settings',
'SettingsKind',
'UebaSettings',
'ToggleSettings',
'Aggregations',
'AggregationsKind1',
'EntityQuery',
'OperationPaged',
'AlertRulePaged',
'ActionPaged',
'CasePaged',
'BookmarkPaged',
'DataConnectorPaged',
'EntityPaged',
'OfficeConsentPaged',
'EntityQueryPaged',
'AlertRuleKind',
'AlertSeverity',
'TriggerOperator',
'CaseSeverity',
'CaseStatus',
'CloseReason',
'DataConnectorKind',
'DataTypeState',
'EntityKind',
'OSFamily',
'SettingKind',
'StatusInMcas',
'AggregationsKind',
]
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 AADDataConnector(DataConnector):
"""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 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(AADDataConnector, self).__init__(**kwargs)
self.tenant_id = kwargs.get('tenant_id', None)
self.data_types = kwargs.get('data_types', None)
self.kind = 'AzureActiveDirectory'
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 AADDataConnector(DataConnector):
"""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 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(AADDataConnector, self).__init__(etag=etag, **kwargs)
self.tenant_id = tenant_id
self.data_types = data_types
self.kind = 'AzureActiveDirectory'
Loading