Commit 86368200 authored by jinghh's avatar jinghh
Browse files

Edit TS29369_Nadm_Sec.yaml

parent 1dde5264
Loading
Loading
Loading
Loading
Loading
+101 −2
Original line number Diff line number Diff line
@@ -235,6 +235,60 @@ paths:
          $ref: 'TS29571_CommonData.yaml#/components/responses/503'
        default:
          description: Unexpected error
  /update-tid:
    post:
      summary: Update Temporary ID (T-ID) in ADM
      operationId: updateTid
      tags:
        - Update Tid
      security:
        - {}
        - oAuth2ClientCredentials:
          - nadm-sec
        - oAuth2ClientCredentials:
          - nadm-sec
          - nadm-sec:update-tid:invoke
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTidRequest'
      responses:
        '200':
          description: Successful update of T-ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateTidResponse'
        '400':
          $ref: 'TS29571_CommonData.yaml#/components/responses/400'
        '401':
          $ref: 'TS29571_CommonData.yaml#/components/responses/401'
        '403':
          $ref: 'TS29571_CommonData.yaml#/components/responses/403'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: 'TS29571_CommonData.yaml#/components/schemas/ProblemDetails'
        '411':
          $ref: 'TS29571_CommonData.yaml#/components/responses/411'
        '413':
          $ref: 'TS29571_CommonData.yaml#/components/responses/413'
        '415':
          $ref: 'TS29571_CommonData.yaml#/components/responses/415'
        '429':
          $ref: 'TS29571_CommonData.yaml#/components/responses/429'
        '500':
          $ref: 'TS29571_CommonData.yaml#/components/responses/500'
        '502':
          $ref: 'TS29571_CommonData.yaml#/components/responses/502'
        '503':
          $ref: 'TS29571_CommonData.yaml#/components/responses/503'
        default:
          description: Unexpected error
components:
  securitySchemes:
    oauth2ClientCredentials:
@@ -248,6 +302,7 @@ components:
            nadm-sec:get-authentication:invoke: Access to retrieve Authentication Data
            nadm-sec:get-session-key:invoke: Access to retrieve a Session Key
            nadm-sec:get-tid:invoke: Access to retrieve a T-ID
            nadm-sec:update-tid:invoke: Access to update a T-ID in ADM
  schemas:
#
# STRUCTURED TYPES
@@ -363,13 +418,49 @@ components:
      description: Contains T-ID Handling Info and T-ID.
      properties:
        tidHandInfo:
          $ref: 'TS29369_Nadm_DM.yaml#/components/schemas/TidHandlingInformation'
          $ref: '#/components/schemas/TidHandlingInformation'
        tid:
          $ref: 'TS29369_Nadm_DM.yaml#/components/schemas/Tid'
          $ref: '#/components/schemas/Tid'
      required:
      - tid
      - tidHandInfo

    TidHandlingInformation:
      description: Contains the T-ID handling information
      type: object
      required:
        - tidType
      properties:
        tidType:
          $ref: '#/components/schemas/TidType'
        tidTypeUpdateInd:
          type: boolean

    Tid:
      description: AIoT Device Temporary Identifier (T-ID)
      type: string
      pattern: '^[A-Fa-f0-9]{32}$'

    UpdateTidRequest:
      type: object
      properties:
        aiotDevPermId:
          $ref: 'TS29571_CommonData.yaml#/components/schemas/AiotDevPermId'
        randN:
          $ref: 'TS29503_Nudm_UEAU.yaml#/components/schemas/Rand'
      required:
      - aiotDevPermId
      - randN

    UpdateTidResponse:
      type: object
      description: Contains updated T-ID.
      properties:
        tid:
          $ref: '#/components/schemas/Tid'
      required:
      - tid

#
# SIMPLE TYPES
#
@@ -383,4 +474,12 @@ components:
#
# ENUMS
#
    TidType:
      description: Indicates the type of T-ID.
      anyOf:
        - type: string
          enum:
            - STORED
            - CONCEALED
        - type: string