github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/db/test_data/conv_in.yaml (about)

     1  extensions:
     2  - code: console.log(Object.keys(gohan_context));
     3    code_type: javascript
     4    url: ""
     5    event: list
     6    id: test
     7    path: /v2.0/.*
     8  networks:
     9  - description: test
    10    id: f55241f8-bccd-4d35-9f23-16d167c127b6
    11    name: networkRed
    12    providor_networks:
    13      segmentation_type: vlan
    14      segmentation_id: 10
    15    route_targets:
    16    - 1000:10000
    17    - 2000:20000
    18    tenant_id: admin
    19  - description: test
    20    id: b485c80c-54c0-4067-9310-3eb4b299f0c1
    21    name: networkBlue
    22    providor_networks:
    23      segmentation_type: vlan
    24      segmentation_id: 12
    25    route_targets:
    26    - 1001:10001
    27    tenant_id: admin
    28  policies:
    29  - action: '*'
    30    effect: allow
    31    id: admin_statement
    32    principal: admin
    33    resource:
    34      path: .*
    35  - action: '*'
    36    condition:
    37    - is_owner
    38    effect: allow
    39    id: member_statement
    40    principal: Member
    41    resource:
    42      path: /v2.0/network/[^/]+/?$
    43      properties:
    44      - id
    45      - description
    46      - name
    47  - action: '*'
    48    condition:
    49    - is_owner
    50    effect: allow
    51    id: member_statement2
    52    principal: Member
    53    resource:
    54      path: /v2.0/networks/?$
    55      properties:
    56      - id
    57      - description
    58      - name
    59  schemas:
    60  - id: network
    61    description: The network schema
    62    plural: networks
    63    prefix: /v2.0
    64    singular: network
    65    namespace: ""
    66    parent: ""
    67    metadata: {}
    68    schema:
    69      properties:
    70        description:
    71          description: The description
    72          default: ""
    73          permission:
    74          - create
    75          - update
    76          title: Description
    77          type: string
    78          unique: false
    79        id:
    80          description: The ID
    81          format: uuid
    82          permission:
    83          - create
    84          title: ID
    85          type: string
    86          unique: false
    87        name:
    88          description: The name
    89          permission:
    90          - create
    91          - update
    92          title: Name
    93          type: string
    94          unique: false
    95        providor_networks:
    96          default: {}
    97          description: The providor networks
    98          permission:
    99          - create
   100          - update
   101          properties:
   102            segmentation_type:
   103              enum:
   104              - vlan
   105              - vxlan
   106              - gre
   107              type: string
   108            segmentation_id:
   109              minimum: 0
   110              type: integer
   111          title: Provider Networks
   112          type: object
   113          unique: false
   114        route_targets:
   115          default: []
   116          description: The route targets
   117          items:
   118            type: string
   119          permission:
   120          - create
   121          - update
   122          title: RouteTargets
   123          type: array
   124          unique: false
   125        tenant_id:
   126          description: The tenant ID
   127          format: uuid
   128          permission:
   129          - create
   130          title: Tenant
   131          type: string
   132          unique: false
   133      propertiesOrder:
   134      - id
   135      - name
   136      - description
   137      - providor_networks
   138      - route_targets
   139      - tenant_id
   140      type: object
   141    title: Network
   142  - id: subnet
   143    description: The subnet schema
   144    parent: network
   145    plural: subnets
   146    singular: subnet
   147    prefix: /v2.0
   148    namespace: ""
   149    metadata: {}
   150    schema:
   151      properties:
   152        cidr:
   153          description: The CIDR
   154          permission:
   155          - create
   156          title: Cidr
   157          type: string
   158          unique: false
   159        description:
   160          default: ""
   161          description: The description
   162          permission:
   163          - create
   164          - update
   165          title: Description
   166          type: string
   167          unique: false
   168        id:
   169          description: The ID
   170          format: uuid
   171          permission:
   172          - create
   173          title: ID
   174          type: string
   175          unique: false
   176        name:
   177          description: The name
   178          permission:
   179          - create
   180          - update
   181          title: Name
   182          type: string
   183          unique: false
   184        tenant_id:
   185          description: The tenant ID
   186          format: uuid
   187          permission:
   188          - create
   189          title: TenantID
   190          type: string
   191          unique: false
   192      propertiesOrder:
   193      - cidr
   194      - description
   195      - id
   196      - name
   197      - tenant_id
   198      type: object
   199    title: Subnet
   200  subnets:
   201  - cidr: 10.10.10.0/24
   202    id: 68b76a6f-9d26-4ce7-903d-f0006ddb3e6d
   203    name: subnetRedA
   204    description: A crimson subnet
   205    network_id: f55241f8-bccd-4d35-9f23-16d167c127b6
   206    tenant_id: admin
   207  - cidr: 10.10.12.0/24
   208    id: 9a7e0f57-ca38-4714-97d5-2c580c851e1c
   209    name: subnetRedB
   210    description: The crimson subnet
   211    network_id: f55241f8-bccd-4d35-9f23-16d167c127b6
   212    tenant_id: admin
   213  - cidr: 10.10.10.0/24
   214    id: a67d69b6-8c8c-4447-9ecc-28933a86baad
   215    name: subnetBlueA
   216    description: A lazure subnet
   217    network_id: b485c80c-54c0-4067-9310-3eb4b299f0c1
   218    tenant_id: admin