Commit 8bb4ddd7 authored by Pietro Piscione's avatar Pietro Piscione
Browse files

SOL005_21 and some fixes

parent 47a7057f
Loading
Loading
Loading
Loading
Loading
+95 −0
Original line number Original line Diff line number Diff line
@@ -145,6 +145,58 @@ paths:
        "504":
        "504":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/504
          $ref: ../responses/SOL005_resp.yaml#/components/responses/504


  /nfvi_capacity_infos/ccm/{ccmId}:
    parameters:
      - $ref: '#/components/parameters/CcmId' 
      - $ref: ../components/SOL005_params.yaml#/components/parameters/Version
      - $ref: ../components/SOL005_params.yaml#/components/parameters/Authorization
    get:
      description: |
        This method shall follow the provisions specified in the tables 10.4.3a.3.2-1 and 10.4.3a.3.2-2 for 
        URI query parameters, request and response data structures, and response codes.

        NOTE: This identifier can be retrieved from the "ccmId" attribute in the CapacityShortageNotification. 
        It can also be retrieved from the "ccmId" attribute in the message content of the response.
      parameters:
        - in: query
          name: filter
          description: >
            Attribute-based filtering expression according to clause 5.2 of ETSI GS NFV-SOL 013. 
            The NFVO shall support receiving this parameter as part of the URI query string. 
            The OSS/BSS may supply this parameter. If the OSS/BSS does not supply a filter value 
            for the timeInterval attribute in the NfviCapacityInfo, a query of the current NFVI 
            capacity information available by the NFVO is requested. The following attribute names 
            in the NfviCapacityInfo shall be supported by the NFVO in the filter expression:
            - cisClusterId
            - timeInterval
            - resourceType
            - capacityMeasurementName
            - capacity values: {totalCapacity, allocatedCapacity, reservedCapacity, availableCapacity}
          schema:
            type: string
        - $ref: ../components/SOL005_params.yaml#/components/parameters/Accept
      responses:
        "200":
          $ref: '#/components/responses/CcmNfviCapacityInfo.Get.200'
        "400":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/400
        "401":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/401
        "403":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/403
        "404":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/404
        "405":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/405
        "406":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/406
        "500":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/500
        "503":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/503
        "504":
          $ref: ../responses/SOL005_resp.yaml#/components/responses/504

  /capacity_thresholds:
  /capacity_thresholds:
    parameters:
    parameters:
      - $ref: ../components/SOL005_params.yaml#/components/parameters/Version
      - $ref: ../components/SOL005_params.yaml#/components/parameters/Version
@@ -322,6 +374,17 @@ components:
      schema:
      schema:
        type: string
        type: string


    CcmId:
      name: ccmId
      in: path
      description: |
        Identifier of the CCM with associated NFVI capacity information. See note.
      required: true
      style: simple
      explode: false
      schema:
        type: string

    CapacityThresholdId:
    CapacityThresholdId:
      name: capacityThresholdId
      name: capacityThresholdId
      in: path
      in: path
@@ -425,6 +488,38 @@ components:
          schema:
          schema:
            $ref: ./definitions/NFVICapacityInformation_def.yaml#/components/schemas/NfviCapacityInfo
            $ref: ./definitions/NFVICapacityInformation_def.yaml#/components/schemas/NfviCapacityInfo



    CcmNfviCapacityInfo.Get.200:
      description: |
        Shall be returned when information of an individual CCM's NFVI capacity has been read successfully.
        The response body shall contain a representation of the NFVI capacity information, as defined in clause 10.5.2.4.
      headers:
        Version:
          description: |
            Version of the API used in the response.
          style: simple
          explode: false
          schema:
            type: string
        WWW-Authenticate:
          description: |
            Challenge if the corresponding HTTP request has not provided authorization, or error details if the
            corresponding HTTP request has provided an invalid authorization token.
          style: simple
          explode: false
          schema:
            type: string
        Content-Type:
          description: The MIME type of the body of the response.
          style: simple
          explode: false
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: ./definitions/NFVICapacityInformation_def.yaml#/components/schemas/NfviCapacityInfo

    CapacityThresholds.Get.200:
    CapacityThresholds.Get.200:
      description: |
      description: |
        Shall be returned when information about zero or more capacity thresholds has been queried successfully.
        Shall be returned when information about zero or more capacity thresholds has been queried successfully.
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ info:
  license:
  license:
    name: ETSI Forge copyright notice
    name: ETSI Forge copyright notice
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
  version: 1.12.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
  version: 1.13.0-impl:etsi.org:ETSI_NFV_OpenAPI:1


externalDocs:
externalDocs:
  description: ETSI GS NFV-SOL 005 V5.1.1
  description: ETSI GS NFV-SOL 005 V5.1.1
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ info:
  license:
  license:
    name: ETSI Forge copyright notice
    name: ETSI Forge copyright notice
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
  version: 1.12.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
  version: 1.14.0-impl:etsi.org:ETSI_NFV_OpenAPI:1


externalDocs:
externalDocs:
  description: ETSI GS NFV-SOL 005 V5.1.1
  description: ETSI GS NFV-SOL 005 V5.1.1
+1 −1
Original line number Original line Diff line number Diff line
@@ -14,7 +14,7 @@ info:
  license:
  license:
    name: ETSI Forge copyright notice
    name: ETSI Forge copyright notice
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
  version: 2.12.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
  version: 2.14.0-impl:etsi.org:ETSI_NFV_OpenAPI:1


externalDocs:
externalDocs:
  description: ETSI GS NFV-SOL 005 V5.1.1
  description: ETSI GS NFV-SOL 005 V5.1.1
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ info:
  license:
  license:
    name: ETSI Forge copyright notice
    name: ETSI Forge copyright notice
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
  version: 2.12.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
  version: 2.13.0-impl:etsi.org:ETSI_NFV_OpenAPI:1


externalDocs:
externalDocs:
  description: ETSI GS NFV-SOL 005 V5.1.1
  description: ETSI GS NFV-SOL 005 V5.1.1