Skip to content

Commit 899e951

Browse files
authored
Generated from 84624804865be53090660f859760f153de313691 (#3781)
merged from master
1 parent bb7509f commit 899e951

12 files changed

+605
-0
lines changed

azure-mgmt-security/azure/mgmt/security/models/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
from .external_security_solution_kind1_py3 import ExternalSecuritySolutionKind1
6161
from .external_security_solution_properties_py3 import ExternalSecuritySolutionProperties
6262
from .aad_connectivity_state1_py3 import AadConnectivityState1
63+
from .connected_resource_py3 import ConnectedResource
64+
from .connectable_resource_py3 import ConnectableResource
65+
from .allowed_connections_resource_py3 import AllowedConnectionsResource
6366
except (SyntaxError, ImportError):
6467
from .resource import Resource
6568
from .kind import Kind
@@ -111,6 +114,9 @@
111114
from .external_security_solution_kind1 import ExternalSecuritySolutionKind1
112115
from .external_security_solution_properties import ExternalSecuritySolutionProperties
113116
from .aad_connectivity_state1 import AadConnectivityState1
117+
from .connected_resource import ConnectedResource
118+
from .connectable_resource import ConnectableResource
119+
from .allowed_connections_resource import AllowedConnectionsResource
114120
from .pricing_paged import PricingPaged
115121
from .security_contact_paged import SecurityContactPaged
116122
from .workspace_setting_paged import WorkspaceSettingPaged
@@ -126,6 +132,7 @@
126132
from .jit_network_access_policy_paged import JitNetworkAccessPolicyPaged
127133
from .external_security_solution_paged import ExternalSecuritySolutionPaged
128134
from .topology_resource_paged import TopologyResourcePaged
135+
from .allowed_connections_resource_paged import AllowedConnectionsResourcePaged
129136
from .security_center_enums import (
130137
AlertNotifications,
131138
AlertsToAdmins,
@@ -138,6 +145,7 @@
138145
StatusReason,
139146
AadConnectivityState,
140147
ExternalSecuritySolutionKind,
148+
ConnectionType,
141149
)
142150

143151
__all__ = [
@@ -191,6 +199,9 @@
191199
'ExternalSecuritySolutionKind1',
192200
'ExternalSecuritySolutionProperties',
193201
'AadConnectivityState1',
202+
'ConnectedResource',
203+
'ConnectableResource',
204+
'AllowedConnectionsResource',
194205
'PricingPaged',
195206
'SecurityContactPaged',
196207
'WorkspaceSettingPaged',
@@ -206,6 +217,7 @@
206217
'JitNetworkAccessPolicyPaged',
207218
'ExternalSecuritySolutionPaged',
208219
'TopologyResourcePaged',
220+
'AllowedConnectionsResourcePaged',
209221
'AlertNotifications',
210222
'AlertsToAdmins',
211223
'PricingTier',
@@ -217,4 +229,5 @@
217229
'StatusReason',
218230
'AadConnectivityState',
219231
'ExternalSecuritySolutionKind',
232+
'ConnectionType',
220233
]
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AllowedConnectionsResource(Model):
16+
"""The resource whose properties describes the allowed traffic between Azure
17+
resources.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
:ivar id: Resource Id
23+
:vartype id: str
24+
:ivar name: Resource name
25+
:vartype name: str
26+
:ivar type: Resource type
27+
:vartype type: str
28+
:ivar location: Location where the resource is stored
29+
:vartype location: str
30+
:ivar calculated_date_time: The UTC time on which the allowed connections
31+
resource was calculated
32+
:vartype calculated_date_time: datetime
33+
:ivar connectable_resources: List of connectable resources
34+
:vartype connectable_resources:
35+
list[~azure.mgmt.security.models.ConnectableResource]
36+
"""
37+
38+
_validation = {
39+
'id': {'readonly': True},
40+
'name': {'readonly': True},
41+
'type': {'readonly': True},
42+
'location': {'readonly': True},
43+
'calculated_date_time': {'readonly': True},
44+
'connectable_resources': {'readonly': True},
45+
}
46+
47+
_attribute_map = {
48+
'id': {'key': 'id', 'type': 'str'},
49+
'name': {'key': 'name', 'type': 'str'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'location': {'key': 'location', 'type': 'str'},
52+
'calculated_date_time': {'key': 'properties.calculatedDateTime', 'type': 'iso-8601'},
53+
'connectable_resources': {'key': 'properties.connectableResources', 'type': '[ConnectableResource]'},
54+
}
55+
56+
def __init__(self, **kwargs):
57+
super(AllowedConnectionsResource, self).__init__(**kwargs)
58+
self.id = None
59+
self.name = None
60+
self.type = None
61+
self.location = None
62+
self.calculated_date_time = None
63+
self.connectable_resources = None
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.paging import Paged
13+
14+
15+
class AllowedConnectionsResourcePaged(Paged):
16+
"""
17+
A paging container for iterating over a list of :class:`AllowedConnectionsResource <azure.mgmt.security.models.AllowedConnectionsResource>` object
18+
"""
19+
20+
_attribute_map = {
21+
'next_link': {'key': 'nextLink', 'type': 'str'},
22+
'current_page': {'key': 'value', 'type': '[AllowedConnectionsResource]'}
23+
}
24+
25+
def __init__(self, *args, **kwargs):
26+
27+
super(AllowedConnectionsResourcePaged, self).__init__(*args, **kwargs)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AllowedConnectionsResource(Model):
16+
"""The resource whose properties describes the allowed traffic between Azure
17+
resources.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
:ivar id: Resource Id
23+
:vartype id: str
24+
:ivar name: Resource name
25+
:vartype name: str
26+
:ivar type: Resource type
27+
:vartype type: str
28+
:ivar location: Location where the resource is stored
29+
:vartype location: str
30+
:ivar calculated_date_time: The UTC time on which the allowed connections
31+
resource was calculated
32+
:vartype calculated_date_time: datetime
33+
:ivar connectable_resources: List of connectable resources
34+
:vartype connectable_resources:
35+
list[~azure.mgmt.security.models.ConnectableResource]
36+
"""
37+
38+
_validation = {
39+
'id': {'readonly': True},
40+
'name': {'readonly': True},
41+
'type': {'readonly': True},
42+
'location': {'readonly': True},
43+
'calculated_date_time': {'readonly': True},
44+
'connectable_resources': {'readonly': True},
45+
}
46+
47+
_attribute_map = {
48+
'id': {'key': 'id', 'type': 'str'},
49+
'name': {'key': 'name', 'type': 'str'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'location': {'key': 'location', 'type': 'str'},
52+
'calculated_date_time': {'key': 'properties.calculatedDateTime', 'type': 'iso-8601'},
53+
'connectable_resources': {'key': 'properties.connectableResources', 'type': '[ConnectableResource]'},
54+
}
55+
56+
def __init__(self, **kwargs) -> None:
57+
super(AllowedConnectionsResource, self).__init__(**kwargs)
58+
self.id = None
59+
self.name = None
60+
self.type = None
61+
self.location = None
62+
self.calculated_date_time = None
63+
self.connectable_resources = None
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ConnectableResource(Model):
16+
"""Describes the allowed inbound and outbound traffic of an Azure resource.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar id: The Azure resource id
22+
:vartype id: str
23+
:ivar inbound_connected_resources: The list of Azure resources that the
24+
resource has inbound allowed connection from
25+
:vartype inbound_connected_resources:
26+
list[~azure.mgmt.security.models.ConnectedResource]
27+
:ivar outbound_connected_resources: The list of Azure resources that the
28+
resource has outbound allowed connection to
29+
:vartype outbound_connected_resources:
30+
list[~azure.mgmt.security.models.ConnectedResource]
31+
"""
32+
33+
_validation = {
34+
'id': {'readonly': True},
35+
'inbound_connected_resources': {'readonly': True},
36+
'outbound_connected_resources': {'readonly': True},
37+
}
38+
39+
_attribute_map = {
40+
'id': {'key': 'id', 'type': 'str'},
41+
'inbound_connected_resources': {'key': 'inboundConnectedResources', 'type': '[ConnectedResource]'},
42+
'outbound_connected_resources': {'key': 'outboundConnectedResources', 'type': '[ConnectedResource]'},
43+
}
44+
45+
def __init__(self, **kwargs):
46+
super(ConnectableResource, self).__init__(**kwargs)
47+
self.id = None
48+
self.inbound_connected_resources = None
49+
self.outbound_connected_resources = None
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ConnectableResource(Model):
16+
"""Describes the allowed inbound and outbound traffic of an Azure resource.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar id: The Azure resource id
22+
:vartype id: str
23+
:ivar inbound_connected_resources: The list of Azure resources that the
24+
resource has inbound allowed connection from
25+
:vartype inbound_connected_resources:
26+
list[~azure.mgmt.security.models.ConnectedResource]
27+
:ivar outbound_connected_resources: The list of Azure resources that the
28+
resource has outbound allowed connection to
29+
:vartype outbound_connected_resources:
30+
list[~azure.mgmt.security.models.ConnectedResource]
31+
"""
32+
33+
_validation = {
34+
'id': {'readonly': True},
35+
'inbound_connected_resources': {'readonly': True},
36+
'outbound_connected_resources': {'readonly': True},
37+
}
38+
39+
_attribute_map = {
40+
'id': {'key': 'id', 'type': 'str'},
41+
'inbound_connected_resources': {'key': 'inboundConnectedResources', 'type': '[ConnectedResource]'},
42+
'outbound_connected_resources': {'key': 'outboundConnectedResources', 'type': '[ConnectedResource]'},
43+
}
44+
45+
def __init__(self, **kwargs) -> None:
46+
super(ConnectableResource, self).__init__(**kwargs)
47+
self.id = None
48+
self.inbound_connected_resources = None
49+
self.outbound_connected_resources = None
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ConnectedResource(Model):
16+
"""Describes properties of a connected resource.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar connected_resource_id: The Azure resource id of the connected
22+
resource
23+
:vartype connected_resource_id: str
24+
:ivar tcp_ports: The allowed tcp ports
25+
:vartype tcp_ports: str
26+
:ivar udp_ports: The allowed udp ports
27+
:vartype udp_ports: str
28+
"""
29+
30+
_validation = {
31+
'connected_resource_id': {'readonly': True},
32+
'tcp_ports': {'readonly': True},
33+
'udp_ports': {'readonly': True},
34+
}
35+
36+
_attribute_map = {
37+
'connected_resource_id': {'key': 'connectedResourceId', 'type': 'str'},
38+
'tcp_ports': {'key': 'tcpPorts', 'type': 'str'},
39+
'udp_ports': {'key': 'udpPorts', 'type': 'str'},
40+
}
41+
42+
def __init__(self, **kwargs):
43+
super(ConnectedResource, self).__init__(**kwargs)
44+
self.connected_resource_id = None
45+
self.tcp_ports = None
46+
self.udp_ports = None

0 commit comments

Comments
 (0)