summaryrefslogtreecommitdiffstats
path: root/plugins/sdc/src/main/resources/onap-cli-schema/license-models
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sdc/src/main/resources/onap-cli-schema/license-models')
-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-create-schema-1.1.yaml39
-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/license-models/license-model-show-schema.yaml2
4 files changed, 141 insertions, 1 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
new file mode 100644
index 00000000..bc5d0b97
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml
@@ -0,0 +1,56 @@
+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-create-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml
new file mode 100644
index 00000000..504af072
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml
@@ -0,0 +1,39 @@
+open_cli_schema_version: 1.0
+name: license-model-create
+description: Create License Model
+version: onap-1.1
+service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: vendor-name
+ description: vendor name
+ type: string
+ short_option: x
+ long_option: vendor-name
+ is_optional: false
+ - name: license-model-description
+ description: Description for License Model
+ type: string
+ short_option: y
+ long_option: license-model-description
+ is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: License Model ID
+ scope: short
+ type: uuid
+http:
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models
+ method: POST
+ body: '{"vendorName": "${vendor-name}", "description": "${license-model-description}", "iconRef": "icon"}'
+ 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
new file mode 100644
index 00000000..8e4c27b5
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml
@@ -0,0 +1,45 @@
+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-model-show-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml
index 8214c19c..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/license-models/license-model-show-schema.yaml
@@ -37,7 +37,7 @@ results:
type: string
http:
request:
- uri: /onboarding-api/v1.0/vendor-software-products/${license-model-id}
+ uri: /onboarding-api/v1.0/vendor-license-models/${license-model-id}
method: GET
success_codes:
- 200