def EnumPropertyToProto(prop, index):
  enum = prop._enum_type
  kwargs = GetKeywordArgs(prop)
  return messages.EnumField(enum, index, **kwargs)
Get all managed object references of the given type.
dataset/ETHPy150Open GoogleCloudPlatform/endpoints-proto-datastore/endpoints_proto_datastore/ndb/utils.py/EnumPropertyToProto--crossover with--dataset/ETHPy150Open openstack/oslo.vmware/oslo_vmware/vim_util.py/get_objects