Skip to content

Commit

Permalink
[AutoPR security/resource-manager] Added regultory compliance to pack…
Browse files Browse the repository at this point in the history
…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
AutorestCI authored Apr 29, 2019
1 parent d4ad751 commit 7d45120
Show file tree
Hide file tree
Showing 17 changed files with 1,142 additions and 1 deletion.
17 changes: 17 additions & 0 deletions azure-mgmt-security/azure/mgmt/security/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
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
Expand Down Expand Up @@ -119,6 +122,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,6 +140,9 @@
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 (
PricingTier,
ReportedSeverity,
Expand All @@ -147,6 +156,7 @@
AutoProvision,
AlertNotifications,
AlertsToAdmins,
State,
ConnectionType,
)

Expand Down Expand Up @@ -205,6 +215,9 @@
'InformationProtectionPolicy',
'SecurityContact',
'WorkspaceSetting',
'RegulatoryComplianceStandard',
'RegulatoryComplianceControl',
'RegulatoryComplianceAssessment',
'AlertPaged',
'SettingPaged',
'AllowedConnectionsResourcePaged',
Expand All @@ -220,6 +233,9 @@
'InformationProtectionPolicyPaged',
'SecurityContactPaged',
'WorkspaceSettingPaged',
'RegulatoryComplianceStandardPaged',
'RegulatoryComplianceControlPaged',
'RegulatoryComplianceAssessmentPaged',
'PricingTier',
'ReportedSeverity',
'SettingKind',
Expand All @@ -232,5 +248,6 @@
'AutoProvision',
'AlertNotifications',
'AlertsToAdmins',
'State',
'ConnectionType',
]
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
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)
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
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
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)
Loading

0 comments on commit 7d45120

Please sign in to comment.