Skip to content

Commit 0880283

Browse files
authored
Generated from 006f63585ada13a78ac3ab4912789ca2df7186f2 (#5813)
Fixes after merge
1 parent 93aae2e commit 0880283

12 files changed

+260
-8
lines changed

sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
from .ti_data_connector_data_types_indicators_py3 import TIDataConnectorDataTypesIndicators
3030
from .ti_data_connector_data_types_py3 import TIDataConnectorDataTypes
3131
from .ti_data_connector_py3 import TIDataConnector
32+
from .aws_cloud_trail_data_connector_data_types_logs_py3 import AwsCloudTrailDataConnectorDataTypesLogs
33+
from .aws_cloud_trail_data_connector_data_types_py3 import AwsCloudTrailDataConnectorDataTypes
34+
from .aws_cloud_trail_data_connector_py3 import AwsCloudTrailDataConnector
3235
from .alerts_data_type_of_data_connector_alerts_py3 import AlertsDataTypeOfDataConnectorAlerts
3336
from .alerts_data_type_of_data_connector_py3 import AlertsDataTypeOfDataConnector
3437
from .aad_data_connector_py3 import AADDataConnector
@@ -73,6 +76,9 @@
7376
from .ti_data_connector_data_types_indicators import TIDataConnectorDataTypesIndicators
7477
from .ti_data_connector_data_types import TIDataConnectorDataTypes
7578
from .ti_data_connector import TIDataConnector
79+
from .aws_cloud_trail_data_connector_data_types_logs import AwsCloudTrailDataConnectorDataTypesLogs
80+
from .aws_cloud_trail_data_connector_data_types import AwsCloudTrailDataConnectorDataTypes
81+
from .aws_cloud_trail_data_connector import AwsCloudTrailDataConnector
7682
from .alerts_data_type_of_data_connector_alerts import AlertsDataTypeOfDataConnectorAlerts
7783
from .alerts_data_type_of_data_connector import AlertsDataTypeOfDataConnector
7884
from .aad_data_connector import AADDataConnector
@@ -143,6 +149,9 @@
143149
'TIDataConnectorDataTypesIndicators',
144150
'TIDataConnectorDataTypes',
145151
'TIDataConnector',
152+
'AwsCloudTrailDataConnectorDataTypesLogs',
153+
'AwsCloudTrailDataConnectorDataTypes',
154+
'AwsCloudTrailDataConnector',
146155
'AlertsDataTypeOfDataConnectorAlerts',
147156
'AlertsDataTypeOfDataConnector',
148157
'AADDataConnector',
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .data_connector import DataConnector
13+
14+
15+
class AwsCloudTrailDataConnector(DataConnector):
16+
"""Represents Amazon Web Services CloudTrail data connector.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
All required parameters must be populated in order to send to Azure.
22+
23+
:ivar id: Azure resource Id
24+
:vartype id: str
25+
:ivar type: Azure resource type
26+
:vartype type: str
27+
:ivar name: Azure resource name
28+
:vartype name: str
29+
:param etag: Etag of the data connector.
30+
:type etag: str
31+
:param kind: Required. Constant filled by server.
32+
:type kind: str
33+
:param aws_role_arn: The Aws Role Arn (with CloudTrailReadOnly policy)
34+
that is used to access the Aws account.
35+
:type aws_role_arn: str
36+
:param data_types: The available data types for the connector.
37+
:type data_types:
38+
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypes
39+
"""
40+
41+
_validation = {
42+
'id': {'readonly': True},
43+
'type': {'readonly': True},
44+
'name': {'readonly': True},
45+
'kind': {'required': True},
46+
}
47+
48+
_attribute_map = {
49+
'id': {'key': 'id', 'type': 'str'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'name': {'key': 'name', 'type': 'str'},
52+
'etag': {'key': 'etag', 'type': 'str'},
53+
'kind': {'key': 'kind', 'type': 'str'},
54+
'aws_role_arn': {'key': 'properties.awsRoleArn', 'type': 'str'},
55+
'data_types': {'key': 'properties.dataTypes', 'type': 'AwsCloudTrailDataConnectorDataTypes'},
56+
}
57+
58+
def __init__(self, **kwargs):
59+
super(AwsCloudTrailDataConnector, self).__init__(**kwargs)
60+
self.aws_role_arn = kwargs.get('aws_role_arn', None)
61+
self.data_types = kwargs.get('data_types', None)
62+
self.kind = 'AmazonWebServicesCloudTrail'
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AwsCloudTrailDataConnectorDataTypes(Model):
16+
"""The available data types for Amazon Web Services CloudTrail data connector.
17+
18+
:param logs: Logs data type.
19+
:type logs:
20+
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypesLogs
21+
"""
22+
23+
_attribute_map = {
24+
'logs': {'key': 'logs', 'type': 'AwsCloudTrailDataConnectorDataTypesLogs'},
25+
}
26+
27+
def __init__(self, **kwargs):
28+
super(AwsCloudTrailDataConnectorDataTypes, self).__init__(**kwargs)
29+
self.logs = kwargs.get('logs', None)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .data_connector_data_type_common import DataConnectorDataTypeCommon
13+
14+
15+
class AwsCloudTrailDataConnectorDataTypesLogs(DataConnectorDataTypeCommon):
16+
"""Logs data type.
17+
18+
:param state: Describe whether this data type connection is enabled or
19+
not. Possible values include: 'Enabled', 'Disabled'
20+
:type state: str or ~azure.mgmt.securityinsight.models.DataTypeState
21+
"""
22+
23+
_attribute_map = {
24+
'state': {'key': 'state', 'type': 'str'},
25+
}
26+
27+
def __init__(self, **kwargs):
28+
super(AwsCloudTrailDataConnectorDataTypesLogs, self).__init__(**kwargs)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .data_connector_data_type_common_py3 import DataConnectorDataTypeCommon
13+
14+
15+
class AwsCloudTrailDataConnectorDataTypesLogs(DataConnectorDataTypeCommon):
16+
"""Logs data type.
17+
18+
:param state: Describe whether this data type connection is enabled or
19+
not. Possible values include: 'Enabled', 'Disabled'
20+
:type state: str or ~azure.mgmt.securityinsight.models.DataTypeState
21+
"""
22+
23+
_attribute_map = {
24+
'state': {'key': 'state', 'type': 'str'},
25+
}
26+
27+
def __init__(self, *, state=None, **kwargs) -> None:
28+
super(AwsCloudTrailDataConnectorDataTypesLogs, self).__init__(state=state, **kwargs)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AwsCloudTrailDataConnectorDataTypes(Model):
16+
"""The available data types for Amazon Web Services CloudTrail data connector.
17+
18+
:param logs: Logs data type.
19+
:type logs:
20+
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypesLogs
21+
"""
22+
23+
_attribute_map = {
24+
'logs': {'key': 'logs', 'type': 'AwsCloudTrailDataConnectorDataTypesLogs'},
25+
}
26+
27+
def __init__(self, *, logs=None, **kwargs) -> None:
28+
super(AwsCloudTrailDataConnectorDataTypes, self).__init__(**kwargs)
29+
self.logs = logs
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .data_connector_py3 import DataConnector
13+
14+
15+
class AwsCloudTrailDataConnector(DataConnector):
16+
"""Represents Amazon Web Services CloudTrail data connector.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
All required parameters must be populated in order to send to Azure.
22+
23+
:ivar id: Azure resource Id
24+
:vartype id: str
25+
:ivar type: Azure resource type
26+
:vartype type: str
27+
:ivar name: Azure resource name
28+
:vartype name: str
29+
:param etag: Etag of the data connector.
30+
:type etag: str
31+
:param kind: Required. Constant filled by server.
32+
:type kind: str
33+
:param aws_role_arn: The Aws Role Arn (with CloudTrailReadOnly policy)
34+
that is used to access the Aws account.
35+
:type aws_role_arn: str
36+
:param data_types: The available data types for the connector.
37+
:type data_types:
38+
~azure.mgmt.securityinsight.models.AwsCloudTrailDataConnectorDataTypes
39+
"""
40+
41+
_validation = {
42+
'id': {'readonly': True},
43+
'type': {'readonly': True},
44+
'name': {'readonly': True},
45+
'kind': {'required': True},
46+
}
47+
48+
_attribute_map = {
49+
'id': {'key': 'id', 'type': 'str'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'name': {'key': 'name', 'type': 'str'},
52+
'etag': {'key': 'etag', 'type': 'str'},
53+
'kind': {'key': 'kind', 'type': 'str'},
54+
'aws_role_arn': {'key': 'properties.awsRoleArn', 'type': 'str'},
55+
'data_types': {'key': 'properties.dataTypes', 'type': 'AwsCloudTrailDataConnectorDataTypes'},
56+
}
57+
58+
def __init__(self, *, etag: str=None, aws_role_arn: str=None, data_types=None, **kwargs) -> None:
59+
super(AwsCloudTrailDataConnector, self).__init__(etag=etag, **kwargs)
60+
self.aws_role_arn = aws_role_arn
61+
self.data_types = data_types
62+
self.kind = 'AmazonWebServicesCloudTrail'

sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ class DataConnector(Model):
1616
"""Data connector.
1717
1818
You probably want to use the sub-classes and not this class directly. Known
19-
sub-classes are: OfficeDataConnector, TIDataConnector, AADDataConnector,
20-
ASCDataConnector, MCASDataConnector
19+
sub-classes are: OfficeDataConnector, TIDataConnector,
20+
AwsCloudTrailDataConnector, AADDataConnector, ASCDataConnector,
21+
MCASDataConnector
2122
2223
Variables are only populated by the server, and will be ignored when
2324
sending a request.
@@ -52,7 +53,7 @@ class DataConnector(Model):
5253
}
5354

5455
_subtype_map = {
55-
'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector'}
56+
'kind': {'Office365': 'OfficeDataConnector', 'ThreatIntelligence': 'TIDataConnector', 'AmazonWebServicesCloudTrail': 'AwsCloudTrailDataConnector', 'AzureActiveDirectory': 'AADDataConnector', 'AzureSecurityCenter': 'ASCDataConnector', 'MicrosoftCloudAppSecurity': 'MCASDataConnector'}
5657
}
5758

5859
def __init__(self, **kwargs):

sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class DataConnectorKind1(Model):
1717
1818
:param kind: The kind of the data connector. Possible values include:
1919
'AzureActiveDirectory', 'AzureSecurityCenter',
20-
'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365'
20+
'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365',
21+
'AmazonWebServicesCloudTrail'
2122
:type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind
2223
"""
2324

sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_kind1_py3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class DataConnectorKind1(Model):
1717
1818
:param kind: The kind of the data connector. Possible values include:
1919
'AzureActiveDirectory', 'AzureSecurityCenter',
20-
'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365'
20+
'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365',
21+
'AmazonWebServicesCloudTrail'
2122
:type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind
2223
"""
2324

0 commit comments

Comments
 (0)