Skip to content

Commit a3044d6

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] mariadb/resource-manager (#3699)
* Generated from a22fb0a860ea419d71515faad8a2802617881561 (#3696) Add Vnet resource for Microsoft.DBforMariaDB * RDBMS 1.5.0
1 parent 5628908 commit a3044d6

10 files changed

+564
-1
lines changed

azure-mgmt-rdbms/HISTORY.rst

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
Release History
44
===============
55

6+
1.5.0 (2018-10-30)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Added operation group VirtualNetworkRulesOperations for MariaDB
12+
613
1.4.1 (2018-10-16)
714
++++++++++++++++++
815

azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/maria_db_management_client.py

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from .version import VERSION
1616
from .operations.servers_operations import ServersOperations
1717
from .operations.firewall_rules_operations import FirewallRulesOperations
18+
from .operations.virtual_network_rules_operations import VirtualNetworkRulesOperations
1819
from .operations.databases_operations import DatabasesOperations
1920
from .operations.configurations_operations import ConfigurationsOperations
2021
from .operations.log_files_operations import LogFilesOperations
@@ -68,6 +69,8 @@ class MariaDBManagementClient(SDKClient):
6869
:vartype servers: azure.mgmt.rdbms.mariadb.operations.ServersOperations
6970
:ivar firewall_rules: FirewallRules operations
7071
:vartype firewall_rules: azure.mgmt.rdbms.mariadb.operations.FirewallRulesOperations
72+
:ivar virtual_network_rules: VirtualNetworkRules operations
73+
:vartype virtual_network_rules: azure.mgmt.rdbms.mariadb.operations.VirtualNetworkRulesOperations
7174
:ivar databases: Databases operations
7275
:vartype databases: azure.mgmt.rdbms.mariadb.operations.DatabasesOperations
7376
:ivar configurations: Configurations operations
@@ -107,6 +110,8 @@ def __init__(
107110
self._client, self.config, self._serialize, self._deserialize)
108111
self.firewall_rules = FirewallRulesOperations(
109112
self._client, self.config, self._serialize, self._deserialize)
113+
self.virtual_network_rules = VirtualNetworkRulesOperations(
114+
self._client, self.config, self._serialize, self._deserialize)
110115
self.databases = DatabasesOperations(
111116
self._client, self.config, self._serialize, self._deserialize)
112117
self.configurations = ConfigurationsOperations(

azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from .server_for_create_py3 import ServerForCreate
2323
from .server_update_parameters_py3 import ServerUpdateParameters
2424
from .firewall_rule_py3 import FirewallRule
25+
from .virtual_network_rule_py3 import VirtualNetworkRule
2526
from .database_py3 import Database
2627
from .configuration_py3 import Configuration
2728
from .operation_display_py3 import OperationDisplay
@@ -46,6 +47,7 @@
4647
from .server_for_create import ServerForCreate
4748
from .server_update_parameters import ServerUpdateParameters
4849
from .firewall_rule import FirewallRule
50+
from .virtual_network_rule import VirtualNetworkRule
4951
from .database import Database
5052
from .configuration import Configuration
5153
from .operation_display import OperationDisplay
@@ -59,6 +61,7 @@
5961
from .server_security_alert_policy import ServerSecurityAlertPolicy
6062
from .server_paged import ServerPaged
6163
from .firewall_rule_paged import FirewallRulePaged
64+
from .virtual_network_rule_paged import VirtualNetworkRulePaged
6265
from .database_paged import DatabasePaged
6366
from .configuration_paged import ConfigurationPaged
6467
from .log_file_paged import LogFilePaged
@@ -69,6 +72,7 @@
6972
ServerState,
7073
GeoRedundantBackup,
7174
SkuTier,
75+
VirtualNetworkRuleState,
7276
OperationOrigin,
7377
ServerSecurityAlertPolicyState,
7478
)
@@ -86,6 +90,7 @@
8690
'ServerForCreate',
8791
'ServerUpdateParameters',
8892
'FirewallRule',
93+
'VirtualNetworkRule',
8994
'Database',
9095
'Configuration',
9196
'OperationDisplay',
@@ -99,6 +104,7 @@
99104
'ServerSecurityAlertPolicy',
100105
'ServerPaged',
101106
'FirewallRulePaged',
107+
'VirtualNetworkRulePaged',
102108
'DatabasePaged',
103109
'ConfigurationPaged',
104110
'LogFilePaged',
@@ -108,6 +114,7 @@
108114
'ServerState',
109115
'GeoRedundantBackup',
110116
'SkuTier',
117+
'VirtualNetworkRuleState',
111118
'OperationOrigin',
112119
'ServerSecurityAlertPolicyState',
113120
]

azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/maria_db_management_client_enums.py

+9
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ class SkuTier(str, Enum):
4444
memory_optimized = "MemoryOptimized"
4545

4646

47+
class VirtualNetworkRuleState(str, Enum):
48+
49+
initializing = "Initializing"
50+
in_progress = "InProgress"
51+
ready = "Ready"
52+
deleting = "Deleting"
53+
unknown = "Unknown"
54+
55+
4756
class OperationOrigin(str, Enum):
4857

4958
not_specified = "NotSpecified"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 .proxy_resource import ProxyResource
13+
14+
15+
class VirtualNetworkRule(ProxyResource):
16+
"""A virtual network rule.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
All required parameters must be populated in order to send to Azure.
22+
23+
:ivar id: Resource ID
24+
:vartype id: str
25+
:ivar name: Resource name.
26+
:vartype name: str
27+
:ivar type: Resource type.
28+
:vartype type: str
29+
:param virtual_network_subnet_id: Required. The ARM resource id of the
30+
virtual network subnet.
31+
:type virtual_network_subnet_id: str
32+
:param ignore_missing_vnet_service_endpoint: Create firewall rule before
33+
the virtual network has vnet service endpoint enabled.
34+
:type ignore_missing_vnet_service_endpoint: bool
35+
:ivar state: Virtual Network Rule State. Possible values include:
36+
'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown'
37+
:vartype state: str or
38+
~azure.mgmt.rdbms.mariadb.models.VirtualNetworkRuleState
39+
"""
40+
41+
_validation = {
42+
'id': {'readonly': True},
43+
'name': {'readonly': True},
44+
'type': {'readonly': True},
45+
'virtual_network_subnet_id': {'required': True},
46+
'state': {'readonly': True},
47+
}
48+
49+
_attribute_map = {
50+
'id': {'key': 'id', 'type': 'str'},
51+
'name': {'key': 'name', 'type': 'str'},
52+
'type': {'key': 'type', 'type': 'str'},
53+
'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'},
54+
'ignore_missing_vnet_service_endpoint': {'key': 'properties.ignoreMissingVnetServiceEndpoint', 'type': 'bool'},
55+
'state': {'key': 'properties.state', 'type': 'str'},
56+
}
57+
58+
def __init__(self, **kwargs):
59+
super(VirtualNetworkRule, self).__init__(**kwargs)
60+
self.virtual_network_subnet_id = kwargs.get('virtual_network_subnet_id', None)
61+
self.ignore_missing_vnet_service_endpoint = kwargs.get('ignore_missing_vnet_service_endpoint', None)
62+
self.state = None
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 VirtualNetworkRulePaged(Paged):
16+
"""
17+
A paging container for iterating over a list of :class:`VirtualNetworkRule <azure.mgmt.rdbms.mariadb.models.VirtualNetworkRule>` object
18+
"""
19+
20+
_attribute_map = {
21+
'next_link': {'key': 'nextLink', 'type': 'str'},
22+
'current_page': {'key': 'value', 'type': '[VirtualNetworkRule]'}
23+
}
24+
25+
def __init__(self, *args, **kwargs):
26+
27+
super(VirtualNetworkRulePaged, self).__init__(*args, **kwargs)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 .proxy_resource_py3 import ProxyResource
13+
14+
15+
class VirtualNetworkRule(ProxyResource):
16+
"""A virtual network rule.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
All required parameters must be populated in order to send to Azure.
22+
23+
:ivar id: Resource ID
24+
:vartype id: str
25+
:ivar name: Resource name.
26+
:vartype name: str
27+
:ivar type: Resource type.
28+
:vartype type: str
29+
:param virtual_network_subnet_id: Required. The ARM resource id of the
30+
virtual network subnet.
31+
:type virtual_network_subnet_id: str
32+
:param ignore_missing_vnet_service_endpoint: Create firewall rule before
33+
the virtual network has vnet service endpoint enabled.
34+
:type ignore_missing_vnet_service_endpoint: bool
35+
:ivar state: Virtual Network Rule State. Possible values include:
36+
'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown'
37+
:vartype state: str or
38+
~azure.mgmt.rdbms.mariadb.models.VirtualNetworkRuleState
39+
"""
40+
41+
_validation = {
42+
'id': {'readonly': True},
43+
'name': {'readonly': True},
44+
'type': {'readonly': True},
45+
'virtual_network_subnet_id': {'required': True},
46+
'state': {'readonly': True},
47+
}
48+
49+
_attribute_map = {
50+
'id': {'key': 'id', 'type': 'str'},
51+
'name': {'key': 'name', 'type': 'str'},
52+
'type': {'key': 'type', 'type': 'str'},
53+
'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'},
54+
'ignore_missing_vnet_service_endpoint': {'key': 'properties.ignoreMissingVnetServiceEndpoint', 'type': 'bool'},
55+
'state': {'key': 'properties.state', 'type': 'str'},
56+
}
57+
58+
def __init__(self, *, virtual_network_subnet_id: str, ignore_missing_vnet_service_endpoint: bool=None, **kwargs) -> None:
59+
super(VirtualNetworkRule, self).__init__(**kwargs)
60+
self.virtual_network_subnet_id = virtual_network_subnet_id
61+
self.ignore_missing_vnet_service_endpoint = ignore_missing_vnet_service_endpoint
62+
self.state = None

azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from .servers_operations import ServersOperations
1313
from .firewall_rules_operations import FirewallRulesOperations
14+
from .virtual_network_rules_operations import VirtualNetworkRulesOperations
1415
from .databases_operations import DatabasesOperations
1516
from .configurations_operations import ConfigurationsOperations
1617
from .log_files_operations import LogFilesOperations
@@ -22,6 +23,7 @@
2223
__all__ = [
2324
'ServersOperations',
2425
'FirewallRulesOperations',
26+
'VirtualNetworkRulesOperations',
2527
'DatabasesOperations',
2628
'ConfigurationsOperations',
2729
'LogFilesOperations',

0 commit comments

Comments
 (0)