-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR securityinsights/resource-manager] Adding alertRuleTemplates …
…swagger spec to securityInsight (#6773) * Generated from d731243f4645a2df9c8389e10e93be04ea78a620 Add alertRuleTemplates endpoint to securityInsight * Generated from d09f26c587fddd31fa13cb3d94d7a9bbe8d58ec8 fix merge conflict * Generated from efe14acff06c754692f29bffee877f29edb68b89 Bookmarks swagger updates * Generated from 07393c4915496b1768a08c5f408b05cdb2a27f10 fix typos * Generated from 98fdd0347934e59d39a7b6f803f170933c96d199 fix typo
- Loading branch information
1 parent
658731a
commit 870eeac
Showing
28 changed files
with
1,550 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/alert_rule_template.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# 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 AlertRuleTemplate(Model): | ||
"""Alert rule template. | ||
You probably want to use the sub-classes and not this class directly. Known | ||
sub-classes are: ScheduledAlertRuleTemplate, FilterAlertRuleTemplate, | ||
FusionAlertRuleTemplate | ||
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 alert rule. | ||
:type etag: str | ||
:param kind: Required. Constant filled by server. | ||
:type kind: str | ||
""" | ||
|
||
_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'}, | ||
} | ||
|
||
_subtype_map = { | ||
'kind': {'Scheduled': 'ScheduledAlertRuleTemplate', 'Filter': 'FilterAlertRuleTemplate', 'Fusion': 'FusionAlertRuleTemplate'} | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AlertRuleTemplate, self).__init__(**kwargs) | ||
self.id = None | ||
self.type = None | ||
self.name = None | ||
self.etag = kwargs.get('etag', None) | ||
self.kind = None |
27 changes: 27 additions & 0 deletions
27
...azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/alert_rule_template_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 AlertRuleTemplatePaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`AlertRuleTemplate <azure.mgmt.securityinsight.models.AlertRuleTemplate>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[AlertRuleTemplate]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(AlertRuleTemplatePaged, self).__init__(*args, **kwargs) |
64 changes: 64 additions & 0 deletions
64
sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/alert_rule_template_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# 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 AlertRuleTemplate(Model): | ||
"""Alert rule template. | ||
You probably want to use the sub-classes and not this class directly. Known | ||
sub-classes are: ScheduledAlertRuleTemplate, FilterAlertRuleTemplate, | ||
FusionAlertRuleTemplate | ||
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 alert rule. | ||
:type etag: str | ||
:param kind: Required. Constant filled by server. | ||
:type kind: str | ||
""" | ||
|
||
_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'}, | ||
} | ||
|
||
_subtype_map = { | ||
'kind': {'Scheduled': 'ScheduledAlertRuleTemplate', 'Filter': 'FilterAlertRuleTemplate', 'Fusion': 'FusionAlertRuleTemplate'} | ||
} | ||
|
||
def __init__(self, *, etag: str=None, **kwargs) -> None: | ||
super(AlertRuleTemplate, self).__init__(**kwargs) | ||
self.id = None | ||
self.type = None | ||
self.name = None | ||
self.etag = etag | ||
self.kind = None |
65 changes: 65 additions & 0 deletions
65
...-securityinsight/azure/mgmt/securityinsight/models/base_alert_rule_template_properties.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# 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 BaseAlertRuleTemplateProperties(Model): | ||
"""Base alert rule template property bag. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:param display_name: The display name for alert rule template. | ||
:type display_name: str | ||
:param description: The description of the alert rule template. | ||
:type description: str | ||
:param tactics: The tactics of the alert rule template | ||
:type tactics: list[str or | ||
~azure.mgmt.securityinsight.models.AttackTactic] | ||
:ivar created_date_utc: The time that this alert rule template has been | ||
added. | ||
:vartype created_date_utc: str | ||
:param status: The alert rule template status. Possible values include: | ||
'Installed', 'Available', 'NotAvailable' | ||
:type status: str or ~azure.mgmt.securityinsight.models.TemplateStatus | ||
:param required_data_connectors: The required data connectors for this | ||
template | ||
:type required_data_connectors: | ||
list[~azure.mgmt.securityinsight.models.DataConnectorStatus] | ||
:param alert_rules_created_by_template_count: the number of alert rules | ||
that were created by this template | ||
:type alert_rules_created_by_template_count: int | ||
""" | ||
|
||
_validation = { | ||
'created_date_utc': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'display_name': {'key': 'displayName', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'tactics': {'key': 'tactics', 'type': '[AttackTactic]'}, | ||
'created_date_utc': {'key': 'createdDateUTC', 'type': 'str'}, | ||
'status': {'key': 'status', 'type': 'TemplateStatus'}, | ||
'required_data_connectors': {'key': 'requiredDataConnectors', 'type': '[DataConnectorStatus]'}, | ||
'alert_rules_created_by_template_count': {'key': 'alertRulesCreatedByTemplateCount', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(BaseAlertRuleTemplateProperties, self).__init__(**kwargs) | ||
self.display_name = kwargs.get('display_name', None) | ||
self.description = kwargs.get('description', None) | ||
self.tactics = kwargs.get('tactics', None) | ||
self.created_date_utc = None | ||
self.status = kwargs.get('status', None) | ||
self.required_data_connectors = kwargs.get('required_data_connectors', None) | ||
self.alert_rules_created_by_template_count = kwargs.get('alert_rules_created_by_template_count', None) |
Oops, something went wrong.