Commit 7c030fbd authored by gautamd's avatar gautamd
Browse files

Update EdgeNRM.yaml

parent bff6b3ad
Loading
Loading
Loading
Loading
+82 −16
Original line number Diff line number Diff line
P.1	General 
This annex contains the OpenAPI definition of the Edge NRM in YAML format.
The Information Service (IS) of the Edge NRM is defined in clause 6.
Mapping rules to produce the OpenAPI definition based on the IS are defined in TS 32.160 [10].
P.2	Solution Set (SS) definitions
P.2.1	OpenAPI document "edgeNrm.yml"

openapi: 3.0.1
info:
  title: 3GPP Edge NRM
@@ -49,21 +56,61 @@ components:
            attributes:
              allOf:
                - $ref: 'genericNrm.yaml#/components/schemas/SubNetwork-Attr'
        - $ref: 'genericNrm.yaml#/components/schemas/SubNetwork-ncO'
        - type: object
          properties:
            Subnetwork:
              $ref: 'genericNrm.yaml#/components/schemas/SubNetwork-Multiple'
            ECSFunction:
              $ref: '#/components/schemas/ECSFunction-Multiple'
            EdgeDataNetwork:
              $ref: '#/components/schemas/EdgeDataNetwork-Multiple'
        - $ref: 'genericNrm.yaml#/components/schemas/SubNetwork-ncO'

    EdgeDataNetwork-Single:
      allOf:
        - $ref: 'genericNrm.yaml#/components/schemas/Top'
        - type: object
          properties:
            EASFunction:
              $ref: '#/components/schemas/EASFunction-Multiple'
            EESFunction:
              $ref: '#/components/schemas/EESFunction-Multiple'
   
    EASFunction-Single:
      allOf:
        - $ref: 'genericNrm.yaml#/components/schemas/Top'
        - type: object
          properties:
            attributes:
              allOf:
                - $ref: 'genericNrm.yaml#/components/schemas/ManagedFunction-Attr'
                - type: object
                  properties:
                    eASIdentifier:
                      type: string
            eASRequirements:
                    eASRequirementsRef:
                      $ref: '#/components/schemas/EASRequirements'
        - $ref: 'genericNrm.yaml#/components/schemas/SubNetwork-ncO'
    EESFunction-Single:
      allOf:
        - $ref: 'genericNrm.yaml#/components/schemas/Top'
        - type: object
          properties:
            attributes:
              allOf:
                - $ref: 'genericNrm.yaml#/components/schemas/ManagedFunction-Attr'
                - type: object
                  properties:
                    eESIdentifier:
                      type: string
                - $ref: 'genericNrm.yaml#/components/schemas/SubNetwork-ncO'

    ECSFunction-Single:
      allOf:
        - $ref: 'genericNrm.yaml#/components/schemas/Top'
        - type: object
          properties:
            attributes:
              allOf:
                - $ref: 'genericNrm.yaml#/components/schemas/ManagedFunction-Attr'
                - type: object
@@ -74,6 +121,8 @@ components:
                      type: string
                    eDNConnectionInfo:
                      $ref: '#/components/schemas/EDNConnectionInfo'
        - $ref: 'genericNrm.yaml#/components/schemas/SubNetwork-ncO'

    EASRequirements:
      allOf:
        - $ref: 'genericNrm.yaml#/components/schemas/Top'
@@ -89,7 +138,6 @@ components:
      type: array
      items:
        $ref: '#/components/schemas/SubNetwork-Single'
    
    EASFunction-Multiple:
      type: array
      items:
@@ -98,3 +146,21 @@ components:
      type: array
      items:
        $ref: '#/components/schemas/ECSFunction-Single'
    EESFunction-Multiple:
      type: array
      items:
        $ref: '#/components/schemas/EESFunction-Single'
    EdgeDataNetwork-Multiple:
      type: array
      items:
        $ref: '#/components/schemas/EdgeDataNetwork-Single'
        
#--------------------------------- Definition ------------------------------------                          

    resources-edgeNrm:
      oneOf:
        - $ref: '#/components/schemas/SubNetwork-Single'
        - $ref: '#/components/schemas/EASFunction-Single'
        - $ref: '#/components/schemas/ECSFunction-Single'
        - $ref: '#/components/schemas/EESFunction-Single'
        - $ref: '#/components/schemas/EdgeDataNetwork-Single'