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
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
from ._models_py3 import PathRecommendation
from ._models_py3 import Pricing
from ._models_py3 import PricingList
from ._models_py3 import ProtectionMode
from ._models_py3 import PublisherInfo
from ._models_py3 import RecommendationConfigurationProperties
from ._models_py3 import RegulatoryComplianceAssessment
Expand Down Expand Up @@ -163,6 +164,7 @@
from ._models import PathRecommendation
from ._models import Pricing
from ._models import PricingList
from ._models import ProtectionMode
from ._models import PublisherInfo
from ._models import RecommendationConfigurationProperties
from ._models import RegulatoryComplianceAssessment
Expand Down Expand Up @@ -300,6 +302,7 @@
'PathRecommendation',
'Pricing',
'PricingList',
'ProtectionMode',
'PublisherInfo',
'RecommendationConfigurationProperties',
'RegulatoryComplianceAssessment',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,11 @@ class AppWhitelistingGroup(Model):
:vartype type: str
:ivar location: Location where the resource is stored
:vartype location: str
:param enforcement_mode: Possible values include: 'Audit', 'Enforce'
:param enforcement_mode: Possible values include: 'Audit', 'Enforce',
'None'
:type enforcement_mode: str or ~azure.mgmt.security.models.enum
:param protection_mode:
:type protection_mode: ~azure.mgmt.security.models.ProtectionMode
:param configuration_status: Possible values include: 'Configured',
'NotConfigured', 'InProgress', 'Failed', 'NoStatus'
:type configuration_status: str or ~azure.mgmt.security.models.enum
Expand Down Expand Up @@ -671,6 +674,7 @@ class AppWhitelistingGroup(Model):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'},
'protection_mode': {'key': 'properties.protectionMode', 'type': 'ProtectionMode'},
'configuration_status': {'key': 'properties.configurationStatus', 'type': 'str'},
'recommendation_status': {'key': 'properties.recommendationStatus', 'type': 'str'},
'issues': {'key': 'properties.issues', 'type': '[AppWhitelistingIssueSummary]'},
Expand All @@ -686,6 +690,7 @@ def __init__(self, **kwargs):
self.type = None
self.location = None
self.enforcement_mode = kwargs.get('enforcement_mode', None)
self.protection_mode = kwargs.get('protection_mode', None)
self.configuration_status = kwargs.get('configuration_status', None)
self.recommendation_status = kwargs.get('recommendation_status', None)
self.issues = kwargs.get('issues', None)
Expand Down Expand Up @@ -738,8 +743,14 @@ def __init__(self, **kwargs):
class AppWhitelistingPutGroupData(Model):
"""The altered data of the recommended VM/server group policy.

:param enforcement_mode: Possible values include: 'Audit', 'Enforce'
:param enforcement_mode: The enforcement mode of the group. Can also be
defined per collection type by using ProtectionMode. Possible values
include: 'Audit', 'Enforce', 'None'
:type enforcement_mode: str or ~azure.mgmt.security.models.enum
:param protection_mode: The protection mode of the group per collection
type. Can also be defined for all collection types by using
EnforcementMode
:type protection_mode: ~azure.mgmt.security.models.ProtectionMode
:param vm_recommendations:
:type vm_recommendations:
list[~azure.mgmt.security.models.VmRecommendation]
Expand All @@ -750,13 +761,15 @@ class AppWhitelistingPutGroupData(Model):

_attribute_map = {
'enforcement_mode': {'key': 'enforcementMode', 'type': 'str'},
'protection_mode': {'key': 'protectionMode', 'type': 'ProtectionMode'},
'vm_recommendations': {'key': 'vmRecommendations', 'type': '[VmRecommendation]'},
'path_recommendations': {'key': 'pathRecommendations', 'type': '[PathRecommendation]'},
}

def __init__(self, **kwargs):
super(AppWhitelistingPutGroupData, self).__init__(**kwargs)
self.enforcement_mode = kwargs.get('enforcement_mode', None)
self.protection_mode = kwargs.get('protection_mode', None)
self.vm_recommendations = kwargs.get('vm_recommendations', None)
self.path_recommendations = kwargs.get('path_recommendations', None)

Expand Down Expand Up @@ -2776,6 +2789,35 @@ def __init__(self, **kwargs):
self.value = kwargs.get('value', None)


class ProtectionMode(Model):
"""The protection mode of the collection/file types. Exe/Msi/Script are used
for Windows, Executable is used for Linux.

:param exe: Possible values include: 'Audit', 'Enforce', 'None'
:type exe: str or ~azure.mgmt.security.models.enum
:param msi: Possible values include: 'Audit', 'Enforce', 'None'
:type msi: str or ~azure.mgmt.security.models.enum
:param script: Possible values include: 'Audit', 'Enforce', 'None'
:type script: str or ~azure.mgmt.security.models.enum
:param executable: Possible values include: 'Audit', 'Enforce', 'None'
:type executable: str or ~azure.mgmt.security.models.enum
"""

_attribute_map = {
'exe': {'key': 'exe', 'type': 'str'},
'msi': {'key': 'msi', 'type': 'str'},
'script': {'key': 'script', 'type': 'str'},
'executable': {'key': 'executable', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ProtectionMode, self).__init__(**kwargs)
self.exe = kwargs.get('exe', None)
self.msi = kwargs.get('msi', None)
self.script = kwargs.get('script', None)
self.executable = kwargs.get('executable', None)


class PublisherInfo(Model):
"""Represents the publisher information of a process/rule.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,11 @@ class AppWhitelistingGroup(Model):
:vartype type: str
:ivar location: Location where the resource is stored
:vartype location: str
:param enforcement_mode: Possible values include: 'Audit', 'Enforce'
:param enforcement_mode: Possible values include: 'Audit', 'Enforce',
'None'
:type enforcement_mode: str or ~azure.mgmt.security.models.enum
:param protection_mode:
:type protection_mode: ~azure.mgmt.security.models.ProtectionMode
:param configuration_status: Possible values include: 'Configured',
'NotConfigured', 'InProgress', 'Failed', 'NoStatus'
:type configuration_status: str or ~azure.mgmt.security.models.enum
Expand Down Expand Up @@ -671,6 +674,7 @@ class AppWhitelistingGroup(Model):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'},
'protection_mode': {'key': 'properties.protectionMode', 'type': 'ProtectionMode'},
'configuration_status': {'key': 'properties.configurationStatus', 'type': 'str'},
'recommendation_status': {'key': 'properties.recommendationStatus', 'type': 'str'},
'issues': {'key': 'properties.issues', 'type': '[AppWhitelistingIssueSummary]'},
Expand All @@ -679,13 +683,14 @@ class AppWhitelistingGroup(Model):
'path_recommendations': {'key': 'properties.pathRecommendations', 'type': '[PathRecommendation]'},
}

def __init__(self, *, enforcement_mode=None, configuration_status=None, recommendation_status=None, issues=None, source_system=None, vm_recommendations=None, path_recommendations=None, **kwargs) -> None:
def __init__(self, *, enforcement_mode=None, protection_mode=None, configuration_status=None, recommendation_status=None, issues=None, source_system=None, vm_recommendations=None, path_recommendations=None, **kwargs) -> None:
super(AppWhitelistingGroup, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = None
self.enforcement_mode = enforcement_mode
self.protection_mode = protection_mode
self.configuration_status = configuration_status
self.recommendation_status = recommendation_status
self.issues = issues
Expand Down Expand Up @@ -738,8 +743,14 @@ def __init__(self, *, issue=None, number_of_vms: float=None, **kwargs) -> None:
class AppWhitelistingPutGroupData(Model):
"""The altered data of the recommended VM/server group policy.

:param enforcement_mode: Possible values include: 'Audit', 'Enforce'
:param enforcement_mode: The enforcement mode of the group. Can also be
defined per collection type by using ProtectionMode. Possible values
include: 'Audit', 'Enforce', 'None'
:type enforcement_mode: str or ~azure.mgmt.security.models.enum
:param protection_mode: The protection mode of the group per collection
type. Can also be defined for all collection types by using
EnforcementMode
:type protection_mode: ~azure.mgmt.security.models.ProtectionMode
:param vm_recommendations:
:type vm_recommendations:
list[~azure.mgmt.security.models.VmRecommendation]
Expand All @@ -750,13 +761,15 @@ class AppWhitelistingPutGroupData(Model):

_attribute_map = {
'enforcement_mode': {'key': 'enforcementMode', 'type': 'str'},
'protection_mode': {'key': 'protectionMode', 'type': 'ProtectionMode'},
'vm_recommendations': {'key': 'vmRecommendations', 'type': '[VmRecommendation]'},
'path_recommendations': {'key': 'pathRecommendations', 'type': '[PathRecommendation]'},
}

def __init__(self, *, enforcement_mode=None, vm_recommendations=None, path_recommendations=None, **kwargs) -> None:
def __init__(self, *, enforcement_mode=None, protection_mode=None, vm_recommendations=None, path_recommendations=None, **kwargs) -> None:
super(AppWhitelistingPutGroupData, self).__init__(**kwargs)
self.enforcement_mode = enforcement_mode
self.protection_mode = protection_mode
self.vm_recommendations = vm_recommendations
self.path_recommendations = path_recommendations

Expand Down Expand Up @@ -2776,6 +2789,35 @@ def __init__(self, *, value, **kwargs) -> None:
self.value = value


class ProtectionMode(Model):
"""The protection mode of the collection/file types. Exe/Msi/Script are used
for Windows, Executable is used for Linux.

:param exe: Possible values include: 'Audit', 'Enforce', 'None'
:type exe: str or ~azure.mgmt.security.models.enum
:param msi: Possible values include: 'Audit', 'Enforce', 'None'
:type msi: str or ~azure.mgmt.security.models.enum
:param script: Possible values include: 'Audit', 'Enforce', 'None'
:type script: str or ~azure.mgmt.security.models.enum
:param executable: Possible values include: 'Audit', 'Enforce', 'None'
:type executable: str or ~azure.mgmt.security.models.enum
"""

_attribute_map = {
'exe': {'key': 'exe', 'type': 'str'},
'msi': {'key': 'msi', 'type': 'str'},
'script': {'key': 'script', 'type': 'str'},
'executable': {'key': 'executable', 'type': 'str'},
}

def __init__(self, *, exe=None, msi=None, script=None, executable=None, **kwargs) -> None:
super(ProtectionMode, self).__init__(**kwargs)
self.exe = exe
self.msi = msi
self.script = script
self.executable = executable


class PublisherInfo(Model):
"""Represents the publisher information of a process/rule.

Expand Down