Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit dc6bb72

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] security/resource-manager (Azure#3782)
* Generated from 84624804865be53090660f859760f153de313691 (Azure#3781) merged from master * [AutoPR security/resource-manager] Remove security contact phone field mandatory fields (Azure#3753) * Generated from 3f99e72342d5d4f194ff74c8c553657530955783 Remove security contact phone field mandatory fields * Generated from e94d9f5b16a429a3f1d2270a981be7218f06fd36 Update security contact examples - refactored - second iteration * Generated from e691835335c3acf12428c89776c765a1fa2bdad5 (Azure#3989) typo: security/resource-manager/Microsoft.Security - Double word "alert" - addess -> address - whos -> whose * Generated from 1a24198dd982a4fcb510456404994241f55dc883 (Azure#4113) Settings API * Generated from 5d46282b1371de397d3d60083b6485ff73332f93 (Azure#4216) add comma * [AutoPR security/resource-manager] Adding new api-version to Microsoft.Security Alerts resource (Azure#4283) * Generated from f862d11a6a08b6c7243a79c2996690518313ac9a Rollback readme change * Packaging update of azure-mgmt-security * [AutoPR security/resource-manager] Azure Security Center - break-to-composite v1 (Azure#4354) * Generated from 2a8aacac69e7675f0417a2dee3770256656042c8 first break-to-composite attempt * Generated from 6cbbbe2e2e840c19e3f97332dbc44d0eb4049ce5 Azure Security Center - add missing 2017-08-01-preview api-version + bugfixes * [AutoPR security/resource-manager] Security - Updating API versions of alerts and pricing types (Azure#4423) * Generated from 6b10f3754b112658124483817ff82792d4de2fcc Security - Updating api versions of alerts and pricing types * Generated from 67e18cba585922ac70f701db683e2cf8a4b6d19f Security - Updating api versions of alerts and pricing types * Packaging update of azure-mgmt-security * updated versioning and change log * Generated from 16b35cff6f2a72e062a8098e0cb95ccc209e25af (Azure#4459) reverted security python readme to pre multi api * [AutoPR security/resource-manager] Correlation Key property added (Azure#4524) * Generated from 566b64da8e05aef201e8e3537edcd0c47530e360 typo fix * Packaging update of azure-mgmt-security * Generated from e620762eee468dab30a0eac68387dbaaed34cdc3 tabs switched to spaces + description changed to be more informative * [AutoPR security/resource-manager] New security Regulatory compliance API (Azure#4502) * Generated from 60b311c10c1de2583d21065332a28f65b6025e8b Regulatory compliance API * Packaging update of azure-mgmt-security * Generated from f2f06c6cb708b078507ff93bb5bd338416b27de7 Merge branch 'master' of https://github.com/himarkov/azure-rest-api-specs * Generated from 57997a34834cb3e70253fc7573647886666edb4f Update regulatoryCompliance.json * [AutoPR security/resource-manager] Security: 2017-08-01-preview - Introduce IoT security groups resource (Azure#4112) * Generated from c55343d67df9f202ebbfdc2670f167350fe265ea Some fixes after validation * Generated from d6824620292538df997c2da42c9deda14ee9a90f Change resource name, add x-ms-pagable * Generated from 0cfbd83907e23a9364669f804e9442d771ad088b Sync with master (split files by resource type), add value type * Packaging update of azure-mgmt-security * Generated from 45af2dd2143cc9b695ea876a68496401cb37acb9 Fix readme file * Generated from 67d905e193967e7a8c35511c87239b4f052314a1 delete unreferenced example file * Generated from 35998a721ea3c6fbae6d5b40f051a3d0a8144ea9 (Azure#4756) Changing new version Settings file * Packaging update of azure-mgmt-security * Update HISTORY.rst
1 parent 2f3e214 commit dc6bb72

36 files changed

+1085
-562
lines changed

azure-mgmt-security/HISTORY.rst

+20
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
Release History
44
===============
55

6+
0.2.0 (2019-04-16)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model Pricing has a new parameter free_trial_remaining_time
12+
- Model Alert has a new parameter is_incident
13+
- Added operation PricingsOperations.get
14+
- Added operation PricingsOperations.update
15+
- Added operation group AllowedConnectionsOperations
16+
17+
**Breaking changes**
18+
19+
- Operation SettingsOperations.update has a new signature
20+
- Removed operation PricingsOperations.update_subscription_pricing
21+
- Removed operation PricingsOperations.list_by_resource_group
22+
- Removed operation PricingsOperations.create_or_update_resource_group_pricing
23+
- Removed operation PricingsOperations.get_resource_group_pricing
24+
- Removed operation PricingsOperations.get_subscription_pricing
25+
626
0.1.0 (2018-10-29)
727
++++++++++++++++++
828

azure-mgmt-security/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
recursive-include tests *.py *.yaml
12
include *.rst
23
include azure/__init__.py
34
include azure/mgmt/__init__.py

azure-mgmt-security/README.rst

-19
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
1414
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
1515

1616

17-
Compatibility
18-
=============
19-
20-
**IMPORTANT**: If you have an earlier version of the azure package
21-
(version < 1.0), you should uninstall it before installing this package.
22-
23-
You can check the version using pip:
24-
25-
.. code:: shell
26-
27-
pip freeze
28-
29-
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
30-
31-
.. code:: shell
32-
33-
pip uninstall azure
34-
35-
3617
Usage
3718
=====
3819

azure-mgmt-security/azure/mgmt/security/models/__init__.py

+147-131
Large diffs are not rendered by default.

azure-mgmt-security/azure/mgmt/security/models/alert.py

+16-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ class Alert(Resource):
4444
:ivar action_taken: The action that was taken as a response to the alert
4545
(Active, Blocked etc.)
4646
:vartype action_taken: str
47-
:ivar reported_severity: Estimated severity of this alert
48-
:vartype reported_severity: str
47+
:ivar reported_severity: Estimated severity of this alert. Possible values
48+
include: 'Informational', 'Low', 'Medium', 'High'
49+
:vartype reported_severity: str or
50+
~azure.mgmt.security.models.ReportedSeverity
4951
:ivar compromised_entity: The entity that the incident happened on
5052
:vartype compromised_entity: str
5153
:ivar associated_resource: Azure resource ID of the associated resource
@@ -57,6 +59,9 @@ class Alert(Resource):
5759
:ivar can_be_investigated: Whether this alert can be investigated with
5860
Azure Security Center
5961
:vartype can_be_investigated: bool
62+
:ivar is_incident: Whether this alert is for incident type or not
63+
(otherwise - single alert)
64+
:vartype is_incident: bool
6065
:param entities: objects that are related to this alerts
6166
:type entities: list[~azure.mgmt.security.models.AlertEntity]
6267
:ivar confidence_score: level of confidence we have on the alert
@@ -73,6 +78,9 @@ class Alert(Resource):
7378
:ivar workspace_arm_id: Azure resource ID of the workspace that the alert
7479
was reported to.
7580
:vartype workspace_arm_id: str
81+
:ivar correlation_key: Alerts with the same CorrelationKey will be grouped
82+
together in Ibiza.
83+
:vartype correlation_key: str
7684
"""
7785

7886
_validation = {
@@ -93,10 +101,12 @@ class Alert(Resource):
93101
'associated_resource': {'readonly': True},
94102
'system_source': {'readonly': True},
95103
'can_be_investigated': {'readonly': True},
104+
'is_incident': {'readonly': True},
96105
'confidence_score': {'readonly': True, 'maximum': 1, 'minimum': 0},
97106
'subscription_id': {'readonly': True},
98107
'instance_id': {'readonly': True},
99108
'workspace_arm_id': {'readonly': True},
109+
'correlation_key': {'readonly': True},
100110
}
101111

102112
_attribute_map = {
@@ -118,12 +128,14 @@ class Alert(Resource):
118128
'extended_properties': {'key': 'properties.extendedProperties', 'type': '{object}'},
119129
'system_source': {'key': 'properties.systemSource', 'type': 'str'},
120130
'can_be_investigated': {'key': 'properties.canBeInvestigated', 'type': 'bool'},
131+
'is_incident': {'key': 'properties.isIncident', 'type': 'bool'},
121132
'entities': {'key': 'properties.entities', 'type': '[AlertEntity]'},
122133
'confidence_score': {'key': 'properties.confidenceScore', 'type': 'float'},
123134
'confidence_reasons': {'key': 'properties.confidenceReasons', 'type': '[AlertConfidenceReason]'},
124135
'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'},
125136
'instance_id': {'key': 'properties.instanceId', 'type': 'str'},
126137
'workspace_arm_id': {'key': 'properties.workspaceArmId', 'type': 'str'},
138+
'correlation_key': {'key': 'properties.correlationKey', 'type': 'str'},
127139
}
128140

129141
def __init__(self, **kwargs):
@@ -143,9 +155,11 @@ def __init__(self, **kwargs):
143155
self.extended_properties = kwargs.get('extended_properties', None)
144156
self.system_source = None
145157
self.can_be_investigated = None
158+
self.is_incident = None
146159
self.entities = kwargs.get('entities', None)
147160
self.confidence_score = None
148161
self.confidence_reasons = kwargs.get('confidence_reasons', None)
149162
self.subscription_id = None
150163
self.instance_id = None
151164
self.workspace_arm_id = None
165+
self.correlation_key = None

azure-mgmt-security/azure/mgmt/security/models/alert_py3.py

+16-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ class Alert(Resource):
4444
:ivar action_taken: The action that was taken as a response to the alert
4545
(Active, Blocked etc.)
4646
:vartype action_taken: str
47-
:ivar reported_severity: Estimated severity of this alert
48-
:vartype reported_severity: str
47+
:ivar reported_severity: Estimated severity of this alert. Possible values
48+
include: 'Informational', 'Low', 'Medium', 'High'
49+
:vartype reported_severity: str or
50+
~azure.mgmt.security.models.ReportedSeverity
4951
:ivar compromised_entity: The entity that the incident happened on
5052
:vartype compromised_entity: str
5153
:ivar associated_resource: Azure resource ID of the associated resource
@@ -57,6 +59,9 @@ class Alert(Resource):
5759
:ivar can_be_investigated: Whether this alert can be investigated with
5860
Azure Security Center
5961
:vartype can_be_investigated: bool
62+
:ivar is_incident: Whether this alert is for incident type or not
63+
(otherwise - single alert)
64+
:vartype is_incident: bool
6065
:param entities: objects that are related to this alerts
6166
:type entities: list[~azure.mgmt.security.models.AlertEntity]
6267
:ivar confidence_score: level of confidence we have on the alert
@@ -73,6 +78,9 @@ class Alert(Resource):
7378
:ivar workspace_arm_id: Azure resource ID of the workspace that the alert
7479
was reported to.
7580
:vartype workspace_arm_id: str
81+
:ivar correlation_key: Alerts with the same CorrelationKey will be grouped
82+
together in Ibiza.
83+
:vartype correlation_key: str
7684
"""
7785

7886
_validation = {
@@ -93,10 +101,12 @@ class Alert(Resource):
93101
'associated_resource': {'readonly': True},
94102
'system_source': {'readonly': True},
95103
'can_be_investigated': {'readonly': True},
104+
'is_incident': {'readonly': True},
96105
'confidence_score': {'readonly': True, 'maximum': 1, 'minimum': 0},
97106
'subscription_id': {'readonly': True},
98107
'instance_id': {'readonly': True},
99108
'workspace_arm_id': {'readonly': True},
109+
'correlation_key': {'readonly': True},
100110
}
101111

102112
_attribute_map = {
@@ -118,12 +128,14 @@ class Alert(Resource):
118128
'extended_properties': {'key': 'properties.extendedProperties', 'type': '{object}'},
119129
'system_source': {'key': 'properties.systemSource', 'type': 'str'},
120130
'can_be_investigated': {'key': 'properties.canBeInvestigated', 'type': 'bool'},
131+
'is_incident': {'key': 'properties.isIncident', 'type': 'bool'},
121132
'entities': {'key': 'properties.entities', 'type': '[AlertEntity]'},
122133
'confidence_score': {'key': 'properties.confidenceScore', 'type': 'float'},
123134
'confidence_reasons': {'key': 'properties.confidenceReasons', 'type': '[AlertConfidenceReason]'},
124135
'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'},
125136
'instance_id': {'key': 'properties.instanceId', 'type': 'str'},
126137
'workspace_arm_id': {'key': 'properties.workspaceArmId', 'type': 'str'},
138+
'correlation_key': {'key': 'properties.correlationKey', 'type': 'str'},
127139
}
128140

129141
def __init__(self, *, extended_properties=None, entities=None, confidence_reasons=None, **kwargs) -> None:
@@ -143,9 +155,11 @@ def __init__(self, *, extended_properties=None, entities=None, confidence_reason
143155
self.extended_properties = extended_properties
144156
self.system_source = None
145157
self.can_be_investigated = None
158+
self.is_incident = None
146159
self.entities = entities
147160
self.confidence_score = None
148161
self.confidence_reasons = confidence_reasons
149162
self.subscription_id = None
150163
self.instance_id = None
151164
self.workspace_arm_id = None
165+
self.correlation_key = None
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.serialization import Model
13+
14+
15+
class AllowedConnectionsResource(Model):
16+
"""The resource whose properties describes the allowed traffic between Azure
17+
resources.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
:ivar id: Resource Id
23+
:vartype id: str
24+
:ivar name: Resource name
25+
:vartype name: str
26+
:ivar type: Resource type
27+
:vartype type: str
28+
:ivar location: Location where the resource is stored
29+
:vartype location: str
30+
:ivar calculated_date_time: The UTC time on which the allowed connections
31+
resource was calculated
32+
:vartype calculated_date_time: datetime
33+
:ivar connectable_resources: List of connectable resources
34+
:vartype connectable_resources:
35+
list[~azure.mgmt.security.models.ConnectableResource]
36+
"""
37+
38+
_validation = {
39+
'id': {'readonly': True},
40+
'name': {'readonly': True},
41+
'type': {'readonly': True},
42+
'location': {'readonly': True},
43+
'calculated_date_time': {'readonly': True},
44+
'connectable_resources': {'readonly': True},
45+
}
46+
47+
_attribute_map = {
48+
'id': {'key': 'id', 'type': 'str'},
49+
'name': {'key': 'name', 'type': 'str'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'location': {'key': 'location', 'type': 'str'},
52+
'calculated_date_time': {'key': 'properties.calculatedDateTime', 'type': 'iso-8601'},
53+
'connectable_resources': {'key': 'properties.connectableResources', 'type': '[ConnectableResource]'},
54+
}
55+
56+
def __init__(self, **kwargs):
57+
super(AllowedConnectionsResource, self).__init__(**kwargs)
58+
self.id = None
59+
self.name = None
60+
self.type = None
61+
self.location = None
62+
self.calculated_date_time = None
63+
self.connectable_resources = None

azure-mgmt-security/azure/mgmt/security/models/pricing_paged.py renamed to azure-mgmt-security/azure/mgmt/security/models/allowed_connections_resource_paged.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
from msrest.paging import Paged
1313

1414

15-
class PricingPaged(Paged):
15+
class AllowedConnectionsResourcePaged(Paged):
1616
"""
17-
A paging container for iterating over a list of :class:`Pricing <azure.mgmt.security.models.Pricing>` object
17+
A paging container for iterating over a list of :class:`AllowedConnectionsResource <azure.mgmt.security.models.AllowedConnectionsResource>` object
1818
"""
1919

2020
_attribute_map = {
2121
'next_link': {'key': 'nextLink', 'type': 'str'},
22-
'current_page': {'key': 'value', 'type': '[Pricing]'}
22+
'current_page': {'key': 'value', 'type': '[AllowedConnectionsResource]'}
2323
}
2424

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

27-
super(PricingPaged, self).__init__(*args, **kwargs)
27+
super(AllowedConnectionsResourcePaged, self).__init__(*args, **kwargs)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.serialization import Model
13+
14+
15+
class AllowedConnectionsResource(Model):
16+
"""The resource whose properties describes the allowed traffic between Azure
17+
resources.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
:ivar id: Resource Id
23+
:vartype id: str
24+
:ivar name: Resource name
25+
:vartype name: str
26+
:ivar type: Resource type
27+
:vartype type: str
28+
:ivar location: Location where the resource is stored
29+
:vartype location: str
30+
:ivar calculated_date_time: The UTC time on which the allowed connections
31+
resource was calculated
32+
:vartype calculated_date_time: datetime
33+
:ivar connectable_resources: List of connectable resources
34+
:vartype connectable_resources:
35+
list[~azure.mgmt.security.models.ConnectableResource]
36+
"""
37+
38+
_validation = {
39+
'id': {'readonly': True},
40+
'name': {'readonly': True},
41+
'type': {'readonly': True},
42+
'location': {'readonly': True},
43+
'calculated_date_time': {'readonly': True},
44+
'connectable_resources': {'readonly': True},
45+
}
46+
47+
_attribute_map = {
48+
'id': {'key': 'id', 'type': 'str'},
49+
'name': {'key': 'name', 'type': 'str'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'location': {'key': 'location', 'type': 'str'},
52+
'calculated_date_time': {'key': 'properties.calculatedDateTime', 'type': 'iso-8601'},
53+
'connectable_resources': {'key': 'properties.connectableResources', 'type': '[ConnectableResource]'},
54+
}
55+
56+
def __init__(self, **kwargs) -> None:
57+
super(AllowedConnectionsResource, self).__init__(**kwargs)
58+
self.id = None
59+
self.name = None
60+
self.type = None
61+
self.location = None
62+
self.calculated_date_time = None
63+
self.connectable_resources = None

0 commit comments

Comments
 (0)