github.com/optim-corp/cios-golang-sdk@v0.5.1/openapi/components/filestorage-component.openapi.yml (about)

     1  openapi: 3.0.3
     2  info:
     3    title: File Storage Component
     4    description: Component
     5    version: 1.0.0
     6  
     7  paths: {}
     8  
     9  components:
    10    schemas:
    11      MultipleBucket:
    12        type: object
    13        properties:
    14          total:
    15            type: integer
    16            format: int64
    17            minimum: 0
    18          buckets:
    19            type: array
    20            items:
    21              $ref: '#/components/schemas/Bucket'
    22        required:
    23          - total
    24          - buckets
    25      SingleBucket:
    26        type: object
    27        properties:
    28          bucket:
    29            $ref: '#/components/schemas/Bucket'
    30        required:
    31          - bucket
    32      Bucket:
    33        type: object
    34        properties:
    35          id:
    36            type: string
    37          resource_owner_id:
    38            type: string
    39          created_at:
    40            type: string
    41          created_by:
    42            $ref: '#/components/schemas/CreatedBy'
    43          updated_at:
    44            type: string
    45          updated_by:
    46            $ref: '#/components/schemas/UpdatedBy'
    47          name:
    48            type: string
    49          files:
    50            type: object
    51            properties:
    52              total_count:
    53                type: string
    54              total_size:
    55                type: string
    56        required:
    57          - id
    58          - resource_owner_id
    59          - name
    60      BucketRequest:
    61        type: object
    62        properties:
    63          resource_owner_id:
    64            type: string
    65            format: uuid
    66          name:
    67            type: string
    68        required:
    69          - name
    70          - resource_owner_id
    71      BucketEditBody:
    72        type: object
    73        properties:
    74          dest_bucket_id:
    75            type: string
    76          parent_node_id:
    77            type: string
    78      BucketName:
    79        type: object
    80        properties:
    81          name:
    82            type: string
    83        required:
    84          - name
    85      NodeName:
    86        type: object
    87        properties:
    88          name:
    89            type: string
    90        required:
    91          - name
    92  
    93      MultipleNode:
    94        type: object
    95        properties:
    96          total:
    97            type: integer
    98            format: int64
    99          nodes:
   100            type: array
   101            items:
   102              $ref: '#/components/schemas/Node'
   103        required:
   104          - total
   105          - nodes
   106      SingleNode:
   107        type: object
   108        properties:
   109          node:
   110            $ref: '#/components/schemas/Node'
   111        required:
   112          - node
   113      Node:
   114        type: object
   115        properties:
   116          id:
   117            type: string
   118          created_at:
   119            type: string
   120          created_by:
   121            $ref: '#/components/schemas/CreatedBy'
   122          updated_at:
   123            type: string
   124          updated_by:
   125            $ref: '#/components/schemas/UpdatedBy'
   126          name:
   127            type: string
   128          parent_node_id:
   129            type: string
   130            nullable: true
   131          key:
   132            type: string
   133          is_directory:
   134            type: boolean
   135          file:
   136            type: object
   137            properties:
   138              size:
   139                type: string
   140              checksum:
   141                type: string
   142        required:
   143          - id
   144          - key
   145          - name
   146          - created_at
   147          - updated_at
   148          - is_directory
   149      CreatedBy:
   150        type: object
   151        properties:
   152          user:
   153            type: object
   154            properties:
   155              id:
   156                type: string
   157          client:
   158            type: object
   159            properties:
   160              client_id:
   161                type: string
   162              is_device:
   163                type: boolean
   164      UpdatedBy:
   165        type: object
   166        properties:
   167          user:
   168            type: object
   169            properties:
   170              id:
   171                type: string
   172          client:
   173            type: object
   174            properties:
   175              client_id:
   176                type: string
   177              is_device:
   178                type: boolean
   179      NodeRequest:
   180        type: object
   181        properties:
   182          name:
   183            type: string
   184          parent_node_id:
   185            type: string
   186        required:
   187          - name