Commit 42ff55c8 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

fix nfvi capacity

parent c7ed2cf2
Loading
Loading
Loading
Loading
Loading
+0 −79
Original line number Original line Diff line number Diff line
@@ -279,20 +279,6 @@ components:
      schema:
      schema:
        type: string
        type: string


    SubscriptionId:
      name: subscriptionId
      in: path
      description: |
        Identifier of the subscription.
        This identifier can be retrieved from the resource referenced by the "Location" HTTP header in the response to a
        POST request creating a new subscription resource. It can also be retrieved from the "id" attribute in the payload
        body of that response.
      required: true
      style: simple
      explode: false
      schema:
        type: string

  requestBodies:
  requestBodies:
    NfviCapacityThresholdRequest:
    NfviCapacityThresholdRequest:
      description: |
      description: |
@@ -313,16 +299,6 @@ components:
            $ref: ./definitions/NFVICapacityInformation_def.yaml#/components/schemas/CapacityThresholdModifications
            $ref: ./definitions/NFVICapacityInformation_def.yaml#/components/schemas/CapacityThresholdModifications
      required: true
      required: true


    CapacityShortageNotificationRequest:
      description: |
        Notification about the available NFVI capacity having crossed below a threshold value or having re-covered from
        a capacity shortage.
      content:
        application/json:
          schema:
            $ref: ./definitions/NFVICapacityInformation_def.yaml#/components/schemas/CapacityShortageNotification
      required: true

  responses:
  responses:
    NfviCapacityInfos.Get:
    NfviCapacityInfos.Get:
      description: |
      description: |
@@ -553,58 +529,3 @@ components:
          schema:
          schema:
            type: string
            type: string
      content: {}
      content: {}
 No newline at end of file

    CapacityShortageNotification.Post:
      description: |
        Shall be returned when the notification has been delivered successfully.
      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: {}

    CapacityShortageNotification.Get:
      description: |
        Shall be returned to indicate that the notification endpoint has been tested successfully.
        The response body shall be empty.
      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: {}
 No newline at end of file
+0 −74
Original line number Original line Diff line number Diff line
@@ -119,80 +119,6 @@ components:
            This attribute shall only be present if the API consumer requires authorization of notifications.
            This attribute shall only be present if the API consumer requires authorization of notifications.
          $ref: ../../definitions/SOL005_def.yaml#/definitions/SubscriptionAuthentication
          $ref: ../../definitions/SOL005_def.yaml#/definitions/SubscriptionAuthentication


    NfviCapacityInfoSubscription:
      type: object
      description: |
        This type represents a subscription. It shall comply with the provisions defined in Table 10.5.2.9-1.
      required:
        - id
        - callbackUri
        - _links
      properties:
        id:
          description: |
            Identifier that identifies the subscription.
          $ref: ../../definitions/SOL005_def.yaml#/definitions/Identifier
        filter:
          description: |
            Filter settings for this subscription, to define the subset of all notifications this subscription relates to.
            A particular notification is sent to the subscriber if the filter matches, or if there is no filter.
          $ref: '#/components/schemas/NfviCapacityInfoNotificationsFilter'
        callbackUri:
          description: |
            The URI of the endpoint to send the notification to.
          $ref: ../../definitions/SOL005_def.yaml#/definitions/Uri
        _links:
          type: object
          description: |
            Links to resources related to this resource.
          required:
            - self
          properties:
            self:
              description: |
                URI of this resource.
              $ref: ../../definitions/SOL005_def.yaml#/definitions/Link

    NfviCapacityInfoSubscriptionRequest:
      type: object
      description: |
        This type represents a subscription request. It shall comply with the provisions defined in Table 10.5.2.2-1.
      required:
        - callbackUri
      properties:
        filter:
          description: |
            Filter settings for this subscription, to define the subset of all notifications this subscription relates to.
            A particular notification is sent to the subscriber if the filter matches, or if there is no filter.
          $ref: '#/components/schemas/NfviCapacityInfoNotificationsFilter'
        callbackUri:
          description: |
            The URI of the endpoint to send the notification to.
          $ref: ../../definitions/SOL005_def.yaml#/definitions/Uri
        authentication:
          description: |
            Authentication parameters to configure the use of authorization when sending notifications corresponding to
            this subscription, as defined in clause 8.3.4 of ETSI GS NFV SOL 013.
            This attribute shall only be present if the subscriber requires authorization of notifications.
          $ref: ../../definitions/SOL005_def.yaml#/definitions/SubscriptionAuthentication

    NfviCapacityInfoNotificationsFilter:
      type: object
      description: |
        This type represents a filter that can be used to subscribe for notifications related to NFVI capacity information events.
        It shall comply with the provisions defined in Table 10.5.3.2-1.
      properties:
        notificationTypes:
          description: |
            Match particular notification types.
            Permitted values:
            -	CapacityShortageNotification
          type: array
          items:
            type: string
            enum:
              - CapacityShortageNotification

    CapacityThresholdCriteria:
    CapacityThresholdCriteria:
      type: object
      type: object
      description: |
      description: |