Commit 76236664 authored by gautamd's avatar gautamd Committed by ruiyue
Browse files

Update TS28318__DSORecovery.yaml

parent 4af3ea30
Loading
Loading
Loading
Loading
+20 −64
Original line number Diff line number Diff line
@@ -14,44 +14,16 @@ components:
  schemas:
  
#-------- Definition of types-----------------------------------------------------
    DsoInterventionInfo:
    EnergyServiceLocation:
      type: object
      properties:
        dsoFeederRestoreTime:
          $ref: 'TS28623_ComDefs.yaml#/components/schemas/DateTime'
        dsoRequiredInterventionDuration:
          type: integer
        isDsoPriorityRecoveryLocation:
          type: boolean
    ServiceRestoreInfo:
      type: object
      properties:
        dsoRestoreTimeActual:
          $ref: 'TS28623_ComDefs.yaml#/components/schemas/DateTime'
        isDsoRestoreComplete:
          type: boolean
    ServiceLocationIdentifier:
      type: object
      properties:
        geoCoordinate:
          $ref: 'TS28623_ComDefs.yaml#/components/schemas/GeoCoordinate'
        energySupplyId:
        CGI:
          type: string
    UpsInfo:
      type: object
      properties:
        isUpsAvailable:
          type: boolean
        totalUpsBackupDuration:
          type: integer
        remainingUpsBackupDuration:
          type: integer
        baseStationId:
        energySupplyId:
          type: string




#-------- Definition of concrete IOCs --------------------------------------------
    MnS:
      oneOf:
@@ -72,42 +44,31 @@ components:
          properties:
            Subnetwork:
              $ref: '#/components/schemas/SubNetwork-Multiple'
            DsoRapidRecovery:
              $ref: '#/components/schemas/DsoRapidRecovery-Multiple'
            OutageAndRecoveryInfo:
              $ref: '#/components/schemas/OutageAndRecoveryInfo-Multiple'
        - $ref: 'TS28623_GenericNrm.yaml#/components/schemas/SubNetwork-ncO'

    DsoRapidRecovery-Single:
    OutageAndRecoveryInfo-Single:
      allOf:
        - $ref: 'TS28623_GenericNrm.yaml#/components/schemas/Top'
        - type: object
          properties:
            dsoOutStartTime:
            outageStartTime:
              $ref: 'TS28623_ComDefs.yaml#/components/schemas/DateTime'
            dsoRestoreTimeExpected:
            expectedOutageEndTime:
              $ref: 'TS28623_ComDefs.yaml#/components/schemas/DateTime'
            dsoRapidInterventionInfo:
              $ref: '#/components/schemas/DsoInterventionInfo'
            dsoServiceRestoreInfo:
              $ref: '#/components/schemas/ServiceRestoreInfo'
            dsoRapidRecoveryLocation:
              $ref: '#/components/schemas/ServiceLocationIdentifier'
            upsInfo:
              $ref: '#/components/schemas/UpsInfo'       
        - type: object
          properties:
            MnoRapidInterventionInfo:
              $ref: '#/components/schemas/MnoRapidInterventionInfo-Multiple'
    MnoRapidInterventionInfo-Single:
      allOf:
        - $ref: 'TS28623_GenericNrm.yaml#/components/schemas/Top'
        - type: object
          properties:
            dsoRapidInterventionTime:
              $ref: 'TS28623_ComDefs.yaml#/components/schemas/DateTime'
            dsoRapidInterventionDuration:
              type: integer
            mnoInterventionTime:
              $ref: 'TS28623_ComDefs.yaml#/components/schemas/DateTime'
            mnoInterventionDuration:
            dsoRapidInterventionDuration:
              type: integer
            isMnoInterventionPossible:
              type: boolean
            mnoMaxServiceDuration:
              type: integer
            affectedArea:
              $ref: '#/components/schemas/EnergyServiceLocation'



@@ -117,14 +78,10 @@ components:
      type: array
      items:
        $ref: '#/components/schemas/SubNetwork-Single'
    DsoRapidRecovery-Multiple:
      type: array
      items:
        $ref: '#/components/schemas/DsoRapidRecovery-Single'
    MnoRapidInterventionInfo-Multiple:
    OutageAndRecoveryInfo-Multiple:
      type: array
      items:
        $ref: '#/components/schemas/MnoRapidInterventionInfo-Single'
        $ref: '#/components/schemas/OutageAndRecoveryInfo-Single'
        
#--------------------------------- Definition ------------------------------------                          

@@ -132,5 +89,4 @@ components:
      oneOf:
        - $ref: '#/components/schemas/MnS'
        - $ref: '#/components/schemas/SubNetwork-Single'
        - $ref: '#/components/schemas/DsoRapidRecovery-Single'
        - $ref: '#/components/schemas/MnoRapidInterventionInfo-Single'
        - $ref: '#/components/schemas/OutageAndRecoveryInfo-Single'