|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.service_client import SDKClient |
| 13 | +from msrest import Serializer, Deserializer |
| 14 | + |
| 15 | +from ._configuration import SecurityInsightsConfiguration |
| 16 | +from .operations import Operations |
| 17 | +from .operations import AlertRulesOperations |
| 18 | +from .operations import ActionsOperations |
| 19 | +from .operations import AlertRuleTemplatesOperations |
| 20 | +from .operations import BookmarksOperations |
| 21 | +from .operations import DataConnectorsOperations |
| 22 | +from .operations import IncidentsOperations |
| 23 | +from .operations import IncidentCommentsOperations |
| 24 | +from . import models |
| 25 | + |
| 26 | + |
| 27 | +class SecurityInsights(SDKClient): |
| 28 | + """API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider |
| 29 | +
|
| 30 | + :ivar config: Configuration for client. |
| 31 | + :vartype config: SecurityInsightsConfiguration |
| 32 | +
|
| 33 | + :ivar operations: Operations operations |
| 34 | + :vartype operations: azure.mgmt.securityinsight.operations.Operations |
| 35 | + :ivar alert_rules: AlertRules operations |
| 36 | + :vartype alert_rules: azure.mgmt.securityinsight.operations.AlertRulesOperations |
| 37 | + :ivar actions: Actions operations |
| 38 | + :vartype actions: azure.mgmt.securityinsight.operations.ActionsOperations |
| 39 | + :ivar alert_rule_templates: AlertRuleTemplates operations |
| 40 | + :vartype alert_rule_templates: azure.mgmt.securityinsight.operations.AlertRuleTemplatesOperations |
| 41 | + :ivar bookmarks: Bookmarks operations |
| 42 | + :vartype bookmarks: azure.mgmt.securityinsight.operations.BookmarksOperations |
| 43 | + :ivar data_connectors: DataConnectors operations |
| 44 | + :vartype data_connectors: azure.mgmt.securityinsight.operations.DataConnectorsOperations |
| 45 | + :ivar incidents: Incidents operations |
| 46 | + :vartype incidents: azure.mgmt.securityinsight.operations.IncidentsOperations |
| 47 | + :ivar incident_comments: IncidentComments operations |
| 48 | + :vartype incident_comments: azure.mgmt.securityinsight.operations.IncidentCommentsOperations |
| 49 | +
|
| 50 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 51 | + :type credentials: :mod:`A msrestazure Credentials |
| 52 | + object<msrestazure.azure_active_directory>` |
| 53 | + :param subscription_id: Azure subscription ID |
| 54 | + :type subscription_id: str |
| 55 | + :param str base_url: Service URL |
| 56 | + """ |
| 57 | + |
| 58 | + def __init__( |
| 59 | + self, credentials, subscription_id, base_url=None): |
| 60 | + |
| 61 | + self.config = SecurityInsightsConfiguration(credentials, subscription_id, base_url) |
| 62 | + super(SecurityInsights, self).__init__(self.config.credentials, self.config) |
| 63 | + |
| 64 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 65 | + self.api_version = '2020-01-01' |
| 66 | + self._serialize = Serializer(client_models) |
| 67 | + self._deserialize = Deserializer(client_models) |
| 68 | + |
| 69 | + self.operations = Operations( |
| 70 | + self._client, self.config, self._serialize, self._deserialize) |
| 71 | + self.alert_rules = AlertRulesOperations( |
| 72 | + self._client, self.config, self._serialize, self._deserialize) |
| 73 | + self.actions = ActionsOperations( |
| 74 | + self._client, self.config, self._serialize, self._deserialize) |
| 75 | + self.alert_rule_templates = AlertRuleTemplatesOperations( |
| 76 | + self._client, self.config, self._serialize, self._deserialize) |
| 77 | + self.bookmarks = BookmarksOperations( |
| 78 | + self._client, self.config, self._serialize, self._deserialize) |
| 79 | + self.data_connectors = DataConnectorsOperations( |
| 80 | + self._client, self.config, self._serialize, self._deserialize) |
| 81 | + self.incidents = IncidentsOperations( |
| 82 | + self._client, self.config, self._serialize, self._deserialize) |
| 83 | + self.incident_comments = IncidentCommentsOperations( |
| 84 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments