github.com/jbking/gohan@v0.0.0-20151217002006-b41ccf1c2a96/etc/example_schema.yaml (about)

     1  policies:
     2  - action: '*'
     3    effect: allow
     4    id: admin_statement
     5    principal: admin
     6    resource:
     7      path: .*
     8  schemas:
     9  - description: Network
    10    id: network
    11    plural: networks
    12    prefix: /v2.0
    13    schema:
    14      properties:
    15        description:
    16          default: ""
    17          description: Description
    18          permission:
    19          - create
    20          - update
    21          title: Description
    22          type: string
    23          unique: false
    24        id:
    25          description: ID
    26          permission:
    27          - create
    28          title: ID
    29          type: string
    30          unique: false
    31        name:
    32          description: Name
    33          permission:
    34          - create
    35          - update
    36          title: Name
    37          type: string
    38          unique: false
    39        tenant_id:
    40          description: Tenant ID
    41          permission:
    42          - create
    43          title: Tenant
    44          type: string
    45          unique: false
    46      propertiesOrder:
    47      - id
    48      - name
    49      - description
    50      - tenant_id
    51      type: object
    52    singular: network
    53    title: Network
    54  - description: Subnet
    55    id: subnet
    56    parent: network
    57    plural: subnets
    58    prefix: /v2.0
    59    schema:
    60      properties:
    61        cidr:
    62          description: CIDR
    63          permission:
    64          - create
    65          title: Cidr
    66          type: string
    67          unique: false
    68        description:
    69          default: ""
    70          description: Description
    71          permission:
    72          - create
    73          - update
    74          title: Description
    75          type: string
    76          unique: false
    77        id:
    78          description: ID
    79          permission:
    80          - create
    81          title: ID
    82          type: string
    83          unique: false
    84        name:
    85          default: ""
    86          description: Name
    87          permission:
    88          - create
    89          - update
    90          title: Name
    91          type:
    92          - string
    93          - "null"
    94          unique: false
    95        tenant_id:
    96          description: Tenant ID
    97          permission:
    98          - create
    99          title: TenantID
   100          type: string
   101          unique: false
   102      propertiesOrder:
   103      - id
   104      - name
   105      - tenant_id
   106      - cidr
   107      - description
   108      required:
   109      - cidr
   110      type: object
   111    singular: subnet
   112    title: subnet
   113  - description: server
   114    id: server
   115    plural: servers
   116    prefix: /v2.0
   117    schema:
   118      properties:
   119        id:
   120          description: ID
   121          format: uuid
   122          permission:
   123          - create
   124          title: ID
   125          type: string
   126          unique: true
   127        name:
   128          description: Name
   129          permission:
   130          - create
   131          - update
   132          title: Name
   133          type: string
   134          unique: false
   135        network_id:
   136          description: Network ID
   137          permission:
   138          - create
   139          relation: network
   140          relation_property: network
   141          title: network id
   142          type: string
   143          unique: false
   144        status:
   145          description: status
   146          permission: []
   147          title: Status
   148          type: string
   149          unique: false
   150        tenant_id:
   151          description: TenantID
   152          permission:
   153          - create
   154          title: TenantID
   155          type: string
   156          unique: false
   157      propertiesOrder:
   158      - id
   159      - name
   160      - network_id
   161      - status
   162      - tenant_id
   163      type: object
   164    singular: server
   165    title: Server