-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR security/resource-manager] Add Microsoft.Security application…
…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
1 parent
21f8ed0
commit 7a251d6
Showing
20 changed files
with
996 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
sdk/security/azure-mgmt-security/azure/mgmt/security/models/app_whitelisting_group.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
84 changes: 84 additions & 0 deletions
84
sdk/security/azure-mgmt-security/azure/mgmt/security/models/app_whitelisting_group_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
29 changes: 29 additions & 0 deletions
29
sdk/security/azure-mgmt-security/azure/mgmt/security/models/app_whitelisting_groups.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
29 changes: 29 additions & 0 deletions
29
sdk/security/azure-mgmt-security/azure/mgmt/security/models/app_whitelisting_groups_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
36 changes: 36 additions & 0 deletions
36
...security/azure-mgmt-security/azure/mgmt/security/models/app_whitelisting_issue_summary.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
36 changes: 36 additions & 0 deletions
36
...rity/azure-mgmt-security/azure/mgmt/security/models/app_whitelisting_issue_summary_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
38 changes: 38 additions & 0 deletions
38
...ecurity/azure-mgmt-security/azure/mgmt/security/models/app_whitelisting_put_group_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.