Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1627

CDS UI- Data Dictionary Data Type and Entry Schema Management

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • El Alto Release
    • None
    • None

      data type and entry schema in Data Dictionary drop down should display all the primitive data types + Complex data types which are the model types that start with dt- (dataType-) 

       

      Primitive Data Types: String, Boolean, Integer, Float, Double, Null

      complex data types:  list of complex data types are retrieved using below api to be made available

       

      10.12.5.149:30184/api/v1/model-type/by-definition/data_type

       

      This api return you list of all the data types. You will just display the modelName in the drop down for complex data types. 

       

      Output example

      {{
      [

      { "modelName": "dt-license-key", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "This is dt-plicense-key Data Type", "properties": { "license-key":

      { "required": true, "type": "string" }

      }, "derived_from": "tosca.datatypes.Root" }, "description": "This is dt-plicense-key Data Type", "version": "1.0.0", "tags": "dt-license-key,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" },
      { "modelName": "dt-netbox-ip", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "This is Netbox IP Data Type", "properties": { "address":

      { "required": true, "type": "string" }

      , "id":

      { "required": true, "type": "integer" }

      }, "derived_from": "tosca.datatypes.Root" }, "description": "This is Netbox IP Data Type", "version": "1.0.0", "tags": "dt-netbox-ip,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:45.000Z", "updatedBy": "System" },
      { "modelName": "dt-system-packages", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "description": "This represent System Package Data Type", "version": "1.0.0", "properties": { "type": { "required": true, "type": "string", "constraints": [

      { "valid_values": [ "ansible_galaxy", "pip" ] }

      ]
      }, "package": { "required": true, "type": "list", "entry_schema":

      { "type": "string" }

      }
      }, "derived_from": "tosca.datatypes.Root" }, "description": "This represent System Package Data Type", "version": "1.0.0", "tags": "dt-system-packages,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" },
      { "modelName": "dt-v4-aggregate", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "This is dt-v4-aggregate Data Type", "properties": { "ipv4-address":

      { "required": true, "type": "string" }

      , "ipv4-plen":

      { "required": false, "type": "integer" }

      }, "derived_from": "tosca.datatypes.Root" }, "description": "This is dt-v4-aggregate Data Type", "version": "1.0.0", "tags": "dt-v4-aggregate,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" },
      { "modelName": "tosca.datatypes.Credential", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "Credential", "properties": { "protocol":

      { "required": false, "type": "string" }

      , "token_type":

      { "required": true, "type": "string", "default": "password" }

      , "token":

      { "required": false, "type": "string" }

      , "keys": { "required": false, "type": "list", "entry_schema":

      { "type": "string" }

      }, "user":

      { "required": false, "type": "string" }

      }, "derived_from": "tosca.datatypes.Root" }, "description": "Credential", "version": "1.0.0", "tags": "tosca.datatypes.Credential,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" }
      ]}}

            arundathi arundathi
            ym9479 ym9479
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: