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 @@ -29,6 +29,9 @@
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 .aws_cloud_trail_data_connector_data_types_logs_py3 import AwsCloudTrailDataConnectorDataTypesLogs
from .aws_cloud_trail_data_connector_data_types_py3 import AwsCloudTrailDataConnectorDataTypes
from .aws_cloud_trail_data_connector_py3 import AwsCloudTrailDataConnector
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
Expand All @@ -49,6 +52,10 @@
from .toggle_settings_py3 import ToggleSettings
from .aggregations_py3 import Aggregations
from .aggregations_kind1_py3 import AggregationsKind1
from .cases_aggregation_by_severity_properties_py3 import CasesAggregationBySeverityProperties
from .cases_aggregation_by_status_properties_py3 import CasesAggregationByStatusProperties
from .cases_aggregation_py3 import CasesAggregation
from .entity_query_py3 import EntityQuery
except (SyntaxError, ImportError):
from .operation_display import OperationDisplay
from .operation import Operation
Expand All @@ -69,6 +76,9 @@
from .ti_data_connector_data_types_indicators import TIDataConnectorDataTypesIndicators
from .ti_data_connector_data_types import TIDataConnectorDataTypes
from .ti_data_connector import TIDataConnector
from .aws_cloud_trail_data_connector_data_types_logs import AwsCloudTrailDataConnectorDataTypesLogs
from .aws_cloud_trail_data_connector_data_types import AwsCloudTrailDataConnectorDataTypes
from .aws_cloud_trail_data_connector import AwsCloudTrailDataConnector
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
Expand All @@ -89,6 +99,10 @@
from .toggle_settings import ToggleSettings
from .aggregations import Aggregations
from .aggregations_kind1 import AggregationsKind1
from .cases_aggregation_by_severity_properties import CasesAggregationBySeverityProperties
from .cases_aggregation_by_status_properties import CasesAggregationByStatusProperties
from .cases_aggregation import CasesAggregation
from .entity_query import EntityQuery
from .operation_paged import OperationPaged
from .alert_rule_paged import AlertRulePaged
from .action_paged import ActionPaged
Expand All @@ -97,6 +111,7 @@
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,
Expand All @@ -110,6 +125,7 @@
OSFamily,
SettingKind,
StatusInMcas,
LicenseStatus,
AggregationsKind,
)

Expand All @@ -133,6 +149,9 @@
'TIDataConnectorDataTypesIndicators',
'TIDataConnectorDataTypes',
'TIDataConnector',
'AwsCloudTrailDataConnectorDataTypesLogs',
'AwsCloudTrailDataConnectorDataTypes',
'AwsCloudTrailDataConnector',
'AlertsDataTypeOfDataConnectorAlerts',
'AlertsDataTypeOfDataConnector',
'AADDataConnector',
Expand All @@ -153,6 +172,10 @@
'ToggleSettings',
'Aggregations',
'AggregationsKind1',
'CasesAggregationBySeverityProperties',
'CasesAggregationByStatusProperties',
'CasesAggregation',
'EntityQuery',
'OperationPaged',
'AlertRulePaged',
'ActionPaged',
Expand All @@ -161,6 +184,7 @@
'DataConnectorPaged',
'EntityPaged',
'OfficeConsentPaged',
'EntityQueryPaged',
'AlertRuleKind',
'AlertSeverity',
'TriggerOperator',
Expand All @@ -173,5 +197,6 @@
'OSFamily',
'SettingKind',
'StatusInMcas',
'LicenseStatus',
'AggregationsKind',
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
class Aggregations(Model):
"""The aggregation.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: CasesAggregation

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

Expand Down Expand Up @@ -44,6 +47,10 @@ class Aggregations(Model):
'kind': {'key': 'kind', 'type': 'str'},
}

_subtype_map = {
'kind': {'CasesAggregation': 'CasesAggregation'}
}

def __init__(self, **kwargs):
super(Aggregations, self).__init__(**kwargs)
self.id = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
class Aggregations(Model):
"""The aggregation.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: CasesAggregation

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

Expand Down Expand Up @@ -44,6 +47,10 @@ class Aggregations(Model):
'kind': {'key': 'kind', 'type': 'str'},
}

_subtype_map = {
'kind': {'CasesAggregation': 'CasesAggregation'}
}

def __init__(self, **kwargs) -> None:
super(Aggregations, self).__init__(**kwargs)
self.id = None
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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 AwsCloudTrailDataConnector(DataConnector):
"""Represents Amazon Web Services CloudTrail 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 aws_role_arn: The Aws Role Arn (with CloudTrailReadOnly policy)
that is used to access the Aws account.
:type aws_role_arn: str
:param data_types: The available data types for the connector.
:type data_types:
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypes
"""

_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'},
'aws_role_arn': {'key': 'properties.awsRoleArn', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AwsCloudTrailDataConnectorDataTypes'},
}

def __init__(self, **kwargs):
super(AwsCloudTrailDataConnector, self).__init__(**kwargs)
self.aws_role_arn = kwargs.get('aws_role_arn', None)
self.data_types = kwargs.get('data_types', None)
self.kind = 'AmazonWebServicesCloudTrail'
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 AwsCloudTrailDataConnectorDataTypes(Model):
"""The available data types for Amazon Web Services CloudTrail data connector.

:param logs: Logs data type.
:type logs:
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypesLogs
"""

_attribute_map = {
'logs': {'key': 'logs', 'type': 'AwsCloudTrailDataConnectorDataTypesLogs'},
}

def __init__(self, **kwargs):
super(AwsCloudTrailDataConnectorDataTypes, self).__init__(**kwargs)
self.logs = kwargs.get('logs', 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 AwsCloudTrailDataConnectorDataTypesLogs(DataConnectorDataTypeCommon):
"""Logs data type.

: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(AwsCloudTrailDataConnectorDataTypesLogs, 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 AwsCloudTrailDataConnectorDataTypesLogs(DataConnectorDataTypeCommon):
"""Logs data type.

: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(AwsCloudTrailDataConnectorDataTypesLogs, 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 AwsCloudTrailDataConnectorDataTypes(Model):
"""The available data types for Amazon Web Services CloudTrail data connector.

:param logs: Logs data type.
:type logs:
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypesLogs
"""

_attribute_map = {
'logs': {'key': 'logs', 'type': 'AwsCloudTrailDataConnectorDataTypesLogs'},
}

def __init__(self, *, logs=None, **kwargs) -> None:
super(AwsCloudTrailDataConnectorDataTypes, self).__init__(**kwargs)
self.logs = logs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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 AwsCloudTrailDataConnector(DataConnector):
"""Represents Amazon Web Services CloudTrail 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 aws_role_arn: The Aws Role Arn (with CloudTrailReadOnly policy)
that is used to access the Aws account.
:type aws_role_arn: str
:param data_types: The available data types for the connector.
:type data_types:
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypes
"""

_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'},
'aws_role_arn': {'key': 'properties.awsRoleArn', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AwsCloudTrailDataConnectorDataTypes'},
}

def __init__(self, *, etag: str=None, aws_role_arn: str=None, data_types=None, **kwargs) -> None:
super(AwsCloudTrailDataConnector, self).__init__(etag=etag, **kwargs)
self.aws_role_arn = aws_role_arn
self.data_types = data_types
self.kind = 'AmazonWebServicesCloudTrail'
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Case(Resource):
include: 'Critical', 'High', 'Medium', 'Low', 'Informational'
:type severity: str or ~azure.mgmt.securityinsight.models.CaseSeverity
:param status: Required. The status of the case. Possible values include:
'Draft', 'Open', 'InProgress', 'Closed'
'Draft', 'New', 'InProgress', 'Closed'
:type status: str or ~azure.mgmt.securityinsight.models.CaseStatus
:param close_reason: The reason the case was closed. Possible values
include: 'Resolved', 'Dismissed', 'Other'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Case(Resource):
include: 'Critical', 'High', 'Medium', 'Low', 'Informational'
:type severity: str or ~azure.mgmt.securityinsight.models.CaseSeverity
:param status: Required. The status of the case. Possible values include:
'Draft', 'Open', 'InProgress', 'Closed'
'Draft', 'New', 'InProgress', 'Closed'
:type status: str or ~azure.mgmt.securityinsight.models.CaseStatus
:param close_reason: The reason the case was closed. Possible values
include: 'Resolved', 'Dismissed', 'Other'
Expand Down
Loading