From 7890c6e35a4973162e1f8983a7c8719a4678de2c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 14 Jul 2019 06:52:34 +0000 Subject: [PATCH 1/3] Generated from 32c121f6270b0531f7814e1b498a6b1d5319a352 Use AlertsDataTypeOfDataConnector --- .../mgmt/securityinsight/models/__init__.py | 21 +++++++ .../models/aatp_data_connector.py | 61 ++++++++++++++++++ .../models/aatp_data_connector_py3.py | 61 ++++++++++++++++++ .../models/aws_cloud_trail_data_connector.py | 62 +++++++++++++++++++ ...s_cloud_trail_data_connector_data_types.py | 29 +++++++++ ...ud_trail_data_connector_data_types_logs.py | 28 +++++++++ ...rail_data_connector_data_types_logs_py3.py | 28 +++++++++ ...oud_trail_data_connector_data_types_py3.py | 29 +++++++++ .../aws_cloud_trail_data_connector_py3.py | 62 +++++++++++++++++++ .../securityinsight/models/data_connector.py | 7 ++- .../models/data_connector_kind1.py | 4 +- .../models/data_connector_kind1_py3.py | 4 +- .../models/data_connector_py3.py | 7 ++- .../models/mcas_data_connector.py | 4 +- .../models/mcas_data_connector_data_types.py | 34 ++++++++++ ...ata_connector_data_types_discovery_logs.py | 28 +++++++++ ...connector_data_types_discovery_logs_py3.py | 28 +++++++++ .../mcas_data_connector_data_types_py3.py | 34 ++++++++++ .../models/mcas_data_connector_py3.py | 4 +- .../models/mdatp_data_connector.py | 62 +++++++++++++++++++ .../models/mdatp_data_connector_py3.py | 62 +++++++++++++++++++ .../models/security_insights_enums.py | 3 + 22 files changed, 650 insertions(+), 12 deletions(-) create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs_py3.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_py3.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_py3.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs_py3.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_py3.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py create mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py index 828736ae1534..42406a43e59f 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py @@ -29,11 +29,18 @@ 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 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 @@ -73,11 +80,18 @@ 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 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 @@ -143,11 +157,18 @@ 'TIDataConnectorDataTypesIndicators', 'TIDataConnectorDataTypes', 'TIDataConnector', + 'AwsCloudTrailDataConnectorDataTypesLogs', + 'AwsCloudTrailDataConnectorDataTypes', + 'AwsCloudTrailDataConnector', 'AlertsDataTypeOfDataConnectorAlerts', 'AlertsDataTypeOfDataConnector', 'AADDataConnector', 'ASCDataConnector', + 'MCASDataConnectorDataTypesDiscoveryLogs', + 'MCASDataConnectorDataTypes', 'MCASDataConnector', + 'AATPDataConnector', + 'MDATPDataConnector', 'DataConnectorWithAlertsProperties', 'DataConnectorDataTypeCommon', 'Entity', diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py new file mode 100644 index 000000000000..2257bc49bd38 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py @@ -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' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py new file mode 100644 index 000000000000..027a8293ce72 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py @@ -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' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector.py new file mode 100644 index 000000000000..efcf4a5c743c --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector.py @@ -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' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types.py new file mode 100644 index 000000000000..9da075bd2307 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types.py @@ -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) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs.py new file mode 100644 index 000000000000..7f467596af3d --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs.py @@ -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) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs_py3.py new file mode 100644 index 000000000000..6e45193f2e55 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_logs_py3.py @@ -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) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_py3.py new file mode 100644 index 000000000000..14ff8517eba9 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_data_types_py3.py @@ -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 diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_py3.py new file mode 100644 index 000000000000..cae1cca59fb7 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_data_connector_py3.py @@ -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' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py index c07a06bee266..10e5684b0ed7 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py @@ -16,8 +16,9 @@ class DataConnector(Model): """Data connector. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OfficeDataConnector, TIDataConnector, AADDataConnector, - ASCDataConnector, MCASDataConnector + sub-classes are: OfficeDataConnector, TIDataConnector, + AwsCloudTrailDataConnector, AADDataConnector, ASCDataConnector, + MCASDataConnector, AATPDataConnector, MDATPDataConnector Variables are only populated by the server, and will be ignored when sending a request. @@ -52,7 +53,7 @@ class DataConnector(Model): } _subtype_map = { - 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector'} + 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AATPDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MDATPDataConnector'} } def __init__(self, **kwargs): diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1.py index acb1391b716b..b9875672c8c4 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1.py @@ -17,7 +17,9 @@ class DataConnectorKind1(Model): :param kind: The kind of the data connector. Possible values include: 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365' + 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', + 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', + 'MicrosoftDefenderAdvancedThreatProtection' :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind """ diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1_py3.py index 1fc79470d356..fa1b41531db9 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1_py3.py @@ -17,7 +17,9 @@ class DataConnectorKind1(Model): :param kind: The kind of the data connector. Possible values include: 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365' + 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', + 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', + 'MicrosoftDefenderAdvancedThreatProtection' :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind """ diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py index bbbcd62d3065..b9ee72c98875 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py @@ -16,8 +16,9 @@ class DataConnector(Model): """Data connector. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OfficeDataConnector, TIDataConnector, AADDataConnector, - ASCDataConnector, MCASDataConnector + sub-classes are: OfficeDataConnector, TIDataConnector, + AwsCloudTrailDataConnector, AADDataConnector, ASCDataConnector, + MCASDataConnector, AATPDataConnector, MDATPDataConnector Variables are only populated by the server, and will be ignored when sending a request. @@ -52,7 +53,7 @@ class DataConnector(Model): } _subtype_map = { - 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector'} + 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AATPDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MDATPDataConnector'} } def __init__(self, *, etag: str=None, **kwargs) -> None: diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector.py index e8f33ade4645..3a097bcc2ff0 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector.py @@ -34,7 +34,7 @@ class MCASDataConnector(DataConnector): :type tenant_id: str :param data_types: The available data types for the connector. :type data_types: - ~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnector + ~azure.mgmt.securityinsight.models.MCASDataConnectorDataTypes """ _validation = { @@ -51,7 +51,7 @@ class MCASDataConnector(DataConnector): 'etag': {'key': 'etag', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, - 'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'}, + 'data_types': {'key': 'properties.dataTypes', 'type': 'MCASDataConnectorDataTypes'}, } def __init__(self, **kwargs): diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types.py new file mode 100644 index 000000000000..169181bd702f --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types.py @@ -0,0 +1,34 @@ +# 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 .alerts_data_type_of_data_connector import AlertsDataTypeOfDataConnector + + +class MCASDataConnectorDataTypes(AlertsDataTypeOfDataConnector): + """The available data types for MCAS (Microsoft Cloud App Security) data + connector. + + :param alerts: Alerts data type connection. + :type alerts: + ~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnectorAlerts + :param discovery_logs: Discovery log data type connection. + :type discovery_logs: + ~azure.mgmt.securityinsight.models.MCASDataConnectorDataTypesDiscoveryLogs + """ + + _attribute_map = { + 'alerts': {'key': 'alerts', 'type': 'AlertsDataTypeOfDataConnectorAlerts'}, + 'discovery_logs': {'key': 'discoveryLogs', 'type': 'MCASDataConnectorDataTypesDiscoveryLogs'}, + } + + def __init__(self, **kwargs): + super(MCASDataConnectorDataTypes, self).__init__(**kwargs) + self.discovery_logs = kwargs.get('discovery_logs', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs.py new file mode 100644 index 000000000000..bde0a81af95c --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs.py @@ -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 MCASDataConnectorDataTypesDiscoveryLogs(DataConnectorDataTypeCommon): + """Discovery log 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(MCASDataConnectorDataTypesDiscoveryLogs, self).__init__(**kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs_py3.py new file mode 100644 index 000000000000..7020e2d332ed --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_discovery_logs_py3.py @@ -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 MCASDataConnectorDataTypesDiscoveryLogs(DataConnectorDataTypeCommon): + """Discovery log 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(MCASDataConnectorDataTypesDiscoveryLogs, self).__init__(state=state, **kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_py3.py new file mode 100644 index 000000000000..233ab8ba7cc3 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_data_types_py3.py @@ -0,0 +1,34 @@ +# 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 .alerts_data_type_of_data_connector_py3 import AlertsDataTypeOfDataConnector + + +class MCASDataConnectorDataTypes(AlertsDataTypeOfDataConnector): + """The available data types for MCAS (Microsoft Cloud App Security) data + connector. + + :param alerts: Alerts data type connection. + :type alerts: + ~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnectorAlerts + :param discovery_logs: Discovery log data type connection. + :type discovery_logs: + ~azure.mgmt.securityinsight.models.MCASDataConnectorDataTypesDiscoveryLogs + """ + + _attribute_map = { + 'alerts': {'key': 'alerts', 'type': 'AlertsDataTypeOfDataConnectorAlerts'}, + 'discovery_logs': {'key': 'discoveryLogs', 'type': 'MCASDataConnectorDataTypesDiscoveryLogs'}, + } + + def __init__(self, *, alerts=None, discovery_logs=None, **kwargs) -> None: + super(MCASDataConnectorDataTypes, self).__init__(alerts=alerts, **kwargs) + self.discovery_logs = discovery_logs diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_py3.py index 8738d0607686..44c70503cf15 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_data_connector_py3.py @@ -34,7 +34,7 @@ class MCASDataConnector(DataConnector): :type tenant_id: str :param data_types: The available data types for the connector. :type data_types: - ~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnector + ~azure.mgmt.securityinsight.models.MCASDataConnectorDataTypes """ _validation = { @@ -51,7 +51,7 @@ class MCASDataConnector(DataConnector): 'etag': {'key': 'etag', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, - 'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'}, + 'data_types': {'key': 'properties.dataTypes', 'type': 'MCASDataConnectorDataTypes'}, } def __init__(self, *, etag: str=None, tenant_id: str=None, data_types=None, **kwargs) -> None: diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py new file mode 100644 index 000000000000..dcddd0881083 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py @@ -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 MDATPDataConnector(DataConnector): + """Represents MDATP (Microsoft Defender 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(MDATPDataConnector, self).__init__(**kwargs) + self.tenant_id = kwargs.get('tenant_id', None) + self.data_types = kwargs.get('data_types', None) + self.kind = 'MicrosoftDefenderAdvancedThreatProtection' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py new file mode 100644 index 000000000000..217e6e6b3830 --- /dev/null +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py @@ -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 MDATPDataConnector(DataConnector): + """Represents MDATP (Microsoft Defender 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(MDATPDataConnector, self).__init__(etag=etag, **kwargs) + self.tenant_id = tenant_id + self.data_types = data_types + self.kind = 'MicrosoftDefenderAdvancedThreatProtection' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py index 6c76c557518b..4ac727a6f29b 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py @@ -64,6 +64,9 @@ class DataConnectorKind(str, Enum): microsoft_cloud_app_security = "MicrosoftCloudAppSecurity" threat_intelligence = "ThreatIntelligence" office365 = "Office365" + amazon_web_services_cloud_trail = "AmazonWebServicesCloudTrail" + azure_advanced_threat_protection = "AzureAdvancedThreatProtection" + microsoft_defender_advanced_threat_protection = "MicrosoftDefenderAdvancedThreatProtection" class DataTypeState(str, Enum): From 4cade70d949a3716bf42a5550a6d84f1abd63d68 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 14 Jul 2019 10:37:51 +0000 Subject: [PATCH 2/3] Generated from ca1fbd115689f2f0caa6116bb5a0f0fdcd32f590 Fix spell check errors --- .../azure/mgmt/securityinsight/models/__init__.py | 12 ++++++------ ...ure_advanced_threat_protection_data_connector.py} | 6 +++--- ...advanced_threat_protection_data_connector_py3.py} | 6 +++--- .../mgmt/securityinsight/models/data_connector.py | 5 +++-- .../securityinsight/models/data_connector_py3.py | 5 +++-- ...der_advanced_threat_protection_data_connector.py} | 7 +++---- ...advanced_threat_protection_data_connector_py3.py} | 7 +++---- 7 files changed, 24 insertions(+), 24 deletions(-) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{aatp_data_connector.py => azure_advanced_threat_protection_data_connector.py} (90%) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{aatp_data_connector_py3.py => azure_advanced_threat_protection_data_connector_py3.py} (90%) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{mdatp_data_connector.py => microsoft_defender_advanced_threat_protection_data_connector.py} (89%) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{mdatp_data_connector_py3.py => microsoft_defender_advanced_threat_protection_data_connector_py3.py} (88%) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py index 42406a43e59f..e51229882b5f 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py @@ -39,8 +39,8 @@ 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 .azure_advanced_threat_protection_data_connector_py3 import AzureAdvancedThreatProtectionDataConnector + from .microsoft_defender_advanced_threat_protection_data_connector_py3 import MicrosoftDefenderAdvancedThreatProtectionDataConnector from .data_connector_with_alerts_properties_py3 import DataConnectorWithAlertsProperties from .data_connector_data_type_common_py3 import DataConnectorDataTypeCommon from .entity_py3 import Entity @@ -90,8 +90,8 @@ 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 .azure_advanced_threat_protection_data_connector import AzureAdvancedThreatProtectionDataConnector + from .microsoft_defender_advanced_threat_protection_data_connector import MicrosoftDefenderAdvancedThreatProtectionDataConnector from .data_connector_with_alerts_properties import DataConnectorWithAlertsProperties from .data_connector_data_type_common import DataConnectorDataTypeCommon from .entity import Entity @@ -167,8 +167,8 @@ 'MCASDataConnectorDataTypesDiscoveryLogs', 'MCASDataConnectorDataTypes', 'MCASDataConnector', - 'AATPDataConnector', - 'MDATPDataConnector', + 'AzureAdvancedThreatProtectionDataConnector', + 'MicrosoftDefenderAdvancedThreatProtectionDataConnector', 'DataConnectorWithAlertsProperties', 'DataConnectorDataTypeCommon', 'Entity', diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector.py similarity index 90% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector.py index 2257bc49bd38..feb782cc1afa 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector.py @@ -12,8 +12,8 @@ from .data_connector import DataConnector -class AATPDataConnector(DataConnector): - """Represents AATP (Azure Advanced Threat Protection) data connector. +class AzureAdvancedThreatProtectionDataConnector(DataConnector): + """Represents Azure Advanced Threat Protection data connector. Variables are only populated by the server, and will be ignored when sending a request. @@ -55,7 +55,7 @@ class AATPDataConnector(DataConnector): } def __init__(self, **kwargs): - super(AATPDataConnector, self).__init__(**kwargs) + super(AzureAdvancedThreatProtectionDataConnector, self).__init__(**kwargs) self.tenant_id = kwargs.get('tenant_id', None) self.data_types = kwargs.get('data_types', None) self.kind = 'AzureAdvancedThreatProtection' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector_py3.py similarity index 90% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector_py3.py index 027a8293ce72..1df7447ac9a5 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector_py3.py @@ -12,8 +12,8 @@ from .data_connector_py3 import DataConnector -class AATPDataConnector(DataConnector): - """Represents AATP (Azure Advanced Threat Protection) data connector. +class AzureAdvancedThreatProtectionDataConnector(DataConnector): + """Represents Azure Advanced Threat Protection data connector. Variables are only populated by the server, and will be ignored when sending a request. @@ -55,7 +55,7 @@ class AATPDataConnector(DataConnector): } def __init__(self, *, etag: str=None, tenant_id: str=None, data_types=None, **kwargs) -> None: - super(AATPDataConnector, self).__init__(etag=etag, **kwargs) + super(AzureAdvancedThreatProtectionDataConnector, self).__init__(etag=etag, **kwargs) self.tenant_id = tenant_id self.data_types = data_types self.kind = 'AzureAdvancedThreatProtection' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py index 10e5684b0ed7..16ef000abc65 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py @@ -18,7 +18,8 @@ class DataConnector(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: OfficeDataConnector, TIDataConnector, AwsCloudTrailDataConnector, AADDataConnector, ASCDataConnector, - MCASDataConnector, AATPDataConnector, MDATPDataConnector + MCASDataConnector, AzureAdvancedThreatProtectionDataConnector, + MicrosoftDefenderAdvancedThreatProtectionDataConnector Variables are only populated by the server, and will be ignored when sending a request. @@ -53,7 +54,7 @@ class DataConnector(Model): } _subtype_map = { - 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AATPDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MDATPDataConnector'} + 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AzureAdvancedThreatProtectionDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MicrosoftDefenderAdvancedThreatProtectionDataConnector'} } def __init__(self, **kwargs): diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py index b9ee72c98875..47e3e66f2cf1 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py @@ -18,7 +18,8 @@ class DataConnector(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: OfficeDataConnector, TIDataConnector, AwsCloudTrailDataConnector, AADDataConnector, ASCDataConnector, - MCASDataConnector, AATPDataConnector, MDATPDataConnector + MCASDataConnector, AzureAdvancedThreatProtectionDataConnector, + MicrosoftDefenderAdvancedThreatProtectionDataConnector Variables are only populated by the server, and will be ignored when sending a request. @@ -53,7 +54,7 @@ class DataConnector(Model): } _subtype_map = { - 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AATPDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MDATPDataConnector'} + 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AzureAdvancedThreatProtectionDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MicrosoftDefenderAdvancedThreatProtectionDataConnector'} } def __init__(self, *, etag: str=None, **kwargs) -> None: diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector.py similarity index 89% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector.py index dcddd0881083..b87c0446ebe1 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector.py @@ -12,9 +12,8 @@ from .data_connector import DataConnector -class MDATPDataConnector(DataConnector): - """Represents MDATP (Microsoft Defender Advanced Threat Protection) data - connector. +class MicrosoftDefenderAdvancedThreatProtectionDataConnector(DataConnector): + """Represents Microsoft Defender Advanced Threat Protection data connector. Variables are only populated by the server, and will be ignored when sending a request. @@ -56,7 +55,7 @@ class MDATPDataConnector(DataConnector): } def __init__(self, **kwargs): - super(MDATPDataConnector, self).__init__(**kwargs) + super(MicrosoftDefenderAdvancedThreatProtectionDataConnector, self).__init__(**kwargs) self.tenant_id = kwargs.get('tenant_id', None) self.data_types = kwargs.get('data_types', None) self.kind = 'MicrosoftDefenderAdvancedThreatProtection' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector_py3.py similarity index 88% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector_py3.py index 217e6e6b3830..462ba8f74674 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector_py3.py @@ -12,9 +12,8 @@ from .data_connector_py3 import DataConnector -class MDATPDataConnector(DataConnector): - """Represents MDATP (Microsoft Defender Advanced Threat Protection) data - connector. +class MicrosoftDefenderAdvancedThreatProtectionDataConnector(DataConnector): + """Represents Microsoft Defender Advanced Threat Protection data connector. Variables are only populated by the server, and will be ignored when sending a request. @@ -56,7 +55,7 @@ class MDATPDataConnector(DataConnector): } def __init__(self, *, etag: str=None, tenant_id: str=None, data_types=None, **kwargs) -> None: - super(MDATPDataConnector, self).__init__(etag=etag, **kwargs) + super(MicrosoftDefenderAdvancedThreatProtectionDataConnector, self).__init__(etag=etag, **kwargs) self.tenant_id = tenant_id self.data_types = data_types self.kind = 'MicrosoftDefenderAdvancedThreatProtection' From 042772f3c215bfbc3c9b71cbcd829d54e659cf20 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 15 Jul 2019 06:26:18 +0000 Subject: [PATCH 3/3] Generated from 98954229135876de3eb4b6a2a1a8609515b66d79 Using AATP & MDATP after updated custom-words --- .../azure/mgmt/securityinsight/models/__init__.py | 12 ++++++------ ...tion_data_connector.py => aatp_data_connector.py} | 6 +++--- ...a_connector_py3.py => aatp_data_connector_py3.py} | 6 +++--- .../mgmt/securityinsight/models/data_connector.py | 5 ++--- .../securityinsight/models/data_connector_py3.py | 5 ++--- ...ion_data_connector.py => mdatp_data_connector.py} | 7 ++++--- ..._connector_py3.py => mdatp_data_connector_py3.py} | 7 ++++--- 7 files changed, 24 insertions(+), 24 deletions(-) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{azure_advanced_threat_protection_data_connector.py => aatp_data_connector.py} (90%) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{azure_advanced_threat_protection_data_connector_py3.py => aatp_data_connector_py3.py} (90%) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{microsoft_defender_advanced_threat_protection_data_connector.py => mdatp_data_connector.py} (89%) rename sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/{microsoft_defender_advanced_threat_protection_data_connector_py3.py => mdatp_data_connector_py3.py} (88%) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py index e51229882b5f..42406a43e59f 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py @@ -39,8 +39,8 @@ 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 .azure_advanced_threat_protection_data_connector_py3 import AzureAdvancedThreatProtectionDataConnector - from .microsoft_defender_advanced_threat_protection_data_connector_py3 import MicrosoftDefenderAdvancedThreatProtectionDataConnector + 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 @@ -90,8 +90,8 @@ 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 .azure_advanced_threat_protection_data_connector import AzureAdvancedThreatProtectionDataConnector - from .microsoft_defender_advanced_threat_protection_data_connector import MicrosoftDefenderAdvancedThreatProtectionDataConnector + 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 @@ -167,8 +167,8 @@ 'MCASDataConnectorDataTypesDiscoveryLogs', 'MCASDataConnectorDataTypes', 'MCASDataConnector', - 'AzureAdvancedThreatProtectionDataConnector', - 'MicrosoftDefenderAdvancedThreatProtectionDataConnector', + 'AATPDataConnector', + 'MDATPDataConnector', 'DataConnectorWithAlertsProperties', 'DataConnectorDataTypeCommon', 'Entity', diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py similarity index 90% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py index feb782cc1afa..2257bc49bd38 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector.py @@ -12,8 +12,8 @@ from .data_connector import DataConnector -class AzureAdvancedThreatProtectionDataConnector(DataConnector): - """Represents Azure Advanced Threat Protection data connector. +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. @@ -55,7 +55,7 @@ class AzureAdvancedThreatProtectionDataConnector(DataConnector): } def __init__(self, **kwargs): - super(AzureAdvancedThreatProtectionDataConnector, self).__init__(**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' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py similarity index 90% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector_py3.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py index 1df7447ac9a5..027a8293ce72 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/azure_advanced_threat_protection_data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_data_connector_py3.py @@ -12,8 +12,8 @@ from .data_connector_py3 import DataConnector -class AzureAdvancedThreatProtectionDataConnector(DataConnector): - """Represents Azure Advanced Threat Protection data connector. +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. @@ -55,7 +55,7 @@ class AzureAdvancedThreatProtectionDataConnector(DataConnector): } def __init__(self, *, etag: str=None, tenant_id: str=None, data_types=None, **kwargs) -> None: - super(AzureAdvancedThreatProtectionDataConnector, self).__init__(etag=etag, **kwargs) + super(AATPDataConnector, self).__init__(etag=etag, **kwargs) self.tenant_id = tenant_id self.data_types = data_types self.kind = 'AzureAdvancedThreatProtection' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py index 16ef000abc65..10e5684b0ed7 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py @@ -18,8 +18,7 @@ class DataConnector(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: OfficeDataConnector, TIDataConnector, AwsCloudTrailDataConnector, AADDataConnector, ASCDataConnector, - MCASDataConnector, AzureAdvancedThreatProtectionDataConnector, - MicrosoftDefenderAdvancedThreatProtectionDataConnector + MCASDataConnector, AATPDataConnector, MDATPDataConnector Variables are only populated by the server, and will be ignored when sending a request. @@ -54,7 +53,7 @@ class DataConnector(Model): } _subtype_map = { - 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AzureAdvancedThreatProtectionDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MicrosoftDefenderAdvancedThreatProtectionDataConnector'} + 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AATPDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MDATPDataConnector'} } def __init__(self, **kwargs): diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py index 47e3e66f2cf1..b9ee72c98875 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_py3.py @@ -18,8 +18,7 @@ class DataConnector(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: OfficeDataConnector, TIDataConnector, AwsCloudTrailDataConnector, AADDataConnector, ASCDataConnector, - MCASDataConnector, AzureAdvancedThreatProtectionDataConnector, - MicrosoftDefenderAdvancedThreatProtectionDataConnector + MCASDataConnector, AATPDataConnector, MDATPDataConnector Variables are only populated by the server, and will be ignored when sending a request. @@ -54,7 +53,7 @@ class DataConnector(Model): } _subtype_map = { - 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AzureAdvancedThreatProtectionDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MicrosoftDefenderAdvancedThreatProtectionDataConnector'} + 'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector', 'AzureAdvancedThreatProtection': 'AATPDataConnector', 'MicrosoftDefenderAdvancedThreatProtection': 'MDATPDataConnector'} } def __init__(self, *, etag: str=None, **kwargs) -> None: diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py similarity index 89% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py index b87c0446ebe1..dcddd0881083 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector.py @@ -12,8 +12,9 @@ from .data_connector import DataConnector -class MicrosoftDefenderAdvancedThreatProtectionDataConnector(DataConnector): - """Represents Microsoft Defender Advanced Threat Protection data connector. +class MDATPDataConnector(DataConnector): + """Represents MDATP (Microsoft Defender Advanced Threat Protection) data + connector. Variables are only populated by the server, and will be ignored when sending a request. @@ -55,7 +56,7 @@ class MicrosoftDefenderAdvancedThreatProtectionDataConnector(DataConnector): } def __init__(self, **kwargs): - super(MicrosoftDefenderAdvancedThreatProtectionDataConnector, self).__init__(**kwargs) + super(MDATPDataConnector, self).__init__(**kwargs) self.tenant_id = kwargs.get('tenant_id', None) self.data_types = kwargs.get('data_types', None) self.kind = 'MicrosoftDefenderAdvancedThreatProtection' diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py similarity index 88% rename from sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector_py3.py rename to sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py index 462ba8f74674..217e6e6b3830 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/microsoft_defender_advanced_threat_protection_data_connector_py3.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_data_connector_py3.py @@ -12,8 +12,9 @@ from .data_connector_py3 import DataConnector -class MicrosoftDefenderAdvancedThreatProtectionDataConnector(DataConnector): - """Represents Microsoft Defender Advanced Threat Protection data connector. +class MDATPDataConnector(DataConnector): + """Represents MDATP (Microsoft Defender Advanced Threat Protection) data + connector. Variables are only populated by the server, and will be ignored when sending a request. @@ -55,7 +56,7 @@ class MicrosoftDefenderAdvancedThreatProtectionDataConnector(DataConnector): } def __init__(self, *, etag: str=None, tenant_id: str=None, data_types=None, **kwargs) -> None: - super(MicrosoftDefenderAdvancedThreatProtectionDataConnector, self).__init__(etag=etag, **kwargs) + super(MDATPDataConnector, self).__init__(etag=etag, **kwargs) self.tenant_id = tenant_id self.data_types = data_types self.kind = 'MicrosoftDefenderAdvancedThreatProtection'