예제 #1
0
def _get_script_details_fields():
    return {
        'script_id': fields.Integer,
        'name': fields.String,
        'content': fields.String,
        'modified_on': customfields.CustomDateTime,
        'uri': BpUrl(api_restful, ScriptApi, absolute=True)
    }
예제 #2
0
파일: layer.py 프로젝트: umr-ds/dynalize
def _get_layer_details_fields():
    return {
            'layer_id' : fields.Integer,
            'name' : fields.String,
            'tag' : fields.String,
            'content' : fields.String,
            'parent_id' : fields.Integer(default=None), # Make sure we actually get "null" and not "0"
            'modified_on' : fields.DateTime(dt_format='iso8601'),
            'uri' : BpUrl(api_restful, LayerApi, absolute=True)
            }
예제 #3
0
파일: instance.py 프로젝트: umr-ds/dynalize
def _get_instance_fields():
    return {
        'instance_id': fields.Integer,
        'clouddef_id': fields.Integer,
        'hostname': fields.String,
        'comment': fields.String,
        'provider_id': fields.String,
        'provider_name': fields.String,
        'status': fields.String,
        'uri': BpUrl(api_restful, InstanceApi, absolute=True)
    }
예제 #4
0
파일: datadef.py 프로젝트: umr-ds/dynalize
def _get_dataprovider_fields():
    return {
            'datadef_id' : fields.Integer,
            'name' : fields.String,
            'dataprovider_id' : fields.Integer(default=None),
            'source' : fields.String,
            'source_path_filter' : fields.String,
            'source_filename_filter' : fields.String,
            'destination' : fields.String,
            'uri' : BpUrl(api_restful, DataProviderApi, absolute=True)
            }
예제 #5
0
파일: job.py 프로젝트: umr-ds/dynalize
def _get_instance_fields():
    return {
        'job_id': fields.Integer,
        'clouddef_id': fields.Integer,
        'run_layer_id': fields.Integer(default=None),
        'script_id': fields.Integer(default=None),
        'source_datadef_id': fields.Integer(default=None),
        'destination_datadef_id': fields.Integer(default=None),
        'name': fields.String,
        'task_timeout': fields.Integer,
        'uri': BpUrl(api_restful, JobApi, absolute=True)
    }
예제 #6
0
def _get_cloud_fields():
    return {
        'clouddef_id': fields.Integer,
        'name': fields.String,
        'cloudprovider_id': fields.Integer(
            default=None),  # Make sure we actually get "null" and not "0"
        'virtual_device_layer_id': fields.Integer(
            default=None),  # Make sure we actually get "null" and not "0"
        'test_layer_id': fields.Integer(
            default=None),  # Make sure we actually get "null" and not "0"
        'snapshot_id': fields.String,
        'snapshot_image_id': fields.String,
        'client_startup_parameters': fields.String,
        'uri': BpUrl(api_restful, CloudApi, absolute=True)
    }
예제 #7
0
def _get_task_fields():
    return {
        'task_id': fields.Integer,
        'job_id': fields.Integer,
        'filename': fields.String,
        'backend_id': fields.String,
        'worker_hostname': fields.String,
        'created_on': fields.DateTime,
        'completed': fields.Boolean,
        'output': fields.String,
        'build_logs': fields.String,
        'exception': fields.String,
        'traceback': fields.String,
        'exit_code': fields.String,
        'duration': fields.Float,
        'uri': BpUrl(api_restful, TaskApi, absolute=True)
    }
예제 #8
0
def _get_dataprovidertype_fields():
    return {
        'dataprovider_id': fields.Integer,
        'name': fields.String,
        'uri': BpUrl(api_restful, DatProviderTypeList, absolute=True)
    }
예제 #9
0
def _get_cloudtype_fields():
    return {
        'cloudprovider_id': fields.Integer,
        'name': fields.String,
        'uri': BpUrl(api_restful, CloudTypeList, absolute=True)
    }