|
| 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 |
0 commit comments