| 
 | 1 | +id: _definitions  | 
 | 2 | + | 
 | 3 | +uuid:  | 
 | 4 | +  $ref: "_terms.yaml#/uuid"  | 
 | 5 | +  type: string  | 
 | 6 | +  pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"  | 
 | 7 | +  systemAlias: node_id  | 
 | 8 | + | 
 | 9 | +parent_uuids:  | 
 | 10 | +  type: array  | 
 | 11 | +  minItems: 1  | 
 | 12 | +  items:  | 
 | 13 | +    $ref: "#/uuid"  | 
 | 14 | +  uniqueItems: true  | 
 | 15 | + | 
 | 16 | +foreign_key_project:  | 
 | 17 | +  type: object  | 
 | 18 | +  # Allow true here because we can have other unique keys defined on  | 
 | 19 | +  # a target type  | 
 | 20 | +  additionalProperties: True  | 
 | 21 | +  # Can either use 'id' which are GDC IDs (uuid) or 'submitter_id'  | 
 | 22 | +  # which are user defined IDs ("submitter IDs in the backend")  | 
 | 23 | +  properties:  | 
 | 24 | +    id:  | 
 | 25 | +      $ref: "#/uuid"  | 
 | 26 | +    submitter_id:  | 
 | 27 | +      type: string  | 
 | 28 | + | 
 | 29 | +to_one_project:  | 
 | 30 | +  anyOf:  | 
 | 31 | +    - type: array  | 
 | 32 | +      items:  | 
 | 33 | +        $ref: "#/foreign_key_project"  | 
 | 34 | +        minItems: 1  | 
 | 35 | +        maxItems: 1  | 
 | 36 | +    - $ref: "#/foreign_key_project"  | 
 | 37 | + | 
 | 38 | +to_many_project:  | 
 | 39 | +  anyOf:  | 
 | 40 | +    - type: array  | 
 | 41 | +      items:  | 
 | 42 | +        $ref: "#/foreign_key_project"  | 
 | 43 | +        minItems: 1  | 
 | 44 | +    - $ref: "#/foreign_key_project"  | 
 | 45 | + | 
 | 46 | +foreign_key:  | 
 | 47 | +  type: object  | 
 | 48 | +  # Allow true here because we can have other unique keys defined on  | 
 | 49 | +  # a target type  | 
 | 50 | +  additionalProperties: True  | 
 | 51 | +  # Can either use 'id' which are GDC IDs (uuid) or 'submitter_id'  | 
 | 52 | +  # which are user defined IDs ("submitter IDs in the backend")  | 
 | 53 | +  properties:  | 
 | 54 | +    id:  | 
 | 55 | +      $ref: "#/uuid"  | 
 | 56 | +    submitter_id:  | 
 | 57 | +      type: string  | 
 | 58 | + | 
 | 59 | +to_one:  | 
 | 60 | +  anyOf:  | 
 | 61 | +    - type: array  | 
 | 62 | +      items:  | 
 | 63 | +        $ref: "#/foreign_key"  | 
 | 64 | +        minItems: 1  | 
 | 65 | +        maxItems: 1  | 
 | 66 | +    - $ref: "#/foreign_key"  | 
 | 67 | + | 
 | 68 | +to_many:  | 
 | 69 | +  anyOf:  | 
 | 70 | +    - type: array  | 
 | 71 | +      items:  | 
 | 72 | +        $ref: "#/foreign_key"  | 
 | 73 | +        minItems: 1  | 
 | 74 | +    - $ref: "#/foreign_key"  | 
 | 75 | + | 
 | 76 | +datetime:  | 
 | 77 | +  $ref: "_terms.yaml#/datetime"  | 
 | 78 | +  oneOf:  | 
 | 79 | +    - type: string  | 
 | 80 | +      format: date-time  | 
 | 81 | +    - type: 'null'  | 
 | 82 | + | 
 | 83 | +file_name:  | 
 | 84 | +  $ref: "_terms.yaml#/file_name"  | 
 | 85 | +  type: string  | 
 | 86 | + | 
 | 87 | +file_size:  | 
 | 88 | +  $ref: "_terms.yaml#/file_size"  | 
 | 89 | +  type: integer  | 
 | 90 | + | 
 | 91 | +file_format:  | 
 | 92 | +  $ref: "_terms.yaml#/file_format"  | 
 | 93 | +  type: string  | 
 | 94 | + | 
 | 95 | +md5sum:  | 
 | 96 | +  $ref: "_terms.yaml#/md5sum"  | 
 | 97 | +  type: string  | 
 | 98 | +  pattern: "^[a-f0-9]{32}$"  | 
 | 99 | + | 
 | 100 | +release_state:  | 
 | 101 | +  description: >-  | 
 | 102 | +    Release state of an entity.  | 
 | 103 | +  default: unreleased  | 
 | 104 | +  enum:  | 
 | 105 | +    - unreleased  | 
 | 106 | +    - released  | 
 | 107 | +    - redacted  | 
 | 108 | + | 
 | 109 | +data_bundle_state:  | 
 | 110 | +  description:  >-  | 
 | 111 | +    State of a data bundle.  | 
 | 112 | +  default: submitted  | 
 | 113 | +  enum:  | 
 | 114 | +    - submitted  | 
 | 115 | +    - validated  | 
 | 116 | +    - error  | 
 | 117 | +    - released  | 
 | 118 | +    - suppressed  | 
 | 119 | +    - redacted  | 
 | 120 | + | 
 | 121 | +data_file_error_type:  | 
 | 122 | +  $ref: "_terms.yaml#/data_file_error_type"  | 
 | 123 | +  enum:  | 
 | 124 | +    - file_size  | 
 | 125 | +    - file_format  | 
 | 126 | +    - md5sum  | 
 | 127 | + | 
 | 128 | +state:  | 
 | 129 | +  $ref: "_terms.yaml#/state"  | 
 | 130 | +  default: validated  | 
 | 131 | +  downloadable:  | 
 | 132 | +    - uploaded  | 
 | 133 | +    - md5summed  | 
 | 134 | +    - validating  | 
 | 135 | +    - validated  | 
 | 136 | +    - error  | 
 | 137 | +    - invalid  | 
 | 138 | +    - released  | 
 | 139 | +  public:  | 
 | 140 | +    - live  | 
 | 141 | +  oneOf:  | 
 | 142 | +    - enum: #This list covers legacy data  | 
 | 143 | +      - uploading  | 
 | 144 | +      - uploaded  | 
 | 145 | +      - md5summing  | 
 | 146 | +      - md5summed  | 
 | 147 | +      - validating  | 
 | 148 | +      - error  | 
 | 149 | +      - invalid  | 
 | 150 | +      - suppressed  | 
 | 151 | +      - redacted  | 
 | 152 | +      - live  | 
 | 153 | +    - enum: #This list covers all future data 1/15/16  | 
 | 154 | +      - validated  | 
 | 155 | +      - submitted  | 
 | 156 | +      - released  | 
 | 157 | + | 
 | 158 | +file_state:  | 
 | 159 | +  $ref: "_terms.yaml#/file_state"  | 
 | 160 | +  default: registered  | 
 | 161 | +  enum:  | 
 | 162 | +    - registered  | 
 | 163 | +    - uploading  | 
 | 164 | +    - uploaded  | 
 | 165 | +    - validating  | 
 | 166 | +    - validated  | 
 | 167 | +    - submitted  | 
 | 168 | +    - processing  | 
 | 169 | +    - processed  | 
 | 170 | +    - released  | 
 | 171 | +    - error  | 
 | 172 | +    - deleted  | 
 | 173 | + | 
 | 174 | +qc_metrics_state:  | 
 | 175 | +  $ref: "_terms.yaml#/qc_metric_state"  | 
 | 176 | +  enum:  | 
 | 177 | +    - FAIL  | 
 | 178 | +    - PASS  | 
 | 179 | +    - WARN  | 
 | 180 | +    - Unknown  | 
 | 181 | +    - Not Reported  | 
 | 182 | + | 
 | 183 | +project_id:  | 
 | 184 | +  $ref: "_terms.yaml#/project_id"  | 
 | 185 | +  type: string  | 
 | 186 | + | 
 | 187 | +data_file_properties:  | 
 | 188 | +  $ref: "#/ubiquitous_properties"  | 
 | 189 | + | 
 | 190 | +  file_name:  | 
 | 191 | +    $ref: "#/file_name"  | 
 | 192 | + | 
 | 193 | +  file_size:  | 
 | 194 | +    $ref: "#/file_size"  | 
 | 195 | + | 
 | 196 | +  md5sum:  | 
 | 197 | +    $ref: "#/md5sum"  | 
 | 198 | + | 
 | 199 | +  file_state:  | 
 | 200 | +    $ref: "#/file_state"  | 
 | 201 | + | 
 | 202 | +  error_type:  | 
 | 203 | +    $ref: "#/data_file_error_type"  | 
 | 204 | + | 
 | 205 | +  state_comment:  | 
 | 206 | +    description: >-  | 
 | 207 | +      Optional comment about why the file is in the current state, mainly for invalid state.  | 
 | 208 | +    type: string  | 
 | 209 | + | 
 | 210 | +workflow_properties:  | 
 | 211 | +  $ref: "#/ubiquitous_properties"  | 
 | 212 | + | 
 | 213 | +  workflow_link:  | 
 | 214 | +    description: >-  | 
 | 215 | +      Link to Github hash for the CWL workflow used.  | 
 | 216 | +    type: string  | 
 | 217 | + | 
 | 218 | +  workflow_version:  | 
 | 219 | +    description: >-  | 
 | 220 | +      Major version for a GDC workflow.  | 
 | 221 | +    type: string  | 
 | 222 | + | 
 | 223 | +  workflow_start_datetime:  | 
 | 224 | +    $ref: "#/datetime"  | 
 | 225 | + | 
 | 226 | +  workflow_end_datetime:  | 
 | 227 | +    $ref: "#/datetime"  | 
 | 228 | + | 
 | 229 | +ubiquitous_properties:  | 
 | 230 | +  type:  | 
 | 231 | +    type: string  | 
 | 232 | + | 
 | 233 | +  id:  | 
 | 234 | +    $ref: "#/uuid"  | 
 | 235 | + | 
 | 236 | +  submitter_id:  | 
 | 237 | +    description: >-  | 
 | 238 | +      A project-specific identifier for a node. This property is the calling card/nickname/alias  | 
 | 239 | +      for a unit of submission. It can be used in place of the uuid for identifying  | 
 | 240 | +      or recalling a node.  | 
 | 241 | +    type: string  | 
 | 242 | + | 
 | 243 | +  batch_id:  | 
 | 244 | +    description: >-  | 
 | 245 | +      GDC submission batch indicator. It is unique within the context of a project.  | 
 | 246 | +    type: integer  | 
 | 247 | + | 
 | 248 | +  state:  | 
 | 249 | +    $ref: "#/state"  | 
 | 250 | + | 
 | 251 | +  project_id:  | 
 | 252 | +    $ref: "#/project_id"  | 
 | 253 | + | 
 | 254 | +  created_datetime:  | 
 | 255 | +    $ref: "#/datetime"  | 
 | 256 | + | 
 | 257 | +  updated_datetime:  | 
 | 258 | +    $ref: "#/datetime"  | 
0 commit comments