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 @@ -13,6 +13,7 @@
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .alert_rule_py3 import AlertRule
from .alert_rules_list_py3 import AlertRulesList
from .alert_rule_kind1_py3 import AlertRuleKind1
from .scheduled_alert_rule_py3 import ScheduledAlertRule
from .action_py3 import Action
Expand Down Expand Up @@ -53,6 +54,7 @@
from .operation_display import OperationDisplay
from .operation import Operation
from .alert_rule import AlertRule
from .alert_rules_list import AlertRulesList
from .alert_rule_kind1 import AlertRuleKind1
from .scheduled_alert_rule import ScheduledAlertRule
from .action import Action
Expand Down Expand Up @@ -90,7 +92,7 @@
from .aggregations import Aggregations
from .aggregations_kind1 import AggregationsKind1
from .operation_paged import OperationPaged
from .alert_rule_paged import AlertRulePaged
from .scheduled_alert_rule_paged import ScheduledAlertRulePaged
from .action_paged import ActionPaged
from .case_paged import CasePaged
from .bookmark_paged import BookmarkPaged
Expand All @@ -117,6 +119,7 @@
'OperationDisplay',
'Operation',
'AlertRule',
'AlertRulesList',
'AlertRuleKind1',
'ScheduledAlertRule',
'Action',
Expand Down Expand Up @@ -154,7 +157,7 @@
'Aggregations',
'AggregationsKind1',
'OperationPaged',
'AlertRulePaged',
'ScheduledAlertRulePaged',
'ActionPaged',
'CasePaged',
'BookmarkPaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 AlertRulesList(Model):
"""List all the alert rules.

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 next_link: URL to fetch the next set of alert rules.
:vartype next_link: str
:param value: Required. Array of alert rules.
:type value: list[~azure.mgmt.securityinsight.models.AlertRule]
"""

_validation = {
'next_link': {'readonly': True},
'value': {'required': True},
}

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

def __init__(self, **kwargs):
super(AlertRulesList, self).__init__(**kwargs)
self.next_link = None
self.value = kwargs.get('value', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 AlertRulesList(Model):
"""List all the alert rules.

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 next_link: URL to fetch the next set of alert rules.
:vartype next_link: str
:param value: Required. Array of alert rules.
:type value: list[~azure.mgmt.securityinsight.models.AlertRule]
"""

_validation = {
'next_link': {'readonly': True},
'value': {'required': True},
}

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

def __init__(self, *, value, **kwargs) -> None:
super(AlertRulesList, self).__init__(**kwargs)
self.next_link = None
self.value = value
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class Case(Resource):
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
Expand All @@ -40,15 +38,15 @@ class Case(Resource):
:type labels: list[str]
:param description: The description of the case
:type description: str
:param title: Required. The title of the case
:param title: 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
:param severity: Required. The severity of the case. Possible values
include: 'Critical', 'High', 'Medium', 'Low', 'Informational'
:param severity: The severity of the case. Possible values include:
'Critical', 'High', 'Medium', 'Low', 'Informational'
:type severity: str or ~azure.mgmt.securityinsight.models.CaseSeverity
:param status: Required. The status of the case. Possible values include:
'Draft', 'Open', 'InProgress', 'Closed'
:param status: The status of the case. Possible values include: 'Draft',
'Open', 'InProgress', 'Closed'
:type status: str or ~azure.mgmt.securityinsight.models.CaseStatus
:param close_reason: The reason the case was closed. Possible values
include: 'Resolved', 'Dismissed', 'Other'
Expand All @@ -59,27 +57,24 @@ class Case(Resource):
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'title': {'required': True},
'severity': {'required': True},
'status': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'last_updated_time_utc': {'key': 'properties.lastUpdatedTimeUtc', 'type': 'iso-8601'},
'created_time_utc': {'key': 'properties.createdTimeUtc', 'type': 'iso-8601'},
'end_time_utc': {'key': 'properties.endTimeUtc', 'type': 'iso-8601'},
'start_time_utc': {'key': 'properties.startTimeUtc', 'type': 'iso-8601'},
'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'},
'severity': {'key': 'properties.severity', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'close_reason': {'key': 'properties.closeReason', 'type': 'str'},
'last_updated_time_utc': {'key': 'properties.LastUpdatedTimeUtc', 'type': 'iso-8601'},
'created_time_utc': {'key': 'properties.CreatedTimeUtc', 'type': 'iso-8601'},
'end_time_utc': {'key': 'properties.EndTimeUtc', 'type': 'iso-8601'},
'start_time_utc': {'key': 'properties.StartTimeUtc', 'type': 'iso-8601'},
'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'},
'severity': {'key': 'properties.Severity', 'type': 'str'},
'status': {'key': 'properties.Status', 'type': 'str'},
'close_reason': {'key': 'properties.CloseReason', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class Case(Resource):
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
Expand All @@ -40,15 +38,15 @@ class Case(Resource):
:type labels: list[str]
:param description: The description of the case
:type description: str
:param title: Required. The title of the case
:param title: 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
:param severity: Required. The severity of the case. Possible values
include: 'Critical', 'High', 'Medium', 'Low', 'Informational'
:param severity: The severity of the case. Possible values include:
'Critical', 'High', 'Medium', 'Low', 'Informational'
:type severity: str or ~azure.mgmt.securityinsight.models.CaseSeverity
:param status: Required. The status of the case. Possible values include:
'Draft', 'Open', 'InProgress', 'Closed'
:param status: The status of the case. Possible values include: 'Draft',
'Open', 'InProgress', 'Closed'
:type status: str or ~azure.mgmt.securityinsight.models.CaseStatus
:param close_reason: The reason the case was closed. Possible values
include: 'Resolved', 'Dismissed', 'Other'
Expand All @@ -59,30 +57,27 @@ class Case(Resource):
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'title': {'required': True},
'severity': {'required': True},
'status': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'last_updated_time_utc': {'key': 'properties.lastUpdatedTimeUtc', 'type': 'iso-8601'},
'created_time_utc': {'key': 'properties.createdTimeUtc', 'type': 'iso-8601'},
'end_time_utc': {'key': 'properties.endTimeUtc', 'type': 'iso-8601'},
'start_time_utc': {'key': 'properties.startTimeUtc', 'type': 'iso-8601'},
'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'},
'severity': {'key': 'properties.severity', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'close_reason': {'key': 'properties.closeReason', 'type': 'str'},
'last_updated_time_utc': {'key': 'properties.LastUpdatedTimeUtc', 'type': 'iso-8601'},
'created_time_utc': {'key': 'properties.CreatedTimeUtc', 'type': 'iso-8601'},
'end_time_utc': {'key': 'properties.EndTimeUtc', 'type': 'iso-8601'},
'start_time_utc': {'key': 'properties.StartTimeUtc', 'type': 'iso-8601'},
'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'},
'severity': {'key': 'properties.Severity', 'type': 'str'},
'status': {'key': 'properties.Status', 'type': 'str'},
'close_reason': {'key': 'properties.CloseReason', 'type': 'str'},
}

def __init__(self, *, title: str, severity, status, etag: str=None, last_updated_time_utc=None, created_time_utc=None, end_time_utc=None, start_time_utc=None, labels=None, description: str=None, assigned_to=None, close_reason=None, **kwargs) -> None:
def __init__(self, *, etag: str=None, last_updated_time_utc=None, created_time_utc=None, end_time_utc=None, start_time_utc=None, labels=None, description: str=None, title: str=None, assigned_to=None, severity=None, status=None, close_reason=None, **kwargs) -> None:
super(Case, self).__init__(**kwargs)
self.etag = etag
self.last_updated_time_utc = last_updated_time_utc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
from msrest.paging import Paged


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

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

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

super(AlertRulePaged, self).__init__(*args, **kwargs)
super(ScheduledAlertRulePaged, self).__init__(*args, **kwargs)
Loading