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
Prev Previous commit
Next Next commit
Generated from 23d7ddc0a994dcad4bcc056d3522942db2211199
some fixes
  • Loading branch information
AutorestCI committed Jul 29, 2019
commit a2952b8c4549725f8006ff559bbf59aef59117fa
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
from .alert_rule_kind1_py3 import AlertRuleKind1
from .scheduled_alert_rule_py3 import ScheduledAlertRule
from .action_py3 import Action
from .case_py3 import Case
from .user_info_py3 import UserInfo
from .case_py3 import Case
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 Down Expand Up @@ -69,10 +68,9 @@
from .alert_rule_kind1 import AlertRuleKind1
from .scheduled_alert_rule import ScheduledAlertRule
from .action import Action
from .case import Case
from .user_info import UserInfo
from .case import Case
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 Down Expand Up @@ -149,10 +147,9 @@
'AlertRuleKind1',
'ScheduledAlertRule',
'Action',
'Case',
'UserInfo',
'Case',
'CaseComment',
'CaseCommentRequestBody',
'Bookmark',
'DataConnector',
'DataConnectorKind1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class Case(Resource):
:vartype name: str
:param etag: Etag of the alert rule.
:type etag: str
:param last_updated_time_utc: The last time the case was updated
:type last_updated_time_utc: datetime
:param created_time_utc: The time the case was created
:type created_time_utc: datetime
:ivar last_updated_time_utc: The last time the case was updated
:vartype last_updated_time_utc: datetime
:ivar created_time_utc: The time the case was created
:vartype created_time_utc: datetime
:param end_time_utc: The end time of the case
:type end_time_utc: datetime
:param start_time_utc: Required. The start time of the case
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: str
:type assigned_to: ~azure.mgmt.securityinsight.models.UserInfo
: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 @@ -55,24 +55,30 @@ class Case(Resource):
: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
:ivar related_alert_ids: List of related alert identifiers
:vartype related_alert_ids: list[str]
:ivar case_number: a sequential number
:vartype case_number: int
:ivar last_comment: the last comment in the case
:vartype last_comment: str
:ivar total_comments: the number of total comments in the case
:vartype total_comments: int
"""

_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'last_updated_time_utc': {'readonly': True},
'created_time_utc': {'readonly': True},
'start_time_utc': {'required': True},
'title': {'required': True},
'severity': {'required': True},
'status': {'required': True},
'related_alert_ids': {'readonly': True},
'case_number': {'readonly': True},
'last_comment': {'readonly': True},
'total_comments': {'readonly': True},
}

_attribute_map = {
Expand All @@ -87,7 +93,7 @@ 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': 'str'},
'assigned_to': {'key': 'properties.assignedTo', 'type': 'UserInfo'},
'severity': {'key': 'properties.severity', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'close_reason': {'key': 'properties.closeReason', 'type': 'str'},
Expand All @@ -101,8 +107,8 @@ class Case(Resource):
def __init__(self, **kwargs):
super(Case, self).__init__(**kwargs)
self.etag = kwargs.get('etag', None)
self.last_updated_time_utc = kwargs.get('last_updated_time_utc', None)
self.created_time_utc = kwargs.get('created_time_utc', None)
self.last_updated_time_utc = None
self.created_time_utc = None
self.end_time_utc = kwargs.get('end_time_utc', None)
self.start_time_utc = kwargs.get('start_time_utc', None)
self.labels = kwargs.get('labels', None)
Expand All @@ -113,7 +119,7 @@ def __init__(self, **kwargs):
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)
self.related_alert_ids = None
self.case_number = None
self.last_comment = None
self.total_comments = None
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ class CaseComment(Resource):
: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
:ivar created_time_utc: The time the comment was created
:vartype created_time_utc: datetime
:ivar user_info: Describes the user that created the comment
:vartype 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},
'created_time_utc': {'readonly': True},
'user_info': {'readonly': True},
}

_attribute_map = {
Expand All @@ -55,5 +55,5 @@ class CaseComment(Resource):
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)
self.created_time_utc = None
self.user_info = None
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ class CaseComment(Resource):
: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
:ivar created_time_utc: The time the comment was created
:vartype created_time_utc: datetime
:ivar user_info: Describes the user that created the comment
:vartype 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},
'created_time_utc': {'readonly': True},
'user_info': {'readonly': True},
}

_attribute_map = {
Expand All @@ -52,8 +52,8 @@ class CaseComment(Resource):
'user_info': {'key': 'properties.userInfo', 'type': 'UserInfo'},
}

def __init__(self, *, message: str, created_time_utc, user_info, **kwargs) -> None:
def __init__(self, *, message: str, **kwargs) -> None:
super(CaseComment, self).__init__(**kwargs)
self.message = message
self.created_time_utc = created_time_utc
self.user_info = user_info
self.created_time_utc = None
self.user_info = None

This file was deleted.

This file was deleted.

Loading