X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-ncmp-rest%2Fdocs%2Fopenapi%2Fcomponents.yaml;h=3bee633900c49785a2967d27ee7895b992d1647b;hb=c08b6d25f232907c51d84f0eb31ca8b977469e02;hp=243de62102c14e0cf992e30a296eb4be9b6bb652;hpb=0af82141cb75a04a16248e17d4e915a580e82300;p=cps.git diff --git a/cps-ncmp-rest/docs/openapi/components.yaml b/cps-ncmp-rest/docs/openapi/components.yaml index 243de6210..3bee63390 100644 --- a/cps-ncmp-rest/docs/openapi/components.yaml +++ b/cps-ncmp-rest/docs/openapi/components.yaml @@ -87,6 +87,8 @@ components: items: type: string example: [ my-cm-handle1, my-cm-handle2, my-cm-handle3 ] + upgradedCmHandles: + $ref: '#/components/schemas/UpgradedCmHandles' DmiPluginRegistrationErrorResponse: type: object properties: @@ -102,6 +104,10 @@ components: type: array items: $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' + failedUpgradeCmHandles: + type: array + items: + $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' CmHandlerRegistrationErrorResponse: type: object properties: @@ -130,11 +136,33 @@ components: moduleSetTag: type: string example: "my-module-set-tag" + trustLevel: + type: string + enum: [COMPLETE, NONE] + example: "COMPLETE" + alternateId: + type: string + example: "my-alternate-id" RestCmHandleProperties: type: object additionalProperties: type: string example: my-property + #Module upgrade schema + UpgradedCmHandles: + required: + - cmHandles + type: object + properties: + cmHandles: + type: array + items: + type: string + example: [ my-cm-handle1, my-cm-handle2, my-cm-handle3 ] + moduleSetTag: + type: string + default: "" + example: 'my-module-set-tag' #Response Schemas RestModuleReference: @@ -222,13 +250,15 @@ components: $ref: '#/components/schemas/CmHandlePublicProperties' state: $ref: '#/components/schemas/CmHandleCompositeState' + trustLevel: + $ref: '#/components/schemas/CmHandleTrustLevel' CmHandlePublicProperties: - type: array + type: object items: type: object additionalProperties: type: string - example: Book Type + example: 'Book Type' CmHandleCompositeState: type: object properties: @@ -245,6 +275,10 @@ components: example: false dataSyncState: $ref: '#/components/schemas/dataStores' + CmHandleTrustLevel: + type: string + description: Current trust level of the relevant CM handle ID. + example: COMPLETE lock-reason: type: object