Skip to content

Commit

Permalink
[AutoPR security/resource-manager] Add Microsoft.Security application…
Browse files Browse the repository at this point in the history
…Whitelistings API (#6262)

* Generated from 0bc0b6465c2c93267a29e4eb0c39e2b12a8b623e

add operation ID's

* Generated from 56fe4277e879002f98abc961fc5fb3abf80cf32a

remove location from example, add Executable to fileType

* Generated from 6307743902cd21e4a200cca1cddc2383121ae216

add Whitelistings to custom-words
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Aug 1, 2019
1 parent 21f8ed0 commit 7a251d6
Show file tree
Hide file tree
Showing 20 changed files with 996 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
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 .app_whitelisting_issue_summary_py3 import AppWhitelistingIssueSummary
from .vm_recommendation_py3 import VmRecommendation
from .publisher_info_py3 import PublisherInfo
from .user_recommendation_py3 import UserRecommendation
from .path_recommendation_py3 import PathRecommendation
from .app_whitelisting_group_py3 import AppWhitelistingGroup
from .app_whitelisting_groups_py3 import AppWhitelistingGroups
from .app_whitelisting_put_group_data_py3 import AppWhitelistingPutGroupData
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .security_task_parameters_py3 import SecurityTaskParameters
Expand Down Expand Up @@ -125,6 +133,14 @@
from .jit_network_access_policy_initiate_virtual_machine import JitNetworkAccessPolicyInitiateVirtualMachine
from .jit_network_access_policy_initiate_request import JitNetworkAccessPolicyInitiateRequest
from .kind import Kind
from .app_whitelisting_issue_summary import AppWhitelistingIssueSummary
from .vm_recommendation import VmRecommendation
from .publisher_info import PublisherInfo
from .user_recommendation import UserRecommendation
from .path_recommendation import PathRecommendation
from .app_whitelisting_group import AppWhitelistingGroup
from .app_whitelisting_groups import AppWhitelistingGroups
from .app_whitelisting_put_group_data import AppWhitelistingPutGroupData
from .operation_display import OperationDisplay
from .operation import Operation
from .security_task_parameters import SecurityTaskParameters
Expand Down Expand Up @@ -248,6 +264,14 @@
'JitNetworkAccessPolicyInitiateVirtualMachine',
'JitNetworkAccessPolicyInitiateRequest',
'Kind',
'AppWhitelistingIssueSummary',
'VmRecommendation',
'PublisherInfo',
'UserRecommendation',
'PathRecommendation',
'AppWhitelistingGroup',
'AppWhitelistingGroups',
'AppWhitelistingPutGroupData',
'OperationDisplay',
'Operation',
'SecurityTaskParameters',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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 AppWhitelistingGroup(Model):
"""AppWhitelistingGroup.
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 location: Location where the resource is stored
:vartype location: str
:param enforcement_mode: Possible values include: 'Audit', 'Enforce'
:type enforcement_mode: str or ~azure.mgmt.security.models.enum
:param configuration_status: Possible values include: 'Configured',
'NotConfigured', 'InProgress', 'Failed', 'NoStatus'
:type configuration_status: str or ~azure.mgmt.security.models.enum
:param recommendation_status: Possible values include: 'Recommended',
'NotRecommended', 'NotAvailable', 'NoStatus'
:type recommendation_status: str or ~azure.mgmt.security.models.enum
:param issues:
:type issues:
list[~azure.mgmt.security.models.AppWhitelistingIssueSummary]
:param source_system: Possible values include: 'Azure_AppLocker',
'Azure_AuditD', 'NonAzure_AppLocker', 'NonAzure_AuditD', 'None'
:type source_system: str or ~azure.mgmt.security.models.enum
:param vm_recommendations:
:type vm_recommendations:
list[~azure.mgmt.security.models.VmRecommendation]
:param path_recommendations:
:type path_recommendations:
list[~azure.mgmt.security.models.PathRecommendation]
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'},
'configuration_status': {'key': 'properties.configurationStatus', 'type': 'str'},
'recommendation_status': {'key': 'properties.recommendationStatus', 'type': 'str'},
'issues': {'key': 'properties.issues', 'type': '[AppWhitelistingIssueSummary]'},
'source_system': {'key': 'properties.sourceSystem', 'type': 'str'},
'vm_recommendations': {'key': 'properties.vmRecommendations', 'type': '[VmRecommendation]'},
'path_recommendations': {'key': 'properties.pathRecommendations', 'type': '[PathRecommendation]'},
}

def __init__(self, **kwargs):
super(AppWhitelistingGroup, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = None
self.enforcement_mode = kwargs.get('enforcement_mode', None)
self.configuration_status = kwargs.get('configuration_status', None)
self.recommendation_status = kwargs.get('recommendation_status', None)
self.issues = kwargs.get('issues', None)
self.source_system = kwargs.get('source_system', None)
self.vm_recommendations = kwargs.get('vm_recommendations', None)
self.path_recommendations = kwargs.get('path_recommendations', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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 AppWhitelistingGroup(Model):
"""AppWhitelistingGroup.
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 location: Location where the resource is stored
:vartype location: str
:param enforcement_mode: Possible values include: 'Audit', 'Enforce'
:type enforcement_mode: str or ~azure.mgmt.security.models.enum
:param configuration_status: Possible values include: 'Configured',
'NotConfigured', 'InProgress', 'Failed', 'NoStatus'
:type configuration_status: str or ~azure.mgmt.security.models.enum
:param recommendation_status: Possible values include: 'Recommended',
'NotRecommended', 'NotAvailable', 'NoStatus'
:type recommendation_status: str or ~azure.mgmt.security.models.enum
:param issues:
:type issues:
list[~azure.mgmt.security.models.AppWhitelistingIssueSummary]
:param source_system: Possible values include: 'Azure_AppLocker',
'Azure_AuditD', 'NonAzure_AppLocker', 'NonAzure_AuditD', 'None'
:type source_system: str or ~azure.mgmt.security.models.enum
:param vm_recommendations:
:type vm_recommendations:
list[~azure.mgmt.security.models.VmRecommendation]
:param path_recommendations:
:type path_recommendations:
list[~azure.mgmt.security.models.PathRecommendation]
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'},
'configuration_status': {'key': 'properties.configurationStatus', 'type': 'str'},
'recommendation_status': {'key': 'properties.recommendationStatus', 'type': 'str'},
'issues': {'key': 'properties.issues', 'type': '[AppWhitelistingIssueSummary]'},
'source_system': {'key': 'properties.sourceSystem', 'type': 'str'},
'vm_recommendations': {'key': 'properties.vmRecommendations', 'type': '[VmRecommendation]'},
'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:
super(AppWhitelistingGroup, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = None
self.enforcement_mode = enforcement_mode
self.configuration_status = configuration_status
self.recommendation_status = recommendation_status
self.issues = issues
self.source_system = source_system
self.vm_recommendations = vm_recommendations
self.path_recommendations = path_recommendations
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 AppWhitelistingGroups(Model):
"""Represents a list of VM/server groups and set of rules that are Recommended
by Azure Security Center to be allowed.
:param value:
:type value: list[~azure.mgmt.security.models.AppWhitelistingGroup]
"""

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

def __init__(self, **kwargs):
super(AppWhitelistingGroups, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 AppWhitelistingGroups(Model):
"""Represents a list of VM/server groups and set of rules that are Recommended
by Azure Security Center to be allowed.
:param value:
:type value: list[~azure.mgmt.security.models.AppWhitelistingGroup]
"""

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

def __init__(self, *, value=None, **kwargs) -> None:
super(AppWhitelistingGroups, self).__init__(**kwargs)
self.value = value
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 AppWhitelistingIssueSummary(Model):
"""Represents a summary of the alerts of the VM/server group.
:param issue: Possible values include: 'ViolationsAudited',
'ViolationsBlocked', 'MsiAndScriptViolationsAudited',
'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited',
'RulesViolatedManually'
:type issue: str or ~azure.mgmt.security.models.enum
:param number_of_vms: The number of machines in the VM/server group that
have this alert
:type number_of_vms: float
"""

_attribute_map = {
'issue': {'key': 'issue', 'type': 'str'},
'number_of_vms': {'key': 'numberOfVms', 'type': 'float'},
}

def __init__(self, **kwargs):
super(AppWhitelistingIssueSummary, self).__init__(**kwargs)
self.issue = kwargs.get('issue', None)
self.number_of_vms = kwargs.get('number_of_vms', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 AppWhitelistingIssueSummary(Model):
"""Represents a summary of the alerts of the VM/server group.
:param issue: Possible values include: 'ViolationsAudited',
'ViolationsBlocked', 'MsiAndScriptViolationsAudited',
'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited',
'RulesViolatedManually'
:type issue: str or ~azure.mgmt.security.models.enum
:param number_of_vms: The number of machines in the VM/server group that
have this alert
:type number_of_vms: float
"""

_attribute_map = {
'issue': {'key': 'issue', 'type': 'str'},
'number_of_vms': {'key': 'numberOfVms', 'type': 'float'},
}

def __init__(self, *, issue=None, number_of_vms: float=None, **kwargs) -> None:
super(AppWhitelistingIssueSummary, self).__init__(**kwargs)
self.issue = issue
self.number_of_vms = number_of_vms
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 AppWhitelistingPutGroupData(Model):
"""The altered data of the recommended VM/server group policy.
:param enforcement_mode: Possible values include: 'Audit', 'Enforce'
:type enforcement_mode: str or ~azure.mgmt.security.models.enum
:param vm_recommendations:
:type vm_recommendations:
list[~azure.mgmt.security.models.VmRecommendation]
:param path_recommendations:
:type path_recommendations:
list[~azure.mgmt.security.models.PathRecommendation]
"""

_attribute_map = {
'enforcement_mode': {'key': 'enforcementMode', 'type': 'str'},
'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.vm_recommendations = kwargs.get('vm_recommendations', None)
self.path_recommendations = kwargs.get('path_recommendations', None)
Loading

0 comments on commit 7a251d6

Please sign in to comment.