-
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] Added regultory compliance to pack…
…age-composite-v3 (#4973) * Generated from c8e199e9886ad4e4f6088025486b87d7f5bbe597 Added regultory compliance to package-composite-v3 * Generated from 5b5b3ce322b228f26adda4110c78227ab3c45f62 Added regultory compliance to package-composite-v3
- Loading branch information
1 parent
d4ad751
commit 7d45120
Showing
17 changed files
with
1,142 additions
and
1 deletion.
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
89 changes: 89 additions & 0 deletions
89
azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment.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,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 |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_paged.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,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) |
89 changes: 89 additions & 0 deletions
89
azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_assessment_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,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 |
71 changes: 71 additions & 0 deletions
71
azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control.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,71 @@ | ||
# 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 RegulatoryComplianceControl(Resource): | ||
"""Regulatory compliance control 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 control | ||
:vartype description: str | ||
:param state: Aggregative state based on the control's supported | ||
assessments states. Possible values include: 'Passed', 'Failed', | ||
'Skipped', 'Unsupported' | ||
:type state: str or ~azure.mgmt.security.models.State | ||
:ivar passed_assessments: The number of supported regulatory compliance | ||
assessments of the given control with a passed state | ||
:vartype passed_assessments: int | ||
:ivar failed_assessments: The number of supported regulatory compliance | ||
assessments of the given control with a failed state | ||
:vartype failed_assessments: int | ||
:ivar skipped_assessments: The number of supported regulatory compliance | ||
assessments of the given control with a skipped state | ||
:vartype skipped_assessments: int | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'description': {'readonly': True}, | ||
'passed_assessments': {'readonly': True}, | ||
'failed_assessments': {'readonly': True}, | ||
'skipped_assessments': {'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'}, | ||
'state': {'key': 'properties.state', 'type': 'str'}, | ||
'passed_assessments': {'key': 'properties.passedAssessments', 'type': 'int'}, | ||
'failed_assessments': {'key': 'properties.failedAssessments', 'type': 'int'}, | ||
'skipped_assessments': {'key': 'properties.skippedAssessments', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(RegulatoryComplianceControl, self).__init__(**kwargs) | ||
self.description = None | ||
self.state = kwargs.get('state', None) | ||
self.passed_assessments = None | ||
self.failed_assessments = None | ||
self.skipped_assessments = None |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-security/azure/mgmt/security/models/regulatory_compliance_control_paged.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,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 RegulatoryComplianceControlPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`RegulatoryComplianceControl <azure.mgmt.security.models.RegulatoryComplianceControl>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[RegulatoryComplianceControl]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(RegulatoryComplianceControlPaged, self).__init__(*args, **kwargs) |
Oops, something went wrong.