text: # coding: utf-8
  
  import types
  
  from huaweicloudsdkcore.region.region import Region
  
  
  class RmsRegion:
      def __init__(self):
          pass
  
      CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://rms.myhuaweicloud.com")
  
      static_fields = types.MappingProxyType({
          "cn-north-4": CN_NORTH_4,
      })
  
      @staticmethod
      def value_of(region_id, static_fields=static_fields):
          if region_id is None or len(region_id) == 0:
              raise KeyError("Unexpected empty parameter: region_id.")
          if not static_fields.get(region_id):
              raise KeyError("Unexpected region_id: " + region_id)
          return static_fields.get(region_id)
  
  
  