Skip to content

Commit

Permalink
[AutoPR security/resource-manager] Correlation Key property added (#4524
Browse files Browse the repository at this point in the history
)

* Generated from 566b64da8e05aef201e8e3537edcd0c47530e360

typo fix

* Packaging update of azure-mgmt-security

* Generated from e620762eee468dab30a0eac68387dbaaed34cdc3

tabs switched to spaces + description changed to be more informative
  • Loading branch information
AutorestCI authored Mar 15, 2019
1 parent b12eab0 commit 418e8ac
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions azure-mgmt-security/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-security%2FREADME.png
6 changes: 6 additions & 0 deletions azure-mgmt-security/azure/mgmt/security/models/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class Alert(Resource):
:ivar workspace_arm_id: Azure resource ID of the workspace that the alert
was reported to.
:vartype workspace_arm_id: str
:ivar correlation_key: Alerts with the same CorrelationKey will be grouped
together in Ibiza.
:vartype correlation_key: str
"""

_validation = {
Expand All @@ -103,6 +106,7 @@ class Alert(Resource):
'subscription_id': {'readonly': True},
'instance_id': {'readonly': True},
'workspace_arm_id': {'readonly': True},
'correlation_key': {'readonly': True},
}

_attribute_map = {
Expand Down Expand Up @@ -131,6 +135,7 @@ class Alert(Resource):
'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'},
'instance_id': {'key': 'properties.instanceId', 'type': 'str'},
'workspace_arm_id': {'key': 'properties.workspaceArmId', 'type': 'str'},
'correlation_key': {'key': 'properties.correlationKey', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -157,3 +162,4 @@ def __init__(self, **kwargs):
self.subscription_id = None
self.instance_id = None
self.workspace_arm_id = None
self.correlation_key = None
6 changes: 6 additions & 0 deletions azure-mgmt-security/azure/mgmt/security/models/alert_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class Alert(Resource):
:ivar workspace_arm_id: Azure resource ID of the workspace that the alert
was reported to.
:vartype workspace_arm_id: str
:ivar correlation_key: Alerts with the same CorrelationKey will be grouped
together in Ibiza.
:vartype correlation_key: str
"""

_validation = {
Expand All @@ -103,6 +106,7 @@ class Alert(Resource):
'subscription_id': {'readonly': True},
'instance_id': {'readonly': True},
'workspace_arm_id': {'readonly': True},
'correlation_key': {'readonly': True},
}

_attribute_map = {
Expand Down Expand Up @@ -131,6 +135,7 @@ class Alert(Resource):
'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'},
'instance_id': {'key': 'properties.instanceId', 'type': 'str'},
'workspace_arm_id': {'key': 'properties.workspaceArmId', 'type': 'str'},
'correlation_key': {'key': 'properties.correlationKey', 'type': 'str'},
}

def __init__(self, *, extended_properties=None, entities=None, confidence_reasons=None, **kwargs) -> None:
Expand All @@ -157,3 +162,4 @@ def __init__(self, *, extended_properties=None, entities=None, confidence_reason
self.subscription_id = None
self.instance_id = None
self.workspace_arm_id = None
self.correlation_key = None
3 changes: 2 additions & 1 deletion azure-mgmt-security/azure/mgmt/security/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.2.0"
VERSION = "0.1.0"

0 comments on commit 418e8ac

Please sign in to comment.