summaryrefslogtreecommitdiffstats
path: root/plugins/sdc/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-30 14:07:59 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-30 14:07:59 +0530
commitc40999cd797e8aaa2a08b86bf951507cebe0f0ae (patch)
tree4e6c9ede9c2809ae8b89250080901157282a73bc /plugins/sdc/src/main
parentbb854b4b1ee71c9a3bbe20a587e3031c31a44730 (diff)
Add vlm-create command for 1.1 with samples
CLI-57 Change-Id: I5a4475890db5b81fb15a32977f1ff1659c22a062 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/main')
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml56
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml45
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-entitlement-pool-create-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-entitlement-pool-create-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-entitlement-pool-show-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-entitlement-pool-show-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-group-create-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-group-create-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-group-show-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-group-show-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-model-create-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-model-show-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vlm/vlm-create-schema-1.1.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml)8
9 files changed, 4 insertions, 105 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml
deleted file mode 100644
index bc5d0b97..00000000
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml
+++ /dev/null
@@ -1,56 +0,0 @@
-open_cli_schema_version: 1.0
-name: license-key-group-create
-description: Create License Key Group
-version: onap-1.1
-service:
- name: sdc
- version: v1.0
- auth: basic
- mode: direct
-
-parameters:
- - name: license-model-id
- description: License Model Id
- type: uuid
- short_option: c
- long_option: license-model-id
- is_optional: false
- - name: name
- description: name
- type: string
- short_option: x
- long_option: name
- is_optional: false
- - name: type
- description: type of group (Universal, unique, one-time)
- type: string
- short_option: y
- long_option: type
- is_optional: false
- - name: description
- description: Description for License Key Group
- type: string
- short_option: z
- long_option: description
- is_optional: true
- - name: operational-scope
- description: Operational Scope
- type: string
- long_option: operational-scope
- is_optional: true
-results:
- direction: portrait
- attributes:
- - name: ID
- description: License Model ID
- scope: short
- type: string
-http:
- request:
- uri: /onboarding-api/v1.0/vendor-license-models/${license-model-id}/versions/0.1/license-key-groups
- method: POST
- body: '{"description": "${description}","name": "${name}","operationalScope": {"choices": ["${operational-scope}"],"other": ""},"type": "${type}"}'
- success_codes:
- - 200
- result_map:
- ID: $b{$.value} \ No newline at end of file
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml
deleted file mode 100644
index 8e4c27b5..00000000
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml
+++ /dev/null
@@ -1,45 +0,0 @@
-open_cli_schema_version: 1.0
-name: license-model-show
-description: List License Model
-version: onap-1.1
-service:
- name: sdc
- version: v1.0
- auth: basic
- mode: direct
-
-results:
- direction: landscape
- attributes:
- - name: id
- description: License ID
- scope: short
- type: uuid
- - name: vendor-name
- description: Vendor Name
- scope: short
- type: string
- - name: icon-ref
- description: icon ref
- scope: long
- type: string
- - name: status
- description: status
- scope: short
- type: string
- - name: description
- description: License description
- scope: long
- type: string
-http:
- request:
- uri: /onboarding-api/v1.0/vendor-license-models
- method: GET
- success_codes:
- - 200
- result_map:
- id: $b{$.results.[*].id}
- vendor-name: $b{$.results.[*].vendorName}
- icon-ref: $b{$.results.[*].iconRef}
- status: $b{$.results.[*].status}
- description: $b{$.results.[*].description} \ No newline at end of file
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-entitlement-pool-create-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-entitlement-pool-create-schema.yaml
index db0af2b6..db0af2b6 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-entitlement-pool-create-schema.yaml
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-entitlement-pool-create-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-entitlement-pool-show-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-entitlement-pool-show-schema.yaml
index 93968407..93968407 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-entitlement-pool-show-schema.yaml
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-entitlement-pool-show-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-group-create-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-group-create-schema.yaml
index bd9b8a23..bd9b8a23 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-group-create-schema.yaml
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-group-create-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-group-show-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-group-show-schema.yaml
index 3b93d9e2..3b93d9e2 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-group-show-schema.yaml
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-group-show-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-model-create-schema.yaml
index 58a8681a..58a8681a 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema.yaml
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-model-create-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-model-show-schema.yaml
index 52803f7f..52803f7f 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/license-model-show-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/vlm-create-schema-1.1.yaml
index 504af072..6fe6f575 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/vlm-create-schema-1.1.yaml
@@ -1,5 +1,5 @@
open_cli_schema_version: 1.0
-name: license-model-create
+name: vlm-create
description: Create License Model
version: onap-1.1
service:
@@ -15,11 +15,11 @@ parameters:
short_option: x
long_option: vendor-name
is_optional: false
- - name: license-model-description
+ - name: description
description: Description for License Model
type: string
short_option: y
- long_option: license-model-description
+ long_option: description
is_optional: true
results:
direction: portrait
@@ -32,7 +32,7 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models
method: POST
- body: '{"vendorName": "${vendor-name}", "description": "${license-model-description}", "iconRef": "icon"}'
+ body: '{"vendorName": "${vendor-name}", "description": "${description}", "iconRef": "icon"}'
success_codes:
- 200
result_map: