From b64210a385b87dd18ade214b27e1955e997a7a19 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Thu, 29 Aug 2019 16:43:30 +0530 Subject: service-model-set-property updates Change-Id: Iaa2e99ab13c00166d69c42d79d46d83d8625f30a Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 --- .../service-model-set-property-moco.json | 145 +++++++++++++++++++++ .../service-model-set-property-sample.yaml | 10 ++ 2 files changed, 155 insertions(+) create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-sample.yaml (limited to 'products/onap-dublin/features/sdc/src/main/resources/open-cli-sample') diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-moco.json new file mode 100644 index 00000000..8c02a73b --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-moco.json @@ -0,0 +1,145 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/services/58620731-40a9-4f8e-95db-ef9fc478a705/resourceInstance/58620731-40a9-4f8e-95db-ef9fc478a705.b85dad49-bd5c-4036-8eb0-601778b9d6ff.vgwocompvtp/inputs", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-c6c02420-d49b-4432-a1e3-727987223c99", + "Content-Type" : "application/json" + }, + "json" : [ { + "constraints" : [ ], + "definition" : false, + "name" : "nf_type", + "parentUniqueId" : "b8f09d0e-dd33-46d1-bb49-434094bf632f", + "password" : false, + "required" : false, + "schema" : { + "property" : { } + }, + "toscaPresentation" : { + "ownerId" : "b8f09d0e-dd33-46d1-bb49-434094bf632f" + }, + "type" : "string", + "uniqueId" : "b8f09d0e-dd33-46d1-bb49-434094bf632f.nf_type", + "value" : "hwvnfmdriver" + } ] + }, + "response" : { + "status" : 200, + "json" : [ { + "uniqueId" : "b8f09d0e-dd33-46d1-bb49-434094bf632f.nf_type", + "type" : "string", + "required" : false, + "definition" : false, + "defaultValue" : null, + "description" : null, + "schema" : { + "derivedFrom" : null, + "constraints" : null, + "properties" : null, + "property" : { + "uniqueId" : null, + "type" : null, + "required" : false, + "definition" : true, + "defaultValue" : null, + "description" : null, + "schema" : null, + "password" : false, + "name" : null, + "value" : null, + "label" : null, + "hidden" : false, + "immutable" : false, + "inputPath" : null, + "status" : null, + "inputId" : null, + "instanceUniqueId" : null, + "propertyId" : null, + "parentPropertyType" : null, + "subPropertyInputPath" : null, + "annotations" : null, + "parentUniqueId" : null, + "getInputValues" : null, + "getPolicyValues" : null, + "schemaType" : null, + "schemaProperty" : null, + "getInputProperty" : false, + "version" : null, + "ownerId" : null, + "empty" : false + }, + "version" : null, + "ownerId" : null, + "empty" : false, + "type" : null + }, + "password" : false, + "name" : "nf_type", + "value" : "hwvnfmdriver", + "label" : null, + "hidden" : false, + "immutable" : false, + "inputPath" : null, + "status" : null, + "inputId" : null, + "instanceUniqueId" : null, + "propertyId" : null, + "parentPropertyType" : null, + "subPropertyInputPath" : null, + "annotations" : null, + "parentUniqueId" : "b8f09d0e-dd33-46d1-bb49-434094bf632f", + "getInputValues" : null, + "getPolicyValues" : null, + "constraints" : [ ], + "inputs" : null, + "properties" : null, + "valueUniqueUid" : null, + "path" : null, + "rules" : null, + "componentInstanceName" : null, + "componentInstanceId" : null, + "schemaType" : null, + "schemaProperty" : { + "uniqueId" : null, + "type" : null, + "required" : false, + "definition" : true, + "defaultValue" : null, + "description" : null, + "schema" : null, + "password" : false, + "name" : null, + "value" : null, + "label" : null, + "hidden" : false, + "immutable" : false, + "inputPath" : null, + "status" : null, + "inputId" : null, + "instanceUniqueId" : null, + "propertyId" : null, + "parentPropertyType" : null, + "subPropertyInputPath" : null, + "annotations" : null, + "parentUniqueId" : null, + "getInputValues" : null, + "getPolicyValues" : null, + "schemaType" : null, + "schemaProperty" : null, + "getInputProperty" : false, + "version" : null, + "ownerId" : null, + "empty" : false + }, + "getInputProperty" : false, + "version" : null, + "ownerId" : "b8f09d0e-dd33-46d1-bb49-434094bf632f", + "empty" : false + } ] + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-sample.yaml new file mode 100644 index 00000000..8984d7c1 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-set-property-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: service-model-set-property +version: onap-dublin +samples: + sample1: + name: service-model-set-property + input: --format json --input-uuid b8f09d0e-dd33-46d1-bb49-434094bf632f --service-id 58620731-40a9-4f8e-95db-ef9fc478a705 --property-name nf_type --vf-resource-id 58620731-40a9-4f8e-95db-ef9fc478a705.b85dad49-bd5c-4036-8eb0-601778b9d6ff.vgwocompvtp --property-value hwvnfmdriver --vf-id b85dad49-bd5c-4036-8eb0-601778b9d6ff + moco: service-model-set-property-moco.json + output: | + [{}] -- cgit 1.2.3-korg