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] Remove security contact phone field mandatory fields #3753

Merged
merged 2 commits into from
Nov 12, 2018
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
13 changes: 13 additions & 0 deletions azure-mgmt-security/azure/mgmt/security/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
from .external_security_solution_kind1_py3 import ExternalSecuritySolutionKind1
from .external_security_solution_properties_py3 import ExternalSecuritySolutionProperties
from .aad_connectivity_state1_py3 import AadConnectivityState1
from .connected_resource_py3 import ConnectedResource
from .connectable_resource_py3 import ConnectableResource
from .allowed_connections_resource_py3 import AllowedConnectionsResource
except (SyntaxError, ImportError):
from .resource import Resource
from .kind import Kind
Expand Down Expand Up @@ -111,6 +114,9 @@
from .external_security_solution_kind1 import ExternalSecuritySolutionKind1
from .external_security_solution_properties import ExternalSecuritySolutionProperties
from .aad_connectivity_state1 import AadConnectivityState1
from .connected_resource import ConnectedResource
from .connectable_resource import ConnectableResource
from .allowed_connections_resource import AllowedConnectionsResource
from .pricing_paged import PricingPaged
from .security_contact_paged import SecurityContactPaged
from .workspace_setting_paged import WorkspaceSettingPaged
Expand All @@ -126,6 +132,7 @@
from .jit_network_access_policy_paged import JitNetworkAccessPolicyPaged
from .external_security_solution_paged import ExternalSecuritySolutionPaged
from .topology_resource_paged import TopologyResourcePaged
from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged
from .security_center_enums import (
AlertNotifications,
AlertsToAdmins,
Expand All @@ -138,6 +145,7 @@
StatusReason,
AadConnectivityState,
ExternalSecuritySolutionKind,
ConnectionType,
)

__all__ = [
Expand Down Expand Up @@ -191,6 +199,9 @@
'ExternalSecuritySolutionKind1',
'ExternalSecuritySolutionProperties',
'AadConnectivityState1',
'ConnectedResource',
'ConnectableResource',
'AllowedConnectionsResource',
'PricingPaged',
'SecurityContactPaged',
'WorkspaceSettingPaged',
Expand All @@ -206,6 +217,7 @@
'JitNetworkAccessPolicyPaged',
'ExternalSecuritySolutionPaged',
'TopologyResourcePaged',
'AllowedConnectionsResourcePaged',
'AlertNotifications',
'AlertsToAdmins',
'PricingTier',
Expand All @@ -217,4 +229,5 @@
'StatusReason',
'AadConnectivityState',
'ExternalSecuritySolutionKind',
'ConnectionType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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 AllowedConnectionsResource(Model):
"""The resource whose properties describes the allowed traffic between Azure
resources.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar location: Location where the resource is stored
:vartype location: str
:ivar calculated_date_time: The UTC time on which the allowed connections
resource was calculated
:vartype calculated_date_time: datetime
:ivar connectable_resources: List of connectable resources
:vartype connectable_resources:
list[~azure.mgmt.security.models.ConnectableResource]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'calculated_date_time': {'readonly': True},
'connectable_resources': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'calculated_date_time': {'key': 'properties.calculatedDateTime', 'type': 'iso-8601'},
'connectable_resources': {'key': 'properties.connectableResources', 'type': '[ConnectableResource]'},
}

def __init__(self, **kwargs):
super(AllowedConnectionsResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = None
self.calculated_date_time = None
self.connectable_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 AllowedConnectionsResourcePaged(Paged):
"""
A paging container for iterating over a list of :class:`AllowedConnectionsResource <azure.mgmt.security.models.AllowedConnectionsResource>` object
"""

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

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

super(AllowedConnectionsResourcePaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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 AllowedConnectionsResource(Model):
"""The resource whose properties describes the allowed traffic between Azure
resources.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar location: Location where the resource is stored
:vartype location: str
:ivar calculated_date_time: The UTC time on which the allowed connections
resource was calculated
:vartype calculated_date_time: datetime
:ivar connectable_resources: List of connectable resources
:vartype connectable_resources:
list[~azure.mgmt.security.models.ConnectableResource]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'calculated_date_time': {'readonly': True},
'connectable_resources': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'calculated_date_time': {'key': 'properties.calculatedDateTime', 'type': 'iso-8601'},
'connectable_resources': {'key': 'properties.connectableResources', 'type': '[ConnectableResource]'},
}

def __init__(self, **kwargs) -> None:
super(AllowedConnectionsResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = None
self.calculated_date_time = None
self.connectable_resources = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 ConnectableResource(Model):
"""Describes the allowed inbound and outbound traffic of an Azure resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The Azure resource id
:vartype id: str
:ivar inbound_connected_resources: The list of Azure resources that the
resource has inbound allowed connection from
:vartype inbound_connected_resources:
list[~azure.mgmt.security.models.ConnectedResource]
:ivar outbound_connected_resources: The list of Azure resources that the
resource has outbound allowed connection to
:vartype outbound_connected_resources:
list[~azure.mgmt.security.models.ConnectedResource]
"""

_validation = {
'id': {'readonly': True},
'inbound_connected_resources': {'readonly': True},
'outbound_connected_resources': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'inbound_connected_resources': {'key': 'inboundConnectedResources', 'type': '[ConnectedResource]'},
'outbound_connected_resources': {'key': 'outboundConnectedResources', 'type': '[ConnectedResource]'},
}

def __init__(self, **kwargs):
super(ConnectableResource, self).__init__(**kwargs)
self.id = None
self.inbound_connected_resources = None
self.outbound_connected_resources = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 ConnectableResource(Model):
"""Describes the allowed inbound and outbound traffic of an Azure resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The Azure resource id
:vartype id: str
:ivar inbound_connected_resources: The list of Azure resources that the
resource has inbound allowed connection from
:vartype inbound_connected_resources:
list[~azure.mgmt.security.models.ConnectedResource]
:ivar outbound_connected_resources: The list of Azure resources that the
resource has outbound allowed connection to
:vartype outbound_connected_resources:
list[~azure.mgmt.security.models.ConnectedResource]
"""

_validation = {
'id': {'readonly': True},
'inbound_connected_resources': {'readonly': True},
'outbound_connected_resources': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'inbound_connected_resources': {'key': 'inboundConnectedResources', 'type': '[ConnectedResource]'},
'outbound_connected_resources': {'key': 'outboundConnectedResources', 'type': '[ConnectedResource]'},
}

def __init__(self, **kwargs) -> None:
super(ConnectableResource, self).__init__(**kwargs)
self.id = None
self.inbound_connected_resources = None
self.outbound_connected_resources = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 ConnectedResource(Model):
"""Describes properties of a connected resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar connected_resource_id: The Azure resource id of the connected
resource
:vartype connected_resource_id: str
:ivar tcp_ports: The allowed tcp ports
:vartype tcp_ports: str
:ivar udp_ports: The allowed udp ports
:vartype udp_ports: str
"""

_validation = {
'connected_resource_id': {'readonly': True},
'tcp_ports': {'readonly': True},
'udp_ports': {'readonly': True},
}

_attribute_map = {
'connected_resource_id': {'key': 'connectedResourceId', 'type': 'str'},
'tcp_ports': {'key': 'tcpPorts', 'type': 'str'},
'udp_ports': {'key': 'udpPorts', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ConnectedResource, self).__init__(**kwargs)
self.connected_resource_id = None
self.tcp_ports = None
self.udp_ports = None
Loading