Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
29 changes: 23 additions & 6 deletions azure-mgmt-security/azure/mgmt/security/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
# --------------------------------------------------------------------------

try:
from .pricing_py3 import Pricing
from .pricing_list_py3 import PricingList
from .regulatory_compliance_standard_py3 import RegulatoryComplianceStandard
from .regulatory_compliance_control_py3 import RegulatoryComplianceControl
from .regulatory_compliance_assessment_py3 import RegulatoryComplianceAssessment
from .asc_location_py3 import AscLocation
from .resource_py3 import Resource
from .pricing_py3 import Pricing
from .pricing_list_py3 import PricingList
from .security_contact_py3 import SecurityContact
from .workspace_setting_py3 import WorkspaceSetting
from .auto_provisioning_setting_py3 import AutoProvisioningSetting
Expand Down Expand Up @@ -65,10 +68,13 @@
from .connectable_resource_py3 import ConnectableResource
from .allowed_connections_resource_py3 import AllowedConnectionsResource
except (SyntaxError, ImportError):
from .pricing import Pricing
from .pricing_list import PricingList
from .regulatory_compliance_standard import RegulatoryComplianceStandard
from .regulatory_compliance_control import RegulatoryComplianceControl
from .regulatory_compliance_assessment import RegulatoryComplianceAssessment
from .asc_location import AscLocation
from .resource import Resource
from .pricing import Pricing
from .pricing_list import PricingList
from .security_contact import SecurityContact
from .workspace_setting import WorkspaceSetting
from .auto_provisioning_setting import AutoProvisioningSetting
Expand Down Expand Up @@ -119,6 +125,9 @@
from .connected_resource import ConnectedResource
from .connectable_resource import ConnectableResource
from .allowed_connections_resource import AllowedConnectionsResource
from .regulatory_compliance_standard_paged import RegulatoryComplianceStandardPaged
from .regulatory_compliance_control_paged import RegulatoryComplianceControlPaged
from .regulatory_compliance_assessment_paged import RegulatoryComplianceAssessmentPaged
from .security_contact_paged import SecurityContactPaged
from .workspace_setting_paged import WorkspaceSettingPaged
from .auto_provisioning_setting_paged import AutoProvisioningSettingPaged
Expand All @@ -135,6 +144,7 @@
from .topology_resource_paged import TopologyResourcePaged
from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged
from .security_center_enums import (
State,
PricingTier,
AlertNotifications,
AlertsToAdmins,
Expand All @@ -151,10 +161,13 @@
)

__all__ = [
'Pricing',
'PricingList',
'RegulatoryComplianceStandard',
'RegulatoryComplianceControl',
'RegulatoryComplianceAssessment',
'AscLocation',
'Resource',
'Pricing',
'PricingList',
'SecurityContact',
'WorkspaceSetting',
'AutoProvisioningSetting',
Expand Down Expand Up @@ -205,6 +218,9 @@
'ConnectedResource',
'ConnectableResource',
'AllowedConnectionsResource',
'RegulatoryComplianceStandardPaged',
'RegulatoryComplianceControlPaged',
'RegulatoryComplianceAssessmentPaged',
'SecurityContactPaged',
'WorkspaceSettingPaged',
'AutoProvisioningSettingPaged',
Expand All @@ -220,6 +236,7 @@
'ExternalSecuritySolutionPaged',
'TopologyResourcePaged',
'AllowedConnectionsResourcePaged',
'State',
'PricingTier',
'AlertNotifications',
'AlertsToAdmins',
Expand Down
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# 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 .resource import Resource


class RegulatoryComplianceAssessment(Resource):
"""Regulatory compliance assessment details and state.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar description: The description of the regulatory compliance assessment
:vartype description: str
:ivar assessment_type: The expected type of assessment contained in the
AssessmentDetailsLink
:vartype assessment_type: str
:ivar assessment_details_link: Link to more detailed assessment results
data. The response type will be according to the assessmentType field
:vartype assessment_details_link: str
:param state: Aggregative state based on the assessment's scanned
resources states. Possible values include: 'Passed', 'Failed', 'Skipped',
'Unsupported'
:type state: str or ~azure.mgmt.security.models.State
:ivar passed_resources: The given assessment's related resources count
with passed state.
:vartype passed_resources: int
:ivar failed_resources: The given assessment's related resources count
with failed state.
:vartype failed_resources: int
:ivar skipped_resources: The given assessment's related resources count
with skipped state.
:vartype skipped_resources: int
:ivar unsupported_resources: The given assessment's related resources
count with unsupported state.
:vartype unsupported_resources: int
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'description': {'readonly': True},
'assessment_type': {'readonly': True},
'assessment_details_link': {'readonly': True},
'passed_resources': {'readonly': True},
'failed_resources': {'readonly': True},
'skipped_resources': {'readonly': True},
'unsupported_resources': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'assessment_type': {'key': 'properties.assessmentType', 'type': 'str'},
'assessment_details_link': {'key': 'properties.assessmentDetailsLink', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'passed_resources': {'key': 'properties.passedResources', 'type': 'int'},
'failed_resources': {'key': 'properties.failedResources', 'type': 'int'},
'skipped_resources': {'key': 'properties.skippedResources', 'type': 'int'},
'unsupported_resources': {'key': 'properties.unsupportedResources', 'type': 'int'},
}

def __init__(self, **kwargs):
super(RegulatoryComplianceAssessment, self).__init__(**kwargs)
self.description = None
self.assessment_type = None
self.assessment_details_link = None
self.state = kwargs.get('state', None)
self.passed_resources = None
self.failed_resources = None
self.skipped_resources = None
self.unsupported_resources = None
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 RegulatoryComplianceAssessmentPaged(Paged):
"""
A paging container for iterating over a list of :class:`RegulatoryComplianceAssessment <azure.mgmt.security.models.RegulatoryComplianceAssessment>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[RegulatoryComplianceAssessment]'}
}

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

super(RegulatoryComplianceAssessmentPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# 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 .resource_py3 import Resource


class RegulatoryComplianceAssessment(Resource):
"""Regulatory compliance assessment details and state.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar description: The description of the regulatory compliance assessment
:vartype description: str
:ivar assessment_type: The expected type of assessment contained in the
AssessmentDetailsLink
:vartype assessment_type: str
:ivar assessment_details_link: Link to more detailed assessment results
data. The response type will be according to the assessmentType field
:vartype assessment_details_link: str
:param state: Aggregative state based on the assessment's scanned
resources states. Possible values include: 'Passed', 'Failed', 'Skipped',
'Unsupported'
:type state: str or ~azure.mgmt.security.models.State
:ivar passed_resources: The given assessment's related resources count
with passed state.
:vartype passed_resources: int
:ivar failed_resources: The given assessment's related resources count
with failed state.
:vartype failed_resources: int
:ivar skipped_resources: The given assessment's related resources count
with skipped state.
:vartype skipped_resources: int
:ivar unsupported_resources: The given assessment's related resources
count with unsupported state.
:vartype unsupported_resources: int
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'description': {'readonly': True},
'assessment_type': {'readonly': True},
'assessment_details_link': {'readonly': True},
'passed_resources': {'readonly': True},
'failed_resources': {'readonly': True},
'skipped_resources': {'readonly': True},
'unsupported_resources': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'assessment_type': {'key': 'properties.assessmentType', 'type': 'str'},
'assessment_details_link': {'key': 'properties.assessmentDetailsLink', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'passed_resources': {'key': 'properties.passedResources', 'type': 'int'},
'failed_resources': {'key': 'properties.failedResources', 'type': 'int'},
'skipped_resources': {'key': 'properties.skippedResources', 'type': 'int'},
'unsupported_resources': {'key': 'properties.unsupportedResources', 'type': 'int'},
}

def __init__(self, *, state=None, **kwargs) -> None:
super(RegulatoryComplianceAssessment, self).__init__(**kwargs)
self.description = None
self.assessment_type = None
self.assessment_details_link = None
self.state = state
self.passed_resources = None
self.failed_resources = None
self.skipped_resources = None
self.unsupported_resources = None
Loading