aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json25
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml22
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json35
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml22
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json18
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml22
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json155
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml31
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-moco.json36
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-sample.yaml22
10 files changed, 388 insertions, 0 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json
new file mode 100644
index 00000000..33d6378d
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json
@@ -0,0 +1,25 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v14//aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-07/relationship-list/relationship",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-743a8d74-cb83-458b-ace3-05b10a169c0f",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "related-to" : "complex",
+ "related-link" : "/aai/v11/cloud-infrastructure/complexes/complex/clli3",
+ "relationship-data" : [ {
+ "relationship-key" : "complex.physical-location-id",
+ "relationship-value" : "clli3"
+ } ]
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml
new file mode 100644
index 00000000..d8f02401
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml
@@ -0,0 +1,22 @@
+# 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_sample_version: 1.0
+ name: complex-associate
+ version: onap-dublin
+ samples:
+ sample1:
+ name: complex-associate
+ input: -x clli3 -y ONAP-POD-01-Rail-07 -z CloudOwner
+ moco: complex-associate-schema-dublin-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json
new file mode 100644
index 00000000..350a02e0
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json
@@ -0,0 +1,35 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/complex/clli3",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-f84bd111-614f-4f6e-9bea-f076a8b63810",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "physical-location-id" : "clli3",
+ "data-center-code" : "code6",
+ "complex-name" : "clli3",
+ "identity-url" : "url",
+ "physical-location-type" : "phy_type",
+ "street1" : "street1",
+ "street2" : "street2",
+ "city" : "HIlls",
+ "state" : "CA",
+ "postal-code" : "88888",
+ "country" : "usa",
+ "region" : "region_val",
+ "latitude" : "10.2",
+ "longitude" : "30.8",
+ "elevation" : "elev",
+ "lata" : "lata"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml
new file mode 100644
index 00000000..044d5f6f
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml
@@ -0,0 +1,22 @@
+# 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_sample_version: 1.0
+ name: complex-create
+ version: onap-dublin
+ samples:
+ sample1:
+ name: complex-create
+ input: -j street2 -r phy_type -x clli3 -y code6 -lt 10.2 -l region_val -i street1 -lo 30.8 -S CA -la lata -g HIlls -w 88888 -z clli3 -k usa -o elev -q url
+ moco: complex-create-schema-dublin-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json
new file mode 100644
index 00000000..f8b238b3
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/complex/clli3",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-26090fb4-0d07-4272-bced-b14574420451",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 204,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml
new file mode 100644
index 00000000..7ba3c306
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml
@@ -0,0 +1,22 @@
+# 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_sample_version: 1.0
+ name: complex-delete
+ version: onap-dublin
+ samples:
+ sample1:
+ name: complex-delete
+ input: -x clli3 -y 1550771530582
+ moco: complex-delete-schema-dublin-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json
new file mode 100644
index 00000000..40a8d7f3
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json
@@ -0,0 +1,155 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-6752433d-3b43-41a3-9547-9a58a9f0f8f5",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "complex" : [ {
+ "physical-location-id" : "clli1",
+ "data-center-code" : "example-data-center-code-val-5556",
+ "complex-name" : "clli1",
+ "identity-url" : "example-identity-url-val-56898",
+ "resource-version" : "1547842499867",
+ "physical-location-type" : "example-physical-location-type-val-7608",
+ "street1" : "example-street1-val-34205",
+ "street2" : "example-street2-val-99210",
+ "city" : "example-city-val-27150",
+ "state" : "example-state-val-59487",
+ "postal-code" : "00000",
+ "country" : "USA",
+ "region" : "example-region-val-13893",
+ "latitude" : "32.89948",
+ "longitude" : "97.045443",
+ "elevation" : "example-elevation-val-28399",
+ "lata" : "example-lata-val-28399",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "cloud-region",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-05",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "CloudOwner"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "ONAP-POD-01-Rail-05"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "cloud-region.owner-defined-type",
+ "property-value" : "t1"
+ } ]
+ }, {
+ "related-to" : "cloud-region",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-04",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "CloudOwner"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "ONAP-POD-01-Rail-04"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "cloud-region.owner-defined-type",
+ "property-value" : "t1"
+ } ]
+ }, {
+ "related-to" : "cloud-region",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-06",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "CloudOwner"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "ONAP-POD-01-Rail-06"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "cloud-region.owner-defined-type",
+ "property-value" : "t1"
+ } ]
+ }, {
+ "related-to" : "cloud-region",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "CloudOwner"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "RegionOne"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "cloud-region.owner-defined-type",
+ "property-value" : "t1"
+ } ]
+ } ]
+ }
+ }, {
+ "physical-location-id" : "clli2",
+ "data-center-code" : "code6",
+ "complex-name" : "clli2",
+ "identity-url" : "url",
+ "resource-version" : "1551206645488",
+ "physical-location-type" : "phy_type",
+ "street1" : "street1",
+ "street2" : "street2",
+ "city" : "HIlls",
+ "state" : "OR",
+ "postal-code" : "88889",
+ "country" : "ENG",
+ "region" : "region_val",
+ "latitude" : "100.2",
+ "longitude" : "30.8",
+ "elevation" : "elev",
+ "lata" : "lata",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "cloud-region",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-07",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "CloudOwner"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "ONAP-POD-01-Rail-07"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "cloud-region.owner-defined-type",
+ "property-value" : "t1"
+ } ]
+ } ]
+ }
+ }, {
+ "physical-location-id" : "clli3",
+ "data-center-code" : "code6",
+ "complex-name" : "clli3",
+ "identity-url" : "url",
+ "resource-version" : "1552414833543",
+ "physical-location-type" : "phy_type",
+ "street1" : "street1",
+ "street2" : "street2",
+ "city" : "HIlls",
+ "state" : "CA",
+ "postal-code" : "88888",
+ "country" : "NIG",
+ "region" : "region_val",
+ "latitude" : "10.2",
+ "longitude" : "30.8",
+ "elevation" : "elev",
+ "lata" : "lata"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml
new file mode 100644
index 00000000..c8320fd5
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml
@@ -0,0 +1,31 @@
+# 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_sample_version: 1.0
+name: complex-list
+version: onap-dublin
+samples:
+ sample1:
+ name: complex-list
+ input:
+ moco: complex-list-schema-dublin-moco.json
+ output: |
+ +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+
+ |complex-name |data-center-code |resource-version |country |region |latitude |longitude |elevation |
+ +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+
+ |clli1 |example-data-center-code-val-5556 |1547842499867 |USA |example-region-val-13893 |32.89948 |97.045443 |example-elevation-val-28399 |
+ +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+
+ |clli2 |code6 |1551206645488 |ENG |region_val |100.2 |30.8 |elev |
+ +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+
+ |clli3 |code6 |1552414833543 |NIG |region_val |10.2 |30.8 |elev |
+ +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-moco.json
new file mode 100644
index 00000000..fcab9dbb
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-moco.json
@@ -0,0 +1,36 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/complex/clli3",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-f54bb608-f004-466b-9668-7c47cb8910bb",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "physical-location-id" : "clli3",
+ "data-center-code" : "code6",
+ "complex-name" : "clli3",
+ "identity-url" : "url",
+ "physical-location-type" : "phy_type",
+ "street1" : "street1",
+ "street2" : "street2",
+ "city" : "HIlls",
+ "state" : "CA",
+ "postal-code" : "88888",
+ "country" : "NIG",
+ "region" : "region_val",
+ "latitude" : "10.2",
+ "longitude" : "30.8",
+ "elevation" : "elev",
+ "lata" : "lata",
+ "resource-version" : "1552414736878"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-sample.yaml
new file mode 100644
index 00000000..7630bd38
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-update-schema-dublin-sample.yaml
@@ -0,0 +1,22 @@
+# 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_sample_version: 1.0
+ name: complex-update
+ version: onap-dublin
+ samples:
+ sample1:
+ name: complex-update
+ input: -j street2 -r phy_type -x clli3 -y code6 -lt 10.2 -l region_val -i street1 -lo 30.8 -S CA -la lata -g HIlls -w 88888 -z clli3 -k NIG -o elev -q url -R 1552414736878
+ moco: complex-update-schema-dublin-moco.json
+ output: \ No newline at end of file