aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/resources/onap-cli-schema
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/main/resources/onap-cli-schema')
-rw-r--r--framework/src/main/resources/onap-cli-schema/basic-login.yaml17
-rw-r--r--framework/src/main/resources/onap-cli-schema/basic-logout.yaml13
-rw-r--r--framework/src/main/resources/onap-cli-schema/catalog.yaml42
3 files changed, 72 insertions, 0 deletions
diff --git a/framework/src/main/resources/onap-cli-schema/basic-login.yaml b/framework/src/main/resources/onap-cli-schema/basic-login.yaml
new file mode 100644
index 00000000..10bc8a80
--- /dev/null
+++ b/framework/src/main/resources/onap-cli-schema/basic-login.yaml
@@ -0,0 +1,17 @@
+open_cli_schema_version: 1.0
+name: basic-login
+description: basic login auth command
+version: cli-1.0
+type: auth
+
+service:
+ name: onap-cli
+ version: 1.0.0
+
+results:
+ direction: portrait
+ attributes:
+ - name: Authorization
+ description: Authorization
+ scope: short
+ type: string
diff --git a/framework/src/main/resources/onap-cli-schema/basic-logout.yaml b/framework/src/main/resources/onap-cli-schema/basic-logout.yaml
new file mode 100644
index 00000000..ccb05160
--- /dev/null
+++ b/framework/src/main/resources/onap-cli-schema/basic-logout.yaml
@@ -0,0 +1,13 @@
+open_cli_schema_version: 1.0
+
+name: basic-logout
+
+description: basic logout auth command
+
+version: cli-1.0
+
+type: auth
+
+service:
+ name: onap-cli
+ version: 1.0.0
diff --git a/framework/src/main/resources/onap-cli-schema/catalog.yaml b/framework/src/main/resources/onap-cli-schema/catalog.yaml
new file mode 100644
index 00000000..6cfdb0a0
--- /dev/null
+++ b/framework/src/main/resources/onap-cli-schema/catalog.yaml
@@ -0,0 +1,42 @@
+open_cli_schema_version: 1.0
+
+name: catalog
+
+description: cli catalog command to find the base path for service.
+
+version: cli-1.0
+
+type: catalog
+
+service:
+ auth: none
+ name: onap-cli
+ version: 1.0.0
+ mode: direct
+
+parameters:
+ - name: catalog-service-name
+ type: string
+ description: service name registered in catalog service
+ short_option: l
+ long_option: catalog-service-name
+ is_optional: false
+ - name: catalog-service-version
+ type: string
+ description: service version registered in catalog service
+ short_option: i
+ long_option: catalog-service-version
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: catalog-service-host-url
+ description: Service connection url
+ scope: short
+ type: string
+ default_value: ${host-url}
+ - name: catalog-service-base-path
+ description: service base path, to append with host-url for connecting the service.
+ scope: short
+ type: string
+ default_value: / \ No newline at end of file