text: # coding=utf-8
  # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
  
  import pulumi
  import pulumi.runtime
  from .. import utilities, tables
  
  class VirtualNetworkRule(pulumi.CustomResource):
      """
      Manages a MySQL Virtual Network Rule.
      
      -> **NOTE:** MySQL Virtual Network Rules [can only be used with SKU Tiers of `GeneralPurpose` or `MemoryOptimized`](https://docs.microsoft.com/en-us/azure/mysql/concepts-data-access-and-security-vnet)
      """
      def __init__(__self__, __name__, __opts__=None, name=None, resource_group_name=None, server_name=None, subnet_id=None):
          """Create a VirtualNetworkRule resource with the given unique name, props, and options."""
          if not __name__:
              raise TypeError('Missing resource name argument (for URN creation)')
          if not isinstance(__name__, str):
              raise TypeError('Expected resource name to be a string')
          if __opts__ and not isinstance(__opts__, pulumi.ResourceOptions):
              raise TypeError('Expected resource options to be a ResourceOptions instance')
  
          __props__ = dict()
  
          __props__['name'] = name
  
          if not resource_group_name:
              raise TypeError('Missing required property resource_group_name')
          __props__['resource_group_name'] = resource_group_name
  
          if not server_name:
              raise TypeError('Missing required property server_name')
          __props__['server_name'] = server_name
  
          if not subnet_id:
              raise TypeError('Missing required property subnet_id')
          __props__['subnet_id'] = subnet_id
  
          super(VirtualNetworkRule, __self__).__init__(
              'azure:mysql/virtualNetworkRule:VirtualNetworkRule',
              __name__,
              __props__,
              __opts__)
  
  
      def translate_output_property(self, prop):
          return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
  
      def translate_input_property(self, prop):
          return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
  
  