From 7b5288ba29ccdd315a3a5eb9d34b8572bb2e216c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Thu, 26 Sep 2019 08:58:12 +0000 Subject: [PATCH] Generated from 77b7931f3a64d73dec5cb612d3d00738991dffe3 Reverted requirements check --- .../mgmt/securityinsight/models/__init__.py | 34 ----- .../models/aad_check_requirements.py | 28 ---- .../models/aad_check_requirements_py3.py | 28 ---- .../models/aatp_check_requirements.py | 28 ---- .../models/aatp_check_requirements_py3.py | 28 ---- .../models/asc_check_requirements.py | 36 ------ .../models/asc_check_requirements_py3.py | 36 ------ .../aws_cloud_trail_check_requirements.py | 31 ----- .../aws_cloud_trail_check_requirements_py3.py | 31 ----- .../data_connector_requirements_state.py | 36 ------ .../data_connector_requirements_state_py3.py | 36 ------ .../data_connectors_check_requirements.py | 31 ----- .../data_connectors_check_requirements_py3.py | 31 ----- .../models/mcas_check_requirements.py | 28 ---- .../models/mcas_check_requirements_py3.py | 28 ---- .../models/mdatp_check_requirements.py | 29 ----- .../models/mdatp_check_requirements_py3.py | 29 ----- ...ffice_data_connector_requirements_check.py | 27 ---- ...e_data_connector_requirements_check_py3.py | 27 ---- .../models/security_insights_enums.py | 18 --- .../models/ti_check_requirements.py | 28 ---- .../models/ti_check_requirements_py3.py | 28 ---- .../securityinsight/operations/__init__.py | 2 - .../data_connector_requirements_operations.py | 120 ------------------ .../mgmt/securityinsight/security_insights.py | 5 - 25 files changed, 783 deletions(-) delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements_py3.py delete mode 100644 sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/data_connector_requirements_operations.py diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py index b7862516713f..51418beb18fc 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py @@ -13,11 +13,8 @@ from .alerts_data_type_of_data_connector_alerts_py3 import AlertsDataTypeOfDataConnectorAlerts from .alerts_data_type_of_data_connector_py3 import AlertsDataTypeOfDataConnector from .aad_data_connector_py3 import AADDataConnector - from .aad_check_requirements_py3 import AADCheckRequirements from .aatp_data_connector_py3 import AATPDataConnector - from .aatp_check_requirements_py3 import AATPCheckRequirements from .asc_data_connector_py3 import ASCDataConnector - from .asc_check_requirements_py3 import ASCCheckRequirements from .account_entity_py3 import AccountEntity from .action_request_py3 import ActionRequest from .action_response_py3 import ActionResponse @@ -31,7 +28,6 @@ from .aws_cloud_trail_data_connector_data_types_logs_py3 import AwsCloudTrailDataConnectorDataTypesLogs from .aws_cloud_trail_data_connector_data_types_py3 import AwsCloudTrailDataConnectorDataTypes from .aws_cloud_trail_data_connector_py3 import AwsCloudTrailDataConnector - from .aws_cloud_trail_check_requirements_py3 import AwsCloudTrailCheckRequirements from .azure_resource_entity_py3 import AzureResourceEntity from .relation_base_py3 import RelationBase from .case_relation_py3 import CaseRelation @@ -47,10 +43,8 @@ from .cases_aggregation_py3 import CasesAggregation from .cloud_application_entity_py3 import CloudApplicationEntity from .data_connector_py3 import DataConnector - from .data_connectors_check_requirements_py3 import DataConnectorsCheckRequirements from .data_connector_data_type_common_py3 import DataConnectorDataTypeCommon from .data_connector_kind1_py3 import DataConnectorKind1 - from .data_connector_requirements_state_py3 import DataConnectorRequirementsState from .data_connector_tenant_id_py3 import DataConnectorTenantId from .data_connector_with_alerts_properties_py3 import DataConnectorWithAlertsProperties from .dns_entity_py3 import DnsEntity @@ -74,9 +68,7 @@ from .mcas_data_connector_data_types_discovery_logs_py3 import MCASDataConnectorDataTypesDiscoveryLogs from .mcas_data_connector_data_types_py3 import MCASDataConnectorDataTypes from .mcas_data_connector_py3 import MCASDataConnector - from .mcas_check_requirements_py3 import MCASCheckRequirements from .mdatp_data_connector_py3 import MDATPDataConnector - from .mdatp_check_requirements_py3 import MDATPCheckRequirements from .malware_entity_py3 import MalwareEntity from .microsoft_security_incident_creation_alert_rule_py3 import MicrosoftSecurityIncidentCreationAlertRule from .microsoft_security_incident_creation_alert_rule_common_properties_py3 import MicrosoftSecurityIncidentCreationAlertRuleCommonProperties @@ -86,7 +78,6 @@ from .office_data_connector_data_types_share_point_py3 import OfficeDataConnectorDataTypesSharePoint from .office_data_connector_data_types_py3 import OfficeDataConnectorDataTypes from .office_data_connector_py3 import OfficeDataConnector - from .office_data_connector_requirements_check_py3 import OfficeDataConnectorRequirementsCheck from .operation_display_py3 import OperationDisplay from .operation_py3 import Operation from .process_entity_py3 import ProcessEntity @@ -105,7 +96,6 @@ from .ti_data_connector_data_types_indicators_py3 import TIDataConnectorDataTypesIndicators from .ti_data_connector_data_types_py3 import TIDataConnectorDataTypes from .ti_data_connector_py3 import TIDataConnector - from .ti_check_requirements_py3 import TICheckRequirements from .toggle_settings_py3 import ToggleSettings from .ueba_settings_py3 import UebaSettings from .url_entity_py3 import UrlEntity @@ -113,11 +103,8 @@ from .alerts_data_type_of_data_connector_alerts import AlertsDataTypeOfDataConnectorAlerts from .alerts_data_type_of_data_connector import AlertsDataTypeOfDataConnector from .aad_data_connector import AADDataConnector - from .aad_check_requirements import AADCheckRequirements from .aatp_data_connector import AATPDataConnector - from .aatp_check_requirements import AATPCheckRequirements from .asc_data_connector import ASCDataConnector - from .asc_check_requirements import ASCCheckRequirements from .account_entity import AccountEntity from .action_request import ActionRequest from .action_response import ActionResponse @@ -131,7 +118,6 @@ from .aws_cloud_trail_data_connector_data_types_logs import AwsCloudTrailDataConnectorDataTypesLogs from .aws_cloud_trail_data_connector_data_types import AwsCloudTrailDataConnectorDataTypes from .aws_cloud_trail_data_connector import AwsCloudTrailDataConnector - from .aws_cloud_trail_check_requirements import AwsCloudTrailCheckRequirements from .azure_resource_entity import AzureResourceEntity from .relation_base import RelationBase from .case_relation import CaseRelation @@ -147,10 +133,8 @@ from .cases_aggregation import CasesAggregation from .cloud_application_entity import CloudApplicationEntity from .data_connector import DataConnector - from .data_connectors_check_requirements import DataConnectorsCheckRequirements from .data_connector_data_type_common import DataConnectorDataTypeCommon from .data_connector_kind1 import DataConnectorKind1 - from .data_connector_requirements_state import DataConnectorRequirementsState from .data_connector_tenant_id import DataConnectorTenantId from .data_connector_with_alerts_properties import DataConnectorWithAlertsProperties from .dns_entity import DnsEntity @@ -174,9 +158,7 @@ from .mcas_data_connector_data_types_discovery_logs import MCASDataConnectorDataTypesDiscoveryLogs from .mcas_data_connector_data_types import MCASDataConnectorDataTypes from .mcas_data_connector import MCASDataConnector - from .mcas_check_requirements import MCASCheckRequirements from .mdatp_data_connector import MDATPDataConnector - from .mdatp_check_requirements import MDATPCheckRequirements from .malware_entity import MalwareEntity from .microsoft_security_incident_creation_alert_rule import MicrosoftSecurityIncidentCreationAlertRule from .microsoft_security_incident_creation_alert_rule_common_properties import MicrosoftSecurityIncidentCreationAlertRuleCommonProperties @@ -186,7 +168,6 @@ from .office_data_connector_data_types_share_point import OfficeDataConnectorDataTypesSharePoint from .office_data_connector_data_types import OfficeDataConnectorDataTypes from .office_data_connector import OfficeDataConnector - from .office_data_connector_requirements_check import OfficeDataConnectorRequirementsCheck from .operation_display import OperationDisplay from .operation import Operation from .process_entity import ProcessEntity @@ -205,7 +186,6 @@ from .ti_data_connector_data_types_indicators import TIDataConnectorDataTypesIndicators from .ti_data_connector_data_types import TIDataConnectorDataTypes from .ti_data_connector import TIDataConnector - from .ti_check_requirements import TICheckRequirements from .toggle_settings import ToggleSettings from .ueba_settings import UebaSettings from .url_entity import UrlEntity @@ -235,8 +215,6 @@ CloseReason, CaseSeverity, CaseStatus, - DataConnectorAuthorizationState, - DataConnectorLicenseState, DataTypeState, DataConnectorKind, EntityKind, @@ -260,11 +238,8 @@ 'AlertsDataTypeOfDataConnectorAlerts', 'AlertsDataTypeOfDataConnector', 'AADDataConnector', - 'AADCheckRequirements', 'AATPDataConnector', - 'AATPCheckRequirements', 'ASCDataConnector', - 'ASCCheckRequirements', 'AccountEntity', 'ActionRequest', 'ActionResponse', @@ -278,7 +253,6 @@ 'AwsCloudTrailDataConnectorDataTypesLogs', 'AwsCloudTrailDataConnectorDataTypes', 'AwsCloudTrailDataConnector', - 'AwsCloudTrailCheckRequirements', 'AzureResourceEntity', 'RelationBase', 'CaseRelation', @@ -294,10 +268,8 @@ 'CasesAggregation', 'CloudApplicationEntity', 'DataConnector', - 'DataConnectorsCheckRequirements', 'DataConnectorDataTypeCommon', 'DataConnectorKind1', - 'DataConnectorRequirementsState', 'DataConnectorTenantId', 'DataConnectorWithAlertsProperties', 'DnsEntity', @@ -321,9 +293,7 @@ 'MCASDataConnectorDataTypesDiscoveryLogs', 'MCASDataConnectorDataTypes', 'MCASDataConnector', - 'MCASCheckRequirements', 'MDATPDataConnector', - 'MDATPCheckRequirements', 'MalwareEntity', 'MicrosoftSecurityIncidentCreationAlertRule', 'MicrosoftSecurityIncidentCreationAlertRuleCommonProperties', @@ -333,7 +303,6 @@ 'OfficeDataConnectorDataTypesSharePoint', 'OfficeDataConnectorDataTypes', 'OfficeDataConnector', - 'OfficeDataConnectorRequirementsCheck', 'OperationDisplay', 'Operation', 'ProcessEntity', @@ -352,7 +321,6 @@ 'TIDataConnectorDataTypesIndicators', 'TIDataConnectorDataTypes', 'TIDataConnector', - 'TICheckRequirements', 'ToggleSettings', 'UebaSettings', 'UrlEntity', @@ -381,8 +349,6 @@ 'CloseReason', 'CaseSeverity', 'CaseStatus', - 'DataConnectorAuthorizationState', - 'DataConnectorLicenseState', 'DataTypeState', 'DataConnectorKind', 'EntityKind', diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements.py deleted file mode 100644 index 136930f1f261..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 AADCheckRequirements(Model): - """AAD (Azure Active Directory) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AADCheckRequirements, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements_py3.py deleted file mode 100644 index 4341225eb172..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aad_check_requirements_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 AADCheckRequirements(Model): - """AAD (Azure Active Directory) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, **kwargs) -> None: - super(AADCheckRequirements, self).__init__(**kwargs) - self.tenant_id = tenant_id diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements.py deleted file mode 100644 index e0dcbe0b67d0..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 AATPCheckRequirements(Model): - """AATP (Azure Advanced Threat Protection) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AATPCheckRequirements, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements_py3.py deleted file mode 100644 index 4ab91455a4d9..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aatp_check_requirements_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 AATPCheckRequirements(Model): - """AATP (Azure Advanced Threat Protection) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, **kwargs) -> None: - super(AATPCheckRequirements, self).__init__(**kwargs) - self.tenant_id = tenant_id diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements.py deleted file mode 100644 index dbca57d8ea8b..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 .data_connectors_check_requirements import DataConnectorsCheckRequirements - - -class ASCCheckRequirements(DataConnectorsCheckRequirements): - """ASC (Azure Security Center) requirements check properties. - - :param kind: The kind of the data connector. Possible values include: - 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', - 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', - 'MicrosoftDefenderAdvancedThreatProtection' - :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind - :param subscription_id: The subscription id to connect to, and get the - data from. - :type subscription_id: str - """ - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ASCCheckRequirements, self).__init__(**kwargs) - self.subscription_id = kwargs.get('subscription_id', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements_py3.py deleted file mode 100644 index 3877068f0c8d..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/asc_check_requirements_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 .data_connectors_check_requirements_py3 import DataConnectorsCheckRequirements - - -class ASCCheckRequirements(DataConnectorsCheckRequirements): - """ASC (Azure Security Center) requirements check properties. - - :param kind: The kind of the data connector. Possible values include: - 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', - 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', - 'MicrosoftDefenderAdvancedThreatProtection' - :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind - :param subscription_id: The subscription id to connect to, and get the - data from. - :type subscription_id: str - """ - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__(self, *, kind=None, subscription_id: str=None, **kwargs) -> None: - super(ASCCheckRequirements, self).__init__(kind=kind, **kwargs) - self.subscription_id = subscription_id diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements.py deleted file mode 100644 index 208207f866ad..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements.py +++ /dev/null @@ -1,31 +0,0 @@ -# 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 .data_connectors_check_requirements import DataConnectorsCheckRequirements - - -class AwsCloudTrailCheckRequirements(DataConnectorsCheckRequirements): - """Amazon Web Services CloudTrail requirements check properties. - - :param kind: The kind of the data connector. Possible values include: - 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', - 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', - 'MicrosoftDefenderAdvancedThreatProtection' - :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind - """ - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AwsCloudTrailCheckRequirements, self).__init__(**kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements_py3.py deleted file mode 100644 index 2467cd6ef823..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/aws_cloud_trail_check_requirements_py3.py +++ /dev/null @@ -1,31 +0,0 @@ -# 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 .data_connectors_check_requirements_py3 import DataConnectorsCheckRequirements - - -class AwsCloudTrailCheckRequirements(DataConnectorsCheckRequirements): - """Amazon Web Services CloudTrail requirements check properties. - - :param kind: The kind of the data connector. Possible values include: - 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', - 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', - 'MicrosoftDefenderAdvancedThreatProtection' - :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind - """ - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, *, kind=None, **kwargs) -> None: - super(AwsCloudTrailCheckRequirements, self).__init__(kind=kind, **kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state.py deleted file mode 100644 index d0c93c71ccf0..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 DataConnectorRequirementsState(Model): - """Data connector requirements status. - - :param authorization_state: The state of the user's authorization for this - connector. Possible values include: 'Valid', 'Invalid' - :type authorization_state: str or - ~azure.mgmt.securityinsight.models.DataConnectorAuthorizationState - :param license_state: A list indicating the user's license state for this - connector. - :type license_state: list[str or - ~azure.mgmt.securityinsight.models.DataConnectorLicenseState] - """ - - _attribute_map = { - 'authorization_state': {'key': 'authorizationState', 'type': 'str'}, - 'license_state': {'key': 'licenseState', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(DataConnectorRequirementsState, self).__init__(**kwargs) - self.authorization_state = kwargs.get('authorization_state', None) - self.license_state = kwargs.get('license_state', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state_py3.py deleted file mode 100644 index 22421a39ca6b..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connector_requirements_state_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 DataConnectorRequirementsState(Model): - """Data connector requirements status. - - :param authorization_state: The state of the user's authorization for this - connector. Possible values include: 'Valid', 'Invalid' - :type authorization_state: str or - ~azure.mgmt.securityinsight.models.DataConnectorAuthorizationState - :param license_state: A list indicating the user's license state for this - connector. - :type license_state: list[str or - ~azure.mgmt.securityinsight.models.DataConnectorLicenseState] - """ - - _attribute_map = { - 'authorization_state': {'key': 'authorizationState', 'type': 'str'}, - 'license_state': {'key': 'licenseState', 'type': '[str]'}, - } - - def __init__(self, *, authorization_state=None, license_state=None, **kwargs) -> None: - super(DataConnectorRequirementsState, self).__init__(**kwargs) - self.authorization_state = authorization_state - self.license_state = license_state diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements.py deleted file mode 100644 index 6e944415009a..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements.py +++ /dev/null @@ -1,31 +0,0 @@ -# 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 .data_connector_kind1 import DataConnectorKind1 - - -class DataConnectorsCheckRequirements(DataConnectorKind1): - """Data connector requirements properties. - - :param kind: The kind of the data connector. Possible values include: - 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', - 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', - 'MicrosoftDefenderAdvancedThreatProtection' - :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind - """ - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataConnectorsCheckRequirements, self).__init__(**kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements_py3.py deleted file mode 100644 index e575e32cb2f7..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/data_connectors_check_requirements_py3.py +++ /dev/null @@ -1,31 +0,0 @@ -# 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 .data_connector_kind1_py3 import DataConnectorKind1 - - -class DataConnectorsCheckRequirements(DataConnectorKind1): - """Data connector requirements properties. - - :param kind: The kind of the data connector. Possible values include: - 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', - 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', - 'MicrosoftDefenderAdvancedThreatProtection' - :type kind: str or ~azure.mgmt.securityinsight.models.DataConnectorKind - """ - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, *, kind=None, **kwargs) -> None: - super(DataConnectorsCheckRequirements, self).__init__(kind=kind, **kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements.py deleted file mode 100644 index 2e51a9187c1c..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 MCASCheckRequirements(Model): - """MCAS (Microsoft Cloud App Security) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MCASCheckRequirements, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements_py3.py deleted file mode 100644 index e4365cca9fd8..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mcas_check_requirements_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 MCASCheckRequirements(Model): - """MCAS (Microsoft Cloud App Security) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, **kwargs) -> None: - super(MCASCheckRequirements, self).__init__(**kwargs) - self.tenant_id = tenant_id diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements.py deleted file mode 100644 index 4061d737dd29..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 MDATPCheckRequirements(Model): - """MDATP (Microsoft Defender Advanced Threat Protection) requirements check - properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MDATPCheckRequirements, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements_py3.py deleted file mode 100644 index 20c5b6d7408a..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/mdatp_check_requirements_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 MDATPCheckRequirements(Model): - """MDATP (Microsoft Defender Advanced Threat Protection) requirements check - properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, **kwargs) -> None: - super(MDATPCheckRequirements, self).__init__(**kwargs) - self.tenant_id = tenant_id diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check.py deleted file mode 100644 index 0f65da9658b6..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 .data_connector_tenant_id import DataConnectorTenantId - - -class OfficeDataConnectorRequirementsCheck(DataConnectorTenantId): - """Office data connector properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OfficeDataConnectorRequirementsCheck, self).__init__(**kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check_py3.py deleted file mode 100644 index 466751169767..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/office_data_connector_requirements_check_py3.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 .data_connector_tenant_id_py3 import DataConnectorTenantId - - -class OfficeDataConnectorRequirementsCheck(DataConnectorTenantId): - """Office data connector properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, **kwargs) -> None: - super(OfficeDataConnectorRequirementsCheck, self).__init__(tenant_id=tenant_id, **kwargs) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py index 67402bfcffe6..25dc355f5a41 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/security_insights_enums.py @@ -106,24 +106,6 @@ class CaseStatus(str, Enum): closed = "Closed" #: A non active case -class DataConnectorAuthorizationState(str, Enum): - - valid = "Valid" - invalid = "Invalid" - - -class DataConnectorLicenseState(str, Enum): - - valid = "Valid" - unknown = "Unknown" - subscription_standard_tier_license_required = "SubscriptionStandardTierLicenseRequired" - aadp1_or_p2_license_required = "AADP1OrP2LicenseRequired" - microsoft_cloud_app_security_license_required = "MicrosoftCloudAppSecurityLicenseRequired" - azure_advanced_threat_protection_license_required = "AzureAdvancedThreatProtectionLicenseRequired" - azure_information_protection_license_required = "AzureInformationProtectionLicenseRequired" - microsoft_defender_advanced_threat_protection_enable_required = "MicrosoftDefenderAdvancedThreatProtectionEnableRequired" - - class DataTypeState(str, Enum): enabled = "Enabled" diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements.py deleted file mode 100644 index 42d1542745eb..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 TICheckRequirements(Model): - """TI (Threat Intelligence) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TICheckRequirements, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements_py3.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements_py3.py deleted file mode 100644 index cfac773b5b15..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/ti_check_requirements_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 TICheckRequirements(Model): - """TI (Threat Intelligence) requirements check properties. - - :param tenant_id: The tenant id to connect to, and get the data from. - :type tenant_id: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, **kwargs) -> None: - super(TICheckRequirements, self).__init__(**kwargs) - self.tenant_id = tenant_id diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/__init__.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/__init__.py index c677559c0cf7..926b96bcc95b 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/__init__.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/__init__.py @@ -20,7 +20,6 @@ from .case_relations_operations import CaseRelationsOperations from .bookmark_relations_operations import BookmarkRelationsOperations from .data_connectors_operations import DataConnectorsOperations -from .data_connector_requirements_operations import DataConnectorRequirementsOperations from .entities_operations import EntitiesOperations from .office_consents_operations import OfficeConsentsOperations from .product_settings_operations import ProductSettingsOperations @@ -39,7 +38,6 @@ 'CaseRelationsOperations', 'BookmarkRelationsOperations', 'DataConnectorsOperations', - 'DataConnectorRequirementsOperations', 'EntitiesOperations', 'OfficeConsentsOperations', 'ProductSettingsOperations', diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/data_connector_requirements_operations.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/data_connector_requirements_operations.py deleted file mode 100644 index 4c930dc07582..000000000000 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/data_connector_requirements_operations.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class DataConnectorRequirementsOperations(object): - """DataConnectorRequirementsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: API version for the operation. Constant value: "2019-01-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-01-01-preview" - - self.config = config - - def list( - self, resource_group_name, workspace_name, operational_insights_resource_provider, kind=None, custom_headers=None, raw=False, **operation_config): - """Get requirements state for a data connector type. - - :param resource_group_name: The name of the resource group within the - user's subscription. The name is case insensitive. - :type resource_group_name: str - :param workspace_name: The name of the workspace. - :type workspace_name: str - :param operational_insights_resource_provider: The namespace of - workspaces resource provider- Microsoft.OperationalInsights. - :type operational_insights_resource_provider: str - :param kind: The kind of the data connector. Possible values include: - 'AzureActiveDirectory', 'AzureSecurityCenter', - 'MicrosoftCloudAppSecurity', 'ThreatIntelligence', 'Office365', - 'AmazonWebServicesCloudTrail', 'AzureAdvancedThreatProtection', - 'MicrosoftDefenderAdvancedThreatProtection' - :type kind: str or - ~azure.mgmt.securityinsight.models.DataConnectorKind - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DataConnectorRequirementsState or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.securityinsight.models.DataConnectorRequirementsState or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - data_connectors_check_requirements = models.DataConnectorsCheckRequirements(kind=kind) - - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=90, min_length=1), - 'operationalInsightsResourceProvider': self._serialize.url("operational_insights_resource_provider", operational_insights_resource_provider, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(data_connectors_check_requirements, 'DataConnectorsCheckRequirements') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DataConnectorRequirementsState', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/checkDataConnectorRequirements'} diff --git a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/security_insights.py b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/security_insights.py index 1c964352a223..6dc40813c051 100644 --- a/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/security_insights.py +++ b/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/security_insights.py @@ -24,7 +24,6 @@ from .operations.case_relations_operations import CaseRelationsOperations from .operations.bookmark_relations_operations import BookmarkRelationsOperations from .operations.data_connectors_operations import DataConnectorsOperations -from .operations.data_connector_requirements_operations import DataConnectorRequirementsOperations from .operations.entities_operations import EntitiesOperations from .operations.office_consents_operations import OfficeConsentsOperations from .operations.product_settings_operations import ProductSettingsOperations @@ -93,8 +92,6 @@ class SecurityInsights(SDKClient): :vartype bookmark_relations: azure.mgmt.securityinsight.operations.BookmarkRelationsOperations :ivar data_connectors: DataConnectors operations :vartype data_connectors: azure.mgmt.securityinsight.operations.DataConnectorsOperations - :ivar data_connector_requirements: DataConnectorRequirements operations - :vartype data_connector_requirements: azure.mgmt.securityinsight.operations.DataConnectorRequirementsOperations :ivar entities: Entities operations :vartype entities: azure.mgmt.securityinsight.operations.EntitiesOperations :ivar office_consents: OfficeConsents operations @@ -147,8 +144,6 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.data_connectors = DataConnectorsOperations( self._client, self.config, self._serialize, self._deserialize) - self.data_connector_requirements = DataConnectorRequirementsOperations( - self._client, self.config, self._serialize, self._deserialize) self.entities = EntitiesOperations( self._client, self.config, self._serialize, self._deserialize) self.office_consents = OfficeConsentsOperations(