Skip to content

Commit 7fef7a0

Browse files
author
SDK Automation
committed
Generated from 3e841870dc907c32837a963ad9e1d0f8f8bb8356
merge
1 parent e67b96a commit 7fef7a0

26 files changed

+7931
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (1970-01-01)
4+
5+
* Initial Release
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.md
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure MyService Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
8+
# Usage
9+
10+
For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/)
11+
on docs.microsoft.com.
12+
13+
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
18+
section of the project.
19+
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-securityinsight%2FREADME.png)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 ._configuration import SecurityInsightsConfiguration
13+
from ._security_insights import SecurityInsights
14+
__all__ = ['SecurityInsights', 'SecurityInsightsConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class SecurityInsightsConfiguration(AzureConfiguration):
17+
"""Configuration for SecurityInsights
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Azure subscription ID
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(SecurityInsightsConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-securityinsight/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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

Comments
 (0)