# Schema: ProjectStorageCollectionModel
---
allOf:
  - $ref: './collection_model.yml'
  - type: object
    required:
      - _links
      - _embedded
    properties:
      _links:
        type: object
        required:
          - self
        properties:
          self:
            allOf:
              - $ref: "./link.yml"
              - description: |-
                  This file links collection
                  
                  **Resource**: ProjectStorageCollectionModel
      _embedded:
        type: object
        required:
          - elements
        properties:
          elements:
            type: array
            items:
              $ref: './project_storage_model.yml'

example:
  _type: Collection
  total: 2
  count: 2
  _links:
    self:
      href: '/api/v3/project_storages?filters=%5B%7B%22storage%22%3A%7B%22operator%22%3A%22%3D%22%2C%22values%22%3A%5B%2281%22%5D%7D%7D%5D'
  _embedded:
    elements:
      - id: 1337
        _type: ProjectStorage
        _hint: project storage resource shortened for brevity
      - id: 1338
        _type: ProjectStorage
        _hint: File Link resource shortened for brevity

