From c1e58285d85d8f37dac56f8c4868ded3b76de65a Mon Sep 17 00:00:00 2001 From: Giacomo Bernini Date: Thu, 17 Sep 2020 17:46:26 +0200 Subject: [PATCH] updates according to NFVSOL(20)000652r2_SOL012ed331 --- .../PolicyManagement/PolicyManagement.yaml | 20 +++++++++++++------ src/SOL012/components/SOL012_schemas.yaml | 9 +++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/SOL012/PolicyManagement/PolicyManagement.yaml b/src/SOL012/PolicyManagement/PolicyManagement.yaml index bd2e517..b43a7ab 100644 --- a/src/SOL012/PolicyManagement/PolicyManagement.yaml +++ b/src/SOL012/PolicyManagement/PolicyManagement.yaml @@ -628,6 +628,10 @@ components: description: > Status of the policy on whether it is activated or deactivated. $ref: "../components/SOL012_schemas.yaml#/components/schemas/ActivationStatus" + transferStatus: + description: > + Status of the policy on whether the content of the policy has been transferred. + $ref: "../components/SOL012_schemas.yaml#/components/schemas/TransferStatus" associations: description: > Identifiers of the entities that the PF manages and to which the policy associates to. @@ -666,6 +670,7 @@ components: - name - policy - activationStatus + - transferStatus - _links PolicySubscriptionRequest: @@ -917,10 +922,13 @@ components: Shall be returned upon the following error: The operation cannot be executed currently, due to a conflict with the state of the resource. - Typically, this is due to the fact that no version of the policy has been transferred; that activating a - policy in ACTIVATED state; that deactivating a policy in DEACTIVATED state. - The response body shall contain a ProblemDetails structure, in which the "detail" attribute shall convey - more information about the error. + Typical reasons are attempts to: + • modify a policy in CREATED state; + • activate a policy in ACTIVATED state; + • deactivate a policy in DEACTIVATED state. + The response body shall contain a ProblemDetails structure, in which the "detail" attribute shall + convey more information about the error. + headers: WWW-Authenticate: description: > @@ -1024,8 +1032,8 @@ components: target resource or is not willing to disclose that one exists. The general cause for this error and its handling is specified in clause 6.4 of ETSI GS NFV-SOL 013 [6], including rules for the presence of the response body. - Specifically in case of this resource, the response code 404 shall also be returned if no version of the - policy has been transferred. + Specifically in case of this resource, the response code 404 shall also be returned if the policy is in + CREATED state. In this case, the response body shall be present, and shall contain a ProblemDetails structure, in which the "detail" attribute shall convey more information about the error. headers: diff --git a/src/SOL012/components/SOL012_schemas.yaml b/src/SOL012/components/SOL012_schemas.yaml index 941c6da..7749c15 100644 --- a/src/SOL012/components/SOL012_schemas.yaml +++ b/src/SOL012/components/SOL012_schemas.yaml @@ -291,6 +291,15 @@ components: - ACTIVATED - DEACTIVATED + TransferStatus: + description: > + The enumeration TransferStatus shall comply with the provisions defined in table 5.6.4.4-1. + It indicates the transfer status of a policy + type: string + enum: + - CREATED + - TRANSFERRED + PolicyModifications: description: > This type represents the parameters for modifying a policy. It shall comply with the provisions -- GitLab