Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Generated from eee3abfb0974b398a83e8c304732163a83314bcc
more fixes
  • Loading branch information
AutorestCI committed Jul 29, 2019
commit 2e622dbf5c5f951f8ca6fa92132ee586cceb3f70
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
from .alert_rule_kind1_py3 import AlertRuleKind1
from .scheduled_alert_rule_py3 import ScheduledAlertRule
from .action_py3 import Action
from .user_info_py3 import UserInfo
from .case_py3 import Case
from .user_info_py3 import UserInfo
from .case_comment_py3 import CaseComment
from .case_comment_request_body_py3 import CaseCommentRequestBody
from .bookmark_py3 import Bookmark
from .data_connector_py3 import DataConnector
from .data_connector_kind1_py3 import DataConnectorKind1
Expand All @@ -36,7 +38,11 @@
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
Expand All @@ -63,8 +69,10 @@
from .alert_rule_kind1 import AlertRuleKind1
from .scheduled_alert_rule import ScheduledAlertRule
from .action import Action
from .user_info import UserInfo
from .case import Case
from .user_info import UserInfo
from .case_comment import CaseComment
from .case_comment_request_body import CaseCommentRequestBody
from .bookmark import Bookmark
from .data_connector import DataConnector
from .data_connector_kind1 import DataConnectorKind1
Expand All @@ -83,7 +91,11 @@
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
Expand All @@ -107,6 +119,7 @@
from .alert_rule_paged import AlertRulePaged
from .action_paged import ActionPaged
from .case_paged import CasePaged
from .case_comment_paged import CaseCommentPaged
from .bookmark_paged import BookmarkPaged
from .data_connector_paged import DataConnectorPaged
from .entity_paged import EntityPaged
Expand Down Expand Up @@ -136,8 +149,10 @@
'AlertRuleKind1',
'ScheduledAlertRule',
'Action',
'UserInfo',
'Case',
'UserInfo',
'CaseComment',
'CaseCommentRequestBody',
'Bookmark',
'DataConnector',
'DataConnectorKind1',
Expand All @@ -156,7 +171,11 @@
'AlertsDataTypeOfDataConnector',
'AADDataConnector',
'ASCDataConnector',
'MCASDataConnectorDataTypesDiscoveryLogs',
'MCASDataConnectorDataTypes',
'MCASDataConnector',
'AATPDataConnector',
'MDATPDataConnector',
'DataConnectorWithAlertsProperties',
'DataConnectorDataTypeCommon',
'Entity',
Expand All @@ -180,6 +199,7 @@
'AlertRulePaged',
'ActionPaged',
'CasePaged',
'CaseCommentPaged',
'BookmarkPaged',
'DataConnectorPaged',
'EntityPaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .data_connector import DataConnector


class AATPDataConnector(DataConnector):
"""Represents AATP (Azure Advanced Threat Protection) data connector.

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

All required parameters must be populated in order to send to Azure.

:ivar id: Azure resource Id
:vartype id: str
:ivar type: Azure resource type
:vartype type: str
:ivar name: Azure resource name
:vartype name: str
:param etag: Etag of the data connector.
:type etag: str
:param kind: Required. Constant filled by server.
:type kind: str
:param tenant_id: The tenant id to connect to, and get the data from.
:type tenant_id: str
:param data_types: The available data types for the connector.
:type data_types:
~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnector
"""

_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'kind': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'},
}

def __init__(self, **kwargs):
super(AATPDataConnector, self).__init__(**kwargs)
self.tenant_id = kwargs.get('tenant_id', None)
self.data_types = kwargs.get('data_types', None)
self.kind = 'AzureAdvancedThreatProtection'
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .data_connector_py3 import DataConnector


class AATPDataConnector(DataConnector):
"""Represents AATP (Azure Advanced Threat Protection) data connector.

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

All required parameters must be populated in order to send to Azure.

:ivar id: Azure resource Id
:vartype id: str
:ivar type: Azure resource type
:vartype type: str
:ivar name: Azure resource name
:vartype name: str
:param etag: Etag of the data connector.
:type etag: str
:param kind: Required. Constant filled by server.
:type kind: str
:param tenant_id: The tenant id to connect to, and get the data from.
:type tenant_id: str
:param data_types: The available data types for the connector.
:type data_types:
~azure.mgmt.securityinsight.models.AlertsDataTypeOfDataConnector
"""

_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'kind': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
'data_types': {'key': 'properties.dataTypes', 'type': 'AlertsDataTypeOfDataConnector'},
}

def __init__(self, *, etag: str=None, tenant_id: str=None, data_types=None, **kwargs) -> None:
super(AATPDataConnector, self).__init__(etag=etag, **kwargs)
self.tenant_id = tenant_id
self.data_types = data_types
self.kind = 'AzureAdvancedThreatProtection'
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Case(Resource):
:type created_time_utc: datetime
:param end_time_utc: The end time of the case
:type end_time_utc: datetime
:param start_time_utc: The start time of the case
:param start_time_utc: Required. The start time of the case
:type start_time_utc: datetime
:param labels: List of labels relevant to this case
:type labels: list[str]
Expand All @@ -43,7 +43,7 @@ class Case(Resource):
:param title: Required. The title of the case
:type title: str
:param assigned_to: Describes a user that the case is assigned to
:type assigned_to: ~azure.mgmt.securityinsight.models.UserInfo
:type assigned_to: str
:param severity: Required. The severity of the case. Possible values
include: 'Critical', 'High', 'Medium', 'Low', 'Informational'
:type severity: str or ~azure.mgmt.securityinsight.models.CaseSeverity
Expand All @@ -53,12 +53,23 @@ class Case(Resource):
:param close_reason: The reason the case was closed. Possible values
include: 'Resolved', 'Dismissed', 'Other'
:type close_reason: str or ~azure.mgmt.securityinsight.models.CloseReason
:param closed_reason_text: the case close reason details
:type closed_reason_text: str
:param related_alert_ids: List of related alert identifiers
:type related_alert_ids: list[str]
:param case_number: a sequential number
:type case_number: int
:param last_comment: the last comment in the case
:type last_comment: str
:param total_comments: the number of total comments in the case
:type total_comments: int
"""

_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'start_time_utc': {'required': True},
'title': {'required': True},
'severity': {'required': True},
'status': {'required': True},
Expand All @@ -76,10 +87,15 @@ class Case(Resource):
'labels': {'key': 'properties.labels', 'type': '[str]'},
'description': {'key': 'properties.description', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'assigned_to': {'key': 'properties.assignedTo', 'type': 'UserInfo'},
'assigned_to': {'key': 'properties.assignedTo', 'type': 'str'},
'severity': {'key': 'properties.severity', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'close_reason': {'key': 'properties.closeReason', 'type': 'str'},
'closed_reason_text': {'key': 'properties.closedReasonText', 'type': 'str'},
'related_alert_ids': {'key': 'properties.relatedAlertIds', 'type': '[str]'},
'case_number': {'key': 'properties.caseNumber', 'type': 'int'},
'last_comment': {'key': 'properties.lastComment', 'type': 'str'},
'total_comments': {'key': 'properties.totalComments', 'type': 'int'},
}

def __init__(self, **kwargs):
Expand All @@ -96,3 +112,8 @@ def __init__(self, **kwargs):
self.severity = kwargs.get('severity', None)
self.status = kwargs.get('status', None)
self.close_reason = kwargs.get('close_reason', None)
self.closed_reason_text = kwargs.get('closed_reason_text', None)
self.related_alert_ids = kwargs.get('related_alert_ids', None)
self.case_number = kwargs.get('case_number', None)
self.last_comment = kwargs.get('last_comment', None)
self.total_comments = kwargs.get('total_comments', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 .resource import Resource


class CaseComment(Resource):
"""Represents a case comment.

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 message: Required. The comment message
:type message: str
:param created_time_utc: Required. The time the comment was created
:type created_time_utc: datetime
:param user_info: Required. Describes the user that created the comment
:type user_info: ~azure.mgmt.securityinsight.models.UserInfo
"""

_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'message': {'required': True},
'created_time_utc': {'required': True},
'user_info': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'message': {'key': 'properties.message', 'type': 'str'},
'created_time_utc': {'key': 'properties.createdTimeUtc', 'type': 'iso-8601'},
'user_info': {'key': 'properties.userInfo', 'type': 'UserInfo'},
}

def __init__(self, **kwargs):
super(CaseComment, self).__init__(**kwargs)
self.message = kwargs.get('message', None)
self.created_time_utc = kwargs.get('created_time_utc', None)
self.user_info = kwargs.get('user_info', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class CaseCommentPaged(Paged):
"""
A paging container for iterating over a list of :class:`CaseComment <azure.mgmt.securityinsight.models.CaseComment>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[CaseComment]'}
}

def __init__(self, *args, **kwargs):

super(CaseCommentPaged, self).__init__(*args, **kwargs)
Loading