components/policy/tools/template_writers/writers/jamf_writer.py
def RecordEnumIds(self, policy, known_ids):
    '''Writes the a dictionary mapping ids of enums that can be referred to by
       '$ref' to their schema.

    Args:
      policy: The policy to scan for refs.
      known_ids: The dictionary and output of all the known ids.
    '''
    if 'id' in policy['schema']:
      known_ids[policy['schema']['id']] = {
          'type': policy['schema']['type'],
          'options': {
              'enum_titles': [item['name'] for item in policy['items']]
          },
          'enum': [item['value'] for item in policy['items']]
      }
Writes the a dictionary mapping ids of enums that can be referred to by
       '$ref' to their schema.

    Args:
      policy: The policy to scan for refs.
      known_ids: The dictionary and output of all the known ids.
    
Writes the a dictionary mapping ids of enums that can be referred to by
'$ref' to their schema.
Writes the a dictionary mapping ids of enums that can be referred to by ' $ref ' to their schema .
def RecordEnumIds(self, policy, known_ids):
    if 'id' in policy['schema']:
      known_ids[policy['schema']['id']] = {
          'type': policy['schema']['type'],
          'options': {
              'enum_titles': [item['name'] for item in policy['items']]
          },
          'enum': [item['value'] for item in policy['items']]
      }
def RecordEnumIds ( self , policy , known_ids ) : if 'id' in policy [ 'schema' ] : known_ids [ policy [ 'schema' ] [ 'id' ] ] = { 'type' : policy [ 'schema' ] [ 'type' ] , 'options' : { 'enum_titles' : [ item [ 'name' ] for item in policy [ 'items' ] ] } , 'enum' : [ item [ 'value' ] for item in policy [ 'items' ] ] }
Writes the a dictionary mapping ids of enums that can be referred to by
'$ref' to their schema.
Writes the a dictionary mapping ids of enums that can be referred to by ' $ref ' to their schema .
'''Writes the a dictionary mapping ids of enums that can be referred to by
       '$ref' to their schema.

    Args:
      policy: The policy to scan for refs.
      known_ids: The dictionary and output of all the known ids.
    '''
self
policy
The policy to scan for refs.
The policy to scan for refs .
known_ids
The dictionary and output of all the known ids.
The dictionary and output of all the known ids .