Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
from .azure_resource_entity_py3 import AzureResourceEntity
from .data_connector_status_py3 import DataConnectorStatus
from .base_alert_rule_template_properties_py3 import BaseAlertRuleTemplateProperties
from .relation_base_py3 import RelationBase
from .case_relation_py3 import CaseRelation
from .bookmark_relation_py3 import BookmarkRelation
from .relation_node_py3 import RelationNode
from .relations_model_input_py3 import RelationsModelInput
from .user_info_py3 import UserInfo
from .bookmark_py3 import Bookmark
from .case_py3 import Case
Expand Down Expand Up @@ -110,6 +115,11 @@
from .azure_resource_entity import AzureResourceEntity
from .data_connector_status import DataConnectorStatus
from .base_alert_rule_template_properties import BaseAlertRuleTemplateProperties
from .relation_base import RelationBase
from .case_relation import CaseRelation
from .bookmark_relation import BookmarkRelation
from .relation_node import RelationNode
from .relations_model_input import RelationsModelInput
from .user_info import UserInfo
from .bookmark import Bookmark
from .case import Case
Expand Down Expand Up @@ -178,6 +188,8 @@
from .action_paged import ActionPaged
from .alert_rule_template_paged import AlertRuleTemplatePaged
from .case_paged import CasePaged
from .case_relation_paged import CaseRelationPaged
from .bookmark_relation_paged import BookmarkRelationPaged
from .case_comment_paged import CaseCommentPaged
from .bookmark_paged import BookmarkPaged
from .data_connector_paged import DataConnectorPaged
Expand All @@ -192,6 +204,8 @@
AttackTactic,
DataTypeStatus,
TemplateStatus,
RelationTypes,
RelationNodeKind,
CloseReason,
CaseSeverity,
CaseStatus,
Expand Down Expand Up @@ -232,6 +246,11 @@
'AzureResourceEntity',
'DataConnectorStatus',
'BaseAlertRuleTemplateProperties',
'RelationBase',
'CaseRelation',
'BookmarkRelation',
'RelationNode',
'RelationsModelInput',
'UserInfo',
'Bookmark',
'Case',
Expand Down Expand Up @@ -300,6 +319,8 @@
'ActionPaged',
'AlertRuleTemplatePaged',
'CasePaged',
'CaseRelationPaged',
'BookmarkRelationPaged',
'CaseCommentPaged',
'BookmarkPaged',
'DataConnectorPaged',
Expand All @@ -313,6 +334,8 @@
'AttackTactic',
'DataTypeStatus',
'TemplateStatus',
'RelationTypes',
'RelationNodeKind',
'CloseReason',
'CaseSeverity',
'CaseStatus',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 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 .relation_base import RelationBase


class BookmarkRelation(RelationBase):
"""Represents a bookmark relation.

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 name: Azure resource name
:vartype name: str
:ivar type: Azure resource type
:vartype type: str
:ivar kind: The type of relation node. Possible values include:
'CasesToBookmarks'
:vartype kind: str or ~azure.mgmt.securityinsight.models.RelationTypes
:param etag: ETag for relation
:type etag: str
:param relation_name: Required. Name of relation
:type relation_name: str
:param bookmark_id: Required. The case related bookmark id
:type bookmark_id: str
:param case_identifier: Required. The case identifier
:type case_identifier: str
:param case_title: The case title
:type case_title: str
:param case_severity: The case severity
:type case_severity: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'relation_name': {'key': 'properties.relationName', 'type': 'str'},
'bookmark_id': {'key': 'properties.bookmarkId', 'type': 'str'},
'case_identifier': {'key': 'properties.caseIdentifier', 'type': 'str'},
'case_title': {'key': 'properties.caseTitle', 'type': 'str'},
'case_severity': {'key': 'properties.caseSeverity', 'type': 'str'},
}

def __init__(self, **kwargs):
super(BookmarkRelation, self).__init__(**kwargs)
self.relation_name = kwargs.get('relation_name', None)
self.bookmark_id = kwargs.get('bookmark_id', None)
self.case_identifier = kwargs.get('case_identifier', None)
self.case_title = kwargs.get('case_title', None)
self.case_severity = kwargs.get('case_severity', 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 BookmarkRelationPaged(Paged):
"""
A paging container for iterating over a list of :class:`BookmarkRelation <azure.mgmt.securityinsight.models.BookmarkRelation>` object
"""

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

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

super(BookmarkRelationPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 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 .relation_base_py3 import RelationBase


class BookmarkRelation(RelationBase):
"""Represents a bookmark relation.

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 name: Azure resource name
:vartype name: str
:ivar type: Azure resource type
:vartype type: str
:ivar kind: The type of relation node. Possible values include:
'CasesToBookmarks'
:vartype kind: str or ~azure.mgmt.securityinsight.models.RelationTypes
:param etag: ETag for relation
:type etag: str
:param relation_name: Required. Name of relation
:type relation_name: str
:param bookmark_id: Required. The case related bookmark id
:type bookmark_id: str
:param case_identifier: Required. The case identifier
:type case_identifier: str
:param case_title: The case title
:type case_title: str
:param case_severity: The case severity
:type case_severity: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'relation_name': {'key': 'properties.relationName', 'type': 'str'},
'bookmark_id': {'key': 'properties.bookmarkId', 'type': 'str'},
'case_identifier': {'key': 'properties.caseIdentifier', 'type': 'str'},
'case_title': {'key': 'properties.caseTitle', 'type': 'str'},
'case_severity': {'key': 'properties.caseSeverity', 'type': 'str'},
}

def __init__(self, *, relation_name: str, bookmark_id: str, case_identifier: str, etag: str=None, case_title: str=None, case_severity: str=None, **kwargs) -> None:
super(BookmarkRelation, self).__init__(etag=etag, **kwargs)
self.relation_name = relation_name
self.bookmark_id = bookmark_id
self.case_identifier = case_identifier
self.case_title = case_title
self.case_severity = case_severity
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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 .relation_base import RelationBase


class CaseRelation(RelationBase):
"""Represents a case relation.

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 name: Azure resource name
:vartype name: str
:ivar type: Azure resource type
:vartype type: str
:ivar kind: The type of relation node. Possible values include:
'CasesToBookmarks'
:vartype kind: str or ~azure.mgmt.securityinsight.models.RelationTypes
:param etag: ETag for relation
:type etag: str
:param relation_name: Required. Name of relation
:type relation_name: str
:param bookmark_id: Required. The case related bookmark id
:type bookmark_id: str
:param case_identifier: Required. The case identifier
:type case_identifier: str
:param bookmark_name: The case related bookmark name
:type bookmark_name: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'relation_name': {'key': 'properties.relationName', 'type': 'str'},
'bookmark_id': {'key': 'properties.bookmarkId', 'type': 'str'},
'case_identifier': {'key': 'properties.caseIdentifier', 'type': 'str'},
'bookmark_name': {'key': 'properties.bookmarkName', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CaseRelation, self).__init__(**kwargs)
self.relation_name = kwargs.get('relation_name', None)
self.bookmark_id = kwargs.get('bookmark_id', None)
self.case_identifier = kwargs.get('case_identifier', None)
self.bookmark_name = kwargs.get('bookmark_name', 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 CaseRelationPaged(Paged):
"""
A paging container for iterating over a list of :class:`CaseRelation <azure.mgmt.securityinsight.models.CaseRelation>` object
"""

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

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

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