Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR security/resource-manager] chore: jsonfmt security #5704

Merged
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 @@ -10,10 +10,11 @@
# --------------------------------------------------------------------------

try:
from .pricing_py3 import Pricing
from .pricing_list_py3 import PricingList
from .compliance_result_py3 import ComplianceResult
from .asc_location_py3 import AscLocation
from .resource_py3 import Resource
from .pricing_py3 import Pricing
from .pricing_list_py3 import PricingList
from .alert_entity_py3 import AlertEntity
from .alert_confidence_reason_py3 import AlertConfidenceReason
from .alert_py3 import Alert
Expand Down Expand Up @@ -64,11 +65,15 @@
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
from .compliance_result import ComplianceResult
from .asc_location import AscLocation
from .resource import Resource
from .pricing import Pricing
from .pricing_list import PricingList
from .alert_entity import AlertEntity
from .alert_confidence_reason import AlertConfidenceReason
from .alert import Alert
Expand Down Expand Up @@ -119,6 +124,10 @@
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 .compliance_result_paged import ComplianceResultPaged
from .alert_paged import AlertPaged
from .setting_paged import SettingPaged
from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged
Expand All @@ -134,7 +143,11 @@
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 (
ResourceStatus,
PricingTier,
ReportedSeverity,
SettingKind,
Expand All @@ -147,14 +160,16 @@
AutoProvision,
AlertNotifications,
AlertsToAdmins,
State,
ConnectionType,
)

__all__ = [
'Pricing',
'PricingList',
'ComplianceResult',
'AscLocation',
'Resource',
'Pricing',
'PricingList',
'AlertEntity',
'AlertConfidenceReason',
'Alert',
Expand Down Expand Up @@ -205,6 +220,10 @@
'InformationProtectionPolicy',
'SecurityContact',
'WorkspaceSetting',
'RegulatoryComplianceStandard',
'RegulatoryComplianceControl',
'RegulatoryComplianceAssessment',
'ComplianceResultPaged',
'AlertPaged',
'SettingPaged',
'AllowedConnectionsResourcePaged',
Expand All @@ -220,6 +239,10 @@
'InformationProtectionPolicyPaged',
'SecurityContactPaged',
'WorkspaceSettingPaged',
'RegulatoryComplianceStandardPaged',
'RegulatoryComplianceControlPaged',
'RegulatoryComplianceAssessmentPaged',
'ResourceStatus',
'PricingTier',
'ReportedSeverity',
'SettingKind',
Expand All @@ -232,5 +255,6 @@
'AutoProvision',
'AlertNotifications',
'AlertsToAdmins',
'State',
'ConnectionType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 ComplianceResult(Resource):
"""a compliance result.

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 resource_status: The status of the resource regarding a single
assessment. Possible values include: 'Healthy', 'NotApplicable',
'OffByPolicy', 'NotHealthy'
:vartype resource_status: str or
~azure.mgmt.security.models.ResourceStatus
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'resource_status': {'key': 'properties.resourceStatus', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ComplianceResult, self).__init__(**kwargs)
self.resource_status = 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 ComplianceResultPaged(Paged):
"""
A paging container for iterating over a list of :class:`ComplianceResult <azure.mgmt.security.models.ComplianceResult>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ComplianceResult]'}
}

def __init__(self, *args, **kwargs):

super(ComplianceResultPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 ComplianceResult(Resource):
"""a compliance result.

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 resource_status: The status of the resource regarding a single
assessment. Possible values include: 'Healthy', 'NotApplicable',
'OffByPolicy', 'NotHealthy'
:vartype resource_status: str or
~azure.mgmt.security.models.ResourceStatus
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'resource_status': {'key': 'properties.resourceStatus', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(ComplianceResult, self).__init__(**kwargs)
self.resource_status = None
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)
Loading