Skip to content
Closed
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
58 changes: 46 additions & 12 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,17 @@
# --------------------------------------------------------------------------

try:
from .pricing_py3 import Pricing
from .pricing_list_py3 import PricingList
from .compliance_result_py3 import ComplianceResult
from .compliance_result_list_py3 import ComplianceResultList
from .asc_location_py3 import AscLocation
from .tracked_resource_py3 import TrackedResource
from .location_py3 import Location
from .kind_py3 import Kind
from .etag_py3 import ETag
from .tags_py3 import Tags
from .resource_py3 import Resource
from .pricing_py3 import Pricing
from .pricing_list_py3 import PricingList
from .alert_entity_py3 import AlertEntity
from .alert_confidence_reason_py3 import AlertConfidenceReason
from .alert_py3 import Alert
Expand All @@ -23,7 +30,6 @@
from .connected_resource_py3 import ConnectedResource
from .connectable_resource_py3 import ConnectableResource
from .allowed_connections_resource_py3 import AllowedConnectionsResource
from .location_py3 import Location
from .discovered_security_solution_py3 import DiscoveredSecuritySolution
from .external_security_solution_py3 import ExternalSecuritySolution
from .cef_solution_properties_py3 import CefSolutionProperties
Expand All @@ -45,7 +51,6 @@
from .jit_network_access_policy_initiate_port_py3 import JitNetworkAccessPolicyInitiatePort
from .jit_network_access_policy_initiate_virtual_machine_py3 import JitNetworkAccessPolicyInitiateVirtualMachine
from .jit_network_access_policy_initiate_request_py3 import JitNetworkAccessPolicyInitiateRequest
from .kind_py3 import Kind
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .security_task_parameters_py3 import SecurityTaskParameters
Expand All @@ -64,11 +69,21 @@
from .information_protection_policy_py3 import InformationProtectionPolicy
from .security_contact_py3 import SecurityContact
from .workspace_setting_py3 import WorkspaceSetting
from .regulatory_compliance_standard_py3 import RegulatoryComplianceStandard
from .regulatory_compliance_control_py3 import RegulatoryComplianceControl
from .regulatory_compliance_assessment_py3 import RegulatoryComplianceAssessment
except (SyntaxError, ImportError):
from .pricing import Pricing
from .pricing_list import PricingList
from .compliance_result import ComplianceResult
from .compliance_result_list import ComplianceResultList
from .asc_location import AscLocation
from .tracked_resource import TrackedResource
from .location import Location
from .kind import Kind
from .etag import ETag
from .tags import Tags
from .resource import Resource
from .pricing import Pricing
from .pricing_list import PricingList
from .alert_entity import AlertEntity
from .alert_confidence_reason import AlertConfidenceReason
from .alert import Alert
Expand All @@ -78,7 +93,6 @@
from .connected_resource import ConnectedResource
from .connectable_resource import ConnectableResource
from .allowed_connections_resource import AllowedConnectionsResource
from .location import Location
from .discovered_security_solution import DiscoveredSecuritySolution
from .external_security_solution import ExternalSecuritySolution
from .cef_solution_properties import CefSolutionProperties
Expand All @@ -100,7 +114,6 @@
from .jit_network_access_policy_initiate_port import JitNetworkAccessPolicyInitiatePort
from .jit_network_access_policy_initiate_virtual_machine import JitNetworkAccessPolicyInitiateVirtualMachine
from .jit_network_access_policy_initiate_request import JitNetworkAccessPolicyInitiateRequest
from .kind import Kind
from .operation_display import OperationDisplay
from .operation import Operation
from .security_task_parameters import SecurityTaskParameters
Expand All @@ -119,6 +132,9 @@
from .information_protection_policy import InformationProtectionPolicy
from .security_contact import SecurityContact
from .workspace_setting import WorkspaceSetting
from .regulatory_compliance_standard import RegulatoryComplianceStandard
from .regulatory_compliance_control import RegulatoryComplianceControl
from .regulatory_compliance_assessment import RegulatoryComplianceAssessment
from .alert_paged import AlertPaged
from .setting_paged import SettingPaged
from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged
Expand All @@ -134,7 +150,11 @@
from .information_protection_policy_paged import InformationProtectionPolicyPaged
from .security_contact_paged import SecurityContactPaged
from .workspace_setting_paged import WorkspaceSettingPaged
from .regulatory_compliance_standard_paged import RegulatoryComplianceStandardPaged
from .regulatory_compliance_control_paged import RegulatoryComplianceControlPaged
from .regulatory_compliance_assessment_paged import RegulatoryComplianceAssessmentPaged
from .security_center_enums import (
ResourceStatus,
PricingTier,
ReportedSeverity,
SettingKind,
Expand All @@ -147,14 +167,22 @@
AutoProvision,
AlertNotifications,
AlertsToAdmins,
State,
ConnectionType,
)

__all__ = [
'Pricing',
'PricingList',
'ComplianceResult',
'ComplianceResultList',
'AscLocation',
'TrackedResource',
'Location',
'Kind',
'ETag',
'Tags',
'Resource',
'Pricing',
'PricingList',
'AlertEntity',
'AlertConfidenceReason',
'Alert',
Expand All @@ -164,7 +192,6 @@
'ConnectedResource',
'ConnectableResource',
'AllowedConnectionsResource',
'Location',
'DiscoveredSecuritySolution',
'ExternalSecuritySolution',
'CefSolutionProperties',
Expand All @@ -186,7 +213,6 @@
'JitNetworkAccessPolicyInitiatePort',
'JitNetworkAccessPolicyInitiateVirtualMachine',
'JitNetworkAccessPolicyInitiateRequest',
'Kind',
'OperationDisplay',
'Operation',
'SecurityTaskParameters',
Expand All @@ -205,6 +231,9 @@
'InformationProtectionPolicy',
'SecurityContact',
'WorkspaceSetting',
'RegulatoryComplianceStandard',
'RegulatoryComplianceControl',
'RegulatoryComplianceAssessment',
'AlertPaged',
'SettingPaged',
'AllowedConnectionsResourcePaged',
Expand All @@ -220,6 +249,10 @@
'InformationProtectionPolicyPaged',
'SecurityContactPaged',
'WorkspaceSettingPaged',
'RegulatoryComplianceStandardPaged',
'RegulatoryComplianceControlPaged',
'RegulatoryComplianceAssessmentPaged',
'ResourceStatus',
'PricingTier',
'ReportedSeverity',
'SettingKind',
Expand All @@ -232,5 +265,6 @@
'AutoProvision',
'AlertNotifications',
'AlertsToAdmins',
'State',
'ConnectionType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 ComplianceResult(Resource):
"""a compliance result.

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 resource_status: The status of the resource regarding a single
assessment. Possible values include: 'Healthy', 'NotApplicable',
'OffByPolicy', 'NotHealthy'
:vartype resource_status: str or
~azure.mgmt.security.models.ResourceStatus
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'resource_status': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'resource_status': {'key': 'properties.resourceStatus', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ComplianceResult, self).__init__(**kwargs)
self.resource_status = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.serialization import Model


class ComplianceResultList(Model):
"""List of compliance results response.

All required parameters must be populated in order to send to Azure.

:param value: Required. List of compliance results
:type value: list[~azure.mgmt.security.models.ComplianceResult]
"""

_validation = {
'value': {'required': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[ComplianceResult]'},
}

def __init__(self, **kwargs):
super(ComplianceResultList, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.serialization import Model


class ComplianceResultList(Model):
"""List of compliance results response.

All required parameters must be populated in order to send to Azure.

:param value: Required. List of compliance results
:type value: list[~azure.mgmt.security.models.ComplianceResult]
"""

_validation = {
'value': {'required': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[ComplianceResult]'},
}

def __init__(self, *, value, **kwargs) -> None:
super(ComplianceResultList, self).__init__(**kwargs)
self.value = value
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 ComplianceResult(Resource):
"""a compliance result.

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 resource_status: The status of the resource regarding a single
assessment. Possible values include: 'Healthy', 'NotApplicable',
'OffByPolicy', 'NotHealthy'
:vartype resource_status: str or
~azure.mgmt.security.models.ResourceStatus
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'resource_status': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'resource_status': {'key': 'properties.resourceStatus', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(ComplianceResult, self).__init__(**kwargs)
self.resource_status = None
33 changes: 33 additions & 0 deletions azure-mgmt-security/azure/mgmt/security/models/etag.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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.serialization import Model


class ETag(Model):
"""Entity tag is used for comparing two or more entities from the same
requested resource. ETags may be returned for individual resources, and
then sent via If-Match / If-None-Match headers for concurrency control. .

:param etag: Entity tag is used for comparing two or more entities from
the same requested resource. ETags may be returned for individual
resources, and then sent via If-Match / If-None-Match headers for
concurrency control.
:type etag: str
"""

_attribute_map = {
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ETag, self).__init__(**kwargs)
self.etag = kwargs.get('etag', None)
Loading