From 325ea8e8f7bc4df7b07fd107cc9b3bd315d8e7f1 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 4 Oct 2017 18:26:10 +0530 Subject: Migrate plugins to use info section Issue-Id: CLI-66 Change-Id: I06a2b76ac426bfcfe3b5fcf5e3b828d18c0e9a68 Signed-off-by: Kanagaraj Manickam k00365106 --- .../license-models/license-model-create-schema.yaml | 15 +++++++++------ .../license-models/license-model-show-schema.yaml | 14 ++++++++------ .../resources/open-cli-schema/vsp/vsp-checkin-schema.yaml | 14 ++++++++------ .../open-cli-schema/vsp/vsp-checkout-schema.yaml | 13 +++++++------ .../resources/open-cli-schema/vsp/vsp-create-schema.yaml | 14 ++++++++------ .../resources/open-cli-schema/vsp/vsp-list-schema.yaml | 14 ++++++++------ .../resources/open-cli-schema/vsp/vsp-show-schema.yaml | 14 ++++++++------ .../resources/open-cli-schema/vsp/vsp-submit-schema.yaml | 14 ++++++++------ .../resources/open-cli-schema/vsp/vsp-upload-schema.yaml | 14 ++++++++------ 9 files changed, 72 insertions(+), 54 deletions(-) (limited to 'plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema') diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-create-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-create-schema.yaml index 58a8681a..57085d54 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-create-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-create-schema.yaml @@ -1,12 +1,12 @@ open_cli_schema_version: 1.0 name: license-model-create description: Create License Model -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + parameters: - name: vendor-name @@ -29,6 +29,9 @@ results: scope: short type: string http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-license-models method: POST diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-show-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-show-schema.yaml index 8214c19c..fe950f32 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-show-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/license-models/license-model-show-schema.yaml @@ -1,12 +1,11 @@ open_cli_schema_version: 1.0 name: license-model-show description: Details of the License Model -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: license-model-id @@ -36,6 +35,9 @@ results: scope: short type: string http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products/${license-model-id} method: GET diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml index 4522b41d..a6c0b700 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml @@ -1,12 +1,11 @@ open_cli_schema_version: 1.0 name: vsp-checkin description: Checkin Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: vsp-id @@ -16,6 +15,9 @@ parameters: long_option: vsp-id is_optional: false http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions method: PUT diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml index d790ce55..6e4b11b0 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml @@ -1,13 +1,11 @@ open_cli_schema_version: 1.0 name: vsp-checkout description: Checkout Vendor Software Product -version: onap-1.1 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: vsp-id @@ -17,6 +15,9 @@ parameters: long_option: vsp-id is_optional: false http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions method: PUT diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml index 4ce83d4b..a50ef44b 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml @@ -1,12 +1,11 @@ open_cli_schema_version: 1.0 name: vsp-create description: Create Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: vsp-name @@ -74,6 +73,9 @@ results: scope: short type: string http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products method: POST diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml index f171b442..66892aaf 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml @@ -1,12 +1,11 @@ open_cli_schema_version: 1.0 name: vsp-list description: List of the Vendor Software Products -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org results: direction: landscape @@ -20,6 +19,9 @@ results: scope: short type: string http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products method: GET diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml index 47cc462e..35d776d5 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml @@ -1,12 +1,11 @@ open_cli_schema_version: 1.0 name: vsp-show description: Details of the Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: vsp-id @@ -32,6 +31,9 @@ results: scope: short type: string http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id} method: GET diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml index d5f1733f..4ad1cff4 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml @@ -1,12 +1,11 @@ open_cli_schema_version: 1.0 name: vsp-submit description: Submit Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: vsp-id @@ -16,6 +15,9 @@ parameters: long_option: vsp-id is_optional: false http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions method: PUT diff --git a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml index 28d8c0a5..e54e1132 100644 --- a/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml +++ b/plugins/onap-1.0/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml @@ -1,12 +1,11 @@ open_cli_schema_version: 1.0 name: vsp-upload description: Upload the CSAR file to VSP -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct + +info: + product: onap-1.0 + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: vsp-id @@ -22,6 +21,9 @@ parameters: long_option: vsp-file is_optional: false http: + service: + auth: basic + mode: direct request: uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/upload method: POST -- cgit 1.2.3-korg