aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-dublin.yaml16
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-dublin.yaml45
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-dublin.yaml6
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml2
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml24
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml16
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml14
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml2
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-dublin.yaml2
9 files changed, 72 insertions, 55 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-dublin.yaml
index d320848f..7d95c4a3 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create license aggreement
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
parameters:
@@ -40,12 +40,6 @@ parameters:
short_option: e
long_option: vlm-version
is_optional: false
- - name: description
- description: Description for aggreement
- type: string
- short_option: z
- long_option: description
- is_optional: false
- name: vlm-feature-group-id
description: VLM feature group
type: string
@@ -56,7 +50,7 @@ parameters:
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: aggreement ID
scope: short
type: string
@@ -69,10 +63,8 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements
method: POST
- body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "description": "${description}", "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}'
+ body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}'
success_codes:
- 200
result_map:
- ID: $b{$.value}
- sample_response:
- body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'
+ id: $b{$.value}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-dublin.yaml
new file mode 100644
index 00000000..96e91715
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-dublin.yaml
@@ -0,0 +1,45 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-archive
+description: Archive Vendor License Model
+
+info:
+ product: onap-dublin
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vlm-id
+ description: Onap VLM ID
+ type: string
+ short_option: x
+ long_option: vlm-id
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/items/${vlm-id}/actions
+ method: PUT
+ body: '{"action": "ARCHIVE"}'
+ success_codes:
+ - 201
+ - 200
+ - 417 \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-dublin.yaml
index ebe16263..ca09bd2e 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create License Model
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
@@ -38,7 +38,7 @@ parameters:
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: License Model ID
scope: short
type: uuid
@@ -59,5 +59,5 @@ http:
success_codes:
- 200
result_map:
- ID: $b{$.itemId}
+ id: $b{$.itemId}
version: $b{$.version.id} \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml
index a22a0365..526d03e8 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Delete License Model (certified vlms cannot be deleted)
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml
index 6bcf1339..86f99e23 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create Entitlement Pool
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
@@ -41,35 +41,29 @@ parameters:
short_option: e
long_option: vlm-version
is_optional: false
- - name: description
- description: Description for Entitlement Pool
- type: string
- short_option: z
- long_option: description
- is_optional: false
- name: manufacture-reference-number
description: Manufature Reference Number
type: string
short_option: k
long_option: manufacture-reference-number
is_optional: false
- - name: startDate
+ - name: start-date
description: License start date (MM/DD/YYYY)
type: string
short_option: l
- long_option: startDate
+ long_option: start-date
is_optional: false
- - name: expiryDate
+ - name: expiry-date
description: License end date (MM/DD/YYYY)
type: string
short_option: g
- long_option: expiryDate
- is_optional: false
+ long_option: expiry-date
+ is_optional: false
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: Entitlement Pool ID
scope: short
type: string
@@ -82,8 +76,8 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools
method: POST
- body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${startDate}","expiryDate":"${expiryDate}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
+ body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${start-date}","expiryDate":"${expiry-date}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
success_codes:
- 200
result_map:
- ID: $b{$.value}
+ id: $b{$.value}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml
index b4559d27..d3cd45a0 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create feature group Pool
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
@@ -41,12 +41,6 @@ parameters:
short_option: e
long_option: vlm-version
is_optional: false
- - name: description
- description: Description for feature group
- type: string
- short_option: z
- long_option: description
- is_optional: false
- name: vlm-key-group-id
description: VLM keygroup
type: string
@@ -69,7 +63,7 @@ parameters:
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: Feature group ID
scope: short
type: string
@@ -82,10 +76,8 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups
method: POST
- body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}", "description": "${description}"}'
+ body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}"}'
success_codes:
- 200
result_map:
- ID: $b{$.value}
- sample_response:
- body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'
+ id: $b{$.value}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml
index d1e5f16c..b82220e8 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Create License Key Group
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org
@@ -48,17 +48,11 @@ parameters:
long_option: type
is_optional: false
default_value: Universal
- - name: description
- description: Description for License Key Group
- type: string
- short_option: z
- long_option: description
- is_optional: true
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: License Model ID
scope: short
type: string
@@ -71,8 +65,8 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups
method: POST
- body: '{"description": "${description}", "name": "${name}", "type": "${type}"}'
+ body: '{"name": "${name}", "type": "${type}"}'
success_codes:
- 200
result_map:
- ID: $b{$.value} \ No newline at end of file
+ id: $b{$.value} \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml
index bf53824c..5962674a 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: List the vendor license models in ONAP
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP HPA Integration Team (itohan.ukponmwan@intel.com)
results:
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-dublin.yaml
index 99a0f46b..029d71d1 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-dublin.yaml
@@ -18,7 +18,7 @@ description: Submit Vendor License Model
info:
product: onap-dublin
- service: sdc
+ service: sdc.onboarding
author: ONAP CLI Team onap-discuss@lists.onap.org