def generate_custom_fields():
    CustomField.objects.get_or_create(
        name='function_name', defaults={'label': 'function name', 'type': 'STR', 'show_as_attribute': True,
                                        'description': 'Name given to the Google Cloud function'}
    )
    CustomField.objects.get_or_create(
        name='available_memory_mb', defaults={'label': 'Memory', 'type': 'INT', 'show_as_attribute': True,
                                              'description': 'Memory allocated to the Google Cloud function'}
    )
    CustomField.objects.get_or_create(
        name='entry_point', defaults={'label': 'EntryPoint', 'type': 'STR', 'show_as_attribute': True,
                                      'description': 'Name of a function exported by the module specified in '
                                                     'directory with source code'}
    )
    CustomField.objects.get_or_create(
        name='runtime', defaults={'label': 'Runtime', 'type': 'STR', 'show_as_attribute': True}
    )
    CustomField.objects.get_or_create(
        name='service_account_email', defaults={'label': 'serviceAccountEmail',
                                                'type': 'STR',
                                                'show_as_attribute': False,
                                                'description':
                                                    'Service account that the function will assume as its identity.'}
    )
    CustomField.objects.get_or_create(
        name='https_trigger', defaults={'label': 'HttpsTrigger',
                                        'type': 'STR',
                                        'show_as_attribute': True,
                                        'description':
                                            'Url to trigger the google function'}
    )
    CustomField.objects.get_or_create(
        name='source_archive_url', defaults={'label': 'sourceArchiveUrl',
                                             'type': 'STR',
                                             'show_as_attribute': True,
                                             'description':
                                                 'Url to where the source code of the function is located.'}
    )
    CustomField.objects.get_or_create(
        name='google_rh_id', defaults={'label': 'Resource Handler',
                                       'type': 'STR',
                                       'show_as_attribute': False})